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
public abstract class AbstractCommandAnalyzerIfKind extends AbstractCommandAnalyzerIfElseKind
- Author:
- Peter Verhas date Jul 13, 2012
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractCommandAnalyzerIfKind(Context ctx) -
Method Summary
Modifier and Type Method Description protected ExpressionanalyzeCondition()Analyse expression and THEN keywordMethods 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
-
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
-