| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Map | |
| private Constant[] | |
| private int | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| private void | |
| public String | |
| public String | |
| public String | |
| public ConstantPool | |
| public void | |
| private static final String | |
| public Constant | |
| public Constant | |
| public ConstantModule | |
| public ConstantPackage | |
| public Constant[] | |
| public String | Returns: Contents of string referenceIndex in constant pool index, byte Tag of expected constant, either ConstantClass or ConstantString tag)Get string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects. |
| public String | |
| public ConstantUtf8 | |
| public ConstantPool | |
| public int | |
| public String | |
| public String | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public String |
| fieldCache | back to summary |
|---|---|
| private Map<String, Integer> fieldCache | |
| methodCache | back to summary |
|---|---|
| private Map<String, Integer> methodCache | |
| pool | back to summary |
|---|---|
| private Constant[] pool | |
| poolSize | back to summary |
|---|---|
| private int poolSize | |
| utf8Cache | back to summary |
|---|---|
| private Map<String, Integer> utf8Cache | |
| ConstantPool | back to summary |
|---|---|
| public ConstantPool() | |
| ConstantPool | back to summary |
|---|---|
| public ConstantPool(Constant[] constants) | |
| ConstantPool | back to summary |
|---|---|
| pack-priv ConstantPool(DataInputStream file) throws IOException | |
| accept | back to summary |
|---|---|
| public void accept(ClassVisitor v) Implements org.
| |
| addArrayClass | back to summary |
|---|---|
| public int addArrayClass(ArrayType type) | |
| addClass | back to summary |
|---|---|
| public int addClass(ObjectType type) | |
| addClass | back to summary |
|---|---|
| public int addClass(String classname) | |
| addConstant | back to summary |
|---|---|
| public int addConstant(Constant c, ConstantPool cp) | |
| addConstantDynamic | back to summary |
|---|---|
| public int addConstantDynamic(int bootstrapMethodIndex, int constantNameAndTypeIndex) | |
| addDouble | back to summary |
|---|---|
| public int addDouble(double d) | |
| addFieldref | back to summary |
|---|---|
| public int addFieldref(String class_name, String field_name, String signature) | |
| addFloat | back to summary |
|---|---|
| public int addFloat(float f) | |
| addInteger | back to summary |
|---|---|
| public int addInteger(int n) | |
| addInterfaceMethodref | back to summary |
|---|---|
| public int addInterfaceMethodref(String class_name, String method_name, String signature) | |
| addInvokeDynamic | back to summary |
|---|---|
| public int addInvokeDynamic(int bootstrapMethodIndex, int constantNameAndTypeIndex) | |
| addLong | back to summary |
|---|---|
| public int addLong(long l) | |
| addMethodHandle | back to summary |
|---|---|
| public int addMethodHandle(byte referenceKind, int referenceIndex) | |
| addMethodref | back to summary |
|---|---|
| public int addMethodref(String class_name, String method_name, String signature) | |
| addMethodType | back to summary |
|---|---|
| public int addMethodType(int descriptorIndex) | |
| addNameAndType | back to summary |
|---|---|
| public int addNameAndType(String name, String signature) | |
| addString | back to summary |
|---|---|
| public int addString(String str) | |
| addUtf8 | back to summary |
|---|---|
| public int addUtf8(String n) | |
| adjustSize | back to summary |
|---|---|
| private void adjustSize() | |
| constantToString | back to summary |
|---|---|
| public String constantToString(Constant c) Resolve constant to a string representation. | |
| constantToString | back to summary |
|---|---|
| public String constantToString(int index, byte tag) | |
| constantToString | back to summary |
|---|---|
| public String constantToString(int index) | |
| copy | back to summary |
|---|---|
public ConstantPool copy()
| |
| dump | back to summary |
|---|---|
| public void dump(DataOutputStream file) throws IOException | |
| escape | back to summary |
|---|---|
| private static final String escape(String str) | |
| getConstant | back to summary |
|---|---|
| public Constant getConstant(int index, byte tag) | |
| getConstant | back to summary |
|---|---|
| public Constant getConstant(int index) | |
| getConstantModule | back to summary |
|---|---|
| public ConstantModule getConstantModule(int index) | |
| getConstantPackage | back to summary |
|---|---|
| public ConstantPackage getConstantPackage(int index) | |
| getConstantPool | back to summary |
|---|---|
| public Constant[] getConstantPool() | |
| getConstantString | back to summary |
|---|---|
| public String getConstantString(int index, byte tag) throws ClassFormatException Get string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects. I.e. these classes have an index field that points to another entry of the constant pool of type `ConstantUtf8' which contains the real data.
| |
| getConstantString_CONSTANTClass | back to summary |
|---|---|
| public String getConstantString_CONSTANTClass(int index) | |
| getConstantUtf8 | back to summary |
|---|---|
| public ConstantUtf8 getConstantUtf8(int index) | |
| getFinalConstantPool | back to summary |
|---|---|
| public ConstantPool getFinalConstantPool() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| getModuleName | back to summary |
|---|---|
| public String getModuleName(int moduleIndex) | |
| getPackageName | back to summary |
|---|---|
| public String getPackageName(int packageIndex) | |
| getSize | back to summary |
|---|---|
| public int getSize() | |
| lookupClass | back to summary |
|---|---|
| public int lookupClass(String classname) | |
| lookupDouble | back to summary |
|---|---|
| public int lookupDouble(double d) | |
| lookupFieldref | back to summary |
|---|---|
| public int lookupFieldref(String searchClassname, String searchFieldname, String searchSignature) | |
| lookupFloat | back to summary |
|---|---|
| public int lookupFloat(float f) | |
| lookupInteger | back to summary |
|---|---|
| public int lookupInteger(int n) | |
| lookupInterfaceMethodref | back to summary |
|---|---|
| public int lookupInterfaceMethodref(String searchClassname, String searchMethodName, String searchSignature) | |
| lookupLong | back to summary |
|---|---|
| public int lookupLong(long l) | |
| lookupMethodref | back to summary |
|---|---|
| public int lookupMethodref(String searchClassname, String searchMethodName, String searchSignature) | |
| lookupNameAndType | back to summary |
|---|---|
| public int lookupNameAndType(String searchName, String searchTypeSignature) | |
| lookupString | back to summary |
|---|---|
| public int lookupString(String s) | |
| lookupUtf8 | back to summary |
|---|---|
| public int lookupUtf8(String string) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |