Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.techtrader.modules.tools.bytecode.lowlevel
Class StringEntry  view StringEntry download StringEntry.java

java.lang.Object
  extended bycom.techtrader.modules.tools.bytecode.lowlevel.StringEntry
All Implemented Interfaces:
ConstantEntry, Entry, LowLevelConstants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor

public class StringEntry
extends java.lang.Object
implements ConstantEntry, LowLevelConstants

String constant constant pool entry.


Field Summary
private  int _stringIndex
           
 
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
 
Constructor Summary
StringEntry()
           
 
Method Summary
 void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.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.
 java.lang.Object getConstantValue()
           
 java.lang.String getKey()
          Return a suitable hash key for this entry.
 int getStringIndex()
          Get the index into the constant pool of the UTF8Entry storing the value of this string constant.
 int getType()
          Get the constant for the type of entry represented.
 void readData(java.io.DataInput in)
          This is called by the ClassRep after reading the entry type.
 void setConstantValue(java.lang.Object val)
           
 void setStringIndex(int stringIndex)
          Set the index into the constant pool of the UTF8Entry storing the value of this string constant.
 void writeData(java.io.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
 

Field Detail

_stringIndex

private int _stringIndex
Constructor Detail

StringEntry

public StringEntry()
Method Detail

getType

public int getType()
Description copied from interface: Entry
Get the constant for the type of entry represented.

Specified by:
getType in interface Entry

getStringIndex

public int getStringIndex()
Get the index into the constant pool of the UTF8Entry storing the value of this string constant.


setStringIndex

public void setStringIndex(int stringIndex)
Set the index into the constant pool of the UTF8Entry storing the value of this string constant.


getConstantValue

public java.lang.Object getConstantValue()
Specified by:
getConstantValue in interface ConstantEntry

setConstantValue

public void setConstantValue(java.lang.Object val)
Specified by:
setConstantValue in interface ConstantEntry

readData

public void readData(java.io.DataInput in)
              throws java.io.IOException
Description copied from interface: Entry
This is called by the ClassRep after reading the entry type.

Specified by:
readData in interface Entry

writeData

public void writeData(java.io.DataOutput out)
               throws java.io.IOException
Description copied from interface: Entry
This is called by the ClassRep after writing the entry type.

Specified by:
writeData in interface Entry

getKey

public java.lang.String getKey()
Description copied from interface: Entry
Return a suitable hash key for this entry.

Specified by:
getKey in interface Entry

acceptVisit

public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
Description copied from interface: com.techtrader.modules.tools.bytecode.visitor.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.

Specified by:
acceptVisit in interface com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor