org.makumba.providers.datadefinition.mdd
Class MDDPostProcessorBaseWalker

java.lang.Object
  extended by antlr.TreeParser
      extended by org.makumba.providers.datadefinition.mdd.MDDPostProcessorBaseWalker
All Implemented Interfaces:
MDDPostProcessorBaseWalkerTokenTypes
Direct Known Subclasses:
MDDPostProcessorWalker

public class MDDPostProcessorBaseWalker
extends antlr.TreeParser
implements MDDPostProcessorBaseWalkerTokenTypes

MDD builder. Transforms the analysed tree and builds DataDefinition and FieldDefinition objects


Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
(package private)  antlr.RecognitionException error
           
protected  MDDNode mdd
           
protected  String typeName
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface org.makumba.providers.datadefinition.mdd.MDDPostProcessorBaseWalkerTokenTypes
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
 
Constructor Summary
MDDPostProcessorBaseWalker()
           
 
Method Summary
protected  void analyzeFunction(FunctionNode f)
           
protected  void checkTitleField(antlr.collections.AST titleField)
           
 void dataDefinition(antlr.collections.AST _t)
           
 void declaration(antlr.collections.AST _t)
           
 void fieldDeclaration(antlr.collections.AST _t)
           
 void functionDeclaration(antlr.collections.AST _t)
           
protected  void processUnknownType(antlr.collections.AST field)
           
protected  void processValidationDefinitions(ValidationRuleNode v, antlr.collections.AST v_in)
           
 void reportError(antlr.RecognitionException e)
           
 void reportError(String s)
           
 void subField(antlr.collections.AST _t)
           
 void subFieldTypes(antlr.collections.AST _t)
           
 void titleDeclaration(antlr.collections.AST _t)
           
 void validationRuleDeclaration(antlr.collections.AST _t)
           
 
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
 

Field Detail

error

antlr.RecognitionException error

typeName

protected String typeName

mdd

protected MDDNode mdd

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0
Constructor Detail

MDDPostProcessorBaseWalker

public MDDPostProcessorBaseWalker()
Method Detail

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

processUnknownType

protected void processUnknownType(antlr.collections.AST field)

checkTitleField

protected void checkTitleField(antlr.collections.AST titleField)

processValidationDefinitions

protected void processValidationDefinitions(ValidationRuleNode v,
                                            antlr.collections.AST v_in)

analyzeFunction

protected void analyzeFunction(FunctionNode f)

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

titleDeclaration

public final void titleDeclaration(antlr.collections.AST _t)
                            throws antlr.RecognitionException
Throws:
antlr.RecognitionException

validationRuleDeclaration

public final void validationRuleDeclaration(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
Throws:
antlr.RecognitionException

functionDeclaration

public final void functionDeclaration(antlr.collections.AST _t)
                               throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subField

public final void subField(antlr.collections.AST _t)
                    throws antlr.RecognitionException
Throws:
antlr.RecognitionException

subFieldTypes

public final void subFieldTypes(antlr.collections.AST _t)
                         throws antlr.RecognitionException
Throws:
antlr.RecognitionException