org.apache.beehive.netui.compiler
Class FlowControllerChecker

Object
  extended by BaseChecker
      extended by FlowControllerChecker
Direct Known Subclasses:
PageFlowChecker, SharedFlowChecker

public abstract class FlowControllerChecker
extends BaseChecker


Constructor Summary
protected FlowControllerChecker(AnnotationProcessorEnvironment env, FlowControllerInfo fcInfo, Diagnostics diags)
           
 
Method Summary
protected  void checkField(FieldDeclaration field, TypeDeclaration jclass)
           
protected  void checkForOverlappingClasses(ClassDeclaration jpfClass, String baseClass, String fileExtension, String errorKey)
           
protected  void checkInnerClass(ClassDeclaration innerClass)
           
protected  void checkMethod(MethodDeclaration method, ClassDeclaration jclass)
           
protected abstract  GenStrutsApp createStrutsApp(ClassDeclaration jclass)
           
protected  void doAdditionalClassChecks(ClassDeclaration jpfClass, File webappRoot)
           
protected  void endCheckClass(ClassDeclaration jclass)
           
protected  Map getCheckResultMap()
           
protected abstract  AnnotationGrammar getControllerGrammar()
           
protected abstract  String getDesiredBaseClass(ClassDeclaration jclass)
           
protected  FlowControllerInfo getSourceFileInfo()
           
 Map onCheck(ClassDeclaration jclass)
           
protected  void startCheckClass(ClassDeclaration jclass)
           
 
Methods inherited from class BaseChecker
check, getDiagnostics, getEnv, getRuntimeVersionChecker, getWebappRoot, setRuntimeVersionChecker
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowControllerChecker

protected FlowControllerChecker(AnnotationProcessorEnvironment env,
                                FlowControllerInfo fcInfo,
                                Diagnostics diags)
Method Detail

doAdditionalClassChecks

protected void doAdditionalClassChecks(ClassDeclaration jpfClass,
                                       File webappRoot)

getCheckResultMap

protected Map getCheckResultMap()

getDesiredBaseClass

protected abstract String getDesiredBaseClass(ClassDeclaration jclass)

getControllerGrammar

protected abstract AnnotationGrammar getControllerGrammar()

onCheck

public Map onCheck(ClassDeclaration jclass)
Specified by:
onCheck in class BaseChecker

endCheckClass

protected void endCheckClass(ClassDeclaration jclass)

createStrutsApp

protected abstract GenStrutsApp createStrutsApp(ClassDeclaration jclass)
                                         throws XmlException,
                                                IOException,
                                                NoWebInfDirectoryException
Throws:
XmlException
IOException
NoWebInfDirectoryException

startCheckClass

protected void startCheckClass(ClassDeclaration jclass)

checkField

protected void checkField(FieldDeclaration field,
                          TypeDeclaration jclass)

checkMethod

protected void checkMethod(MethodDeclaration method,
                           ClassDeclaration jclass)

checkInnerClass

protected void checkInnerClass(ClassDeclaration innerClass)

checkForOverlappingClasses

protected void checkForOverlappingClasses(ClassDeclaration jpfClass,
                                          String baseClass,
                                          String fileExtension,
                                          String errorKey)

getSourceFileInfo

protected FlowControllerInfo getSourceFileInfo()
Overrides:
getSourceFileInfo in class BaseChecker