jmathlib.core.interpreter
Class RootObject

java.lang.Object
  extended by jmathlib.core.interpreter.RootObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ErrorCodes, TokenConstants
Direct Known Subclasses:
Function, FunctionParser, MFileLoader, Parser, Token, TreeAnalyser, Variable

public class RootObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, ErrorCodes, TokenConstants

This universal the base class for all class define by JMathLib. It defines Global values as class variables and also defines functions for creating and accessing the working environment.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jmathlib.core.constants.ErrorCodes
ERR_BRACKET_OPEN, ERR_BRACKET_ORDER, ERR_FUNCTION_NOT_FOUND, ERR_FUNCTION_NOT_IMPLEMENTED, ERR_INSUFFICIENT_PARAMETERS, ERR_INVALID_PARAMETER, ERR_LVALUE_REQUIRED, ERR_MATRIX_SINGULAR, ERR_NOT_SQUARE_MATRIX, ERR_OPNOTSUPPORTED, ERR_TOO_MANY_PARAMETERS, ERR_USER_ERROR, ERR_VARIABLE_NOTDEFINED, OK, OK_FUNCTION_PROCESS
 
Fields inherited from interface jmathlib.core.constants.TokenConstants
ADDSUB_PRIORITY, AND_PRIORITY, ANDAND_PRIORITY, ASSIGN_PRIORITY, BRACKET_PRIORITY, COMPARE_PRIORITY, CONCAT, MATRIX, MULDIV_PRIORITY, OR_PRIORITY, OROR_PRIORITY, PARAMETER, POWER_PRIORITY, RELATION_PRIORITY, SINGLE, ttDelimiter, ttNotSet, ttOperand, ttOperator
 
Constructor Summary
RootObject()
           
 
Method Summary
 java.lang.Object clone()
          Duplicates the object by serialising it to a piped stream then reading it back into the new object
 java.lang.String toString(OperandToken[] operands)
          Converts the object to a string based on the operand list
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootObject

public RootObject()
Method Detail

toString

public java.lang.String toString(OperandToken[] operands)
Converts the object to a string based on the operand list

Parameters:
operands - = operands for the expression

clone

public java.lang.Object clone()
Duplicates the object by serialising it to a piped stream then reading it back into the new object

Overrides:
clone in class java.lang.Object

FOOTER

BOTTOM