Package aQute.bnd.classfile.builder
Class MutableConstantPool
- java.lang.Object
-
- aQute.bnd.classfile.ConstantPool
-
- aQute.bnd.classfile.builder.MutableConstantPool
-
public class MutableConstantPool extends ConstantPool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class aQute.bnd.classfile.ConstantPool
ConstantPool.AbstractDynamicInfo, ConstantPool.AbstractRefInfo, ConstantPool.ClassInfo, ConstantPool.DynamicInfo, ConstantPool.FieldrefInfo, ConstantPool.Info, ConstantPool.InterfaceMethodrefInfo, ConstantPool.InvokeDynamicInfo, ConstantPool.MethodHandleInfo, ConstantPool.MethodrefInfo, ConstantPool.MethodTypeInfo, ConstantPool.ModuleInfo, ConstantPool.NameAndTypeInfo, ConstantPool.PackageInfo, ConstantPool.RefInfoFunction, ConstantPool.StringInfo
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Object>pool-
Fields inherited from class aQute.bnd.classfile.ConstantPool
CONSTANT_Class, CONSTANT_Double, CONSTANT_Dynamic, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_Methodref, CONSTANT_MethodType, CONSTANT_Module, CONSTANT_NameAndType, CONSTANT_Package, CONSTANT_String, CONSTANT_Utf8
-
-
Constructor Summary
Constructors Constructor Description MutableConstantPool()MutableConstantPool(ConstantPool constantPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <I> intadd(java.lang.Class<I> infoType, java.util.function.Supplier<I> supplier)<T> Tentry(int index)<T> Tentry(int index, java.lang.Object entry)intsize()java.lang.StringtoString()-
Methods inherited from class aQute.bnd.classfile.ConstantPool
classInfo, className, doubleInfo, doubleInfo, dynamicInfo, fieldrefInfo, floatInfo, floatInfo, index, integerInfo, integerInfo, integerInfo, integerInfo, integerInfo, integerInfo, interfaceMethodrefInfo, invokeDynamicInfo, longInfo, longInfo, methodHandleInfo, methodrefInfo, methodTypeInfo, moduleInfo, moduleName, nameAndTypeInfo, packageInfo, packageName, read, string, stringInfo, tag, utf8, utf8Info, write
-
-
-
-
Constructor Detail
-
MutableConstantPool
public MutableConstantPool()
-
MutableConstantPool
public MutableConstantPool(ConstantPool constantPool)
-
-
Method Detail
-
size
public int size()
- Overrides:
sizein classConstantPool
-
entry
public <T> T entry(int index)
- Overrides:
entryin classConstantPool
-
entry
public <T> T entry(int index, java.lang.Object entry)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classConstantPool
-
add
protected <I> int add(java.lang.Class<I> infoType, java.util.function.Supplier<I> supplier)- Overrides:
addin classConstantPool
-
-