org.makumba.providers.datadefinition.mdd
Class MDDAnalyzeBaseWalker
java.lang.Object
antlr.TreeParser
org.makumba.providers.datadefinition.mdd.MDDAnalyzeBaseWalker
- All Implemented Interfaces:
- MDDAnalyzeBaseWalkerTokenTypes
- Direct Known Subclasses:
- MDDAnalyzeWalker
public class MDDAnalyzeBaseWalker
- extends antlr.TreeParser
- implements MDDAnalyzeBaseWalkerTokenTypes
Fields inherited from class antlr.TreeParser |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
Fields inherited from interface org.makumba.providers.datadefinition.mdd.MDDAnalyzeBaseWalkerTokenTypes |
BINARY, BOOLEAN, CHAR, CHAR_LENGTH, CHARENUM, CHARENUMELEMENT, COLON, COMMA, COMPARE, COMPARE_EXPRESSION, DATE, DEPRECATED, DOT, EOF, EQ, ESC, EXMARK, FIELD, FIELDCOMMENT, FIELDNAME, FIELDTYPE, FILE, FIXED, FUNCTION, FUNCTION_ARGUMENT, FUNCTION_ARGUMENT_NAME, FUNCTION_BODY, FUNCTION_NAME, GE, GT, HEX_DIGIT, ID_LETTER, ID_START_LETTER, IDENT, INCLUDE, INCLUDED, INT, INTENUM, INTENUMINDEX, INTENUMTEXT, INTMARK, LE, LEFT_CUBR, LEFT_PAREN, LEFT_SQBR, LENGTH, LIKE, LINEBREAK, LITERAL_empty, LITERAL_not, LITERAL_notNull, LITERAL_null, LOWER, LT, MATCHES, MESSAGE, MINUS, MODIFIER, NAN, NATIVE_MESSAGE, NE, NEGATIVE_INTEGER, NOTBOOLEAN, NOTEMPTY, NOTINT, NOTNULL, NOTREAL, NOW, NULL_TREE_LOOKAHEAD, NUM_DOUBLE, NUM_FLOAT, NUM_LONG, NUMBER, PARENTFIELDNAME, PATH, PERCENT, PLUS, POINTED_TYPE, POSITIVE_INTEGER, PTR, PTRONE, QUOTMARK, RANGE, RANGE_FROM, RANGE_TO, REAL, RIGHT_CUBR, RIGHT_PAREN, RIGHT_SQBR, SEMICOLON, SESSIONVAR_NAME, SET, SETCHARENUM, SETCOMPLEX, SETINTENUM, SL_COMMENT, SQL_NE, STRING_LITERAL, SUBFIELD, SUBFIELDNAME, SUBFIELDTYPE, TEXT, TITLE, TITLEFIELD, TITLEFIELDFIELD, TITLEFIELDFUNCTION, TODAY, TRIPLE_DOT, TYPE, TYPEDEF, TYPENAME, UNIQUE, UNKNOWN_TYPE, UPPER, VALIDATION, VALIDATIONNAME, WHITESPACE |
Method Summary |
protected void |
addField(MDDNode mdd,
FieldNode field)
|
protected void |
addFunction(MDDNode mdd,
FunctionNode function,
antlr.collections.AST a,
FieldNode subField)
|
protected void |
addModifier(FieldNode field,
String modifier)
|
protected void |
addNativeValidationRuleMessage(antlr.collections.AST fieldName,
antlr.collections.AST errorType,
String message)
|
protected void |
addSubfield(FieldNode parent,
FieldNode field)
|
protected void |
addTypeShorthand(antlr.collections.AST name,
FieldNode fieldType)
|
protected void |
addValidationRuleArgument(String name,
ValidationRuleNode n)
|
void |
charEnumBody(antlr.collections.AST _t,
FieldNode field)
|
protected void |
checkFieldType(antlr.collections.AST type,
FieldNode field)
|
protected void |
checkRuleApplicability(ValidationRuleNode validation)
|
protected void |
checkSubFieldName(String parentName,
antlr.collections.AST name)
|
protected void |
checkSubFieldType(antlr.collections.AST type,
FieldNode field)
|
ValidationRuleNode |
comparisonValidationRule(antlr.collections.AST _t,
FieldNode subField)
|
protected ValidationRuleNode |
createMultiFieldValidationRule(antlr.collections.AST originAST,
ValidationType type,
FieldNode subField)
|
protected ValidationRuleNode |
createSingleFieldValidationRule(antlr.collections.AST originAST,
String fieldName,
ValidationType type,
FieldNode subField)
|
void |
dataDefinition(antlr.collections.AST _t)
|
void |
declaration(antlr.collections.AST _t)
|
void |
errorType(antlr.collections.AST _t)
|
void |
fieldDeclaration(antlr.collections.AST _t)
|
FieldType |
fieldType(antlr.collections.AST _t,
FieldNode field)
|
void |
functionArgumentDeclaration(antlr.collections.AST _t,
FunctionNode funct)
|
String[] |
functionCall(antlr.collections.AST _t)
|
void |
functionDeclaration(antlr.collections.AST _t,
FieldNode subField)
|
protected FieldNode |
getParentField(antlr.collections.AST parentField)
|
void |
intEnumBody(antlr.collections.AST _t,
FieldNode field)
|
ValidationRuleNode |
lengthValidationRule(antlr.collections.AST _t,
FieldNode subField)
|
ValidationRuleNode |
multiUniquenessValidationRule(antlr.collections.AST _t,
FieldNode subField)
|
void |
nativeValidationRuleMessage(antlr.collections.AST _t)
|
ValidationRuleNode |
rangeValidationRule(antlr.collections.AST _t,
FieldNode subField)
|
ValidationRuleNode |
regexValidationRule(antlr.collections.AST _t,
FieldNode subField)
|
void |
reportError(antlr.RecognitionException e)
|
void |
reportError(String s)
|
void |
subField(antlr.collections.AST _t,
FieldNode field,
boolean included)
|
void |
subFieldDeclaration(antlr.collections.AST _t)
|
void |
titleDeclaration(antlr.collections.AST _t)
|
void |
typeDeclaration(antlr.collections.AST _t)
|
void |
validationRuleDeclaration(antlr.collections.AST _t,
FieldNode subField)
|
Methods inherited from class antlr.TreeParser |
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
error
antlr.RecognitionException error
typeName
protected String typeName
origin
protected URL origin
mdd
protected MDDNode mdd
_tokenNames
public static final String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
MDDAnalyzeBaseWalker
public MDDAnalyzeBaseWalker()
reportError
public void reportError(antlr.RecognitionException e)
- Overrides:
reportError
in class antlr.TreeParser
reportError
public void reportError(String s)
- Overrides:
reportError
in class antlr.TreeParser
checkFieldType
protected void checkFieldType(antlr.collections.AST type,
FieldNode field)
getParentField
protected FieldNode getParentField(antlr.collections.AST parentField)
checkSubFieldType
protected void checkSubFieldType(antlr.collections.AST type,
FieldNode field)
checkSubFieldName
protected void checkSubFieldName(String parentName,
antlr.collections.AST name)
addTypeShorthand
protected void addTypeShorthand(antlr.collections.AST name,
FieldNode fieldType)
addModifier
protected void addModifier(FieldNode field,
String modifier)
addField
protected void addField(MDDNode mdd,
FieldNode field)
addFunction
protected void addFunction(MDDNode mdd,
FunctionNode function,
antlr.collections.AST a,
FieldNode subField)
addSubfield
protected void addSubfield(FieldNode parent,
FieldNode field)
createSingleFieldValidationRule
protected ValidationRuleNode createSingleFieldValidationRule(antlr.collections.AST originAST,
String fieldName,
ValidationType type,
FieldNode subField)
createMultiFieldValidationRule
protected ValidationRuleNode createMultiFieldValidationRule(antlr.collections.AST originAST,
ValidationType type,
FieldNode subField)
addValidationRuleArgument
protected void addValidationRuleArgument(String name,
ValidationRuleNode n)
checkRuleApplicability
protected void checkRuleApplicability(ValidationRuleNode validation)
addNativeValidationRuleMessage
protected void addNativeValidationRuleMessage(antlr.collections.AST fieldName,
antlr.collections.AST errorType,
String message)
dataDefinition
public final void dataDefinition(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
declaration
public final void declaration(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
fieldDeclaration
public final void fieldDeclaration(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
subFieldDeclaration
public final void subFieldDeclaration(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
titleDeclaration
public final void titleDeclaration(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
typeDeclaration
public final void typeDeclaration(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
validationRuleDeclaration
public final void validationRuleDeclaration(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
functionDeclaration
public final void functionDeclaration(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
nativeValidationRuleMessage
public final void nativeValidationRuleMessage(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
fieldType
public final FieldType fieldType(antlr.collections.AST _t,
FieldNode field)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
subField
public final void subField(antlr.collections.AST _t,
FieldNode field,
boolean included)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
intEnumBody
public final void intEnumBody(antlr.collections.AST _t,
FieldNode field)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
charEnumBody
public final void charEnumBody(antlr.collections.AST _t,
FieldNode field)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
functionCall
public final String[] functionCall(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
rangeValidationRule
public final ValidationRuleNode rangeValidationRule(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
lengthValidationRule
public final ValidationRuleNode lengthValidationRule(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
multiUniquenessValidationRule
public final ValidationRuleNode multiUniquenessValidationRule(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
comparisonValidationRule
public final ValidationRuleNode comparisonValidationRule(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
regexValidationRule
public final ValidationRuleNode regexValidationRule(antlr.collections.AST _t,
FieldNode subField)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
errorType
public final void errorType(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
functionArgumentDeclaration
public final void functionArgumentDeclaration(antlr.collections.AST _t,
FunctionNode funct)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException