Package com.google.turbine.bytecode
Class ConstantPoolReader
- java.lang.Object
-
- com.google.turbine.bytecode.ConstantPoolReader
-
public class ConstantPoolReader extends java.lang.ObjectA JVMS ยง4.4 constant pool reader.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringclassInfo(int index)Reads the CONSTANT_Class_info at the given index.java.lang.StringmoduleInfo(int index)Reads the CONSTANT_Module_info at the given index.java.lang.StringpackageInfo(int index)Reads the CONSTANT_Package_info at the given index.static ConstantPoolReaderreadConstantPool(ByteReader reader)Skips over all constant pool entries, saving the byte offset of each index so it can be read later if it's needed.java.lang.Stringutf8(int index)Reads the CONSTANT_Utf8_info at the given index.
-
-
-
Method Detail
-
readConstantPool
public static ConstantPoolReader readConstantPool(ByteReader reader)
Skips over all constant pool entries, saving the byte offset of each index so it can be read later if it's needed.
-
classInfo
public java.lang.String classInfo(int index)
Reads the CONSTANT_Class_info at the given index.
-
utf8
public java.lang.String utf8(int index)
Reads the CONSTANT_Utf8_info at the given index.
-
moduleInfo
public java.lang.String moduleInfo(int index)
Reads the CONSTANT_Module_info at the given index.
-
packageInfo
public java.lang.String packageInfo(int index)
Reads the CONSTANT_Package_info at the given index.
-
-