|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.oklab.compiler.syntaxtree.Node
org.oklab.compiler.syntaxtree.statement.Statement
org.oklab.compiler.syntaxtree.statement.Condition
public abstract class Condition
ifやwhileなどの分岐の基盤となるクラス. 条件文と条件を満たした時に実行する文を含む.
While,
If| フィールドの概要 | |
|---|---|
protected int |
condition
|
protected Statement |
executeStatement
|
protected Expression |
leftOperand
|
protected Expression |
rightOperand
|
| クラス org.oklab.compiler.syntaxtree.Node から継承されたフィールド |
|---|
parent |
| コンストラクタの概要 | |
|---|---|
Condition(Node parent,
SourceReader sReader)
条件式の構文解析を行い問題がなければ、インスタンスを生成する.問題がある場合は 例外を投げる. |
|
| メソッドの概要 |
|---|
| クラス org.oklab.compiler.syntaxtree.statement.Statement から継承されたメソッド |
|---|
emitCode |
| クラス org.oklab.compiler.syntaxtree.Node から継承されたメソッド |
|---|
getReturnType, localVariableCount, parseExpression, parseFactor, parseRefferenceOrCall, parseStatement, parseTerm, setParent |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected int condition
protected Expression rightOperand
protected Expression leftOperand
protected Statement executeStatement
| コンストラクタの詳細 |
|---|
public Condition(Node parent,
SourceReader sReader)
throws CompileError
parent - 親ノード.sReader - ソースコードリーダ.
CompileError - 条件文の構造が正しくない場合この例外が発生する.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||