|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectantlr.Parser
antlr.LLkParser
com.ibm.able.rules.AbleARLParser
This class parses ABLE rule language source files and instantiates a specified AbleRuleSet object.
| Field Summary | |
|---|---|
static java.lang.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_26
|
static antlr.collections.impl.BitSet |
_tokenSet_27
|
static antlr.collections.impl.BitSet |
_tokenSet_28
|
static antlr.collections.impl.BitSet |
_tokenSet_29
|
static antlr.collections.impl.BitSet |
_tokenSet_3
|
static antlr.collections.impl.BitSet |
_tokenSet_30
|
static antlr.collections.impl.BitSet |
_tokenSet_31
|
static antlr.collections.impl.BitSet |
_tokenSet_32
|
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
|
| Fields inherited from class antlr.Parser |
|---|
astFactory, inputState, returnAST, tokenNames, traceDepth |
| Constructor Summary | |
|---|---|
|
AbleARLParser(antlr.ParserSharedInputState state)
|
|
AbleARLParser(antlr.TokenBuffer tokenBuf)
|
protected |
AbleARLParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
AbleARLParser(antlr.TokenStream lexer)
|
protected |
AbleARLParser(antlr.TokenStream lexer,
int k)
|
| Method Summary | |
|---|---|
AbleARLTreeNode |
getARLTree()
|
boolean |
isStopOnAbleParException()
|
AbleRd |
parseActionInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
The method parseExpressionInput parses a String into an AbleExpression object. |
AbleRuleBlock |
parseConsultRuleBlockInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
The method parseRuleBlockInput parses a predicate consult() AbleRuleBlock object. |
AbleRd |
parseExpressionInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
The method parseExpressionInput parses a String into an AbleExpression object. |
void |
parseRuleBlockDeclarations(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
Parses rule block declarations. |
AbleRuleBlock |
parseRuleBlockInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
The method parseRuleBlockInput parses a String into an AbleRuleBlock object. |
AbleRule |
parseRuleInput(AbleRuleSet theRuleSet,
java.lang.String theRuleBlockKey,
boolean theStopOnAbleParExceptionFlag,
boolean theReplacementMode)
Parses a String into an AbleRule object. |
void |
parseRuleSetInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
The method parseRuleSetInput is the initial rule. |
void |
parseSetDefinitionInput(AbleRuleSet theRuleSet,
AbleFuzzyVariable theFuzzyVar)
The method parseSetDefinitionInput parses a String into an AbleFuzzySet object. |
void |
parseVariableDeclarations(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
Parses variable declarations. |
void |
reset(antlr.TokenStream lexer)
|
void |
setStopOnAbleParException(boolean theStopOnAbleParExceptionFlag)
|
| 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, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, 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 |
public static final java.lang.String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_15
public static final antlr.collections.impl.BitSet _tokenSet_16
public static final antlr.collections.impl.BitSet _tokenSet_17
public static final antlr.collections.impl.BitSet _tokenSet_18
public static final antlr.collections.impl.BitSet _tokenSet_19
public static final antlr.collections.impl.BitSet _tokenSet_20
public static final antlr.collections.impl.BitSet _tokenSet_21
public static final antlr.collections.impl.BitSet _tokenSet_22
public static final antlr.collections.impl.BitSet _tokenSet_23
public static final antlr.collections.impl.BitSet _tokenSet_24
public static final antlr.collections.impl.BitSet _tokenSet_25
public static final antlr.collections.impl.BitSet _tokenSet_26
public static final antlr.collections.impl.BitSet _tokenSet_27
public static final antlr.collections.impl.BitSet _tokenSet_28
public static final antlr.collections.impl.BitSet _tokenSet_29
public static final antlr.collections.impl.BitSet _tokenSet_30
public static final antlr.collections.impl.BitSet _tokenSet_31
public static final antlr.collections.impl.BitSet _tokenSet_32
| Constructor Detail |
protected AbleARLParser(antlr.TokenBuffer tokenBuf,
int k)
public AbleARLParser(antlr.TokenBuffer tokenBuf)
protected AbleARLParser(antlr.TokenStream lexer,
int k)
public AbleARLParser(antlr.TokenStream lexer)
public AbleARLParser(antlr.ParserSharedInputState state)
| Method Detail |
public void setStopOnAbleParException(boolean theStopOnAbleParExceptionFlag)
public boolean isStopOnAbleParException()
public AbleARLTreeNode getARLTree()
public void reset(antlr.TokenStream lexer)
public final void parseRuleSetInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.
Note: ruleset object must be clear()ed before calling this method.theStopOnAbleParExceptionFlag - If true, throw exception
on the first error; if false, collect all exceptions
and throw an AbleParException with the list as the
included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final AbleRuleBlock parseRuleBlockInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception
on the first error; if false, collect all exceptions
and throw an AbleParException with the list as the
included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final AbleRuleBlock parseConsultRuleBlockInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception
on the first error; if false, collect all exceptions
and throw an AbleParException with the list as the
included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final AbleRule parseRuleInput(AbleRuleSet theRuleSet,
java.lang.String theRuleBlockKey,
boolean theStopOnAbleParExceptionFlag,
boolean theReplacementMode)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theRuleBlockKey - The key to the rule block that will eventually contain
the rule. The rule block key consists of the rule
block's name and parameter signature. For example,
"foo()" or
"foo(String,Boolean,Double)".theStopOnAbleParExceptionFlag - If true, throw exception on the first error; if false,
collect all exceptions and throw an AbleParException
with the list as the included object.theReplacementMode - Replace existing rule when true, add new rule if false.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final AbleRd parseExpressionInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception
on the first error; if false, collect all exceptions
and throw an AbleParException with the list as the
included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final AbleRd parseActionInput(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception
on the first error; if false, collect all exceptions
and throw an AbleParException with the list as the
included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final void parseSetDefinitionInput(AbleRuleSet theRuleSet,
AbleFuzzyVariable theFuzzyVar)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theFuzzyVar - The fuzzy variable on which the set is defined.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final void parseRuleBlockDeclarations(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception on the first error; if false,
collect all exceptions and throw an AbleParException
with the list as the included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
public final void parseVariableDeclarations(AbleRuleSet theRuleSet,
boolean theStopOnAbleParExceptionFlag)
throws antlr.RecognitionException,
antlr.TokenStreamException,
AbleParException
theRuleSet - provides context to resolve identifier names, etc.theStopOnAbleParExceptionFlag - If true, throw exception on the first error; if false,
collect all exceptions and throw an AbleParException
with the list as the included object.
antlr.RecognitionException
antlr.TokenStreamException
AbleParException
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||