public class TestToken extends Token
Modifier and Type | Class and Description |
---|---|
static class |
TestToken.TestType
The class of this token.
|
Modifier and Type | Field and Description |
---|---|
static Type |
TYPE
The type of this token.
|
Constructor and Description |
---|
TestToken(java.lang.Object object)
Construct a token to be used for testing that encapsulates an object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject()
Return the object contained by this token.
|
Type |
getType()
Return the type of this token.
|
BooleanToken |
isEqualTo(Token token)
Test for equality of the values of this Token and the argument Token.
|
java.lang.String |
toString()
Return the value of this token as a string that can be parsed
by the expression language to recover a token with the same value.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public TestToken(java.lang.Object object)
object
- The object to be encapsulatedpublic java.lang.Object getObject()
public BooleanToken isEqualTo(Token token) throws IllegalActionException
isEqualTo
in class Token
token
- The token with which to test equality.IllegalActionException
- If this method is not
supported by the derived class.public java.lang.String toString()