public class AnnotationEntry
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.lang.annotation.Annotation
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationEntry.Value |
| Constructor and Description |
|---|
AnnotationEntry() |
AnnotationEntry(ClassType annotationType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(java.lang.String name,
AnnotationEntry.Value value) |
void |
addMember(java.lang.String name,
java.lang.Object value,
Type type) |
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType() |
static AnnotationEntry.Value |
asAnnotationValue(java.lang.Object val,
Type type) |
boolean |
equals(java.lang.Object obj) |
ClassType |
getAnnotationType() |
java.lang.annotation.RetentionPolicy |
getRetention() |
int |
hashCode() |
boolean |
hasTarget(java.lang.annotation.ElementType etype)
Is there is a
@Target meta-annotation that includes the parameter?
If the annotationType has no @Target meta-annotation, return true,
since in that case the annotation type is allowed in all contexts. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
void |
print(int indentation,
ClassTypeWriter dst) |
java.lang.String |
toString() |
public AnnotationEntry()
public AnnotationEntry(ClassType annotationType)
public java.lang.annotation.RetentionPolicy getRetention()
public boolean hasTarget(java.lang.annotation.ElementType etype)
@Target meta-annotation that includes the parameter?
If the annotationType has no @Target meta-annotation, return true,
since in that case the annotation type is allowed in all contexts.
If etype==null, return false iff there is a @Target meta-annotation.public ClassType getAnnotationType()
public void addMember(java.lang.String name,
AnnotationEntry.Value value)
public void addMember(java.lang.String name,
java.lang.Object value,
Type type)
public static AnnotationEntry.Value asAnnotationValue(java.lang.Object val, Type type)
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotationpublic boolean equals(java.lang.Object obj)
equals in interface java.lang.annotation.Annotationequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.lang.annotation.AnnotationhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.lang.annotation.AnnotationtoString in class java.lang.Objectpublic void print(int indentation,
ClassTypeWriter dst)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
invoke in interface java.lang.reflect.InvocationHandler