public final class AnnotationParser
extends java.lang.Object
| Constructor and Description |
|---|
AnnotationParser(DirectClassFile cf,
int offset,
int length,
ParseObserver observer)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Annotations |
parseAnnotationAttribute(AnnotationVisibility visibility)
Parses an annotation attribute, per se.
|
AnnotationsList |
parseParameterAttribute(AnnotationVisibility visibility)
Parses a parameter annotation attribute.
|
Constant |
parseValueAttribute()
Parses an annotation value (
element_value) attribute. |
public AnnotationParser(DirectClassFile cf, int offset, int length, ParseObserver observer)
cf - non-null; class file to parse fromoffset - >= 0; offset into the class file data to parse atlength - >= 0; number of bytes left in the attribute dataobserver - null-ok; parse observer to notify, if anypublic Constant parseValueAttribute()
element_value) attribute.non-null; the parsed constant valuepublic AnnotationsList parseParameterAttribute(AnnotationVisibility visibility)
visibility - non-null; visibility of the parsed annotationsnon-null; the parsed list of lists of annotationspublic Annotations parseAnnotationAttribute(AnnotationVisibility visibility)
visibility - non-null; visibility of the parsed annotationsnon-null; the list of annotations read from the attribute
dataCopyright © 2020. All Rights Reserved.