Trait

org.opalj.bi.reader

Code_attributeReader

Related Doc: package reader

Permalink

trait Code_attributeReader extends AttributeReader

Defines a template method to read in the code attribute.

From the Specification The Code attribute is a variable-length attribute in the attributes table of a method_info structure.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Code_attributeReader
  2. AttributeReader
  3. AttributesAbstractions
  4. Constant_PoolAbstractions
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Attribute >: Null

    Permalink
  2. type Attributes = Seq[Attribute]

    Permalink
    Definition Classes
    AttributesAbstractions
  3. abstract type ClassFile

    Permalink
    Definition Classes
    Constant_PoolAbstractions
  4. abstract type Code_attribute <: Attribute

    Permalink
  5. abstract type Constant_Pool

    Permalink
    Definition Classes
    Constant_PoolAbstractions
  6. abstract type Constant_Pool_Entry

    Permalink
    Definition Classes
    Constant_PoolAbstractions
  7. type Constant_Pool_Index = Int

    Permalink
    Definition Classes
    Constant_PoolAbstractions
  8. type DeferredActionsStore = Buffer[(ClassFile) ⇒ ClassFile] with Constant_Pool_Entry

    Permalink

    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
  9. type ExceptionHandlers = IndexedSeq[ExceptionTableEntry]

    Permalink
  10. abstract type ExceptionTableEntry

    Permalink
  11. abstract type Instructions

    Permalink

Abstract Value Members

  1. implicit abstract val AttributeManifest: ClassTag[Attribute]

    Permalink
    Definition Classes
    AttributesAbstractions
  2. abstract def Attributes(ap: AttributeParent, cp: Constant_Pool, in: DataInputStream): Attributes

    Permalink
    Attributes
    protected
  3. abstract def Code_attribute(constant_pool: Constant_Pool, attribute_name_index: Constant_Pool_Index, max_stack: Int, max_locals: Int, instructions: Instructions, exception_handlers: ExceptionHandlers, attributes: Attributes): Code_attribute

    Permalink
  4. abstract def ExceptionTableEntry(constant_pool: Constant_Pool, start_pc: Int, end_pc: Int, handler_pc: Int, catch_type: Int): ExceptionTableEntry

    Permalink
  5. implicit abstract val ExceptionTableEntryManifest: ClassTag[ExceptionTableEntry]

    Permalink
  6. abstract def Instructions(cp: Constant_Pool, in: DataInputStream): Instructions

    Permalink
  7. abstract def applyDeferredActions(cp: Constant_Pool, classFile: ClassFile): ClassFile

    Permalink

    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_PoolAbstractions
  8. abstract def registerAttributeReader(reader: (String, (AttributeParent, Constant_Pool, Constant_Pool_Index, DataInputStream) ⇒ Attribute)): Unit

    Permalink

    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
  9. abstract def registerAttributesPostProcessor(p: (Attributes) ⇒ Attributes): Unit

    Permalink

    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

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def reifyEmptyAttributes: Boolean

    Permalink

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

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

    Definition Classes
    AttributeReader
  16. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AttributeReader

Inherited from AttributesAbstractions

Inherited from Constant_PoolAbstractions

Inherited from AnyRef

Inherited from Any

Ungrouped