Packages

t

org.opalj.br.reader

Signature_attributeBinding

trait Signature_attributeBinding extends Signature_attributeReader with ConstantPoolBinding with AttributeBinding

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Signature_attributeBinding
  2. AttributeBinding
  3. ConstantPoolBinding
  4. Constant_PoolReader
  5. Signature_attributeReader
  6. ClassFileReaderConfiguration
  7. AttributeReader
  8. AttributesAbstractions
  9. Constant_PoolAbstractions
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Attribute = br.Attribute

    Specifying a lower bound is necessary to implement a generic skipAttribute method.

    Specifying a lower bound is necessary to implement a generic skipAttribute method.

    Definition Classes
    AttributeBindingAttributesAbstractions
  2. type Attributes = ArraySeq[Attribute]
    Definition Classes
    AttributesAbstractions
  3. type CONSTANT_Class_info = cp.CONSTANT_Class_info
  4. type CONSTANT_Double_info = cp.CONSTANT_Double_info
  5. type CONSTANT_Dynamic_info = cp.CONSTANT_Dynamic_info
  6. type CONSTANT_Fieldref_info = cp.CONSTANT_Fieldref_info
  7. type CONSTANT_Float_info = cp.CONSTANT_Float_info
  8. type CONSTANT_Integer_info = cp.CONSTANT_Integer_info
  9. type CONSTANT_InterfaceMethodref_info = cp.CONSTANT_InterfaceMethodref_info
  10. type CONSTANT_InvokeDynamic_info = cp.CONSTANT_InvokeDynamic_info
  11. type CONSTANT_Long_info = cp.CONSTANT_Long_info
  12. type CONSTANT_MethodHandle_info = cp.CONSTANT_MethodHandle_info
  13. type CONSTANT_MethodType_info = cp.CONSTANT_MethodType_info
  14. type CONSTANT_Methodref_info = cp.CONSTANT_Methodref_info
  15. type CONSTANT_Module_info = cp.CONSTANT_Module_info
  16. type CONSTANT_NameAndType_info = cp.CONSTANT_NameAndType_info
  17. type CONSTANT_Package_info = cp.CONSTANT_Package_info
  18. type CONSTANT_String_info = cp.CONSTANT_String_info
  19. type CONSTANT_Utf8_info = cp.CONSTANT_Utf8_info
  20. abstract type ClassFile <: br.ClassFile
  21. final type Constant_Pool = Array[Constant_Pool_Entry]
    Definition Classes
    Constant_PoolAbstractions
  22. type Constant_Pool_Entry = cp.Constant_Pool_Entry
  23. final type Constant_Pool_Index = Int
    Definition Classes
    Constant_PoolAbstractions
  24. 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
  25. type Signature_attribute = Signature

Abstract Value Members

  1. abstract def loadsInterfacesOnly: Boolean

    If true method bodies are never loaded.

    If true method bodies are never loaded.

    Definition Classes
    ClassFileReaderConfiguration
  2. abstract def registerAttributeReader(reader: (String, (Constant_Pool, AttributeParent, Constant_Pool_Index, Constant_Pool_Index, Constant_Pool_Index, DataInputStream) => Attribute)): Unit

    Called (typically by subclasses) to register a reader for a concrete attribute.

    Called (typically by subclasses) to register a reader for a concrete attribute. This function is intended to be provided/implemented by an AttributesReader that manages the attributes of a class, method_info, field_info or code_attribute structure.

    reader

    A map where the key is the name of an attribute and the value is a function that given a data input stream that is positioned directly at the beginning of the attribute, the constant pool, the index of the attribute's name and the parent of the attribute reads in the attribute and returns it.

    Definition Classes
    AttributeReader
  3. abstract def registerAttributesPostProcessor(p: (Attributes) => Attributes): Unit

    Registers a new processor for the list of all attributes of a given class file structure (class, field_info, method_info, code_attribute).

    Registers a new processor for the list of all attributes of a given class file structure (class, field_info, method_info, code_attribute). This can be used to post-process attributes. E.g., to merge multiple line number tables if they exist or to remove attributes if they are completely resolved.

    Definition Classes
    AttributeReader
    See also

    The implementation of org.opalj.br.reader.UnpackedLineNumberTable_attributeBinding for a concrete example.

Concrete 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 Signature_attribute(cp: Constant_Pool, ap: AttributeParent, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, signature_index: Constant_Pool_Index): Signature_attribute

    Creates a Signature_attribute.

    Creates a Signature_attribute.

    From the Specification

    The constant pool entry at signature_index must be a CONSTANT_Utf8_info structure representing either a class signature, if this signature attribute is an attribute of a ClassFile structure, a method type signature, if this signature is an attribute of a method_info structure, or a field type signature otherwise.

    Definition Classes
    Signature_attributeBindingSignature_attributeReader
  23. 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
  24. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  25. implicit val attributeType: ClassTag[Attribute]
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  27. implicit val config: Config

    The Config object that will be used to read the configuration settings for reading in class files.

    The Config object that will be used to read the configuration settings for reading in class files.

    Definition Classes
    ClassFileReaderConfiguration
  28. implicit val constantPoolEntryType: ClassTag[cp.Constant_Pool_Entry]
  29. implicit def cpIndexTocpEntry(index: Constant_Pool_Index)(implicit cp: Constant_Pool): Constant_Pool_Entry
    Definition Classes
    ConstantPoolBinding
  30. 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
  31. def defaultConfig: Config
  32. def defaultLogContext: LogContext
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  35. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. implicit val logContext: LogContext

    The org.opalj.log.LogContext that should be used to log rewritings.

    The org.opalj.log.LogContext that should be used to log rewritings.

    Definition Classes
    ClassFileReaderConfiguration
    Note

    The org.opalj.log.LogContext is typically either the org.opalj.log.GlobalLogContext or a project specific log context.

  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  42. def registerDeferredAction(cp: Constant_Pool)(deferredAction: (ClassFile) => ClassFile): Unit
    Definition Classes
    Constant_PoolReader
  43. def reifyEmptyAttributes: Boolean

    Controls whether empty attributes (e.g., a LocalVariableTypeTable with no entries) should be reified or should be dropped.

    Controls whether empty attributes (e.g., a LocalVariableTypeTable with no entries) should be reified or should be dropped.

    Definition Classes
    AttributeReader
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def throwIllegalArgumentException: Boolean

    Returns true if an exception is to be raised if an invalid signature is found.

    Returns true if an exception is to be raised if an invalid signature is found. The default is to just log the invalid signature and to otherwise ignore it.

    This method is intended to be overridden.

    returns

    false.

    Definition Classes
    Signature_attributeReader
    Note

    This method was primarily introduced because we found many class files with invalid signatures AND the JVM also handles this case gracefully!

  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. 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 AttributeBinding

Inherited from ConstantPoolBinding

Inherited from Constant_PoolReader

Inherited from AttributeReader

Inherited from AttributesAbstractions

Inherited from AnyRef

Inherited from Any

Ungrouped