Packages

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.

Linear Supertypes
ConstantsPoolLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstantsBuffer
  2. ConstantsPoolLike
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def CPEClass(referenceType: ReferenceType, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  5. def CPEDouble(value: Double): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  6. def CPEFieldRef(objectType: ObjectType, fieldName: String, fieldType: String): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  7. def CPEFloat(value: Float, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  8. def CPEInteger(value: Int, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  9. def CPEInterfaceMethodRef(objectType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  10. def CPEInvokeDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: MethodDescriptor): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  11. def CPELong(value: Long): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  12. def CPEMethodHandle(methodHandle: MethodHandle, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  13. def CPEMethodRef(referenceType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  14. def CPEMethodType(descriptor: MethodDescriptor, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  15. def CPEModule(name: String): Int
    Annotations
    @throws( ... )
  16. def CPENameAndType(name: String, tpe: String): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  17. def CPEPackage(name: String): Int
    Annotations
    @throws( ... )
  18. 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
  19. def CPEString(value: String, requiresUByteIndex: Boolean): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  20. def CPEUtf8(value: String): Int
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  21. def CPEUtf8OfCPEClass(referenceType: ReferenceType): Int
    Definition Classes
    ConstantsPoolLike
  22. def CPEntryForBootstrapArgument(bootstrapArgument: BootstrapArgument): Int
    Definition Classes
    ConstantsPoolLike
    Annotations
    @throws( ... )
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. 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 the BootstrapMethodTable attribute is defined by the constant pool, but there is also no need to add the attribute.

  25. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  28. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from ConstantsPoolLike

Inherited from AnyRef

Inherited from Any

Ungrouped