class ConstantsBuffer extends ConstantsPoolLike
This class can be used to (re)build a org.opalj.br.ClassFile's constant pool.
- Source
- ConstantsBuffer.scala
- Note
The builder will try its best to create a valid constant pool (w.r.t. the overall size and size of the indexes). Issues will be reported. Use the factory method defined by the companion object ConstantsBuffer$ to create an instance and to get information about the requirements.
- Alphabetic
- By Inheritance
- ConstantsBuffer
- ConstantsPoolLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def CPEClass(referenceType: ReferenceType, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEDouble(value: Double): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: FieldType, requiresUByteIndex: Boolean, createBootstrapArgumentEntries: Boolean): Int
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: FieldType, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEFieldRef(objectType: ObjectType, fieldName: String, fieldType: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEFloat(value: Float, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEInteger(value: Int, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEInterfaceMethodRef(objectType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEInvokeDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPELong(value: Long): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEMethodHandle(methodHandle: MethodHandle, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEMethodRef(referenceType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEMethodType(descriptor: MethodDescriptor, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEModule(name: String): Int
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPENameAndType(name: String, tpe: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEPackage(name: String): Int
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPERefOfCPEMethodHandle(methodHandle: MethodHandle): (Int, Int)
- returns
A pair of ints where the first value is the method handle's tag and the second one is the constant pool index of the constant pool entry that the CONSTANT_MethodHandle should reference.
- Definition Classes
- ConstantsPoolLike
- def CPEString(value: String, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEUtf8(value: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- def CPEUtf8OfCPEClass(referenceType: ReferenceType): Int
- Definition Classes
- ConstantsPoolLike
- def CPEntryForBootstrapArgument(bootstrapArgument: BootstrapArgument): Int
- Definition Classes
- ConstantsPoolLike
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.opalj.br.cp.ConstantPoolException])
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build: (Array[Constant_Pool_Entry], ConstantsPool)
Converts this constant pool buffer to an array and also returns an immutable view of the current state of the constants pool.
Converts this constant pool buffer to an array and also returns an immutable view of the current state of the constants pool. This in particular enables the creation of the
BootstrapMethodTable
attribute - iff the table is not empty! If the table is empty, it is not guaranteed that the name of theBootstrapMethodTable
attribute is defined by the constant pool, but there is also no need to add the attribute. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated