Top Description Fields Constructors Methods
javassist.compiler.ast

public Class DoubleConst

extends ASTree
Class Inheritance
Imports
javassist.compiler.CompileError, .TokenId

Double constant.

Field Summary

Modifier and TypeField and Description
private static final long
protected int
protected double

Constructor Summary

AccessConstructor and Description
public
DoubleConst(double v, int tokenId)

Method Summary

Modifier and TypeMethod and Description
public void
accept(Visitor v)

Implements abstract javassist.compiler.ast.ASTree.accept.

Is a method for the visitor pattern.

public ASTree
compute(int op, ASTree right)

private static DoubleConst
compute(int op, double value1, double value2, int newType)

private DoubleConst
compute0(int op, DoubleConst right)

private DoubleConst
compute0(int op, IntConst right)

public double
get()

public int
public void
set(double v)

public String
toString()

Overrides javassist.compiler.ast.ASTree.toString.

Returns a string representation of the object.

Inherited from javassist.compiler.ast.ASTree:
getLeftgetRightgetTagsetLeftsetRight

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javassist.compiler.ast.ASTree.serialVersionUID.

default serialVersionUID

typeback to summary
protected int type
valueback to summary
protected double value

Constructor Detail

DoubleConstback to summary
public DoubleConst(double v, int tokenId)

Method Detail

acceptback to summary
public void accept(Visitor v) throws CompileError

Implements abstract javassist.compiler.ast.ASTree.accept.

Doc from javassist.compiler.ast.ASTree.accept.

Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

Annotations
@Override
computeback to summary
public ASTree compute(int op, ASTree right)
computeback to summary
private static DoubleConst compute(int op, double value1, double value2, int newType)
compute0back to summary
private DoubleConst compute0(int op, DoubleConst right)
compute0back to summary
private DoubleConst compute0(int op, IntConst right)
getback to summary
public double get()
getTypeback to summary
public int getType()
setback to summary
public void set(double v)
toStringback to summary
public String toString()

Overrides javassist.compiler.ast.ASTree.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override