Package javassist.compiler.ast
Class DoubleConst
- java.lang.Object
-
- javassist.compiler.ast.ASTree
-
- javassist.compiler.ast.DoubleConst
-
- All Implemented Interfaces:
java.io.Serializable
public class DoubleConst extends ASTree
Double constant.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleConst(double v, int tokenId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
Is a method for the visitor pattern.private static DoubleConst
compute(int op, double value1, double value2, int newType)
ASTree
compute(int op, ASTree right)
private DoubleConst
compute0(int op, DoubleConst right)
private DoubleConst
compute0(int op, IntConst right)
double
get()
int
getType()
void
set(double v)
java.lang.String
toString()
-
-
-
Method Detail
-
get
public double get()
-
set
public void set(double v)
-
getType
public int getType()
-
accept
public void accept(Visitor v) throws CompileError
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
-
compute0
private DoubleConst compute0(int op, DoubleConst right)
-
compute0
private DoubleConst compute0(int op, IntConst right)
-
compute
private static DoubleConst compute(int op, double value1, double value2, int newType)
-
-