|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.oklab.compiler.syntaxtree.Node
org.oklab.compiler.syntaxtree.expression.Expression
org.oklab.compiler.syntaxtree.expression.OperatorOfUnary
public class OperatorOfUnary
単項演算子.
| フィールドの概要 | |
|---|---|
private Expression |
operand
|
private int |
operatorBytecode
|
| クラス org.oklab.compiler.syntaxtree.Node から継承されたフィールド |
|---|
parent |
| コンストラクタの概要 | |
|---|---|
OperatorOfUnary(Node parentNode,
int operatorToken,
SourceReader sReader)
単項演算子の構文木作成. |
|
| メソッドの概要 | |
|---|---|
int |
emitCode(CodeBufferManager code,
int stackPointer)
単項演算子のバイトコードをコードバッファに出力する. |
| クラス org.oklab.compiler.syntaxtree.expression.Expression から継承されたメソッド |
|---|
parseXStatement |
| クラス 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 |
| フィールドの詳細 |
|---|
private int operatorBytecode
private Expression operand
| コンストラクタの詳細 |
|---|
public OperatorOfUnary(Node parentNode,
int operatorToken,
SourceReader sReader)
throws CompileError
parentNode - 親ノード.operatorToken - トークン.sReader - 読み込むソースコード.
CompileError| メソッドの詳細 |
|---|
public int emitCode(CodeBufferManager code,
int stackPointer)
throws CompileError
Expression 内の emitCodecode - コードバッファ.stackPointer - 出力先のオフセット.
CompileError
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||