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
-
Fields inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzer
ctx
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandAnalyzerIfKind(Context ctx)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ExpressionanalizeLine()Commandanalyze()protected abstract CommandcreateNode(Expression condition)-
Methods inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzerIfElseKind
registerAndPopNode, registerAndSwapNode
-
Methods inherited from class com.scriptbasic.syntax.commands.AbstractCommandAnalyzer
analyzeExpression, analyzeExpressionList, analyzeSimpleLeftValue, analyzeSimpleLeftValueList, assertKeyWord, consumeEndOfLine, equal, getName, isKeyWord, pushNode
-
-
-
-
Constructor Detail
-
AbstractCommandAnalyzerIfKind
public AbstractCommandAnalyzerIfKind(Context ctx)
-
-
Method Detail
-
createNode
protected abstract Command createNode(Expression condition) throws AnalysisException
- Throws:
AnalysisException
-
analyze
public Command analyze() throws AnalysisException
- Returns:
- the analysis result.
- Throws:
AnalysisException- in case of exception
-
analizeLine
protected Expression analizeLine() throws AnalysisException
- Throws:
AnalysisException
-
-