net.sf.daileon.notsupported
Class DomainAnnotationsDiscarder
java.lang.Object
org.objectweb.asm.ClassAdapter
net.sf.daileon.notsupported.AbstractAnnotationsReplacerBase
net.sf.daileon.notsupported.AbstractAnnotationsReplacer
net.sf.daileon.notsupported.DomainAnnotationsDiscarder
- All Implemented Interfaces:
- org.objectweb.asm.ClassVisitor
public class DomainAnnotationsDiscarder
- extends AbstractAnnotationsReplacer
Default implementation of the AbstractAnnotationsReplacer
. Its
fully-qualified name may be indicated in the XML configuration file, in order
to indicate that the domain annotations should not be kept in the final
bytecode.
- Version:
- 1.0 01/01/2010
- Author:
- Roberto Perillo
Fields inherited from class org.objectweb.asm.ClassAdapter |
cv |
Method Summary |
protected boolean |
keepDomainAnnotations()
Indicates that the domain annotations shall not be kept in the final
bytecode. |
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 |
DomainAnnotationsDiscarder
public DomainAnnotationsDiscarder(org.objectweb.asm.ClassVisitor classVisitor)
- Class constructor.
- Parameters:
classVisitor
- The ClassVisitor object, provided by the
ClassTransformer.transform(String, String)
method.
keepDomainAnnotations
protected boolean keepDomainAnnotations()
- Indicates that the domain annotations shall not be kept in the final
bytecode.
- Specified by:
keepDomainAnnotations
in class AbstractAnnotationsReplacerBase
- Returns:
false
, in order to indicate that the domain
annotations shall not be kept in the final bytecode.