Package org.openjdk.asmtools.jasm
Class ConstantPool
java.lang.Object
org.openjdk.asmtools.jasm.ConstantPool
- All Implemented Interfaces:
Iterable<ConstantPool.ConstCell>
ConstantPool
ConstantPool is the class responsible for maintaining constants for a given class file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConstantCell ConstantCell is a type of data that can be in a constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classstatic classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classConstValue A (typed) tagged value in the constant pool.static classCPVisitor CPVisitor base class defining a visitor for decoding constants.static classCPVisitor CPVisitor base class defining a visitor for decoding constants. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidFindCell(Tables.ConstType tag, Integer value) FindCell(Tables.ConstType tag, Long value) FindCell(Tables.ConstType tag, String value) FindCell(Tables.ConstType tag, ConstantPool.ConstCell value) FindCell(Tables.ConstType tag, ConstantPool.ConstCell left, ConstantPool.ConstCell right) FindCellAsciz(String str) FindCellClassByName(String name) FindCellModuleByName(String name) FindCellPackageByName(String name) voidgetCell(int cpx) iterator()protected voidvoidvoidsetCell(int cpx, ConstantPool.ConstCell cell) static voidsetEnableDebug(boolean newState) protected ConstantPool.ConstCelluncheckedGetCell(int cpx) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
env
-
-
Constructor Details
-
ConstantPool
main constructor- Parameters:
env- The error reporting environment
-
-
Method Details
-
debugStr
-
iterator
- Specified by:
iteratorin interfaceIterable<ConstantPool.ConstCell>
-
fixRefsInPool
public void fixRefsInPool() -
CheckGlobals
protected void CheckGlobals() -
printPool
public void printPool() -
uncheckedGetCell
-
getCell
-
setCell
-
NumberizePool
protected void NumberizePool() -
FindCell
-
FindCell
-
FindCell
-
FindCell
-
FindCell
-
FindCell
public ConstantPool.ConstCell FindCell(Tables.ConstType tag, ConstantPool.ConstCell left, ConstantPool.ConstCell right) -
FindCellAsciz
-
FindCellClassByName
-
FindCellModuleByName
-
FindCellPackageByName
-
write
- Throws:
IOException
-
setEnableDebug
public static void setEnableDebug(boolean newState)
-