package reader
- Alphabetic
- Public
- Protected
Type Members
- trait AnnotationDefault_attributeReader extends AttributeReader
Generic parser for annotation default attributes.
- trait AnnotationsAbstractions extends Constant_PoolAbstractions
Annotation related definitions.
- 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.
- 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).
- trait AttributesAbstractions extends AnyRef
Defines common abstractions over class file attributes.
- 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.
- 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 aClassFile
structure. TheBootstrapMethods
attribute records bootstrap method specifiers referenced byinvokedynamic
instructions. - 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.
- 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!class ConfiguredFramework extends { override implicit val logContext: LogContext = theLogContext override implicit val config: Config = theConfig } with Java9FrameworkWithInvokedynamicSupportAndCaching(cache) new ConfiguredFramework
Example: - trait CodeReader extends Constant_PoolAbstractions
Naive Code reader that just reads in the code array as is - without parsing it.
- 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.
- trait CompactLineNumberTable_attributeReader extends AttributeReader
Generic parser for the LineNumberTable attribute that does not unpack the line number table.
- trait ConstantPoolEntry extends AnyRef
Common interface of all entries in the constant pool.
- 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; }
- trait Constant_PoolAbstractions extends AnyRef
Constant pool related type definitions.
- trait Constant_PoolReader extends Constant_PoolAbstractions
Defines a template method to read in a class file's constant pool.
- trait Deprecated_attributeReader extends AttributeReader
Generic infrastructure for reading the "@deprecated" attribute.
- trait ElementValuePairsReader extends AnnotationsAbstractions
Generic parser for an annotation's element-value pairs.
- trait EnclosingMethod_attributeReader extends AttributeReader
Generic parser for the enclosing method attribute.
- trait Exceptions_attributeReader extends AttributeReader
Generic parser for a code block's exceptions attribute.
- trait FieldsReader extends Constant_PoolAbstractions
- trait InnerClasses_attributeReader extends AttributeReader
Generic parser for the inner classes attribute.
- trait LineNumberTable_attributeReader extends AttributeReader
Generic parser for the LineNumberTable attribute.
- trait LocalVariableTable_attributeReader extends AttributeReader
Generic parser for the local variable table attribute.
- trait LocalVariableTypeTable_attributeReader extends AttributeReader
Generic parser for the local variable type table attribute.
- trait MethodParameters_attributeReader extends AttributeReader
A generic reader for Java 8's
MethodParameters
attribute. - trait MethodsReader extends Constant_PoolAbstractions
Defines a template method to read in a class file's Method_info structure.
- trait ModuleMainClass_attributeReader extends AttributeReader
Generic parser for the ModuleMainClass attribute (Java 9).
- trait ModulePackages_attributeReader extends AttributeReader
Generic parser for the ModulePackages attribute (Java 9).
- trait Module_attributeReader extends AttributeReader
Generic parser for the Module attribute (Java 9).
- 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).
- 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).
- trait ParametersAnnotationsReader extends AnnotationsAbstractions
Generic parser for a method parameter's visible or invisible annotations.
- 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).
- 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
- trait RuntimeInvisibleAnnotations_attributeReader extends AttributeReader
Generic parser for the
RuntimeInvisibleAnnotations
attribute. - trait RuntimeInvisibleParameterAnnotations_attributeReader extends AttributeReader
Generic parser for the
RuntimeInvisibleParameterAnnotations
attribute. - trait RuntimeInvisibleTypeAnnotations_attributeReader extends AttributeReader
Parser for Java 8's
RuntimeInvisibleTypeAnnotations
attribute. - trait RuntimeVisibleAnnotations_attributeReader extends AttributeReader
Generic parser for
RuntimeVisibleAnnotations
attribute. - trait RuntimeVisibleParameterAnnotations_attributeReader extends AttributeReader
Generic parser for
RuntimeVisibleParameterAnnotations
attributes. - trait RuntimeVisibleTypeAnnotations_attributeReader extends AttributeReader
Generic parser for Java 8's
RuntimeVisibleTypeAnnotations
attribute. - 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.
- 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.
- 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.
- trait SourceFile_attributeReader extends AttributeReader
The SourceFile attribute is an optional attribute in the attributes table of a ClassFile structure.
- trait StackMapFrameReader extends Constant_PoolAbstractions
- trait StackMapTable_attributeReader extends AttributeReader
Implementation of a template method to read in the StackMapTable attribute.
- trait Synthetic_attributeReader extends AttributeReader
The Synthetic attribute is an attribute in the attributes table of a ClassFile, field_info or method_info structure.
- 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. - trait TypeAnnotationTargetReader extends Constant_PoolAbstractions
Generic parser for the
target_type
andtarget_info
fields of type annotations.Generic parser for the
target_type
andtarget_info
fields of type annotations. This reader is intended to be used in conjunction with the TypeAnnotationsReader. - 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.
- trait Unknown_attributeAbstractions extends Constant_PoolAbstractions with AttributesAbstractions
- 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.
- trait VerificationTypeInfoReader extends Constant_PoolAbstractions
Value Members
- object ClassFileReader
Helper methods related to reading class files.
- object VerificationTypeInfoItem extends Enumeration