public class IntConst extends ASTree
| Modifier and Type | Field and Description |
|---|---|
protected int |
type |
protected long |
value |
| Constructor and Description |
|---|
IntConst(long v,
int tokenId) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Is a method for the visitor pattern.
|
ASTree |
compute(int op,
ASTree right) |
private DoubleConst |
compute0(int op,
DoubleConst right) |
private IntConst |
compute0(int op,
IntConst right) |
long |
get() |
int |
getType() |
void |
set(long v) |
java.lang.String |
toString() |
public long get()
public void set(long v)
public int getType()
public void accept(Visitor v) throws CompileError
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.accept in class ASTreeCompileErrorprivate DoubleConst compute0(int op, DoubleConst right)