class ConstantsBuffer extends ConstantsPoolLike
This class can be used to (re)build a org.opalj.br.ClassFile's constant pool.
- 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
- All
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( ... )
-
def
CPEDouble(value: Double): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEFieldRef(objectType: ObjectType, fieldName: String, fieldType: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEFloat(value: Float, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEInteger(value: Int, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEInterfaceMethodRef(objectType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEInvokeDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPELong(value: Long): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEMethodHandle(methodHandle: MethodHandle, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEMethodRef(referenceType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEMethodType(descriptor: MethodDescriptor, requiresUByteIndex: Boolean): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEModule(name: String): Int
- Annotations
- @throws( ... )
-
def
CPENameAndType(name: String, tpe: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEPackage(name: String): Int
- Annotations
- @throws( ... )
-
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( ... )
-
def
CPEUtf8(value: String): Int
- Definition Classes
- ConstantsBuffer → ConstantsPoolLike
- Annotations
- @throws( ... )
-
def
CPEUtf8OfCPEClass(referenceType: ReferenceType): Int
- Definition Classes
- ConstantsPoolLike
-
def
CPEntryForBootstrapArgument(bootstrapArgument: BootstrapArgument): Int
- Definition Classes
- ConstantsPoolLike
- Annotations
- @throws( ... )
-
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
BootstrapMethodTableattribute - iff the table is not empty! If the table is empty, it is not guaranteed that the name of theBootstrapMethodTableattribute is defined by the constant pool, but there is also no need to add the attribute. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )