org.apache.beehive.wsm.jsr181.processor.apt
Class WsmAnnotationProcessor

Object
  extended by TwoPhaseAnnotationProcessor
      extended by WsmAnnotationProcessor
All Implemented Interfaces:
AnnotationProcessor

public class WsmAnnotationProcessor
extends TwoPhaseAnnotationProcessor

WsmAnnotationProcessor provides an API for IDEs and other applications to perform code validation. Currently, check() and generate() are not implemented. Since the WsmAnnotationProcessor does not generate any artifacts but class files, process() is equivalent with check() and generate() is void.


Constructor Summary
WsmAnnotationProcessor(Set<AnnotationTypeDeclaration> atds, AnnotationProcessorEnvironment env)
          Constructor.
 
Method Summary
 void check(Declaration _decl)
          Checks whether a source file complies with JSR-181.
 void generate(Declaration _decl)
          The generate method is responsible for the generation of any additional artifacts (source, class, or binary) that are derived from the input Declaration.
 
Methods inherited from class TwoPhaseAnnotationProcessor
check, generate, getAnnotationProcessorEnvironment, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmAnnotationProcessor

public WsmAnnotationProcessor(Set<AnnotationTypeDeclaration> atds,
                              AnnotationProcessorEnvironment env)
Constructor.

Method Detail

check

public void check(Declaration _decl)
Checks whether a source file complies with JSR-181.

Specified by:
check in class TwoPhaseAnnotationProcessor
See Also:
todo: should this always run all tests whenever called for any supported annotation?

generate

public void generate(Declaration _decl)
Description copied from class: TwoPhaseAnnotationProcessor
The generate method is responsible for the generation of any additional artifacts (source, class, or binary) that are derived from the input Declaration.

Specified by:
generate in class TwoPhaseAnnotationProcessor
See Also:
TwoPhaseAnnotationProcessor