|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.core.interpreter.RootObject
jmathlib.core.tokens.Token
jmathlib.core.tokens.OperandToken
jmathlib.core.tokens.DataToken
jmathlib.core.tokens.MathLibObject
public class MathLibObject
| Field Summary |
|---|
| Fields inherited from class jmathlib.core.tokens.DataToken |
|---|
dataType, noElem, sizeA, sizeX, sizeY |
| Fields inherited from class jmathlib.core.tokens.Token |
|---|
priority |
| 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 |
| 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 |
| Constructor Summary | |
|---|---|
MathLibObject()
Create a new structure |
|
MathLibObject(MathLibObject oldVal)
Create a structure and copy it's data from another structure |
|
| Method Summary | |
|---|---|
OperandToken |
add(OperandToken arg)
add this token to another |
OperandToken |
divide(OperandToken arg)
divide this token by another |
OperandToken |
evaluate(Token[] operands,
GlobalValues globals)
Evaluates the structure |
OperandToken |
getFieldData(java.lang.String fieldName)
Get the value of a particular field |
java.util.Iterator |
getFields()
|
java.util.HashMap |
getFieldsHash()
|
Variable |
getFieldVariable(java.lang.String fieldName)
Get the value of a particular field |
OperandToken |
multiply(OperandToken arg)
multiply this token by another |
OperandToken |
power(OperandToken arg)
raise this token to the power of another |
void |
setField(java.lang.String fieldName,
OperandToken value)
Set the value of one of the structures fields |
OperandToken |
subtract(OperandToken arg)
subtract this token from another |
java.lang.String |
toString()
Turns the structure into a string |
| Methods inherited from class jmathlib.core.tokens.DataToken |
|---|
checkEqualDimensions, getDataType, getDimensions, getElement, getElement, getElementSized, getNumberOfElements, getSize, getSizeX, getSizeY, setElement, setElement, setSize |
| Methods inherited from class jmathlib.core.tokens.OperandToken |
|---|
asArray, Children, ctranspose, derivative, expand, factorial, integral, isLeaf, isNull, isNumeric, leftDivide, mpower, mPower, negate, scalarDivide, scalarLeftDivide, scalarMultiply, simplify, subst, transpose |
| Methods inherited from class jmathlib.core.tokens.Token |
|---|
isDisplayResult, setDisplayResult, toMathMlString, toString |
| Methods inherited from class jmathlib.core.interpreter.RootObject |
|---|
clone, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MathLibObject()
public MathLibObject(MathLibObject oldVal)
oldVal - = the structure to copy the values from| Method Detail |
|---|
public void setField(java.lang.String fieldName,
OperandToken value)
fieldName - = the name of the field to setvalue - = the value to set the field topublic OperandToken getFieldData(java.lang.String fieldName)
fieldName - = the name of the field
public Variable getFieldVariable(java.lang.String fieldName)
fieldName - = the name of the field
public java.util.Iterator getFields()
public java.util.HashMap getFieldsHash()
public java.lang.String toString()
toString in class Token
public OperandToken evaluate(Token[] operands,
GlobalValues globals)
evaluate in class Tokenoperands - = an array of RootObject containing the tokens operands
public OperandToken add(OperandToken arg)
OperandToken
add in class OperandToken -
public OperandToken subtract(OperandToken arg)
OperandToken
subtract in class OperandToken -
public OperandToken multiply(OperandToken arg)
OperandToken
multiply in class OperandTokenarg -
public OperandToken divide(OperandToken arg)
OperandToken
divide in class OperandToken -
public OperandToken power(OperandToken arg)
OperandToken
power in class OperandToken -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||