|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.oklab.compiler.syntaxtree.Node
org.oklab.compiler.syntaxtree.statement.Statement
org.oklab.compiler.syntaxtree.statement.Condition
org.oklab.compiler.syntaxtree.statement.While
public class While
while文. 親クラスのConditionのコンストラクタが構文解析を行っている.
Condition| フィールドの概要 |
|---|
| クラス org.oklab.compiler.syntaxtree.statement.Condition から継承されたフィールド |
|---|
condition, executeStatement, leftOperand, rightOperand |
| クラス org.oklab.compiler.syntaxtree.Node から継承されたフィールド |
|---|
parent |
| コンストラクタの概要 | |
|---|---|
While(Node parent,
SourceReader sReader)
Creates a new instance of If |
|
| メソッドの概要 | |
|---|---|
boolean |
emitCode(CodeBufferManager code)
バイトコードの出力を行う. |
| クラス 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 |
| コンストラクタの詳細 |
|---|
public While(Node parent,
SourceReader sReader)
throws CompileError
CompileError| メソッドの詳細 |
|---|
public boolean emitCode(CodeBufferManager code)
throws CompileError
Statement の記述:
Statement 内の emitCodecode - 出力先のバッファ領域.
Return文の時はtrueを返す.その他の文の場合はfalseを返す.
これにより、その文の後に更に文を書けるかどうか判断する.
CompileError - コードを出力できなかった場合にこの例外を出力する.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||