net.sf.daileon.notsupported
Class DomainAnnotationsDiscarder

java.lang.Object
  extended by org.objectweb.asm.ClassAdapter
      extended by net.sf.daileon.notsupported.AbstractAnnotationsReplacerBase
          extended by net.sf.daileon.notsupported.AbstractAnnotationsReplacer
              extended by 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

Field Summary
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
DomainAnnotationsDiscarder(org.objectweb.asm.ClassVisitor classVisitor)
          Class constructor.
 
Method Summary
protected  boolean keepDomainAnnotations()
          Indicates that the domain annotations shall not be kept in the final bytecode.
 
Methods inherited from class net.sf.daileon.notsupported.AbstractAnnotationsReplacer
setClassName, visitAttribute, visitField, visitMethod
 
Methods inherited from class net.sf.daileon.notsupported.AbstractAnnotationsReplacerBase
addDomainAnnotation, addElementAnnotations, handleElement
 
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
 

Constructor Detail

DomainAnnotationsDiscarder

public DomainAnnotationsDiscarder(org.objectweb.asm.ClassVisitor classVisitor)
Class constructor.

Parameters:
classVisitor - The ClassVisitor object, provided by the ClassTransformer.transform(String, String) method.
Method Detail

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.