Packages

t

org.opalj.br.reader

AnnotationAttributesBinding

trait AnnotationAttributesBinding extends AnnotationsBinding with AnnotationsReader with ParametersAnnotationsReader with RuntimeInvisibleAnnotations_attributeReader with RuntimeVisibleAnnotations_attributeReader with RuntimeInvisibleParameterAnnotations_attributeReader with RuntimeVisibleParameterAnnotations_attributeReader with AnnotationDefault_attributeReader with AttributeBinding

Factory methods to create representations of the attributes related to Java annotations.

Source
AnnotationAttributesBinding.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnnotationAttributesBinding
  2. AttributeBinding
  3. AnnotationDefault_attributeReader
  4. RuntimeVisibleParameterAnnotations_attributeReader
  5. RuntimeInvisibleParameterAnnotations_attributeReader
  6. RuntimeVisibleAnnotations_attributeReader
  7. RuntimeInvisibleAnnotations_attributeReader
  8. AttributeReader
  9. AttributesAbstractions
  10. ParametersAnnotationsReader
  11. AnnotationsReader
  12. AnnotationsBinding
  13. ConstantPoolBinding
  14. Constant_PoolReader
  15. ElementValuePairsReader
  16. AnnotationsAbstractions
  17. Constant_PoolAbstractions
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Annotation = br.Annotation
  2. type AnnotationDefault_attribute = br.ElementValue
  3. type AnnotationValue = br.AnnotationValue
    Definition Classes
    AnnotationsBinding
  4. type Annotations = ArraySeq[Annotation]
    Definition Classes
    AnnotationsReader
  5. type ArrayValue = br.ArrayValue
    Definition Classes
    AnnotationsBinding
  6. 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
  7. type Attributes = ArraySeq[Attribute]
    Definition Classes
    AttributesAbstractions
  8. type BooleanValue = br.BooleanValue
    Definition Classes
    AnnotationsBinding
  9. type ByteValue = br.ByteValue
    Definition Classes
    AnnotationsBinding
  10. type CONSTANT_Class_info = cp.CONSTANT_Class_info
  11. type CONSTANT_Double_info = cp.CONSTANT_Double_info
  12. type CONSTANT_Dynamic_info = cp.CONSTANT_Dynamic_info
  13. type CONSTANT_Fieldref_info = cp.CONSTANT_Fieldref_info
  14. type CONSTANT_Float_info = cp.CONSTANT_Float_info
  15. type CONSTANT_Integer_info = cp.CONSTANT_Integer_info
  16. type CONSTANT_InterfaceMethodref_info = cp.CONSTANT_InterfaceMethodref_info
  17. type CONSTANT_InvokeDynamic_info = cp.CONSTANT_InvokeDynamic_info
  18. type CONSTANT_Long_info = cp.CONSTANT_Long_info
  19. type CONSTANT_MethodHandle_info = cp.CONSTANT_MethodHandle_info
  20. type CONSTANT_MethodType_info = cp.CONSTANT_MethodType_info
  21. type CONSTANT_Methodref_info = cp.CONSTANT_Methodref_info
  22. type CONSTANT_Module_info = cp.CONSTANT_Module_info
  23. type CONSTANT_NameAndType_info = cp.CONSTANT_NameAndType_info
  24. type CONSTANT_Package_info = cp.CONSTANT_Package_info
  25. type CONSTANT_String_info = cp.CONSTANT_String_info
  26. type CONSTANT_Utf8_info = cp.CONSTANT_Utf8_info
  27. type CharValue = br.CharValue
    Definition Classes
    AnnotationsBinding
  28. abstract type ClassFile <: br.ClassFile
  29. type ClassValue = br.ClassValue
    Definition Classes
    AnnotationsBinding
  30. final type Constant_Pool = Array[Constant_Pool_Entry]
    Definition Classes
    Constant_PoolAbstractions
  31. type Constant_Pool_Entry = cp.Constant_Pool_Entry
  32. final type Constant_Pool_Index = Int
    Definition Classes
    Constant_PoolAbstractions
  33. 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
  34. type DoubleValue = br.DoubleValue
    Definition Classes
    AnnotationsBinding
  35. type ElementValue = br.ElementValue
  36. type ElementValuePair = br.ElementValuePair
  37. type ElementValuePairs = ArraySeq[ElementValuePair]
  38. type ElementValues = ArraySeq[ElementValue]
    Definition Classes
    ElementValuePairsReader
  39. type EnumValue = br.EnumValue
    Definition Classes
    AnnotationsBinding
  40. type FloatValue = br.FloatValue
    Definition Classes
    AnnotationsBinding
  41. type IntValue = br.IntValue
    Definition Classes
    AnnotationsBinding
  42. type LongValue = br.LongValue
    Definition Classes
    AnnotationsBinding
  43. type ParameterAnnotations = ArraySeq[Annotation]
    Definition Classes
    ParametersAnnotationsReader
  44. type ParametersAnnotations = ArraySeq[ParameterAnnotations]
    Definition Classes
    ParametersAnnotationsReader
  45. type RuntimeInvisibleAnnotations_attribute = RuntimeInvisibleAnnotationTable
  46. type RuntimeInvisibleParameterAnnotations_attribute = RuntimeInvisibleParameterAnnotationTable
  47. type RuntimeVisibleAnnotations_attribute = RuntimeVisibleAnnotationTable
  48. type RuntimeVisibleParameterAnnotations_attribute = RuntimeVisibleParameterAnnotationTable
  49. type ShortValue = br.ShortValue
    Definition Classes
    AnnotationsBinding

