Packages

t

org.opalj.br.reader

ConstantPoolBinding

trait ConstantPoolBinding extends Constant_PoolReader

A representation of the constant pool.

Source
ConstantPoolBinding.scala
Note

The constant pool is considered to be static; i.e., references between constant pool entries are always resolved at most once and the results are cached. Hence, after reading the constant pool the constant pool is treated as immutable; the referenced constant pool entry must not change.

Linear Supertypes
Known Subclasses
AnnotationAttributesBinding, AnnotationsBinding, BootstrapMethods_attributeBinding, BytecodeReaderAndBinding, CachedBytecodeReaderAndBinding, CodeAttributeBinding, CompactLineNumberTable_attributeBinding, ConstantValue_attributeBinding, DeferredDynamicConstantResolution, DeferredInvokedynamicResolution, Deprecated_attributeBinding, DynamicConstantRewriting, EnclosingMethod_attributeBinding, Exceptions_attributeBinding, InnerClasses_attributeBinding, InstructionsDeserializer, InvokedynamicRewriting, Java11Framework, Java11Framework, Java11FrameworkWithCaching, Java11FrameworkWithDynamicRewritingAndCaching, Java11LibraryFramework, Java11LibraryFramework, Java16Framework, Java16Framework, Java16FrameworkWithCaching, Java16FrameworkWithDynamicRewritingAndCaching, Java16LibraryFramework, Java16LibraryFramework, Java17Framework, Java17Framework, Java17FrameworkWithCaching, Java17FrameworkWithDynamicRewritingAndCaching, Java17LibraryFramework, Java17LibraryFramework, Java7Framework, Java7Framework, Java7LibraryFramework, Java7LibraryFramework, Java8Framework, Java8Framework, Java8FrameworkWithCaching, Java8FrameworkWithInvokedynamicSupportAndCaching, Java8LibraryFramework, Java8LibraryFramework, Java9Framework, Java9Framework, Java9FrameworkWithCaching, Java9FrameworkWithInvokedynamicSupportAndCaching, Java9LibraryFramework, Java9LibraryFramework, LocalVariableTable_attributeBinding, LocalVariableTypeTable_attributeBinding, MethodParameters_attributeBinding, ModuleMainClass_attributeBinding, ModulePackages_attributeBinding, Module_attributeBinding, NestHost_attributeBinding, NestMembers_attributeBinding, PermittedSubclasses_attributeBinding, Record_attributeBinding, Signature_attributeBinding, SourceDebugExtension_attributeBinding, SourceFile_attributeBinding, StackMapTable_attributeBinding, Synthetic_attributeBinding, TypeAnnotationAttributesBinding, TypeAnnotationsBinding, Unknown_attributeBinding, UnpackedLineNumberTable_attributeBinding
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstantPoolBinding
  2. Constant_PoolReader
  3. Constant_PoolAbstractions
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type CONSTANT_Class_info = cp.CONSTANT_Class_info
  2. type CONSTANT_Double_info = cp.CONSTANT_Double_info
  3. type CONSTANT_Dynamic_info = cp.CONSTANT_Dynamic_info
  4. type CONSTANT_Fieldref_info = cp.CONSTANT_Fieldref_info
  5. type CONSTANT_Float_info = cp.CONSTANT_Float_info
  6. type CONSTANT_Integer_info = cp.CONSTANT_Integer_info
  7. type CONSTANT_InterfaceMethodref_info = cp.CONSTANT_InterfaceMethodref_info
  8. type CONSTANT_InvokeDynamic_info = cp.CONSTANT_InvokeDynamic_info
  9. type CONSTANT_Long_info = cp.CONSTANT_Long_info
  10. type CONSTANT_MethodHandle_info = cp.CONSTANT_MethodHandle_info
  11. type CONSTANT_MethodType_info = cp.CONSTANT_MethodType_info
  12. type CONSTANT_Methodref_info = cp.CONSTANT_Methodref_info
  13. type CONSTANT_Module_info = cp.CONSTANT_Module_info
  14. type CONSTANT_NameAndType_info = cp.CONSTANT_NameAndType_info
  15. type CONSTANT_Package_info = cp.CONSTANT_Package_info
  16. type CONSTANT_String_info = cp.CONSTANT_String_info
  17. type CONSTANT_Utf8_info = cp.CONSTANT_Utf8_info
  18. abstract type ClassFile <: br.ClassFile
  19. final type Constant_Pool = Array[Constant_Pool_Entry]
    Definition Classes
    Constant_PoolAbstractions
  20. type Constant_Pool_Entry = cp.Constant_Pool_Entry
  21. final type Constant_Pool_Index = Int
    Definition Classes
    Constant_PoolAbstractions
  22. type DeferredActionsStore = Buffer[(ClassFile) => ClassFile] with Constant_Pool_Entry

    A DeferredActionsStore stores all functions that need to perform post load actions.

    A DeferredActionsStore stores all functions that need to perform post load actions.

    One example is the resolution of references to attributes. (The constant pool is the only structure that is passed around and hence it is the only place where to store information/functions related to a specific class file).

    Definition Classes
    Constant_PoolAbstractions

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 CONSTANT_Class_info(i: Int): CONSTANT_Class_info
  5. def CONSTANT_Double_info(d: Double): CONSTANT_Double_info
  6. def CONSTANT_Dynamic_info(bootstrap_method_attr_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Dynamic_info
  7. def CONSTANT_Fieldref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Fieldref_info
  8. def CONSTANT_Float_info(f: Float): CONSTANT_Float_info
  9. def CONSTANT_Integer_info(i: Int): CONSTANT_Integer_info
  10. def CONSTANT_InterfaceMethodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_InterfaceMethodref_info
  11. def CONSTANT_InvokeDynamic_info(bootstrap_method_attr_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_InvokeDynamic_info
  12. def CONSTANT_Long_info(l: Long): CONSTANT_Long_info
  13. def CONSTANT_MethodHandle_info(reference_kind: Int, reference_index: Int): CONSTANT_MethodHandle_info
  14. def CONSTANT_MethodType_info(descriptor_index: Constant_Pool_Index): CONSTANT_MethodType_info
  15. def CONSTANT_Methodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Methodref_info
  16. def CONSTANT_Module_info(name_index: Constant_Pool_Index): CONSTANT_Module_info
  17. def CONSTANT_NameAndType_info(name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index): CONSTANT_NameAndType_info
  18. def CONSTANT_Package_info(name_index: Constant_Pool_Index): CONSTANT_Package_info
  19. def CONSTANT_String_info(i: Int): CONSTANT_String_info
  20. def CONSTANT_Utf8_info(r: Array[Byte], s: String): CONSTANT_Utf8_info
  21. def Constant_Pool(in: DataInputStream): Constant_Pool
    Definition Classes
    Constant_PoolReader
  22. def applyDeferredActions(cp: Constant_Pool, classFile: ClassFile): ClassFile

    This method is called/needs to be called after the class file was completely loaded to perform class file specific transformations.

    This method is called/needs to be called after the class file was completely loaded to perform class file specific transformations.

    Definition Classes
    Constant_PoolReaderConstant_PoolAbstractions
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  25. implicit val constantPoolEntryType: ClassTag[cp.Constant_Pool_Entry]
  26. implicit def cpIndexTocpEntry(index: Constant_Pool_Index)(implicit cp: Constant_Pool): Constant_Pool_Entry
  27. def createDeferredActionsStore(): DeferredActionsStore

    Creates a storage area for functions that will be called after the class file was completely loaded.

    Creates a storage area for functions that will be called after the class file was completely loaded. This makes it possible to register functions that are newly created for a special class file object to perform actions related to that specific class file object. For further information study the resolving process of invokedynamic instructions.

    Attributes
    protected[this]
    Definition Classes
    ConstantPoolBindingConstant_PoolReader
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  36. def registerDeferredAction(cp: Constant_Pool)(deferredAction: (ClassFile) => ClassFile): Unit
    Definition Classes
    Constant_PoolReader
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Constant_PoolReader

Inherited from AnyRef

Inherited from Any

Ungrouped