Logo Search packages:      
Sourcecode: wims version File versions  Download package

void edu::hws::jcm::data::Parser::add ( MathObject  sym  )  [inline]

Register the MathObject with the Parser, associating it with its name. An error will occur if the name is null. If the CASE_SENSITIVE option is not set, names are converted to lower case for the purpose of registering and retrieving registered objects.

Definition at line 303 of file Parser.java.

References edu::hws::jcm::data::SymbolTable::add(), options, and symbols.

Referenced by edu::hws::jcm::awt::VariableSlider::addTo(), edu::hws::jcm::awt::VariableInput::addTo(), edu::hws::jcm::awt::DataTableInput::addVariablesToParser(), edu::hws::jcm::functions::ExpressionFunction::ExpressionFunction(), edu::hws::jcm::functions::ExpressionFunction::redefine(), GenericGraphApplet::setUpParser(), and edu::hws::jcm::awt::VariableSlider::VariableSlider().

                                   {
      if ( (options & Parser.CASE_SENSITIVE) != 0 )
         symbols.add(sym);
      else
         symbols.add(sym.getName().toLowerCase(), sym);
   }


Generated by  Doxygen 1.6.0   Back to index