|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.annotation.AnnotationParser
public class AnnotationParser
Parser for Java programming language annotations. Translates annotation byte streams emitted by compiler into annotation objects.
| Constructor Summary | |
|---|---|
AnnotationParser()
|
|
| Method Summary | |
|---|---|
static Annotation |
annotationForMap(Class type,
Map<String,Object> memberValues)
Returns an annotation of the given type backed by the given member -> value map. |
static Map<Class,Annotation> |
parseAnnotations(byte[] rawAnnotations,
ConstantPool constPool,
Class container)
Parses the annotations described by the specified byte array. |
static Object |
parseMemberValue(Class memberType,
ByteBuffer buf,
ConstantPool constPool,
Class container)
Parses the annotation member value at the current position in the specified byte buffer, resolving constant references in the specified constant pool. |
static Annotation[][] |
parseParameterAnnotations(byte[] rawAnnotations,
ConstantPool constPool,
Class container)
Parses the parameter annotations described by the specified byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationParser()
| Method Detail |
|---|
public static Map<Class,Annotation> parseAnnotations(byte[] rawAnnotations,
ConstantPool constPool,
Class container)
AnnotationFormatError - if an annotation is found to be
malformed.
public static Annotation[][] parseParameterAnnotations(byte[] rawAnnotations,
ConstantPool constPool,
Class container)
AnnotationFormatError - if an annotation is found to be
malformed.
public static Annotation annotationForMap(Class type,
Map<String,Object> memberValues)
public static Object parseMemberValue(Class memberType,
ByteBuffer buf,
ConstantPool constPool,
Class container)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||