|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.Parser
antlr.LLkParser
org.makumba.providers.datadefinition.mdd.MDDBaseParser
org.makumba.providers.datadefinition.mdd.MDDParser
public class MDDParser
MDD Parser extending the parser generated by ANTLR for performing specific pre-processing operations
Field Summary | |
---|---|
protected Vector<String> |
includedFieldNames
|
protected HashMap<antlr.collections.AST,antlr.collections.AST> |
parsedFunctions
|
Fields inherited from class org.makumba.providers.datadefinition.mdd.MDDBaseParser |
---|
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_10, _tokenSet_11, _tokenSet_12, _tokenSet_13, _tokenSet_14, _tokenSet_15, _tokenSet_16, _tokenSet_17, _tokenSet_18, _tokenSet_19, _tokenSet_2, _tokenSet_20, _tokenSet_21, _tokenSet_22, _tokenSet_23, _tokenSet_24, _tokenSet_25, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9, error, included, typeName |
Fields inherited from class antlr.Parser |
---|
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Constructor Summary | |
---|---|
MDDParser(antlr.TokenStream lexer,
MDDFactory factory,
String typeName,
boolean included)
|
Method Summary | |
---|---|
protected void |
addParsedFunction(antlr.collections.AST a,
antlr.collections.AST b)
|
protected void |
checkFieldName(antlr.collections.AST fieldName)
|
protected void |
disableField(antlr.collections.AST field)
|
protected void |
errorNestedSubfield(antlr.collections.AST s)
|
protected antlr.collections.AST |
include(antlr.collections.AST type)
|
protected antlr.collections.AST |
includeSubField(antlr.collections.AST type,
antlr.collections.AST parentField)
|
protected antlr.collections.AST |
parseExpression(antlr.collections.AST expression)
|
protected antlr.collections.AST |
parseFunctionBody(antlr.collections.AST expression)
|
protected void |
postProcess()
performs post-processing tasks of parsing: - deactivates disabled fields from inclusions |
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 |
---|
protected Vector<String> includedFieldNames
protected HashMap<antlr.collections.AST,antlr.collections.AST> parsedFunctions
Constructor Detail |
---|
public MDDParser(antlr.TokenStream lexer, MDDFactory factory, String typeName, boolean included)
Method Detail |
---|
protected antlr.collections.AST include(antlr.collections.AST type)
include
in class MDDBaseParser
protected antlr.collections.AST includeSubField(antlr.collections.AST type, antlr.collections.AST parentField)
includeSubField
in class MDDBaseParser
protected void disableField(antlr.collections.AST field)
disableField
in class MDDBaseParser
protected void postProcess()
protected antlr.collections.AST parseExpression(antlr.collections.AST expression)
parseExpression
in class MDDBaseParser
protected antlr.collections.AST parseFunctionBody(antlr.collections.AST expression)
parseFunctionBody
in class MDDBaseParser
protected void errorNestedSubfield(antlr.collections.AST s)
errorNestedSubfield
in class MDDBaseParser
protected void checkFieldName(antlr.collections.AST fieldName)
checkFieldName
in class MDDBaseParser
protected void addParsedFunction(antlr.collections.AST a, antlr.collections.AST b)
addParsedFunction
in class MDDBaseParser
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |