Package javassist.compiler.ast
Class DoubleConst
java.lang.Object
javassist.compiler.ast.ASTree
javassist.compiler.ast.DoubleConst
- All Implemented Interfaces:
Serializable
Double constant.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
default serialVersionUIDprotected int
protected double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Is a method for the visitor pattern.private static DoubleConst
compute
(int op, double value1, double value2, int newType) private DoubleConst
compute0
(int op, DoubleConst right) private DoubleConst
double
get()
int
getType()
void
set
(double v) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDdefault serialVersionUID- See Also:
-
value
protected double value -
type
protected int type
-
-
Constructor Details
-
DoubleConst
public DoubleConst(double v, int tokenId)
-
-
Method Details
-
get
public double get() -
set
public void set(double v) -
getType
public int getType() -
toString
-
accept
Description copied from class:ASTree
Is a method for the visitor pattern. It callsatXXX()
on the given visitor, whereXXX
is the class name of the node object.- Specified by:
accept
in classASTree
- Throws:
CompileError
-
compute
-
compute0
-
compute0
-
compute
-