Class ConstantClassInfo
- java.lang.Object
-
- org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
-
- org.fife.rsta.ac.java.classreader.constantpool.ConstantClassInfo
-
- All Implemented Interfaces:
ConstantTypes
public class ConstantClassInfo extends ConstantPoolInfo
Represents a class or interface.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private intnameIndexAn index into the constant_pool table.-
Fields inherited from interface org.fife.rsta.ac.java.classreader.constantpool.ConstantTypes
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_Methodref, CONSTANT_MethodType, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8
-
-
Constructor Summary
Constructors Constructor Description ConstantClassInfo(int nameIndex)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNameIndex()Returns the index into the constant pool table for aConstantUtf8Infostructure representing a valid, fully-qualified class or interface name, encoded in internal form.java.lang.StringtoString()Returns a string representation of this object.-
Methods inherited from class org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
getTag
-
-
-
-
Constructor Detail
-
ConstantClassInfo
public ConstantClassInfo(int nameIndex)
Constructor.- Parameters:
nameIndex- The index into the constant pool containing aConstantUtf8Inforepresenting the fully-qualified class or interface name, encoded in internal form.
-
-
Method Detail
-
getNameIndex
public int getNameIndex()
Returns the index into the constant pool table for aConstantUtf8Infostructure representing a valid, fully-qualified class or interface name, encoded in internal form.- Returns:
- The index into the constant pool table.
-
toString
public java.lang.String toString()
Returns a string representation of this object. Useful for debugging.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this object.
-
-