org.makumba.providers.datadefinition.mdd
Class MDDBaseParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by org.makumba.providers.datadefinition.mdd.MDDBaseParser
All Implemented Interfaces:
MDDTokenTypes
Direct Known Subclasses:
MDDParser

public class MDDBaseParser
extends antlr.LLkParser
implements MDDTokenTypes


Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_10
           
static antlr.collections.impl.BitSet _tokenSet_11
           
static antlr.collections.impl.BitSet _tokenSet_12
           
static antlr.collections.impl.BitSet _tokenSet_13
           
static antlr.collections.impl.BitSet _tokenSet_14
           
static antlr.collections.impl.BitSet _tokenSet_15
           
static antlr.collections.impl.BitSet _tokenSet_16
           
static antlr.collections.impl.BitSet _tokenSet_17
           
static antlr.collections.impl.BitSet _tokenSet_18
           
static antlr.collections.impl.BitSet _tokenSet_19
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_20
           
static antlr.collections.impl.BitSet _tokenSet_21
           
static antlr.collections.impl.BitSet _tokenSet_22
           
static antlr.collections.impl.BitSet _tokenSet_23
           
static antlr.collections.impl.BitSet _tokenSet_24
           
static antlr.collections.impl.BitSet _tokenSet_25
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
static antlr.collections.impl.BitSet _tokenSet_9
           
(package private)  antlr.RecognitionException error
           
protected  boolean included
           
protected  String typeName
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface org.makumba.providers.datadefinition.mdd.MDDTokenTypes
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
  MDDBaseParser(antlr.ParserSharedInputState state)
           
  MDDBaseParser(antlr.TokenBuffer tokenBuf)
           
protected MDDBaseParser(antlr.TokenBuffer tokenBuf, int k)
           
  MDDBaseParser(antlr.TokenStream lexer)
           
protected MDDBaseParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
protected  void addParsedFunction(antlr.collections.AST a, antlr.collections.AST b)
           
 void atom()
           
protected  void buildTokenTypeASTClassMap()
           
 void charEnum()
           
protected  void checkFieldName(antlr.collections.AST n)
           
 void comparisonValidationRuleDeclaration()
           
 void dataDefinition()
           
 void declaration()
           
protected  void disableField(antlr.collections.AST field)
           
 void errorMessage()
           
protected  void errorNestedSubfield(antlr.collections.AST s)
           
 void fieldComment()
           
 void fieldDeclaration()
           
 void fieldName()
           
 void fieldType()
           
 void functionArgumentBody()
           
 void functionArgumentDeclaration()
           
 void functionArguments()
           
 void functionBody()
           
 void functionCall()
           
 void functionDeclaration()
           
protected  antlr.collections.AST include(antlr.collections.AST type)
           
 void includeDeclaration()
           
protected  antlr.collections.AST includeSubField(antlr.collections.AST type, antlr.collections.AST parentField)
           
 void intEnum()
           
 void keyword()
           
 void modifier()
           
 void nativeValidationRuleMessage()
           
 void number()
           
 void operator()
           
 void parsedExpression()
           
 antlr.collections.AST parsedFunctionBody()
           
protected  antlr.collections.AST parseExpression(antlr.collections.AST expr)
           
protected  antlr.collections.AST parseFunctionBody(antlr.collections.AST b)
           
 void rangeValidationRuleDeclaration()
           
 void regexValidationRuleDeclaration()
           
 void reportError(antlr.RecognitionException e)
           
 void reportError(String s)
           
 void subFieldBody()
           
 void subFieldDeclaration()
           
 void title()
           
 void titleDeclaration()
           
 void type()
           
 void typeDeclaration()
           
 void uniquenessValidationRuleDeclaration()
           
 void validationRuleDeclaration()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
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

included

protected boolean included

_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

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

public static final antlr.collections.impl.BitSet _tokenSet_5

_tokenSet_6

public static final antlr.collections.impl.BitSet _tokenSet_6

_tokenSet_7

public static final antlr.collections.impl.BitSet _tokenSet_7

_tokenSet_8

public static final antlr.collections.impl.BitSet _tokenSet_8

_tokenSet_9

public static final antlr.collections.impl.BitSet _tokenSet_9

_tokenSet_10

public static final antlr.collections.impl.BitSet _tokenSet_10

_tokenSet_11

public static final antlr.collections.impl.BitSet _tokenSet_11

_tokenSet_12

public static final antlr.collections.impl.BitSet _tokenSet_12

_tokenSet_13

public static final antlr.collections.impl.BitSet _tokenSet_13

_tokenSet_14

