Packages

p

org.opalj.bi

reader

package reader

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait AnnotationDefault_attributeReader extends AttributeReader

    Generic parser for annotation default attributes.

  2. trait AnnotationsAbstractions extends Constant_PoolAbstractions

    Annotation related definitions.

  3. trait AnnotationsReader extends AnnotationsAbstractions

    Generic parser to parse a list of annotations.

    Generic parser to parse a list of annotations. This reader is intended to be used in conjunction with the Runtime(In)Visible(Parameter)Annotations_attributeReaders.

  4. trait AttributeReader extends Constant_PoolAbstractions with AttributesAbstractions

    Generic infrastructure used by specific parsers of class file attributes to register with the overall framework (org.opalj.bi.reader.AttributesReader).

  5. trait AttributesAbstractions extends AnyRef

    Defines common abstractions over class file attributes.

  6. trait AttributesReader extends AttributesAbstractions with Constant_PoolAbstractions with Unknown_attributeAbstractions

    Trait that implements a template method to read in the attributes of a class, method_info, field_info or code_attribute structure.

  7. trait BootstrapMethods_attributeReader extends AttributeReader

    Template method to read the (Java 7) BootstrapMethods attribute.

    Template method to read the (Java 7) BootstrapMethods attribute.

    From the Specification The BootstrapMethods attribute is a variable-length attribute in the attributes table of a ClassFile structure. The BootstrapMethods attribute records bootstrap method specifiers referenced by invokedynamic instructions.

  8. trait ClassFileReader extends ClassFileReaderConfiguration with Constant_PoolAbstractions

    Implements the template method to read in a Java class file.

    Implements the template method to read in a Java class file. Additionally, several convenience methods are defined to read in class files from various sources (Streams, Files, JAR archives).

    This library supports class files from version 45 (Java 1.1) up to version 54 (Java 10).

    Notes for Implementors

    Reading of the class file's major structures: the constant pool, fields, methods and the attributes is delegated to corresponding readers. This enables a very high-level of adaptability.

    For further details see the JVM Specification: The ClassFile Structure.

  9. trait ClassFileReaderConfiguration extends AnyRef

    Defines various settings related to reading/processing class files.

    Defines various settings related to reading/processing class files. To change the default configuration, override the respective val using early initializers!

    Example:
    1. class ConfiguredFramework extends {
           override implicit val logContext: LogContext = theLogContext
           override implicit val config: Config = theConfig
      } with Java9FrameworkWithInvokedynamicSupportAndCaching(cache)
      new ConfiguredFramework
  10. trait CodeReader extends Constant_PoolAbstractions

    Naive Code reader that just reads in the code array as is - without parsing it.

  11. trait Code_attributeReader extends AttributeReader

    Defines a template method to read in the code attribute.

    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.

  12. trait CompactLineNumberTable_attributeReader extends AttributeReader

    Generic parser for the LineNumberTable attribute that does not unpack the line number table.

  13. trait ConstantPoolEntry extends AnyRef

    Common interface of all entries in the constant pool.

  14. trait ConstantValue_attributeReader extends AttributeReader

    Defines a template method to read in a constant value attribute.

    Defines a template method to read in a constant value attribute.

    From the Specification

    The ConstantValue attribute is a fixed-length attribute in the attributes table of a field_info structure.

    ConstantValue_attribute {
     u2 attribute_name_index;
     u4 attribute_length;
     u2 constantvalue_index;
    }
    

  15. trait Constant_PoolAbstractions extends AnyRef

    Constant pool related type definitions.

  16. trait Constant_PoolReader extends Constant_PoolAbstractions

    Defines a template method to read in a class file's constant pool.

  17. trait Deprecated_attributeReader extends AttributeReader

    Generic infrastructure for reading the "@deprecated" attribute.

  18. trait ElementValuePairsReader extends AnnotationsAbstractions

    Generic parser for an annotation's element-value pairs.

  19. trait EnclosingMethod_attributeReader extends AttributeReader

    Generic parser for the enclosing method attribute.

  20. trait Exceptions_attributeReader extends AttributeReader

    Generic parser for a code block's exceptions attribute.

  21. trait FieldsReader extends Constant_PoolAbstractions
  22. trait InnerClasses_attributeReader extends AttributeReader

    Generic parser for the inner classes attribute.

  23. trait LineNumberTable_attributeReader extends AttributeReader

    Generic parser for the LineNumberTable attribute.

  24. trait LocalVariableTable_attributeReader extends AttributeReader

    Generic parser for the local variable table attribute.

  25. trait LocalVariableTypeTable_attributeReader extends AttributeReader

    Generic parser for the local variable type table attribute.

  26. trait MethodParameters_attributeReader extends AttributeReader

    A generic reader for Java 8's MethodParameters attribute.

  27. trait MethodsReader extends Constant_PoolAbstractions

    Defines a template method to read in a class file's Method_info structure.

  28. trait ModuleMainClass_attributeReader extends AttributeReader

    Generic parser for the ModuleMainClass attribute (Java 9).

  29. trait ModulePackages_attributeReader extends AttributeReader

    Generic parser for the ModulePackages attribute (Java 9).

  30. trait Module_attributeReader extends AttributeReader

    Generic parser for the Module attribute (Java 9).

  31. trait NestHost_attributeReader extends AttributeReader

    Generic parser for the NestHost attribute (Java 11).

    Generic parser for the NestHost attribute (Java 11).

    The NestHost attribute is a fixed-length attribute in the attributes table of a ClassFile structure. The NestHost attribute records the nest host of the nest to which the current class or interface claims to belong (§5.4.4).

  32. trait NestMembers_attributeReader extends AttributeReader

    Generic parser for the NestMembers attribute (Java 11).

    Generic parser for the NestMembers attribute (Java 11).

    From the Specification The NestMembers attribute is a variable-length attribute in the attributes table of a ClassFile structure. The NestMembers attribute records the classes and interfaces that are authorized to claim membership in the nest hosted by the current class or interface (§5.4.4).

  33. trait ParametersAnnotationsReader extends AnnotationsAbstractions

    Generic parser for a method parameter's visible or invisible annotations.

  34. trait PermittedSubclasses_attributeReader extends AttributeReader

    Generic parser for the PermittedSubclasses attribute (Java 17).

    Generic parser for the PermittedSubclasses attribute (Java 17).

    From the Specification The PermittedSubclasses attribute is a variable-length attribute in the attributes table of a ClassFile structure (§4.1). The PermittedSubclasses attribute records the classes and interfaces that are authorized to directly extend or implement the current class or interface (§5.3.5).

  35. trait Record_attributeReader extends AttributeReader

    Generic parser for the Record attribute (Java 16).

    Generic parser for the Record attribute (Java 16).

    From the Specification The Record attribute is a variable-length attribute in the attributes table of a ClassFile structure (§4.1). The Record attribute indicates that the current class is a record class, and stores information about the record components of the record class

  36. trait RuntimeInvisibleAnnotations_attributeReader extends AttributeReader

    Generic parser for the RuntimeInvisibleAnnotations attribute.

  37. trait RuntimeInvisibleParameterAnnotations_attributeReader extends AttributeReader

    Generic parser for the RuntimeInvisibleParameterAnnotations attribute.

  38. trait RuntimeInvisibleTypeAnnotations_attributeReader extends AttributeReader

    Parser for Java 8's RuntimeInvisibleTypeAnnotations attribute.

  39. trait RuntimeVisibleAnnotations_attributeReader extends AttributeReader

    Generic parser for RuntimeVisibleAnnotations attribute.

  40. trait RuntimeVisibleParameterAnnotations_attributeReader extends AttributeReader

    Generic parser for RuntimeVisibleParameterAnnotations attributes.

  41. trait RuntimeVisibleTypeAnnotations_attributeReader extends AttributeReader

    Generic parser for Java 8's RuntimeVisibleTypeAnnotations attribute.

  42. trait Signature_attributeReader extends AttributeReader with ClassFileReaderConfiguration

    Implements the template method to read signature attributes.

    Implements the template method to read signature attributes.

    The Signature attribute is an optional attribute in the attributes table of a ClassFile, field_info or method_info structure.

  43. trait SkipUnknown_attributeReader extends Unknown_attributeAbstractions with ClassFileReaderConfiguration

    Template method to skip an unknown attribute.

    Template method to skip an unknown attribute. I.e., the information will not be represented at runtime.

  44. trait SourceDebugExtension_attributeReader extends AttributeReader

    Template method to read in the SourceDebugExtension attribute.

    Template method to read in the SourceDebugExtension attribute.

    The SourceDebugExtension attribute is an optional attribute in the attributes table of a ClassFile structure.

  45. trait SourceFile_attributeReader extends AttributeReader

    The SourceFile attribute is an optional attribute in the attributes table of a ClassFile structure.

  46. trait StackMapFrameReader extends Constant_PoolAbstractions
  47. trait StackMapTable_attributeReader extends AttributeReader

    Implementation of a template method to read in the StackMapTable attribute.

  48. trait Synthetic_attributeReader extends AttributeReader

    The Synthetic attribute is an attribute in the attributes table of a ClassFile, field_info or method_info structure.

  49. trait TypeAnnotationPathReader extends Constant_PoolAbstractions

    Generic parser for the type_path field of type annotations.

    Generic parser for the type_path field of type annotations. This reader is intended to be used in conjunction with the TypeAnnotationsReader.

  50. trait TypeAnnotationTargetReader extends Constant_PoolAbstractions

    Generic parser for the target_type and target_info fields of type annotations.

    Generic parser for the target_type and target_info fields of type annotations. This reader is intended to be used in conjunction with the TypeAnnotationsReader.

  51. trait TypeAnnotationsReader extends AnnotationsAbstractions

    Generic parser for type annotations.

    Generic parser for type annotations. This reader is intended to be used in conjunction with the Runtime(In)VisibleTypeAnnotations_attributeReaders.

  52. trait Unknown_attributeAbstractions extends Constant_PoolAbstractions with AttributesAbstractions
  53. trait Unknown_attributeReader extends Constant_PoolAbstractions with Unknown_attributeAbstractions

    A generic reader that can read attributes that are neither defined by the specification nor by some additional user supplied code.

  54. trait VerificationTypeInfoReader extends Constant_PoolAbstractions

Value Members

  1. object ClassFileReader

    Helper methods related to reading class files.

  2. object VerificationTypeInfoItem extends Enumeration

Ungrouped