public class DoubleConst extends ASTree
Modifier and Type | Field and Description |
---|---|
protected int |
type |
protected double |
value |
Constructor and Description |
---|
DoubleConst(double 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) |
double |
get() |
int |
getType() |
void |
set(double v) |
String |
toString() |
public double get()
public void set(double v)
public int getType()
public void accept(Visitor v) throws CompileError
ASTree
atXXX()
on the given visitor, where
XXX
is the class name of the node object.accept
in class ASTree
CompileError
Copyright © 2024. All rights reserved.