jp.sourceforge.expression_computer.node
クラス PostDecrementExpressionNode

java.lang.Object
  拡張jp.sourceforge.expression_computer.node.AbstractNode
      拡張jp.sourceforge.expression_computer.node.PostDecrementExpressionNode
すべての実装インタフェース:
Node, OperandNode

public final class PostDecrementExpressionNode
extends AbstractNode
implements OperandNode

PostDecrementExpressionを表すノードです。

作成者:
uguu@users.sourceforge.jp

入れ子クラスの概要
static class PostDecrementExpressionNode.OperatorNode
           PostDecrementExpressionNodeの"--"演算子を表すノードです。
 
コンストラクタの概要
PostDecrementExpressionNode(VariableNode operand)
           インスタンスを初期化します。
 
メソッドの概要
 void compile(CompileContext context)
          

ノードから命令列を生成して、コンテキストに追加します。

 Node[] getChildren()
          

子ノードの配列を返します。このノードがリーフである場合、要素が0の配列を返します。

 java.lang.String toString()
          
 
クラス jp.sourceforge.expression_computer.node.AbstractNode から継承したメソッド
toChildrenString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

PostDecrementExpressionNode

public PostDecrementExpressionNode(VariableNode operand)

インスタンスを初期化します。

パラメータ:
operand - 項。
nullの場合、NullPointerException例外をスローします。
メソッドの詳細

compile

public void compile(CompileContext context)

ノードから命令列を生成して、コンテキストに追加します。

定義:
インタフェース Node 内の compile
パラメータ:
context - コンテキスト。

getChildren

public Node[] getChildren()

子ノードの配列を返します。このノードがリーフである場合、要素が0の配列を返します。

定義:
インタフェース Node 内の getChildren
戻り値:
子ノードの配列。

toString

public java.lang.String toString()



Copyright © 2006 SourceForge.jp. All Rights Reserved.