Package com.scriptbasic.syntax.commands
Class AbstractCommandAnalyzerIfKind
java.lang.Object
com.scriptbasic.syntax.AbstractAnalyzer<Command>
com.scriptbasic.syntax.commands.AbstractCommandAnalyzer
com.scriptbasic.syntax.commands.AbstractCommandAnalyzerIfElseKind
com.scriptbasic.syntax.commands.AbstractCommandAnalyzerIfKind
- All Implemented Interfaces:
Analyzer<Command>,CommandAnalyzer
- Direct Known Subclasses:
CommandAnalyzerElseIf,CommandAnalyzerIf
- Author:
- Peter Verhas date Jul 13, 2012
-
Field Summary
Fields inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzer
ctx -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzerIfElseKind
registerAndPopNode, registerAndSwapNodeMethods inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzer
analyzeExpression, analyzeExpressionList, analyzeSimpleLeftValue, analyzeSimpleLeftValueList, assertKeyWord, consumeEndOfStatement, equal, getName, isKeyWord, pushNode
-
Constructor Details
-
AbstractCommandAnalyzerIfKind
-
-
Method Details
-
analyzeCondition
Analyse expression and THEN keyword- Returns:
- expression for IF statement
- Throws:
AnalysisException- error when missing then keyword or failed to parse expression
-