|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.asm.ClassAdapter net.sf.daileon.notsupported.AbstractTemplateAnnotationsCollector
abstract class AbstractTemplateAnnotationsCollector
The AbstractTemplateAnnotationsCollector
class is responsible
for collecting the annotations of the elements indicated in template
annotations, such as FieldTemplate
or
MethodTemplate
.
Field Summary | |
---|---|
private org.objectweb.asm.attrs.RuntimeVisibleAnnotations |
annotations
The element that keeps the annotations that are collected from a particular element, which is indicated in a template annotation |
private static String |
DOCUMENTED
The fully-qualified name of the Documented
annotation |
private static String |
DOMAIN_ANNOTATION
The fully-qualified name of the DomainAnnotation annotation |
private static String |
RETENTION
The fully-qualified name of the Retention
annotation |
private static String |
TARGET
The fully-qualified name of the Target
annotation |
Fields inherited from class org.objectweb.asm.ClassAdapter |
---|
cv |
Constructor Summary | |
---|---|
AbstractTemplateAnnotationsCollector(org.objectweb.asm.ClassVisitor classVisitor)
Class constructor. |
Method Summary | |
---|---|
(package private) void |
collectAnnotations(org.objectweb.asm.Attribute attribute)
Collects the annotations of a given Attribute, which can contain one or several annotations. |
(package private) org.objectweb.asm.attrs.RuntimeVisibleAnnotations |
getAnnotations()
Gets the object that keeps the annotations indicated in a class or class element of a template annotation. |
private boolean |
isValidAnnotation(org.objectweb.asm.attrs.Annotation annotation)
Informs whether an annotation is valid or not. |
(package private) void |
setAnnotations(org.objectweb.asm.attrs.RuntimeVisibleAnnotations annotations)
Sets the object that keeps the annotations indicated in a class or class element of a template annotation. |
Methods inherited from class org.objectweb.asm.ClassAdapter |
---|
visit, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String DOCUMENTED
Documented
annotation
private static final String RETENTION
Retention
annotation
private static final String TARGET
Target
annotation
private static final String DOMAIN_ANNOTATION
DomainAnnotation
annotation
private org.objectweb.asm.attrs.RuntimeVisibleAnnotations annotations
Constructor Detail |
---|
AbstractTemplateAnnotationsCollector(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor
- The ClassVisitor object that visits the class.Method Detail |
---|
org.objectweb.asm.attrs.RuntimeVisibleAnnotations getAnnotations()
void setAnnotations(org.objectweb.asm.attrs.RuntimeVisibleAnnotations annotations)
annotations
- The object that keeps the annotations indicated in a class or
class element of a template annotation.void collectAnnotations(org.objectweb.asm.Attribute attribute)
attribute
- The Attribute
object, containing one or several
annotations to be collected. This object always corresponds to
the annotations of an element indicated in a template
annotation.private boolean isValidAnnotation(org.objectweb.asm.attrs.Annotation annotation)
Documented
, or
Retention
, or
Target
or
DomainAnnotation
, then it is not valid.
annotation
- The Annotation
object to be verified.
boolean
value that can be:
true
if the annotation is valid;false
if the annotation is not valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |