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 TypeMethodDescriptionvoidaddMember(String name, AnnotationEntry.Value value) voidClass<? extends Annotation> static AnnotationEntry.ValueasAnnotationValue(Object val, Type type) booleaninthashCode()booleanhasTarget(ElementType etype) Is there is a@Targetmeta-annotation that includes the parameter? If the annotationType has no@Targetmeta-annotation, return true, since in that case the annotation type is allowed in all contexts.voidprint(int indentation, ClassTypeWriter dst) toString()
-
Constructor Details
-
AnnotationEntry
public AnnotationEntry() -
AnnotationEntry
-
-
Method Details
-
getRetention
-
hasTarget
Is there is a@Targetmeta-annotation that includes the parameter? If the annotationType has no@Targetmeta-annotation, return true, since in that case the annotation type is allowed in all contexts. Ifetype==null, return false iff there is a@Targetmeta-annotation. -
getAnnotationType
-
addMember
-
addMember
-
asAnnotationValue
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject
-
print
-
invoke
- Specified by:
invokein interfaceInvocationHandler
-