|
|||||||||
| 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.CharToken
public class CharToken
Class used to represent any strings used in an expression
| 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 | |
|---|---|
CharToken()
Creates an empty char array |
|
CharToken(char _value)
Creates a string with a value of _value |
|
CharToken(char[][] _values)
Creates a string with a value of _value |
|
CharToken(java.lang.String _value)
Creates a string with a value of _value |
|
CharToken(java.lang.String[] _values)
Creates a string with a value of _value |
|
| Method Summary | |
|---|---|
OperandToken |
add(OperandToken arg)
add arg to this object to create a new string |
OperandToken |
evaluate(Token[] operands,
GlobalValues globals)
Evaluates the token, just returns the token itself |
char |
getCharValue()
|
OperandToken |
getElement(int y,
int x)
|
DataToken |
getElementSized(int y,
int x)
|
java.lang.String |
getValue()
|
double[][] |
getValuesRe()
cast all char-values into double-array |
void |
setElement(int y,
int x,
OperandToken op)
|
java.lang.String |
toString()
|
| Methods inherited from class jmathlib.core.tokens.DataToken |
|---|
checkEqualDimensions, getDataType, getDimensions, getElement, getNumberOfElements, getSize, getSizeX, getSizeY, setElement, setSize |
| Methods inherited from class jmathlib.core.tokens.OperandToken |
|---|
asArray, Children, ctranspose, derivative, divide, expand, factorial, integral, isLeaf, isNull, isNumeric, leftDivide, mpower, mPower, multiply, negate, power, scalarDivide, scalarLeftDivide, scalarMultiply, simplify, subst, subtract, 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 CharToken()
public CharToken(java.lang.String _value)
_value - = the value of the stringpublic CharToken(java.lang.String[] _values)
_value - = the value of the stringpublic CharToken(char[][] _values)
_value - = the value of the stringpublic CharToken(char _value)
_value - = the value of the string| Method Detail |
|---|
public OperandToken evaluate(Token[] operands,
GlobalValues globals)
evaluate in class Tokenoperands - = the tokens operands (not used) -
public java.lang.String toString()
toString in class Tokenpublic java.lang.String getValue()
public char getCharValue()
public double[][] getValuesRe()
public OperandToken getElement(int y,
int x)
getElement in class DataToken - -
public void setElement(int y,
int x,
OperandToken op)
setElement in class DataToken - - -
public DataToken getElementSized(int y,
int x)
getElementSized in class DataToken - -
public OperandToken add(OperandToken arg)
add in class OperandTokenarg - = the value to add to the string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||