| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.classFile.constantPool.APoolInfo
public abstract class APoolInfo
Represents an abstract constant pool object.
| Field Summary | |
|---|---|
| protected  ConstantPool | _constantPoolReference to the constant pool. | 
| protected  int | _typeObject type. | 
| static int | CONSTANT_Class | 
| static int | CONSTANT_Double | 
| static int | CONSTANT_Fieldref | 
| static int | CONSTANT_Float | 
| static int | CONSTANT_Integer | 
| static int | CONSTANT_InterfaceMethodref | 
| static int | CONSTANT_Long | 
| static int | CONSTANT_Methodref | 
| static int | CONSTANT_NameAndType | 
| static int | CONSTANT_String | 
| static int | CONSTANT_Utf8_ASCII | 
| static int | CONSTANT_Utf8_Unicode | 
| Constructor Summary | |
|---|---|
| APoolInfo(int type,
                   ConstantPool cp)Constructor | |
| Method Summary | ||
|---|---|---|
| abstract  boolean | equals(java.lang.Object obj)Compare this object and another one. | |
| abstract 
 | execute(IPoolInfoVisitor<R,D> visitor,
               D data)Execute a visitor. | |
| abstract  int | hashCode()Return a hash code. | |
|  APoolInfo | inPool(ConstantPool pool)Return the reference to the constant pool item that is already in pool, that matches this one. | |
| static APoolInfo | read(java.io.DataInputStream dis,
         ConstantPool cp)Read from stream and return unresolved constant pool object. | |
| abstract  void | reindex()Reindex constant pool indices. | |
| abstract  void | resolve()Resolve constant pool objects. | |
| abstract  java.lang.String | toString()Return a human-readable version of this constant pool object. | |
| abstract  java.lang.String | toStringVerbose()Return a human-readable version of this constant pool object. | |
| abstract  void | write(java.io.DataOutputStream dos)Write this constant pool object into the stream, including the type byte. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int CONSTANT_Class
public static final int CONSTANT_Fieldref
public static final int CONSTANT_Methodref
public static final int CONSTANT_InterfaceMethodref
public static final int CONSTANT_String
public static final int CONSTANT_Integer
public static final int CONSTANT_Float
public static final int CONSTANT_Long
public static final int CONSTANT_Double
public static final int CONSTANT_NameAndType
public static final int CONSTANT_Utf8_ASCII
public static final int CONSTANT_Utf8_Unicode
protected int _type
protected ConstantPool _constantPool
| Constructor Detail | 
|---|
public APoolInfo(int type,
                 ConstantPool cp)
type - object type| Method Detail | 
|---|
public static APoolInfo read(java.io.DataInputStream dis,
                             ConstantPool cp)
                      throws java.io.IOException,
                             java.lang.ClassFormatError
dis - stream
java.io.IOException
java.lang.ClassFormatErrorpublic APoolInfo inPool(ConstantPool pool)
pool - constant pool
public abstract void write(java.io.DataOutputStream dos)
                    throws java.io.IOException
dos - stream
java.io.IOExceptionpublic abstract void resolve()
public abstract void reindex()
public abstract java.lang.String toStringVerbose()
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - other object
public abstract <R,D> R execute(IPoolInfoVisitor<R,D> visitor,
                                D data)
visitor - visitordata - visitor-specific parameter
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||