public class PointerToken extends Token
Red |
Red (tbf) |
Modifier and Type | Class and Description |
---|---|
static class |
PointerToken.PointerType
The pointer type.
|
Modifier and Type | Field and Description |
---|---|
static Type |
POINTER
The Pointer type: the least upper bound of all the pointer
types.
|
Constructor and Description |
---|
PointerToken()
Construct an empty token.
|
PointerToken(int pointer)
Construct a token with the specified memory location.
|
Modifier and Type | Method and Description |
---|---|
Type |
getType()
Return the type of this token.
|
int |
getValue()
Return the address of the pointer.
|
BooleanToken |
isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument
Token.
|
java.lang.String |
toString()
Return a String representation of the PointerToken,
including the address.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final Type POINTER
public PointerToken()
public PointerToken(int pointer) throws IllegalActionException
pointer
- The specified object referred to by this token.IllegalActionException
- If the argument is not of
the appropriate type
(may be thrown by derived classes, but is not thrown here).public Type getType()
public int getValue()
public final BooleanToken isEqualTo(Token rightArgument) throws IllegalActionException
isEqualTo
in class Token
rightArgument
- The Token to test against.IllegalActionException
- Not thrown in this base class.