Package

org.opalj.bi

reader

Permalink

package reader

Visibility
  1. Public
  2. All

Type Members

  1. trait AnnotationAbstractions extends Constant_PoolAbstractions

    Permalink

    Annotation related definitions.

  2. trait AnnotationDefault_attributeReader extends AttributeReader

    Permalink

    Generic parser for annotation default attributes.

  3. trait AnnotationsReader extends AnnotationAbstractions

    Permalink

    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

    Permalink

    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

    Permalink

    Defines common abstractions over class file attributes.

  6. trait AttributesReader extends AttributesAbstractions with Constant_PoolAbstractions with Unknown_attributeAbstractions

    Permalink

    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

    Permalink

    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

    Permalink

    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 53 (Java 9).

    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

    Permalink

    Defines various settings related to reading/processing class files.

    Defines various settings related to reading/processing class files. To change the default confiration, 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 Java9FrameworkWithLambdaExpressionsSupportAndCaching(cache)
      new ConfiguredFramework
  10. trait CodeReader extends Constant_PoolAbstractions

    Permalink

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

  11. trait Code_attributeReader extends AttributeReader

    Permalink

    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

    Permalink

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

  13. trait ConcealedPackages_attributeReader extends AttributeReader

    Permalink

    Generic parser for the ConcealedPackages attribute (Java 9).

  14. trait ConstantPoolEntry extends AnyRef

    Permalink

    Common interface of all entries in the constant pool.

  15. trait ConstantValue_attributeReader extends AttributeReader

    Permalink

    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;
    }
    

  16. trait Constant_PoolAbstractions extends AnyRef

    Permalink

    Constant pool related type definitions.

  17. trait Constant_PoolReader extends Constant_PoolAbstractions

    Permalink

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

  18. trait Deprecated_attributeReader extends AttributeReader

    Permalink

    Generic infrastructure for reading the "@deprecated" attribute.

  19. trait ElementValuePairsReader extends AnnotationAbstractions

    Permalink

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

  20. trait EnclosingMethod_attributeReader extends AttributeReader

    Permalink

    Generic parser for the enclosing method attribute.

  21. trait Exceptions_attributeReader extends AttributeReader

    Permalink

    Generic parser for a code block's exceptions attribute.

  22. trait FieldsReader extends Constant_PoolAbstractions

    Permalink

  23. trait InnerClasses_attributeReader extends AttributeReader

    Permalink

    Generic parser for the inner classes attribute.

  24. trait LineNumberTable_attributeReader extends AttributeReader

    Permalink

    Generic parser for the LineNumberTable attribute.

  25. trait LocalVariableTable_attributeReader extends AttributeReader

    Permalink

    Generic parser for the local variable table attribute.

  26. trait LocalVariableTypeTable_attributeReader extends AttributeReader

    Permalink

    Generic parser for the local variable type table attribute.

  27. trait MainClass_attributeReader extends AttributeReader

    Permalink

    The MainClass attribute is an attribute in the attributes table of a module definition (Java 9).

  28. trait MethodParameters_attributeReader extends AttributeReader

    Permalink

    A generic reader for Java 8's MethodParameters attribute.

  29. trait MethodsReader extends Constant_PoolAbstractions

    Permalink

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

  30. trait Module_attributeReader extends AttributeReader

    Permalink

    Generic parser for the Module attribute (Java 9).

    Generic parser for the Module attribute (Java 9).

    Note

    This implementation is based on: http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html August 2016

  31. trait ParametersAnnotationsReader extends AnnotationAbstractions

    Permalink

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

  32. trait RuntimeInvisibleAnnotations_attributeReader extends AttributeReader

    Permalink

    Generic parser for the RuntimeInvisibleAnnotations attribute.

  33. trait RuntimeInvisibleParameterAnnotations_attributeReader extends AttributeReader

    Permalink

    Generic parser for the RuntimeInvisibleParameterAnnotations attribute.

  34. trait RuntimeInvisibleTypeAnnotations_attributeReader extends AttributeReader

    Permalink

    Parser for Java 8's RuntimeInvisibleTypeAnnotations attribute.

  35. trait RuntimeVisibleAnnotations_attributeReader extends AttributeReader

    Permalink

    Generic parser for RuntimeVisibleAnnotations attribute.

  36. trait RuntimeVisibleParameterAnnotations_attributeReader extends AttributeReader

    Permalink

    Generic parser for RuntimeVisibleParameterAnnotations attributes.

  37. trait RuntimeVisibleTypeAnnotations_attributeReader extends AttributeReader

    Permalink

    Generic parser for Java 8's RuntimeVisibleTypeAnnotations attribute.

  38. trait Signature_attributeReader extends AttributeReader

    Permalink

    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.

  39. trait SkipUnknown_attributeReader extends Constant_PoolAbstractions with Unknown_attributeAbstractions

    Permalink

    Template method to skip an unknown attribute.

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

  40. trait SourceDebugExtension_attributeReader extends AttributeReader

    Permalink

    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.

  41. trait SourceFile_attributeReader extends AttributeReader

    Permalink

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

  42. trait StackMapFrameReader extends Constant_PoolAbstractions

    Permalink

  43. trait StackMapTable_attributeReader extends AttributeReader

    Permalink

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

  44. trait Synthetic_attributeReader extends AttributeReader

    Permalink

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

  45. trait TargetPlatform_attributeReader extends AttributeReader

    Permalink

    The TargetPlatform attribute is an attribute in the attributes table of a module definition (Java 9).

  46. trait TypeAnnotationPathReader extends Constant_PoolAbstractions

    Permalink

    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.

  47. trait TypeAnnotationTargetReader extends Constant_PoolAbstractions

    Permalink

    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.

  48. trait TypeAnnotationsReader extends AnnotationAbstractions

    Permalink

    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.

  49. trait Unknown_attributeAbstractions extends AttributesAbstractions

    Permalink

  50. trait Unknown_attributeReader extends Constant_PoolAbstractions with Unknown_attributeAbstractions

    Permalink

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

  51. trait VerificationTypeInfoReader extends Constant_PoolAbstractions

    Permalink

  52. trait Version_attributeReader extends AttributeReader

    Permalink

    The Version attribute is an attribute in the attributes table of a module definition (Java 9).

Value Members

  1. object ClassFileReader

    Permalink

    Helper methods related to reading class files.

  2. object ConcealedPackagesAttribute

    Permalink
  3. object MainClassAttribute

    Permalink
  4. object ModuleAttribute

    Permalink
  5. object TargetPlatformAttribute

    Permalink
  6. object VerificationTypeInfoItem extends Enumeration

    Permalink
  7. object VersionAttribute

    Permalink

Ungrouped