Abstract Value Members

  1. 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
  2. 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 Annotation(cp: Constant_Pool, type_index: Constant_Pool_Index, element_value_pairs: ElementValuePairs): Annotation
  5. def Annotation(cp: Constant_Pool, in: DataInputStream): Annotation
    Definition Classes
    AnnotationsAbstractions
  6. def AnnotationDefault_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, element_value: ElementValue): AnnotationDefault_attribute
  7. def AnnotationValue(cp: Constant_Pool, annotation: Annotation): ElementValue
  8. def Annotations(cp: Constant_Pool, in: DataInputStream): Annotations

    Reads the annotations of a annotations attributes.

    Reads the annotations of a annotations attributes.

    From the Specification

    annotation {
         u2 type_index;
         u2 num_element_value_pairs;
         {   u2 element_name_index;
             element_value value;
         }   element_value_pairs[num_element_value_pairs]
    }
    

    Definition Classes
    AnnotationsReader
  9. def ArrayValue(cp: Constant_Pool, values: ElementValues): ElementValue
  10. def BooleanValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  11. def ByteValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  12. def CONSTANT_Class_info(i: Int): CONSTANT_Class_info
  13. def CONSTANT_Double_info(d: Double): CONSTANT_Double_info
  14. def CONSTANT_Dynamic_info(bootstrap_method_attr_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Dynamic_info
  15. def CONSTANT_Fieldref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Fieldref_info
  16. def CONSTANT_Float_info(f: Float): CONSTANT_Float_info
  17. def CONSTANT_Integer_info(i: Int): CONSTANT_Integer_info
  18. def CONSTANT_InterfaceMethodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_InterfaceMethodref_info
  19. def CONSTANT_InvokeDynamic_info(bootstrap_method_attr_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_InvokeDynamic_info
  20. def CONSTANT_Long_info(l: Long): CONSTANT_Long_info
  21. def CONSTANT_MethodHandle_info(reference_kind: Int, reference_index: Int): CONSTANT_MethodHandle_info
  22. def CONSTANT_MethodType_info(descriptor_index: Constant_Pool_Index): CONSTANT_MethodType_info
  23. def CONSTANT_Methodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Methodref_info
  24. def CONSTANT_Module_info(name_index: Constant_Pool_Index): CONSTANT_Module_info
  25. def CONSTANT_NameAndType_info(name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index): CONSTANT_NameAndType_info
  26. def CONSTANT_Package_info(name_index: Constant_Pool_Index): CONSTANT_Package_info
  27. def CONSTANT_String_info(i: Int): CONSTANT_String_info
  28. def CONSTANT_Utf8_info(r: Array[Byte], s: String): CONSTANT_Utf8_info
  29. def CharValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  30. def ClassValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  31. def Constant_Pool(in: DataInputStream): Constant_Pool
    Definition Classes
    Constant_PoolReader
  32. def DoubleValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  33. def ElementValue(cp: Constant_Pool, in: DataInputStream): ElementValue

    Parses an element value.

    Parses an element value.

    From the Specification

    element_value {
       u1 tag;
       union {
         u2   const_value_index;
    
         {
           u2 type_name_index;
           u2 const_name_index;
         } enum_const_value;
    
         u2 class_info_index;
    
         annotation annotation_value;
    
         {
           u2    num_values;
           element_value values[num_values];
         } array_value;
       } value;
    }
    

    Definition Classes
    ElementValuePairsReader
  34. def ElementValuePair(cp: Constant_Pool, element_name_index: Constant_Pool_Index, element_value: ElementValue): ElementValuePair
  35. def ElementValuePair(cp: Constant_Pool, in: DataInputStream): ElementValuePair
    Definition Classes
    ElementValuePairsReader
  36. def ElementValuePairs(cp: Constant_Pool, in: DataInputStream): ElementValuePairs
  37. def EnumValue(cp: Constant_Pool, type_name_index: Constant_Pool_Index, const_name_index: Constant_Pool_Index): ElementValue
  38. def FloatValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  39. def IntValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  40. def LongValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  41. def ParametersAnnotations(cp: Constant_Pool, in: DataInputStream): ParametersAnnotations
    Definition Classes
    ParametersAnnotationsReader
  42. def RuntimeInvisibleAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, annotations: Annotations): RuntimeInvisibleAnnotations_attribute
  43. def RuntimeInvisibleParameterAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, parameters_annotations: ParametersAnnotations): RuntimeInvisibleParameterAnnotations_attribute

    Factory method to create a representation of a RuntimeInvisibleParameterAnnotations_attribute.

    Factory method to create a representation of a RuntimeInvisibleParameterAnnotations_attribute.

    Definition Classes
    AnnotationAttributesBindingRuntimeInvisibleParameterAnnotations_attributeReader
  44. def RuntimeVisibleAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, annotations: Annotations): RuntimeVisibleAnnotations_attribute
  45. def RuntimeVisibleParameterAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, parameters_annotations: ParametersAnnotations): RuntimeVisibleParameterAnnotations_attribute
  46. def ShortValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  47. def StringValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  48. implicit val annotationType: ClassTag[Annotation]
  49. 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
  50. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  51. implicit val attributeType: ClassTag[Attribute]
  52. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  53. implicit val constantPoolEntryType: ClassTag[cp.Constant_Pool_Entry]
  54. implicit def cpIndexTocpEntry(index: Constant_Pool_Index)(implicit cp: Constant_Pool): Constant_Pool_Entry
    Definition Classes
    ConstantPoolBinding
  55. 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
  56. implicit val elementValuePairType: ClassTag[ElementValuePair]
  57. implicit val elementValueType: ClassTag[ElementValue]
  58. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  60. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  61. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  66. def registerDeferredAction(cp: Constant_Pool)(deferredAction: (ClassFile) => ClassFile): Unit
    Definition Classes
    Constant_PoolReader
  67. 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
  68. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  69. def toString(): String
    Definition Classes
    AnyRef → Any
  70. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. 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

Ungrouped