Package org.openjdk.asmtools.jasm
Class ConstantPool.ConstValue
- java.lang.Object
-
- org.openjdk.asmtools.jasm.ConstantPool.ConstValue
-
- Direct Known Subclasses:
ConstantPool.ConstValue_Cell,ConstantPool.ConstValue_IndyOrCondyPair,ConstantPool.ConstValue_Integer,ConstantPool.ConstValue_Long,ConstantPool.ConstValue_Pair,ConstantPool.ConstValue_String,ConstantPool.ConstValue_Zero
- Enclosing class:
- ConstantPool
public static class ConstantPool.ConstValue extends java.lang.ObjectConstValue A (typed) tagged value in the constant pool.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisSetprotected Tables.ConstTypetagprivate booleanvisited
-
Constructor Summary
Constructors Constructor Description ConstValue(Tables.ConstType tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int_hashCode()protected java.lang.String_toString()booleanequals(java.lang.Object obj)Compares this object to the specified object.inthashCode()Compute the hash-code, based on the value of the native (_hashCode()) hashcode.booleanhasValue()intsize()java.lang.StringtoString()voidwrite(CheckedDataOutputStream out)
-
-
-
Field Detail
-
tag
protected Tables.ConstType tag
-
isSet
protected boolean isSet
-
visited
private boolean visited
-
-
Constructor Detail
-
ConstValue
public ConstValue(Tables.ConstType tag)
-
-
Method Detail
-
size
public int size()
-
hasValue
public boolean hasValue()
-
hashCode
public int hashCode()
Compute the hash-code, based on the value of the native (_hashCode()) hashcode.- Overrides:
hashCodein classjava.lang.Object
-
_hashCode
protected int _hashCode()
-
equals
public boolean equals(java.lang.Object obj)
Compares this object to the specified object. Sub-classes must override this- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to compare with- Returns:
- true if the objects are the same; false otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
_toString
protected java.lang.String _toString()
-
write
public void write(CheckedDataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
-