|
||||||||||
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.AbstractAnnotationsReplacerBase
net.sf.daileon.notsupported.AbstractAnnotationsReplacer
public abstract class AbstractAnnotationsReplacer
The AbstractAnnotationsReplacer
class is responsible for
visiting the elements of a particular class and organizing their annotations.
Field Summary | |
---|---|
private String |
className
The name of the class whose elements will have their annotations organized |
Fields inherited from class org.objectweb.asm.ClassAdapter |
---|
cv |
Constructor Summary | |
---|---|
protected |
AbstractAnnotationsReplacer(org.objectweb.asm.ClassVisitor classVisitor)
Class constructor. |
Method Summary | |
---|---|
(package private) void |
setClassName(String className)
Sets the name of the class whose elements will have their annotations organized. |
void |
visitAttribute(org.objectweb.asm.Attribute attribute)
Visits the annotations of a given class and calls the AbstractAnnotationsReplacerBase.handleElement(ElementRoot) , so that their corresponding
annotations can be organized. |
void |
visitField(int access,
String name,
String desc,
Object value,
org.objectweb.asm.Attribute attribute)
Visits a particular field of a given class and calls the AbstractAnnotationsReplacerBase.handleElement(ElementRoot) , so that its corresponding
annotations can be organized. |
org.objectweb.asm.CodeVisitor |
visitMethod(int access,
String name,
String desc,
String[] exceptions,
org.objectweb.asm.Attribute attribute)
Visits a particular method of a given class and calls the AbstractAnnotationsReplacerBase.handleElement(ElementRoot) , so that its corresponding
annotations can be organized. |
Methods inherited from class net.sf.daileon.notsupported.AbstractAnnotationsReplacerBase |
---|
addDomainAnnotation, addElementAnnotations, handleElement, keepDomainAnnotations |
Methods inherited from class org.objectweb.asm.ClassAdapter |
---|
visit, visitEnd, visitInnerClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String className
Constructor Detail |
---|
protected AbstractAnnotationsReplacer(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor
- The ClassVisitor object, provided by the
ClassTransformer.transform(String, String)
method.Method Detail |
---|
void setClassName(String className)
className
- The name of the class.public void visitAttribute(org.objectweb.asm.Attribute attribute)
AbstractAnnotationsReplacerBase.handleElement(ElementRoot)
, so that their corresponding
annotations can be organized.
visitAttribute
in interface org.objectweb.asm.ClassVisitor
visitAttribute
in class org.objectweb.asm.ClassAdapter
RuntimeException
- If a DuplicateAnnotationException
is caught when
trying to organize the domain annotations of the class and
their corresponding annotations.public void visitField(int access, String name, String desc, Object value, org.objectweb.asm.Attribute attribute)
AbstractAnnotationsReplacerBase.handleElement(ElementRoot)
, so that its corresponding
annotations can be organized.
visitField
in interface org.objectweb.asm.ClassVisitor
visitField
in class org.objectweb.asm.ClassAdapter
RuntimeException
- If a DuplicateAnnotationException
is caught when
trying to organize the domain annotations of a particular
field and its corresponding annotations.public org.objectweb.asm.CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, org.objectweb.asm.Attribute attribute)
AbstractAnnotationsReplacerBase.handleElement(ElementRoot)
, so that its corresponding
annotations can be organized.
visitMethod
in interface org.objectweb.asm.ClassVisitor
visitMethod
in class org.objectweb.asm.ClassAdapter
RuntimeException
- If a DuplicateAnnotationException
is caught when
trying to organize the domain annotations of a particular
method and its corresponding annotations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |