Packages

o

org.opalj.da

ClassFileReader

object ClassFileReader extends Constant_PoolBinding with bi.reader.ClassFileReader with FieldsReader with MethodsReader with AttributesReader with Unknown_attributeReader with BootstrapMethods_attributeReader with Code_attributeReader with CodeReader with SourceFile_attributeReader with Signature_attributeReader with ConstantValue_attributeReader with Synthetic_attributeReader with Deprecated_attributeReader with SourceDebugExtension_attributeReader with InnerClasses_attributeReader with Exceptions_attributeReader with EnclosingMethod_attributeReader with LineNumberTable_attributeReader with LocalVariableTable_attributeReader with LocalVariableTypeTable_attributeReader with ElementValuePairsReader with ParametersAnnotationsReader with MethodParameters_attributeReader with AnnotationsReader with AnnotationDefault_attributeReader with RuntimeVisibleAnnotations_attributeReader with RuntimeInvisibleAnnotations_attributeReader with RuntimeVisibleParameterAnnotations_attributeReader with RuntimeInvisibleParameterAnnotations_attributeReader with VerificationTypeInfoReader with StackMapTable_attributeReader with StackMapFrameReader with TypeAnnotationTargetReader with RuntimeInvisibleTypeAnnotations_attributeReader with RuntimeVisibleTypeAnnotations_attributeReader with TypeAnnotationPathReader with TypeAnnotationsReader with Module_attributeReader with ModuleMainClass_attributeReader with ModulePackages_attributeReader with NestHost_attributeReader with NestMembers_attributeReader with Record_attributeReader

Factory methods to read class files and create ClassFile objects.

