Package gnu.bytecode
Class AnnotationEntry
java.lang.Object
gnu.bytecode.AnnotationEntry
- All Implemented Interfaces:
Annotation
,InvocationHandler
An annotation value mirror.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMember
(String name, AnnotationEntry.Value value) void
Class
<? extends Annotation> static AnnotationEntry.Value
asAnnotationValue
(Object val, Type type) boolean
int
hashCode()
boolean
hasTarget
(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.void
print
(int indentation, ClassTypeWriter dst) toString()
-
Constructor Details
-
AnnotationEntry
public AnnotationEntry() -
AnnotationEntry
-
-
Method Details
-
getRetention
-
hasTarget
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. Ifetype==null
, return false iff there is a@Target
meta-annotation. -
getAnnotationType
-
addMember
-
addMember
-
asAnnotationValue
-
annotationType
- Specified by:
annotationType
in interfaceAnnotation
-
equals
- Specified by:
equals
in interfaceAnnotation
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceAnnotation
- Overrides:
hashCode
in classObject
-
toString
- Specified by:
toString
in interfaceAnnotation
- Overrides:
toString
in classObject
-
print
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
-