Package javassist.bytecode
Class AnnotationsAttribute.Parser
- java.lang.Object
-
- javassist.bytecode.AnnotationsAttribute.Walker
-
- javassist.bytecode.AnnotationsAttribute.Parser
-
- Enclosing class:
- AnnotationsAttribute
static class AnnotationsAttribute.Parser extends AnnotationsAttribute.Walker
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Annotation[]allAnno(package private) Annotation[][]allParams(package private) AnnotationcurrentAnno(package private) MemberValuecurrentMember(package private) ConstPoolpool-
Fields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intannotation(int pos, int type, int numPairs)(package private) intannotationArray(int pos, int num)(package private) intannotationMemberValue(int pos)annotation_value(package private) intarrayMemberValue(int pos, int num)array_value(package private) voidclassMemberValue(int pos, int index)class_info_index(package private) voidconstValueMember(int tag, int index)const_value_index(package private) voidenumMemberValue(int pos, int typeNameIndex, int constNameIndex)enum_const_value(package private) intmemberValuePair(int pos, int nameIndex)element_value_paris[](package private) voidparameters(int numParam, int pos)(package private) Annotation[]parseAnnotations()(package private) MemberValueparseMemberValue()(package private) Annotation[][]parseParameters()-
Methods inherited from class javassist.bytecode.AnnotationsAttribute.Walker
annotation, annotationArray, annotationArray, memberValue, memberValuePair, parameters
-
-
-
-
Field Detail
-
pool
ConstPool pool
-
allParams
Annotation[][] allParams
-
allAnno
Annotation[] allAnno
-
currentAnno
Annotation currentAnno
-
currentMember
MemberValue currentMember
-
-
Constructor Detail
-
Parser
Parser(byte[] info, ConstPool cp)Constructs a parser. This parser constructs a parse tree of the annotations.- Parameters:
info- the attribute.src- the constant pool.
-
-
Method Detail
-
parseParameters
Annotation[][] parseParameters() throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseAnnotations
Annotation[] parseAnnotations() throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseMemberValue
MemberValue parseMemberValue() throws java.lang.Exception
- Throws:
java.lang.Exception
-
parameters
void parameters(int numParam, int pos) throws java.lang.Exception- Overrides:
parametersin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
annotationArray
int annotationArray(int pos, int num) throws java.lang.Exception- Overrides:
annotationArrayin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
annotation
int annotation(int pos, int type, int numPairs) throws java.lang.Exception- Overrides:
annotationin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
memberValuePair
int memberValuePair(int pos, int nameIndex) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerelement_value_paris[]- Overrides:
memberValuePairin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
constValueMember
void constValueMember(int tag, int index) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerconst_value_index- Overrides:
constValueMemberin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
enumMemberValue
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerenum_const_value- Overrides:
enumMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
classMemberValue
void classMemberValue(int pos, int index) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerclass_info_index- Overrides:
classMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
annotationMemberValue
int annotationMemberValue(int pos) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerannotation_value- Overrides:
annotationMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
arrayMemberValue
int arrayMemberValue(int pos, int num) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerarray_value- Overrides:
arrayMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
-