|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.daileon.notsupported.AnnotationsStrategy
public class AnnotationsStrategy
The AnnotationsStrategy
class assumes that the annotations that
correspond to domain annotations are organized in class elements, indicated
in template annotations that annotate the domain annotations.
Field Summary | |
---|---|
private org.objectweb.asm.attrs.Annotation |
annotation
The domain annotation to be evaluated |
private AbstractAnnotationsReplacer |
annotationsReplacer
The AbstractAnnotationsReplacer object, that organizes the
elements and their annotations, as well as their domain annotations |
private ElementRoot |
element
The element annotated with the domain annotation |
private String |
path
The physical path to the domain annotation |
Constructor Summary | |
---|---|
AnnotationsStrategy()
Default class constructor. |
Method Summary | |
---|---|
void |
execute()
Triggers the process of evaluating a domain annotation. |
void |
setAnnotation(org.objectweb.asm.attrs.Annotation annotation)
Sets the domain annotation. |
void |
setAnnotationsReplacer(AbstractAnnotationsReplacer replacer)
Sets the AbstractAnnotationsReplacer object. |
void |
setElement(ElementRoot element)
Sets the element that contains the domain annotation. |
void |
setPath(String path)
Sets the path of the domain annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AbstractAnnotationsReplacer annotationsReplacer
AbstractAnnotationsReplacer
object, that organizes the
elements and their annotations, as well as their domain annotations
private org.objectweb.asm.attrs.Annotation annotation
private String path
private ElementRoot element
Constructor Detail |
---|
public AnnotationsStrategy()
Method Detail |
---|
public void setAnnotationsReplacer(AbstractAnnotationsReplacer replacer)
AbstractAnnotationsReplacer
object. This object is
responsible for keeping the elements and their corresponding annotations,
as well as their domain annotations.
setAnnotationsReplacer
in interface Strategy
replacer
- The object that organizes elements and annotations.public void setAnnotation(org.objectweb.asm.attrs.Annotation annotation)
setAnnotation
in interface Strategy
annotation
- The domain annotation.public void setPath(String path)
setPath
in interface Strategy
path
- The path of the domain annotation.public void setElement(ElementRoot element)
setElement
in interface Strategy
element
- The element that contains the domain annotation. This element
can be a class, a field or a method.public void execute()
execute
in interface Strategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |