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, parametersConstPool 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.ExceptionAnnotation[] parseAnnotations() throws java.lang.Exception
java.lang.ExceptionMemberValue parseMemberValue() throws java.lang.Exception
java.lang.Exceptionvoid parameters(int numParam,
int pos)
throws java.lang.Exception
parameters in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotationArray(int pos,
int num)
throws java.lang.Exception
annotationArray in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotation(int pos,
int type,
int numPairs)
throws java.lang.Exception
annotation in class AnnotationsAttribute.Walkerjava.lang.Exceptionint memberValuePair(int pos,
int nameIndex)
throws java.lang.Exception
memberValuePair in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid constValueMember(int tag,
int index)
throws java.lang.Exception
constValueMember in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid enumMemberValue(int pos,
int typeNameIndex,
int constNameIndex)
throws java.lang.Exception
enumMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid classMemberValue(int pos,
int index)
throws java.lang.Exception
classMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotationMemberValue(int pos)
throws java.lang.Exception
annotationMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionint arrayMemberValue(int pos,
int num)
throws java.lang.Exception
arrayMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exception