Package com.android.dx.cf.direct
Class AnnotationParser
java.lang.Object
com.android.dx.cf.direct.AnnotationParser
Parser for annotations.
-
Constructor Summary
ConstructorDescriptionAnnotationParser
(DirectClassFile cf, int offset, int length, ParseObserver observer) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionparseAnnotationAttribute
(AnnotationVisibility visibility) Parses an annotation attribute, per se.parseParameterAttribute
(AnnotationVisibility visibility) Parses a parameter annotation attribute.Parses an annotation value (element_value
) attribute.
-
Constructor Details
-
AnnotationParser
Constructs an instance.- Parameters:
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 any
-
-
Method Details
-
parseValueAttribute
Parses an annotation value (element_value
) attribute.- Returns:
non-null;
the parsed constant value
-
parseParameterAttribute
Parses a parameter annotation attribute.- Parameters:
visibility
-non-null;
visibility of the parsed annotations- Returns:
non-null;
the parsed list of lists of annotations
-
parseAnnotationAttribute
Parses an annotation attribute, per se.- Parameters:
visibility
-non-null;
visibility of the parsed annotations- Returns:
non-null;
the list of annotations read from the attribute data
-