com.techtrader.modules.tools.bytecode.lowlevel
Class LongEntry
java.lang.Object
|
+--com.techtrader.modules.tools.bytecode.lowlevel.LongEntry
- public class LongEntry
- extends Object
- implements ConstantEntry, LowLevelConstants
Represnts a long constant in the constant pool.
- Author:
- Abe White
Fields inherited from interface com.techtrader.modules.tools.bytecode.lowlevel.LowLevelConstants |
ENTRY_CLASS,
ENTRY_DOUBLE,
ENTRY_FIELD,
ENTRY_FLOAT,
ENTRY_INT,
ENTRY_INTMETHOD,
ENTRY_LONG,
ENTRY_METHOD,
ENTRY_NAME_AND_TYPE,
ENTRY_PLACEHOLDER,
ENTRY_STRING,
ENTRY_UTF8 |
Method Summary |
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this object. |
Object |
getConstantValue()
|
String |
getKey()
Return a suitable hash key for this entry. |
int |
getType()
Get the constant for the type of entry represented. |
long |
getValue()
Get the value of the constant. |
void |
readData(DataInput in)
This is called by the ClassRep after reading the entry type. |
void |
setConstantValue(Object val)
|
void |
setValue(long value)
Set the value of the constant. |
void |
writeData(DataOutput out)
This is called by the ClassRep after writing the entry type. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LongEntry
public LongEntry()
getType
public int getType()
- Description copied from interface: Entry
- Get the constant for the type of entry represented.
getValue
public long getValue()
- Get the value of the constant.
setValue
public void setValue(long value)
- Set the value of the constant.
getConstantValue
public Object getConstantValue()
- Specified by:
- getConstantValue in interface ConstantEntry
setConstantValue
public void setConstantValue(Object val)
- Specified by:
- setConstantValue in interface ConstantEntry
readData
public void readData(DataInput in)
throws IOException
- Description copied from interface: Entry
- This is called by the ClassRep after reading the entry type.
writeData
public void writeData(DataOutput out)
throws IOException
- Description copied from interface: Entry
- This is called by the ClassRep after writing the entry type.
getKey
public String getKey()
- Description copied from interface: Entry
- Return a suitable hash key for this entry.
acceptVisit
public void acceptVisit(BCVisitor visit)
- Description copied from interface: VisitAcceptor
- Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this object.