Source
ClassFileReader.scala
Linear Supertypes
Record_attributeReader, NestMembers_attributeReader, NestHost_attributeReader, ModulePackages_attributeReader, ModuleMainClass_attributeReader, Module_attributeReader, TypeAnnotationsReader, TypeAnnotationPathReader, RuntimeVisibleTypeAnnotations_attributeReader, RuntimeInvisibleTypeAnnotations_attributeReader, TypeAnnotationTargetReader, StackMapFrameReader, StackMapTable_attributeReader, VerificationTypeInfoReader, RuntimeInvisibleParameterAnnotations_attributeReader, RuntimeVisibleParameterAnnotations_attributeReader, RuntimeInvisibleAnnotations_attributeReader, RuntimeVisibleAnnotations_attributeReader, AnnotationDefault_attributeReader, AnnotationsReader, MethodParameters_attributeReader, ParametersAnnotationsReader, ElementValuePairsReader, AnnotationsAbstractions, LocalVariableTypeTable_attributeReader, LocalVariableTable_attributeReader, LineNumberTable_attributeReader, EnclosingMethod_attributeReader, Exceptions_attributeReader, InnerClasses_attributeReader, SourceDebugExtension_attributeReader, Deprecated_attributeReader, Synthetic_attributeReader, ConstantValue_attributeReader, Signature_attributeReader, SourceFile_attributeReader, CodeReader, Code_attributeReader, BootstrapMethods_attributeReader, AttributeReader, Unknown_attributeReader, AttributesReader, Unknown_attributeAbstractions, AttributesAbstractions, MethodsReader, FieldsReader, bi.reader.ClassFileReader, ClassFileReaderConfiguration, Constant_PoolBinding, Constant_PoolReader, Constant_PoolAbstractions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassFileReader
  2. Record_attributeReader
  3. NestMembers_attributeReader
  4. NestHost_attributeReader
  5. ModulePackages_attributeReader
  6. ModuleMainClass_attributeReader
  7. Module_attributeReader
  8. TypeAnnotationsReader
  9. TypeAnnotationPathReader
  10. RuntimeVisibleTypeAnnotations_attributeReader
  11. RuntimeInvisibleTypeAnnotations_attributeReader
  12. TypeAnnotationTargetReader
  13. StackMapFrameReader
  14. StackMapTable_attributeReader
  15. VerificationTypeInfoReader
  16. RuntimeInvisibleParameterAnnotations_attributeReader
  17. RuntimeVisibleParameterAnnotations_attributeReader
  18. RuntimeInvisibleAnnotations_attributeReader
  19. RuntimeVisibleAnnotations_attributeReader
  20. AnnotationDefault_attributeReader
  21. AnnotationsReader
  22. MethodParameters_attributeReader
  23. ParametersAnnotationsReader
  24. ElementValuePairsReader
  25. AnnotationsAbstractions
  26. LocalVariableTypeTable_attributeReader
  27. LocalVariableTable_attributeReader
  28. LineNumberTable_attributeReader
  29. EnclosingMethod_attributeReader
  30. Exceptions_attributeReader
  31. InnerClasses_attributeReader
  32. SourceDebugExtension_attributeReader
  33. Deprecated_attributeReader
  34. Synthetic_attributeReader
  35. ConstantValue_attributeReader
  36. Signature_attributeReader
  37. SourceFile_attributeReader
  38. CodeReader
  39. Code_attributeReader
  40. BootstrapMethods_attributeReader
  41. AttributeReader
  42. Unknown_attributeReader
  43. AttributesReader
  44. Unknown_attributeAbstractions
  45. AttributesAbstractions
  46. MethodsReader
  47. FieldsReader
  48. ClassFileReader
  49. ClassFileReaderConfiguration
  50. Constant_PoolBinding
  51. Constant_PoolReader
  52. Constant_PoolAbstractions
  53. AnyRef
  54. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Annotation = da.Annotation
  2. type AnnotationDefault_attribute = da.AnnotationDefault_attribute
  3. type Annotations = ArraySeq[Annotation]
    Definition Classes
    AnnotationsReader
  4. type Attribute = da.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
    ClassFileReaderAttributesAbstractions
  5. type Attributes = ArraySeq[Attribute]
    Definition Classes
    AttributesAbstractions
  6. type BootstrapArgument = da.BootstrapArgument
  7. type BootstrapArguments = ArraySeq[BootstrapArgument]
  8. type BootstrapMethod = da.BootstrapMethod
  9. type BootstrapMethods = ArraySeq[BootstrapMethod]
  10. type BootstrapMethods_attribute = da.BootstrapMethods_attribute
  11. type CONSTANT_Class_info = da.CONSTANT_Class_info
  12. type CONSTANT_Double_info = da.CONSTANT_Double_info
  13. type CONSTANT_Dynamic_info = da.CONSTANT_Dynamic_info
  14. type CONSTANT_Fieldref_info = da.CONSTANT_Fieldref_info
  15. type CONSTANT_Float_info = da.CONSTANT_Float_info
  16. type CONSTANT_Integer_info = da.CONSTANT_Integer_info
  17. type CONSTANT_InterfaceMethodref_info = da.CONSTANT_InterfaceMethodref_info
  18. type CONSTANT_InvokeDynamic_info = da.CONSTANT_InvokeDynamic_info
  19. type CONSTANT_Long_info = da.CONSTANT_Long_info
  20. type CONSTANT_MethodHandle_info = da.CONSTANT_MethodHandle_info
  21. type CONSTANT_MethodType_info = da.CONSTANT_MethodType_info
  22. type CONSTANT_Methodref_info = da.CONSTANT_Methodref_info
  23. type CONSTANT_Module_info = da.CONSTANT_Module_info
  24. type CONSTANT_NameAndType_info = da.CONSTANT_NameAndType_info
  25. type CONSTANT_Package_info = da.CONSTANT_Package_info
  26. type CONSTANT_String_info = da.CONSTANT_String_info
  27. type CONSTANT_Utf8_info = da.CONSTANT_Utf8_info
  28. type ClassFile = da.ClassFile

    The type of the object that represents a Java class file.

    The type of the object that represents a Java class file.

    Definition Classes
    ClassFileReaderClassFileReaderConstant_PoolAbstractions
  29. type ClassesArray = Array[Constant_Pool_Index]
    Definition Classes
    NestMembers_attributeReader
  30. type Code_attribute = da.Code_attribute
  31. type ConstantValue_attribute = da.ConstantValue_attribute
  32. final type Constant_Pool = Array[Constant_Pool_Entry]
    Definition Classes
    Constant_PoolAbstractions
  33. type Constant_Pool_Entry = da.Constant_Pool_Entry
  34. final type Constant_Pool_Index = Int
    Definition Classes
    Constant_PoolAbstractions
  35. 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
  36. type Deprecated_attribute = da.Deprecated_attribute
  37. type DoubleVariableInfo = da.DoubleVariableInfo.type
  38. type ElementValue = da.ElementValue
  39. type ElementValuePair = da.ElementValuePair
  40. type ElementValuePairs = ArraySeq[ElementValuePair]
  41. type ElementValues = ArraySeq[ElementValue]
    Definition Classes
    ElementValuePairsReader
  42. type EnclosingMethod_attribute = da.EnclosingMethod_attribute
  43. type ExceptionHandlers = ArraySeq[ExceptionTableEntry]
    Definition Classes
    Code_attributeReader
  44. type ExceptionIndexTable = Array[Constant_Pool_Index]
    Definition Classes
    Exceptions_attributeReader
  45. type ExceptionTableEntry = da.ExceptionTableEntry
  46. type Exceptions_attribute = da.Exceptions_attribute
  47. type Exports = ArraySeq[ExportsEntry]
    Definition Classes
    Module_attributeReader
  48. type ExportsEntry = da.ExportsEntry
  49. type ExportsToIndexTable = Array[Constant_Pool_Index]
    Definition Classes
    Module_attributeReader
  50. type Field_Info = da.Field_Info
    Definition Classes
    ClassFileReaderFieldsReader
  51. type Fields = ArraySeq[Field_Info]
    Definition Classes
    FieldsReader
  52. type FloatVariableInfo = da.FloatVariableInfo.type
  53. type InnerClasses = ArraySeq[InnerClassesEntry]
  54. type InnerClassesEntry = da.InnerClassesEntry
  55. type InnerClasses_attribute = da.InnerClasses_attribute
  56. type Instructions = Code
  57. type IntegerVariableInfo = da.IntegerVariableInfo.type
  58. final type Interfaces = Array[Constant_Pool_Index]

    The inherited interfaces.

    The inherited interfaces.

    Definition Classes
    ClassFileReader
  59. type LineNumberTableEntry = da.LineNumberTableEntry
  60. type LineNumberTable_attribute = da.LineNumberTable_attribute
  61. type LineNumbers = ArraySeq[LineNumberTableEntry]
  62. type LocalVariableTableEntry = da.LocalVariableTableEntry
  63. type LocalVariableTable_attribute = da.LocalVariableTable_attribute
  64. type LocalVariableTypeTableEntry = da.LocalVariableTypeTableEntry
  65. type LocalVariableTypeTable_attribute = da.LocalVariableTypeTable_attribute
  66. type LocalVariableTypes = ArraySeq[LocalVariableTypeTableEntry]
  67. type LocalVariables = ArraySeq[LocalVariableTableEntry]
  68. type LocalvarTable = ArraySeq[LocalvarTableEntry]
    Definition Classes
    TypeAnnotationTargetReader
  69. type LocalvarTableEntry = da.LocalvarTableEntry
  70. type LongVariableInfo = da.LongVariableInfo.type
  71. type MethodParameter = da.MethodParameter
  72. type MethodParameters = ArraySeq[MethodParameter]
  73. type MethodParameters_attribute = da.MethodParameters_attribute
  74. type Method_Info = da.Method_Info
    Definition Classes
    ClassFileReaderMethodsReader
  75. type Methods = ArraySeq[Method_Info]
    Definition Classes
    MethodsReader
  76. type ModuleMainClass_attribute = da.ModuleMainClass_attribute
  77. type ModulePackages_attribute = da.ModulePackages_attribute
  78. type Module_attribute = da.Module_attribute
  79. type NestHost_attribute = da.NestHost_attribute
  80. type NestMembers_attribute = da.NestMembers_attribute
  81. type NullVariableInfo = da.NullVariableInfo.type
  82. type ObjectVariableInfo = da.ObjectVariableInfo
  83. type Opens = ArraySeq[OpensEntry]
    Definition Classes
    Module_attributeReader
  84. type OpensEntry = da.OpensEntry
  85. type OpensToIndexTable = Array[Constant_Pool_Index]
    Definition Classes
    Module_attributeReader
  86. type PackageIndexTable = Array[Constant_Pool_Index]
  87. type ParameterAnnotations = ArraySeq[Annotation]
    Definition Classes
    ParametersAnnotationsReader
  88. type ParametersAnnotations = ArraySeq[ParameterAnnotations]
    Definition Classes
    ParametersAnnotationsReader
  89. type Provides = ArraySeq[ProvidesEntry]
    Definition Classes
    Module_attributeReader
  90. type ProvidesEntry = da.ProvidesEntry
  91. type ProvidesWithIndexTable = Array[Constant_Pool_Index]
    Definition Classes
    Module_attributeReader
  92. type RecordComponent = da.RecordComponent
  93. type RecordComponents = ArraySeq[RecordComponent]
    Definition Classes
    Record_attributeReader
  94. type Record_attribute = da.Record_attribute
  95. type Requires = ArraySeq[RequiresEntry]
    Definition Classes
    Module_attributeReader
  96. type RequiresEntry = da.RequiresEntry
  97. type RuntimeInvisibleAnnotations_attribute = da.RuntimeInvisibleAnnotations_attribute
  98. type RuntimeInvisibleParameterAnnotations_attribute = da.RuntimeInvisibleParameterAnnotations_attribute
  99. type RuntimeInvisibleTypeAnnotations_attribute = da.RuntimeInvisibleTypeAnnotations_attribute
  100. type RuntimeVisibleAnnotations_attribute = da.RuntimeVisibleAnnotations_attribute
  101. type RuntimeVisibleParameterAnnotations_attribute = da.RuntimeVisibleParameterAnnotations_attribute
  102. type RuntimeVisibleTypeAnnotations_attribute = da.RuntimeVisibleTypeAnnotations_attribute
  103. type Signature_attribute = da.Signature_attribute
  104. type SourceDebugExtension_attribute = da.SourceDebugExtension_attribute
  105. type SourceFile_attribute = da.SourceFile_attribute
  106. type StackMapFrame = da.StackMapFrame
  107. type StackMapFrames = ArraySeq[StackMapFrame]
  108. type StackMapTable_attribute = da.StackMapTable_attribute
  109. type Synthetic_attribute = da.Synthetic_attribute
  110. type TopVariableInfo = da.TopVariableInfo.type
  111. type TypeAnnotation = da.TypeAnnotation
  112. type TypeAnnotationPath = da.TypeAnnotationPath
  113. type TypeAnnotationPathElement = da.TypeAnnotationPathElement
  114. type TypeAnnotationPathElementsTable = ArraySeq[TypeAnnotationPathElement]
    Definition Classes
    TypeAnnotationPathReader
  115. type TypeAnnotationTarget = da.TypeAnnotationTarget
  116. type TypeAnnotations = ArraySeq[TypeAnnotation]
    Definition Classes
    TypeAnnotationsReader
  117. type UninitializedThisVariableInfo = da.UninitializedThisVariableInfo.type
  118. type UninitializedVariableInfo = da.UninitializedVariableInfo
  119. type Unknown_attribute = da.Unknown_attribute
  120. type Uses = Array[Constant_Pool_Index]
    Definition Classes
    Module_attributeReader
  121. type VerificationTypeInfo = da.VerificationTypeInfo
  122. type VerificationTypeInfoLocals = ArraySeq[VerificationTypeInfo]
    Definition Classes
    StackMapFrameReader
  123. type VerificationTypeInfoStack = ArraySeq[VerificationTypeInfo]
    Definition Classes
    StackMapFrameReader

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 AllClassFiles(files: Iterable[File], exceptionHandler: ExceptionHandler = defaultExceptionHandler): Iterable[(ClassFile, URL)]
    Definition Classes
    ClassFileReader
  5. def Annotation(cp: Constant_Pool, type_index: Constant_Pool_Index, element_value_pairs: ElementValuePairs): Annotation
  6. def Annotation(cp: Constant_Pool, in: DataInputStream): Annotation
    Definition Classes
    AnnotationsAbstractions
  7. 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
  8. def AnnotationValue(cp: Constant_Pool, annotation: Annotation): ElementValue
  9. 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
  10. def AppendFrame(frame_type: Int, offset_delta: Int, verification_type_info_locals: VerificationTypeInfoLocals): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  11. def ArrayValue(cp: Constant_Pool, values: ElementValues): ElementValue
  12. def Attribute(cp: Constant_Pool, ap: AttributeParent, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, in: DataInputStream): Attribute
    Definition Classes
    AttributesReader
  13. def Attributes(cp: Constant_Pool, ap: AttributeParent, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, in: DataInputStream): Attributes
    Definition Classes
    AttributesReader
  14. def BooleanValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  15. def BootstrapArgument(cp: Constant_Pool, cp_ref: Int): BootstrapArgument
  16. def BootstrapArgument(cp: Constant_Pool, in: DataInputStream): BootstrapArgument
  17. def BootstrapMethod(cp: Constant_Pool, method_ref: Int, arguments: BootstrapArguments): BootstrapMethod
  18. def BootstrapMethod(cp: Constant_Pool, in: DataInputStream): BootstrapMethod
  19. def BootstrapMethods_attribute(constant_pool: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, bootstrap_methods: BootstrapMethods): BootstrapMethods_attribute
  20. def ByteValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  21. def CONSTANT_Class_info(i: Int): CONSTANT_Class_info
  22. def CONSTANT_Double_info(d: Double): CONSTANT_Double_info
  23. def CONSTANT_Dynamic_info(bootstrap_method_attr_index: Int, name_and_type_index: Constant_Pool_Index): CONSTANT_Dynamic_info
  24. def CONSTANT_Fieldref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Fieldref_info
  25. def CONSTANT_Float_info(f: Float): CONSTANT_Float_info
  26. def CONSTANT_Integer_info(i: Int): CONSTANT_Integer_info
  27. def CONSTANT_InterfaceMethodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_InterfaceMethodref_info
  28. def CONSTANT_InvokeDynamic_info(bootstrap_method_attr_index: Int, name_and_type_index: Constant_Pool_Index): CONSTANT_InvokeDynamic_info
  29. def CONSTANT_Long_info(l: Long): CONSTANT_Long_info
  30. def CONSTANT_MethodHandle_info(reference_kind: Int, reference_index: Constant_Pool_Index): CONSTANT_MethodHandle_info
  31. def CONSTANT_MethodType_info(descriptor_index: Constant_Pool_Index): CONSTANT_MethodType_info
  32. def CONSTANT_Methodref_info(class_index: Constant_Pool_Index, name_and_type_index: Constant_Pool_Index): CONSTANT_Methodref_info
  33. def CONSTANT_Module_info(i: Int): CONSTANT_Module_info
  34. def CONSTANT_NameAndType_info(name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index): CONSTANT_NameAndType_info
  35. def CONSTANT_Package_info(i: Int): CONSTANT_Package_info
  36. def CONSTANT_String_info(i: Int): CONSTANT_String_info
  37. def CONSTANT_Utf8_info(r: Array[Byte], s: String): CONSTANT_Utf8_info
  38. def CastExpression(offset: Int, type_argument_index: Int): TypeAnnotationTarget
  39. def Catch(exception_table_index: Int): TypeAnnotationTarget
  40. def CharValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  41. def ChopFrame(frame_type: Int, offset_delta: Int): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  42. def ClassFile(cp: Constant_Pool, minor_version: Int, major_version: Int, access_flags: Int, this_class: Constant_Pool_Index, super_class: Constant_Pool_Index, interfaces: Interfaces, fields: Fields, methods: Methods, attributes: Attributes): ClassFile

    Factory method to create the ClassFile object that represents the class file as a whole, plus any ClassFiles that have been synthesized in the process of parsing it.

    Factory method to create the ClassFile object that represents the class file as a whole, plus any ClassFiles that have been synthesized in the process of parsing it.

    The result will always contain at least one ClassFile object, namely the one that is created from this method's parameters. Regardless of how many ClassFiles the result contains, the ClassFile created from this method's parameters will always be the result's first element.

    Definition Classes
    ClassFileReaderClassFileReader
  43. def ClassFile(jarFileName: String, jarFileEntryName: String): List[ClassFile]

    Reads in a single class file from a Jar file.

    Reads in a single class file from a Jar file.

    jarFileName

    the name of an existing ZIP/JAR file that contains class files.

    jarFileEntryName

    the name of a class file stored in the specified ZIP/JAR file.

    Definition Classes
    ClassFileReader
    Annotations
    @throws("if the file is empty or the entry cannot be found")
  44. def ClassFile(jarFile: File, jarFileEntryName: String): List[ClassFile]

    Reads in a single class file from a Jar file.

    Reads in a single class file from a Jar file.

    jarFile

    An existing ZIP/JAR file that contains class files.

    jarFileEntryName

    The name of a class file stored in the specified ZIP/JAR file.

    Definition Classes
    ClassFileReader
    Annotations
    @throws("if the file is empty or the entry cannot be found")
  45. def ClassFile(jarFile: ZipFile, jarEntry: ZipEntry): List[ClassFile]
    Attributes
    protected[this]
    Definition Classes
    ClassFileReader
  46. def ClassFile(create: () => InputStream): List[ClassFile]

    Reads in a class file.

    Reads in a class file.

    create

    A function that creates a new InputStream and which must not return null. If you already do have an open input stream which should not be closed after reading the class file use ...ClassFileReader.ClassFile(java.io.DataInputStream) : ClassFile instead. The (newly created) InputStream returned by calling create is closed by this method. The created input stream will automatically be wrapped by OPAL to enable efficient reading of the class file.

    Definition Classes
    ClassFileReader
  47. def ClassFile(in: DataInputStream): List[ClassFile]

    Template method that reads a Java class file from the given input stream.

    Template method that reads a Java class file from the given input stream.

    All other methods to read a class file use this method to eventually parse a class file.

    Class File Structure

    Parses a class file according to the specification:

    ClassFile {
       u4 magic;
       u2 minor_version;
       u2 major_version;
       u2 constant_pool_count;
       cp_info constant_pool[constant_pool_count-1];
       u2 access_flags;
       u2 this_class;
       u2 super_class;
       u2 interfaces_count;
       u2 interfaces[interfaces_count];
       u2 fields_count;
       field_info fields[fields_count];
       u2 methods_count;
       method_info methods[methods_count];
       u2 attributes_count;
       attribute_info attributes[attributes_count];
    }
    

    in

    The DataInputStream from which the class file will be read. The stream is not closed by this method. It is highly recommended that the stream is buffered; otherwise the performance will be terrible!

    Definition Classes
    ClassFileReader
  48. def ClassFiles(file: File, exceptionHandler: ExceptionHandler = defaultExceptionHandler): List[(ClassFile, URL)]

    Loads class files from the given file location.

    Loads class files from the given file location.

    • If the file denotes a single ".class" file this class file is loaded.
    • If the file object denotes a ".jar|.war|.ear|.zip" file, all class files in the jar file will be loaded.
    • If the file object specifies a directory object, all ".class" files in the directory and in all subdirectories are loaded as well as all class files stored in ".jar" files in one of the directories. This class loads all class files in parallel. However, this does not effect analyses working on the resulting List.
    Definition Classes
    ClassFileReader
  49. def ClassFiles(zipFile: ZipFile, classFileHandler: (ClassFile, URL) => Unit, exceptionHandler: ExceptionHandler): Unit

    Reads in parallel all class files stored in the given jar file.

    Reads in parallel all class files stored in the given jar file. For each successfully read class file the function classFileHandler is called.

    zipFile

    A valid zip file that contains .class files and other .jar files; other files are ignored. Inner jar files are also unzipped.

    classFileHandler

    A function that is called for each class file in the given jar file. Given that the jarFile is read in parallel this function has to be thread safe.

    exceptionHandler

    The exception handler that is called when the reading of a class file fails. This function has to be thread safe.

    Definition Classes
    ClassFileReader
  50. def ClassFiles(in: => JarInputStream): List[(ClassFile, String)]

    Reads the class files from the given JarInputStream

    Reads the class files from the given JarInputStream

    Definition Classes
    ClassFileReader
  51. def ClassFiles(jarFile: ZipFile, exceptionHandler: ExceptionHandler): List[(ClassFile, URL)]

    Reads in parallel all class files stored in the given jar/zip file.

    Reads in parallel all class files stored in the given jar/zip file.

    jarFile

    Some valid (non-empty) jar File.

    returns

    The loaded class files.

    Definition Classes
    ClassFileReader
  52. def ClassValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  53. def Code_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, max_stack: Int, max_locals: Int, instructions: Instructions, exception_table: ExceptionHandlers, attributes: Attributes): Code_attribute
  54. def ConstantValue_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Int, constant_value_index: Int): ConstantValue_attribute
  55. def Constant_Pool(in: DataInputStream): Constant_Pool
    Definition Classes
    Constant_PoolReader
  56. def ConstructorInMethodReferenceExpression(offset: Int, type_argument_index: Int): TypeAnnotationTarget
  57. def ConstructorInvocation(offset: Int, type_argument_index: Int): TypeAnnotationTarget
  58. def Deprecated_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index): Deprecated_attribute
  59. def DoubleValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  60. def DoubleVariableInfo(): VerificationTypeInfo
  61. 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
  62. def ElementValuePair(cp: Constant_Pool, element_name_index: Constant_Pool_Index, element_value: ElementValue): ElementValuePair
  63. def ElementValuePair(cp: Constant_Pool, in: DataInputStream): ElementValuePair
    Definition Classes
    ElementValuePairsReader
  64. def ElementValuePairs(cp: Constant_Pool, in: DataInputStream): ElementValuePairs
  65. def EnclosingMethod_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, class_index: Constant_Pool_Index, method_index: Constant_Pool_Index): EnclosingMethod_attribute
  66. def EnumValue(cp: Constant_Pool, type_name_index: Constant_Pool_Index, const_name_index: Constant_Pool_Index): ElementValue
  67. def ExceptionTableEntry(cp: Constant_Pool, start_pc: Int, end_pc: Int, handler_pc: Int, catch_type: Int): ExceptionTableEntry
  68. def Exceptions_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, exception_index_table: ExceptionIndexTable): Exceptions_attribute
  69. def ExportsEntry(constant_pool: Constant_Pool, exports_index: Constant_Pool_Index, exports_flags: Int, exports_to_index_table: ExportsToIndexTable): ExportsEntry
  70. def FieldDeclaration: TypeAnnotationTarget
  71. def Field_Info(cp: Constant_Pool, access_flags: Int, name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index, attributes: Attributes): Field_Info
    Definition Classes
    ClassFileReaderFieldsReader
  72. def Fields(cp: Constant_Pool, in: DataInputStream): Fields
    Definition Classes
    FieldsReader
  73. def FloatValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  74. def FloatVariableInfo(): VerificationTypeInfo
  75. def FormalParameter(formal_parameter_index: Int): TypeAnnotationTarget
  76. def FullFrame(frame_type: Int, offset_delta: Int, verification_type_info_locals: VerificationTypeInfoLocals, verification_type_info_stack: VerificationTypeInfoStack): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  77. def InnerClassesEntry(cp: Constant_Pool, inner_class_info_index: Constant_Pool_Index, outer_class_info_index: Constant_Pool_Index, inner_name_index: Constant_Pool_Index, inner_class_access_flags: Constant_Pool_Index): InnerClassesEntry
  78. def InnerClasses_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, classes: InnerClasses): InnerClasses_attribute
  79. def InstanceOf(offset: Int): TypeAnnotationTarget
  80. def Instructions(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, instructions: Array[Byte]): Instructions
    Definition Classes
    ClassFileReaderCodeReader
  81. def Instructions(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, in: DataInputStream): Instructions
    Definition Classes
    CodeReader
  82. def IntValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  83. def IntegerVariableInfo(): VerificationTypeInfo
  84. def JRTClassFiles: Iterable[(String, List[(ClassFile, URL)])]

    Returns the class files of the current Java Runtime Image grouped by module.

    Returns the class files of the current Java Runtime Image grouped by module.

    Definition Classes
    ClassFileReader
  85. def LineNumberTableEntry(start_pc: Int, line_number: Int): LineNumberTableEntry
  86. def LineNumberTable_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, line_number_table: LineNumbers): LineNumberTable_attribute
  87. def LocalVariableTableEntry(cp: Constant_Pool, start_pc: Int, length: Int, name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index, index: Int): LocalVariableTableEntry
  88. def LocalVariableTable_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, local_variable_table: LocalVariables): LocalVariableTable_attribute
  89. def LocalVariableTypeTableEntry(cp: Constant_Pool, start_pc: Int, length: Int, name_index: Constant_Pool_Index, signature_index: Constant_Pool_Index, index: Int): LocalVariableTypeTableEntry
  90. def LocalVariableTypeTable_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, local_variable_type_table: LocalVariableTypes): LocalVariableTypeTable_attribute
  91. def LocalvarDecl(localVarTable: LocalvarTable): TypeAnnotationTarget
  92. def LocalvarTable(in: DataInputStream): LocalvarTable
    Definition Classes
    TypeAnnotationTargetReader
  93. def LocalvarTableEntry(start_pc: Int, length: Int, local_variable_table_index: Int): LocalvarTableEntry

    Factory method to create a LocalvarTableEntry.

    Factory method to create a LocalvarTableEntry. To completely resolve such entries; i.e., to resolve the local_variable_table_index it may be necessary to do some post-processing after all attributes belonging to a code block are loaded. This can be done using the method org.opalj.bi.reader.AttributeReader.registerAttributesPostProcessor.

    Definition Classes
    ClassFileReaderTypeAnnotationTargetReader
  94. def LongValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  95. def LongVariableInfo(): VerificationTypeInfo
  96. def MethodInMethodReferenceExpression(offset: Int, type_argument_index: Int): TypeAnnotationTarget
  97. def MethodInvocation(offset: Int, type_argument_index: Int): TypeAnnotationTarget
  98. def MethodParameter(cp: Constant_Pool, name_index: Constant_Pool_Index, access_flags: Int): MethodParameter
  99. def MethodParameters_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, parameters: MethodParameters): MethodParameters_attribute
  100. def MethodReferenceExpressionIdentifier(offset: Int): TypeAnnotationTarget
  101. def MethodReferenceExpressionNew(offset: Int): TypeAnnotationTarget
  102. def Method_Info(cp: Constant_Pool, access_flags: Int, name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index, attributes: Attributes): Method_Info
    Definition Classes
    ClassFileReaderMethodsReader
  103. def Methods(cp: Constant_Pool, in: DataInputStream): Methods
    Definition Classes
    MethodsReader
  104. def ModuleMainClass_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, main_class_index: Constant_Pool_Index): ModuleMainClass_attribute

    main_class_index

    Reference to a CONSTANT_Class_info.

    Definition Classes
    ClassFileReaderModuleMainClass_attributeReader
  105. def ModulePackages_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, package_index_table: PackageIndexTable): ModulePackages_attribute
  106. def Module_attribute(constant_pool: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, module_name_index: Constant_Pool_Index, module_flags: Int, module_version_index: Constant_Pool_Index, requires: Requires, exports: Exports, opens: Opens, uses: Uses, provides: Provides): Module_attribute

    module_name_index

    Reference to the constant pool entry with the name of the module - which is NOT in internal form. (I.e., "." are used!)

    module_version_index

    0 or index into the constant pool (i.e., optional).

    Definition Classes
    ClassFileReaderModule_attributeReader
  107. def NestHost_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, host_class_index: Constant_Pool_Index): NestHost_attribute

    host_class_index

    Reference to a CONSTANT_Class_info.

    Definition Classes
    ClassFileReaderNestHost_attributeReader
  108. def NestMembers_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, classes_array: ClassesArray): NestMembers_attribute
  109. def New(offset: Int): TypeAnnotationTarget
  110. def NullVariableInfo(): VerificationTypeInfo
  111. def ObjectVariableInfo(cp: Constant_Pool, cpool_index: Int): VerificationTypeInfo

    The Object_variable_info type indicates that the location contains an instance of the class referenced by the constant pool entry.

    The Object_variable_info type indicates that the location contains an instance of the class referenced by the constant pool entry.

    Definition Classes
    ClassFileReaderVerificationTypeInfoReader
  112. def OpensEntry(constant_pool: Constant_Pool, opens_index: Constant_Pool_Index, opens_flags: Int, opens_to_index_table: OpensToIndexTable): OpensEntry
  113. def ParameterDeclarationOfClassOrInterface(type_parameter_index: Int): TypeAnnotationTarget
  114. def ParameterDeclarationOfMethodOrConstructor(type_parameter_index: Constant_Pool_Index): TypeAnnotationTarget
  115. def ParametersAnnotations(cp: Constant_Pool, in: DataInputStream): ParametersAnnotations
    Definition Classes
    ParametersAnnotationsReader
  116. def ProvidesEntry(constant_pool: Constant_Pool, provides_index: Constant_Pool_Index, provides_with_index_table: ProvidesWithIndexTable): ProvidesEntry
  117. def ReceiverType: TypeAnnotationTarget
  118. def RecordComponent(cp: Constant_Pool, name_index: Constant_Pool_Index, descriptor_index: Constant_Pool_Index, attributes: Attributes): RecordComponent
  119. def Record_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, components: RecordComponents): Record_attribute
  120. def RequiresEntry(constant_pool: Constant_Pool, requires_index: Constant_Pool_Index, requires_flags: Int, require_version_index: Constant_Pool_Index): RequiresEntry
  121. def ResourcevarDecl(localVarTable: LocalvarTable): TypeAnnotationTarget
  122. def ReturnType: TypeAnnotationTarget
  123. 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
  124. 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
    ClassFileReaderRuntimeInvisibleParameterAnnotations_attributeReader
  125. def RuntimeInvisibleTypeAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, annotations: TypeAnnotations): RuntimeInvisibleTypeAnnotations_attribute
  126. 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
  127. 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
  128. def RuntimeVisibleTypeAnnotations_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, annotations: TypeAnnotations): RuntimeVisibleTypeAnnotations_attribute
  129. def SameFrame(frame_type: Int): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  130. def SameFrameExtended(frame_type: Int, offset_delta: Int): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  131. def SameLocals1StackItemFrame(frame_type: Int, verification_type_info_stack: VerificationTypeInfo): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  132. def SameLocals1StackItemFrameExtended(frame_type: Int, offset_delta: Int, verification_type_info_stack: VerificationTypeInfo): StackMapFrame
    Definition Classes
    ClassFileReaderStackMapFrameReader
  133. def ShortValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  134. def Signature_attribute(cp: Constant_Pool, ap: AttributeParent, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Int, signature_index: Int): 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
    ClassFileReaderSignature_attributeReader
  135. def SourceDebugExtension_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, debug_extension: Array[Byte]): SourceDebugExtension_attribute
  136. def SourceFile_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, sourceFile_index: Constant_Pool_Index): SourceFile_attribute
  137. def StackMapFrame(cp: Constant_Pool, in: DataInputStream): StackMapFrame
    Definition Classes
    StackMapFrameReader
  138. def StackMapTable_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, stack_map_frames: StackMapFrames): StackMapTable_attribute
  139. def StringValue(cp: Constant_Pool, const_value_index: Constant_Pool_Index): ElementValue
  140. def SupertypeTarget(supertype_index: Int): TypeAnnotationTarget
  141. def Synthetic_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index): Synthetic_attribute
  142. def Throws(throws_type_index: Constant_Pool_Index): TypeAnnotationTarget
  143. def TopVariableInfo(): VerificationTypeInfo
  144. def TypeAnnotation(cp: Constant_Pool, target: TypeAnnotationTarget, path: TypeAnnotationPath, type_index: Constant_Pool_Index, element_value_pairs: ElementValuePairs): TypeAnnotation
  145. def TypeAnnotation(cp: Constant_Pool, in: DataInputStream): TypeAnnotation
    Definition Classes
    TypeAnnotationsReader
  146. def TypeAnnotationDeeperInArrayType: da.TypeAnnotationDeeperInArrayType.type

    The type_path_kind was 0 (and the type_argument_index was also 0).

    The type_path_kind was 0 (and the type_argument_index was also 0).

    Definition Classes
    ClassFileReaderTypeAnnotationPathReader
  147. def TypeAnnotationDeeperInNestedType: da.TypeAnnotationDeeperInNestedType.type

    The type_path_kind was 1 (and the type_argument_index was (as defined by the specification) also 0).

    The type_path_kind was 1 (and the type_argument_index was (as defined by the specification) also 0).

    Definition Classes
    ClassFileReaderTypeAnnotationPathReader
  148. def TypeAnnotationDirectlyOnType: da.TypeAnnotationDirectlyOnType.type

    The path's length was 0.

    The path's length was 0.

    Definition Classes
    ClassFileReaderTypeAnnotationPathReader
  149. def TypeAnnotationOnBoundOfWildcardType: da.TypeAnnotationOnBoundOfWildcardType.type

    The type_path_kind was 2 (and the type_argument_index was (as defined by the specification) also 0).

    The type_path_kind was 2 (and the type_argument_index was (as defined by the specification) also 0).

    Definition Classes
    ClassFileReaderTypeAnnotationPathReader
  150. def TypeAnnotationOnTypeArgument(type_argument_index: Int): TypeAnnotationPathElement
  151. def TypeAnnotationPath(path: TypeAnnotationPathElementsTable): TypeAnnotationPath
  152. def TypeAnnotationPath(in: DataInputStream): TypeAnnotationPath
    Definition Classes
    TypeAnnotationPathReader
  153. def TypeAnnotationTarget(in: DataInputStream): TypeAnnotationTarget

    u1 target_type;
    union {
     type_parameter_target;
     supertype_target;
     type_parameter_bound_target;
     empty_target;
     method_formal_parameter_target;
     throws_target;
     localvar_target;
     catch_target;
     offset_target;
     type_argument_target;
     } target_info;
    

    u1 target_type;
    union {
     type_parameter_target;
     supertype_target;
     type_parameter_bound_target;
     empty_target;
     method_formal_parameter_target;
     throws_target;
     localvar_target;
     catch_target;
     offset_target;
     type_argument_target;
     } target_info;
    

    Definition Classes
    TypeAnnotationTargetReader
  154. def TypeAnnotations(cp: Constant_Pool, in: DataInputStream): TypeAnnotations

    Reads a Runtime(In)VisibleTypeAnnotations attribute.

    Reads a Runtime(In)VisibleTypeAnnotations attribute.

    type_annotation {
               u1 target_type;
               union {
                   type_parameter_target;
                   supertype_target;
                   type_parameter_bound_target;
                   empty_target;
                   method_formal_parameter_target;
                   throws_target;
                   localvar_target;
                   catch_target;
                   offset_target;
                   type_argument_target;
               } target_info;
               type_path target_path;
               u2        type_index;
               u2        num_element_value_pairs;
               { u2              element_name_index;
                 element_value   value;
               } element_value_pairs[num_element_value_pairs];
    }
    

    Definition Classes
    TypeAnnotationsReader
  155. def TypeBoundOfParameterDeclarationOfClassOrInterface(type_parameter_index: Constant_Pool_Index, bound_index: Constant_Pool_Index): TypeAnnotationTarget
  156. def TypeBoundOfParameterDeclarationOfMethodOrConstructor(type_parameter_index: Constant_Pool_Index, bound_index: Constant_Pool_Index): TypeAnnotationTarget
  157. def UninitializedThisVariableInfo(): VerificationTypeInfo
  158. def UninitializedVariableInfo(offset: Int): VerificationTypeInfo

    The Uninitialized_variable_info indicates that the location contains the verification type uninitialized(offset).

    The Uninitialized_variable_info indicates that the location contains the verification type uninitialized(offset). The offset item indicates the offset of the new instruction that created the object being stored in the location.

    Definition Classes
    ClassFileReaderVerificationTypeInfoReader
  159. def Unknown_attribute(cp: Constant_Pool, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, info: Array[Byte]): Unknown_attribute
  160. def Unknown_attribute(cp: Constant_Pool, ap: AttributeParent, ap_name_index: Constant_Pool_Index, ap_descriptor_index: Constant_Pool_Index, attribute_name_index: Constant_Pool_Index, in: DataInputStream): Unknown_attribute
  161. def VerificationTypeInfo(cp: Constant_Pool, in: DataInputStream): VerificationTypeInfo
    Definition Classes
    VerificationTypeInfoReader
  162. implicit val annotationType: ClassTag[Annotation]
  163. 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
  164. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  165. implicit val attributeType: ClassTag[Attribute]
  166. implicit val bootstrapArgumentType: ClassTag[BootstrapArgument]
  167. implicit val bootstrapMethodType: ClassTag[BootstrapMethod]
  168. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  169. 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
  170. implicit val constantPoolEntryType: ClassTag[Constant_Pool_Entry]
  171. 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
    Constant_PoolBindingConstant_PoolReader
  172. def defaultConfig: Config
  173. final val defaultExceptionHandler: ExceptionHandler
    Definition Classes
    ClassFileReader
  174. def defaultLogContext: LogContext
  175. implicit val elementValuePairType: ClassTag[ElementValuePair]
  176. implicit val elementValueType: ClassTag[ElementValue]
  177. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  178. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  179. implicit val exceptionTableEntryType: ClassTag[ExceptionTableEntry]
  180. implicit val exportsEntryType: ClassTag[ExportsEntry]
  181. implicit val fieldInfoType: ClassTag[Field_Info]
    Definition Classes
    ClassFileReaderFieldsReader
  182. def findClassFile(files: Iterable[File], progressReporter: (File) => Unit, classFileFilter: (ClassFile) => Boolean, className: (ClassFile) => String, exceptionHandler: ExceptionHandler = defaultExceptionHandler): Either[(ClassFile, URL), Set[String]]

    Searches for the first class file that is accepted by the filter.

    Searches for the first class file that is accepted by the filter. If no class file can be found that is accepted by the filter the set of all class names is returned.

    files

    Some file. If the file names a .jar file the .jar file is opened and searched for a corresponding class file. If the file identifies a "directory" then, all files in that directory are processed.

    Definition Classes
    ClassFileReader
  183. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  184. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  185. implicit val innerClassesEntryType: ClassTag[InnerClassesEntry]
  186. def isClassFileRepository(filename: String, containerName: Option[String]): Boolean
    Definition Classes
    ClassFileReader
  187. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  188. implicit val lineNumberTableEntryType: ClassTag[LineNumberTableEntry]
  189. final def loadsInterfacesOnly: Boolean

    If true method bodies are never loaded.

    If true method bodies are never loaded.

    Definition Classes
    ClassFileReaderClassFileReaderConfiguration
  190. implicit val localVariableTableEntryType: ClassTag[LocalVariableTableEntry]
  191. implicit val localVariableTypeTableEntryType: ClassTag[LocalVariableTypeTableEntry]
  192. implicit val localvarTableEntryType: ClassTag[LocalvarTableEntry]
  193. 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.

  194. implicit val methodInfoType: ClassTag[Method_Info]
    Definition Classes
    ClassFileReaderMethodsReader
  195. implicit val methodParameterType: ClassTag[MethodParameter]
  196. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  197. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  198. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  199. implicit val opensEntryType: ClassTag[OpensEntry]
  200. def processClassFiles(files: Iterable[File], progressReporter: (File) => Unit, classFileProcessor: ((ClassFile, URL)) => Unit, exceptionHandler: ExceptionHandler = defaultExceptionHandler): Unit

    Goes over all files in parallel and calls back the given function which has to be thread-safe!

    Goes over all files in parallel and calls back the given function which has to be thread-safe!

    Definition Classes
    ClassFileReader
  201. implicit val providesEntryType: ClassTag[ProvidesEntry]
  202. implicit val recordComponentType: ClassTag[RecordComponent]
  203. def registerAttributeReader(reader: (String, (Constant_Pool, AttributeParent, Constant_Pool_Index, Constant_Pool_Index, Constant_Pool_Index, DataInputStream) => Attribute)): Unit

    See AttributeReader.registerAttributeReader for details.

    See AttributeReader.registerAttributeReader for details.

    Definition Classes
    AttributesReader
  204. def registerAttributesPostProcessor(p: (Attributes) => Attributes): Unit

    Registers a new processor for the list of all attributes of a given class file element (class, field, method, code).

    Registers a new processor for the list of all attributes of a given class file element (class, field, method, code). This can be used to post-process attributes. E.g., to merge multiple line number tables if they exist or to link attributes that have strong dependencies. E.g., (in Java 8) the localvar_target structure of the Runtime(In)VisibleTypeAnnotations attribute has a reference in the local variable table attribute.

    Definition Classes
    AttributesReader
  205. def registerClassFilePostProcessor(p: (List[ClassFile]) => List[ClassFile]): Unit

    Register a class file post processor.

    Register a class file post processor. A class file post processor can transform the completely read and reified class file. Post processors can only be registered before the usage of a class file reader. Registering new ClassFilePostProcessors while processing class files is not supported and the behavior is undefined.

    Definition Classes
    ClassFileReader
    Note

    PostProcessors will be executed in last-in-first-out order.

  206. def registerDeferredAction(cp: Constant_Pool)(deferredAction: (ClassFile) => ClassFile): Unit
    Definition Classes
    Constant_PoolReader
  207. final 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
    ClassFileReaderAttributeReader
  208. implicit val requiresEntryType: ClassTag[RequiresEntry]
  209. implicit val stackMapFrameType: ClassTag[StackMapFrame]
  210. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  211. 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!

  212. def toString(): String
    Definition Classes
    AnyRef → Any
  213. implicit val typeAnnotationPathElementType: ClassTag[TypeAnnotationPathElement]
  214. implicit val typeAnnotationType: ClassTag[TypeAnnotation]
  215. implicit val verificationTypeInfoType: ClassTag[VerificationTypeInfo]
    Definition Classes
    ClassFileReaderStackMapFrameReader
  216. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  217. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  218. 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 Record_attributeReader

Inherited from Module_attributeReader

Inherited from TypeAnnotationsReader

Inherited from StackMapFrameReader

Inherited from AnnotationsReader

Inherited from CodeReader

Inherited from Code_attributeReader

Inherited from AttributeReader

Inherited from AttributesReader

Inherited from AttributesAbstractions

Inherited from MethodsReader

Inherited from FieldsReader

Inherited from Constant_PoolBinding

Inherited from Constant_PoolReader

Inherited from AnyRef

Inherited from Any

Ungrouped