Class CPRef
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
org.apache.commons.compress.harmony.unpack200.bytecode.CPRef
- Direct Known Subclasses:
CPInterfaceMethodRef,CPMethodRef
Abstract superclass for reference constant pool entries, such as a method or field reference.
-
Field Summary
FieldsFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndexFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCPRef(byte type, CPClass className, CPNameAndType descriptor, int globalIndex) Constructs a new CPRef. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ClassFileEntry[]protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.toString()protected voidMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
doWrite, getGlobalIndex, getTag, hashCodeMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
nameAndType
-
cachedToString
-
-
Constructor Details
-
CPRef
Constructs a new CPRef.- Parameters:
type- TODOclassName- TODOdescriptor- TODOglobalIndex- index in CpBands- Throws:
NullPointerException- if descriptor or className is null
-
-
Method Details
-
equals
- Specified by:
equalsin classConstantPoolEntry
-
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntriesin classClassFileEntry
-
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries.- Overrides:
resolvein classClassFileEntry- Parameters:
pool- TODO
-
toString
- Specified by:
toStringin classClassFileEntry
-
writeBody
- Specified by:
writeBodyin classConstantPoolEntry- Throws:
IOException
-