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.Object
ConstValue A (typed) tagged value in the constant pool.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isSet
protected Tables.ConstType
tag
private boolean
visited
-
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()
boolean
equals(java.lang.Object obj)
Compares this object to the specified object.int
hashCode()
Compute the hash-code, based on the value of the native (_hashCode()) hashcode.boolean
hasValue()
int
size()
java.lang.String
toString()
void
write(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:
hashCode
in 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:
equals
in 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:
toString
in classjava.lang.Object
-
_toString
protected java.lang.String _toString()
-
write
public void write(CheckedDataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
-