Class/Object

org.opalj.br.cp

ConstantsBuffer

Related Docs: object ConstantsBuffer | package cp

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def CPEClass(referenceType: ReferenceType, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  5. def CPEDouble(value: Double): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  6. def CPEFieldRef(objectType: ObjectType, fieldName: String, fieldType: String): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  7. def CPEFloat(value: Float, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  8. def CPEInteger(value: Int, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  9. def CPEInterfaceMethodRef(objectType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  10. def CPEInvokeDynamic(bootstrapMethod: BootstrapMethod, name: String, descriptor: MethodDescriptor): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  11. def CPELong(value: Long): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  12. def CPEMethodHandle(methodHandle: MethodHandle, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  13. def CPEMethodRef(referenceType: ReferenceType, methodName: String, descriptor: MethodDescriptor): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  14. def CPEMethodType(descriptor: MethodDescriptor, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  15. def CPENameAndType(name: String, tpe: String): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  16. def CPERefOfCPEMethodHandle(methodHandle: MethodHandle): (Int, Int)

    Permalink

    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
  17. def CPEString(value: String, requiresUByteIndex: Boolean): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  18. def CPEUtf8(value: String): Int

    Permalink
    Definition Classes
    ConstantsBufferConstantsPoolLike
    Annotations
    @throws( ... )
  19. def CPEUtf8OfCPEClass(referenceType: ReferenceType): Int

    Permalink
    Definition Classes
    ConstantsPoolLike
  20. def CPEntryForBootstrapArgument(bootstrapArgument: BootstrapArgument): Int

    Permalink
    Definition Classes
    ConstantsPoolLike
    Annotations
    @throws( ... )
  21. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  22. def build: (Array[Constant_Pool_Entry], ConstantsPool)

    Permalink

    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 poo, but there is also no need to add the attribute.

  23. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ConstantsPoolLike

Inherited from AnyRef

Inherited from Any

Ungrouped