|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.ClassAdapter
net.sf.daileon.notsupported.AbstractAnnotationsCollector
abstract class AbstractAnnotationsCollector
Essentially, the AbstractAnnotationsCollector
is responsible for
evaluating the annotations that correspond to a domain annotation and
organizing this information in the AbstractAnnotationsReplacer
object, referenced by it. This is mainly performed by the Strategy
object, indicated in the XML configuration file, and used in the
collect(ElementRoot)
method.
Field Summary | |
---|---|
private String |
path
The physical path to the class that corresponds to the domain annotation |
private AbstractAnnotationsReplacer |
replacer
The object that performs the actual transformations in the final bytecode |
Fields inherited from class org.objectweb.asm.ClassAdapter |
---|
cv |
Constructor Summary | |
---|---|
AbstractAnnotationsCollector(org.objectweb.asm.ClassVisitor classVisitor)
Class constructor. |
Method Summary | |
---|---|
(package private) void |
collect(ElementRoot element)
Collects the annotations that correspond to a domain annotation, and for such, uses the Strategy object indicated in the XML configuration
file. |
(package private) void |
setPath(String path)
Sets the physical path of the class that correspond to the domain annotation. |
(package private) void |
setReplacer(AbstractAnnotationsReplacer replacer)
Sets the AbstractAnnotationsReplacer object. |
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 AbstractAnnotationsReplacer replacer
private String path
Constructor Detail |
---|
AbstractAnnotationsCollector(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor
- The ClassVisitor object, provided by the
ClassTransformer.transform(String, String)
method.Method Detail |
---|
void setReplacer(AbstractAnnotationsReplacer replacer)
AbstractAnnotationsReplacer
object. This object is
provided by the ClassTransformer.transform(String, String)
method
and performs the actual transformations at bytecode level.
replacer
- The object that performs the actual transformations at
bytecode level.void setPath(String path)
path
- The physical path of the domain annotation.void collect(ElementRoot element)
Strategy
object indicated in the XML configuration
file.
element
- The element that will have its annotations analyzed and
collected. If a domain annotation is found, it will be
evaluated and its corresponding annotations will organized in
the AbstractAnnotationsReplacer
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |