static class AnnotationsAttribute.Parser extends AnnotationsAttribute.Walker
Modifier and Type | Field and Description |
---|---|
(package private) Annotation[] |
allAnno |
(package private) Annotation[][] |
allParams |
(package private) Annotation |
currentAnno |
(package private) MemberValue |
currentMember |
(package private) ConstPool |
pool |
info
Constructor and Description |
---|
Parser(byte[] info,
ConstPool cp)
Constructs a parser.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
annotation(int pos,
int type,
int numPairs) |
(package private) int |
annotationArray(int pos,
int num) |
(package private) int |
annotationMemberValue(int pos) |
(package private) int |
arrayMemberValue(int pos,
int num) |
(package private) void |
classMemberValue(int pos,
int index) |
(package private) void |
constValueMember(int tag,
int index) |
(package private) void |
enumMemberValue(int pos,
int typeNameIndex,
int constNameIndex) |
(package private) int |
memberValuePair(int pos,
int nameIndex) |
(package private) void |
parameters(int numParam,
int pos) |
(package private) Annotation[] |
parseAnnotations() |
(package private) MemberValue |
parseMemberValue() |
(package private) Annotation[][] |
parseParameters() |
annotation, annotationArray, annotationArray, memberValue, memberValuePair, parameters
ConstPool pool
Annotation[][] allParams
Annotation[] allAnno
Annotation currentAnno
MemberValue currentMember
Parser(byte[] info, ConstPool cp)
info
- the attribute.src
- the constant pool.Annotation[][] parseParameters() throws java.lang.Exception
java.lang.Exception
Annotation[] parseAnnotations() throws java.lang.Exception
java.lang.Exception
MemberValue parseMemberValue() throws java.lang.Exception
java.lang.Exception
void parameters(int numParam, int pos) throws java.lang.Exception
parameters
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotationArray(int pos, int num) throws java.lang.Exception
annotationArray
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotation(int pos, int type, int numPairs) throws java.lang.Exception
annotation
in class AnnotationsAttribute.Walker
java.lang.Exception
int memberValuePair(int pos, int nameIndex) throws java.lang.Exception
memberValuePair
in class AnnotationsAttribute.Walker
java.lang.Exception
void constValueMember(int tag, int index) throws java.lang.Exception
constValueMember
in class AnnotationsAttribute.Walker
java.lang.Exception
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.Exception
enumMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
void classMemberValue(int pos, int index) throws java.lang.Exception
classMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotationMemberValue(int pos) throws java.lang.Exception
annotationMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
int arrayMemberValue(int pos, int num) throws java.lang.Exception
arrayMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception