public class PtrToken extends Token
red (ristau) |
red (ristau) |
Constructor and Description |
---|
PtrToken()
Create a Token.
|
PtrToken(int addr,
int size)
Create a Token with an initial address and an initial size.
|
Modifier and Type | Method and Description |
---|---|
int |
getAddress()
Get the address in memory this token is pointing to.
|
int |
getSize()
Get the size of the array in memory this token is pointing to.
|
void |
setAddress(int addr)
Set the address in memory this token should point to.
|
void |
setSize(int size)
Set the size of the array in memory this token is pointing to.
|
add, addReverse, divide, divideReverse, getType, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, toString, zero, zeroReturnType
public PtrToken()
public PtrToken(int addr, int size)
addr
- The address in the memory that this token is pointing to.size
- The size of the array in the memory that this token
is pointing to.public int getAddress()
setAddress(int)
public int getSize()
setSize(int)
public void setAddress(int addr)
addr
- The address in memory this token should point to.getAddress()
public void setSize(int size)
size
- The size of the array in memory this token is pointing to.getSize()