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 longdefault serialVersionUIDprotected intprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIs a method for the visitor pattern.private static DoubleConstcompute(int op, double value1, double value2, int newType) private DoubleConstcompute0(int op, DoubleConst right) private DoubleConstdoubleget()intgetType()voidset(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:ASTreeIs a method for the visitor pattern. It callsatXXX()on the given visitor, whereXXXis the class name of the node object.- Specified by:
acceptin classASTree- Throws:
CompileError
-
compute
-
compute0
-
compute0
-
compute
-