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) Annotation
currentAnno
(package private) MemberValue
currentMember
(package private) ConstPool
pool
-
Fields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
annotation_value
(package private) int
arrayMemberValue(int pos, int num)
array_value
(package private) void
classMemberValue(int pos, int index)
class_info_index
(package private) void
constValueMember(int tag, int index)
const_value_index
(package private) void
enumMemberValue(int pos, int typeNameIndex, int constNameIndex)
enum_const_value
(package private) int
memberValuePair(int pos, int nameIndex)
element_value_paris[]
(package private) void
parameters(int numParam, int pos)
(package private) Annotation[]
parseAnnotations()
(package private) MemberValue
parseMemberValue()
(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:
parameters
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
annotationArray
int annotationArray(int pos, int num) throws java.lang.Exception
- Overrides:
annotationArray
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
annotation
int annotation(int pos, int type, int numPairs) throws java.lang.Exception
- Overrides:
annotation
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
memberValuePair
int memberValuePair(int pos, int nameIndex) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
element_value_paris[]
- Overrides:
memberValuePair
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
constValueMember
void constValueMember(int tag, int index) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
const_value_index
- Overrides:
constValueMember
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
enumMemberValue
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
enum_const_value
- Overrides:
enumMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
classMemberValue
void classMemberValue(int pos, int index) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
class_info_index
- Overrides:
classMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
annotationMemberValue
int annotationMemberValue(int pos) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
annotation_value
- Overrides:
annotationMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
arrayMemberValue
int arrayMemberValue(int pos, int num) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
array_value
- Overrides:
arrayMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
-