org.apache.beehive.netui.compiler.grammar
Class BaseValidationRuleGrammar

Object
  extended by AnnotationGrammar
      extended by BaseValidationRuleGrammar
Direct Known Subclasses:
ValidateCustomGrammar, ValidateRangeGrammar, ValidateRequiredGrammar, ValidateTypeGrammar, ValidateValidWhenGrammar

public class BaseValidationRuleGrammar
extends AnnotationGrammar


Constructor Summary
BaseValidationRuleGrammar(AnnotationProcessorEnvironment env, Diagnostics diags, RuntimeVersionChecker rvc)
           
 
Method Summary
 String[][] getAttrDependencies()
          Each entry in this array (a String[]) is an array whose first element is an attribute that requires at least one of the subsequent elements to exist as an attribute.
 String[][] getMutuallyExclusiveAttrs()
          Each entry in this array (a String[]) lists mutually exclusive attributes.
protected  boolean onBeginCheck(AnnotationMirror annotation, AnnotationMirror[] parentAnnotations, MemberDeclaration classMember)
           
 
Methods inherited from class AnnotationGrammar
addError, addError, addError, addMemberArrayGrammar, addMemberGrammar, addMemberType, addWarning, addWarning, addWarning, beginCheck, check, check, endCheck, getDiagnostics, getEnv, getRequiredAttrs, getRequiredRuntimeVersion, getRuntimeVersionChecker, onCheckMember, onEndCheck
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseValidationRuleGrammar

public BaseValidationRuleGrammar(AnnotationProcessorEnvironment env,
                                 Diagnostics diags,
                                 RuntimeVersionChecker rvc)
Method Detail

getMutuallyExclusiveAttrs

public String[][] getMutuallyExclusiveAttrs()
Description copied from class: AnnotationGrammar
Each entry in this array (a String[]) lists mutually exclusive attributes.

Overrides:
getMutuallyExclusiveAttrs in class AnnotationGrammar

getAttrDependencies

public String[][] getAttrDependencies()
Description copied from class: AnnotationGrammar
Each entry in this array (a String[]) is an array whose first element is an attribute that requires at least one of the subsequent elements to exist as an attribute.

Overrides:
getAttrDependencies in class AnnotationGrammar

onBeginCheck

protected boolean onBeginCheck(AnnotationMirror annotation,
                               AnnotationMirror[] parentAnnotations,
                               MemberDeclaration classMember)
Overrides:
onBeginCheck in class AnnotationGrammar