public class DoubleConstant extends Constant
Constant represents a double constant in the constant pool.| Modifier and Type | Field and Description |
|---|---|
double |
f8value |
CLASS, DOUBLE, DYNAMIC, FIELDREF, FLOAT, INTEGER, INTERFACE_METHODREF, INVOKE_DYNAMIC, LONG, METHOD_HANDLE, METHOD_TYPE, METHODREF, MODULE, NAME_AND_TYPE, PACKAGE, PRIMITIVE_ARRAY, STRING, UTF8processingFlags, processingInfo| Constructor and Description |
|---|
DoubleConstant()
Creates an uninitialized DoubleConstant.
|
DoubleConstant(double value)
Creates a new DoubleConstant with the given double value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
boolean |
equals(java.lang.Object object) |
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
double |
getValue()
Returns the double value of this DoubleConstant.
|
int |
hashCode() |
boolean |
isCategory2()
Returns whether the constant is of category 2.
|
void |
setValue(double value)
Sets the double value of this DoubleConstant.
|
java.lang.String |
toString() |
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfopublic DoubleConstant()
public DoubleConstant(double value)
public double getValue()
public void setValue(double value)
public int getTag()
Constantpublic boolean isCategory2()
ConstantisCategory2 in class Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
Constantpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object