public static final antlr.collections.impl.BitSet _tokenSet_14

_tokenSet_15

public static final antlr.collections.impl.BitSet _tokenSet_15

_tokenSet_16

public static final antlr.collections.impl.BitSet _tokenSet_16

_tokenSet_17

public static final antlr.collections.impl.BitSet _tokenSet_17

_tokenSet_18

public static final antlr.collections.impl.BitSet _tokenSet_18

_tokenSet_19

public static final antlr.collections.impl.BitSet _tokenSet_19

_tokenSet_20

public static final antlr.collections.impl.BitSet _tokenSet_20

_tokenSet_21

public static final antlr.collections.impl.BitSet _tokenSet_21

_tokenSet_22

public static final antlr.collections.impl.BitSet _tokenSet_22

_tokenSet_23

public static final antlr.collections.impl.BitSet _tokenSet_23

_tokenSet_24

public static final antlr.collections.impl.BitSet _tokenSet_24

_tokenSet_25

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

MDDBaseParser

protected MDDBaseParser(antlr.TokenBuffer tokenBuf,
                        int k)

MDDBaseParser

public MDDBaseParser(antlr.TokenBuffer tokenBuf)

MDDBaseParser

protected MDDBaseParser(antlr.TokenStream lexer,
                        int k)

MDDBaseParser

public MDDBaseParser(antlr.TokenStream lexer)

MDDBaseParser

public MDDBaseParser(antlr.ParserSharedInputState state)
Method Detail

reportError

public void reportError(antlr.RecognitionException e)
Overrides:
reportError in class antlr.Parser

reportError

public void reportError(String s)
Overrides:
reportError in class antlr.Parser

disableField

protected void disableField(antlr.collections.AST field)

include

protected antlr.collections.AST include(antlr.collections.AST type)

includeSubField

protected antlr.collections.AST includeSubField(antlr.collections.AST type,
                                                antlr.collections.AST parentField)

parseExpression

protected antlr.collections.AST parseExpression(antlr.collections.AST expr)

errorNestedSubfield

protected void errorNestedSubfield(antlr.collections.AST s)

checkFieldName

protected void checkFieldName(antlr.collections.AST n)

parseFunctionBody

protected antlr.collections.AST parseFunctionBody(antlr.collections.AST b)

addParsedFunction

protected void addParsedFunction(antlr.collections.AST a,
                                 antlr.collections.AST b)

dataDefinition

public final void dataDefinition()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

declaration

public final void declaration()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fieldDeclaration

public final void fieldDeclaration()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subFieldDeclaration

public final void subFieldDeclaration()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

titleDeclaration

public final void titleDeclaration()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

typeDeclaration

public final void typeDeclaration()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

includeDeclaration

public final void includeDeclaration()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

validationRuleDeclaration

public final void validationRuleDeclaration()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionDeclaration

public final void functionDeclaration()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

nativeValidationRuleMessage

public final void nativeValidationRuleMessage()
                                       throws antlr.RecognitionException,
                                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fieldName

public final void fieldName()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

modifier

public final void modifier()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fieldType

public final void fieldType()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fieldComment

public final void fieldComment()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atom

public final void atom()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

type

public final void type()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

subFieldBody

public final void subFieldBody()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

keyword

public final void keyword()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

intEnum

public final void intEnum()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

charEnum

public final void charEnum()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

parsedExpression

public final void parsedExpression()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

errorMessage

public final void errorMessage()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

title

public final void title()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionCall

public final void functionCall()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

rangeValidationRuleDeclaration

public final void rangeValidationRuleDeclaration()
                                          throws antlr.RecognitionException,
                                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

uniquenessValidationRuleDeclaration

public final void uniquenessValidationRuleDeclaration()
                                               throws antlr.RecognitionException,
                                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

comparisonValidationRuleDeclaration

public final void comparisonValidationRuleDeclaration()
                                               throws antlr.RecognitionException,
                                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

regexValidationRuleDeclaration

public final void regexValidationRuleDeclaration()
                                          throws antlr.RecognitionException,
                                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionArguments

public final void functionArguments()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionBody

public final void functionBody()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionArgumentDeclaration

public final void functionArgumentDeclaration()
                                       throws antlr.RecognitionException,
                                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

parsedFunctionBody

public final antlr.collections.AST parsedFunctionBody()
                                               throws antlr.RecognitionException,
                                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

functionArgumentBody

public final void functionArgumentBody()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

number

public final void number()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

operator

public final void operator()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

buildTokenTypeASTClassMap

protected void buildTokenTypeASTClassMap()