coins.ast.expr
クラス VariableExpr

java.lang.Object
  |
  +--coins.ast.ASTree
        |
        +--coins.ast.expr.VariableExpr
すべての実装インタフェース:
Expr, LvalueExpr, java.io.Serializable

public class VariableExpr
extends ASTree
implements LvalueExpr

Variable.

関連項目:
直列化された形式

コンストラクタの概要
VariableExpr(Declarator d)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 Declarator getDeclarator()
          Returns the declarator of the variable.
 ASTree getLeft()
          Returns null.
 ASTree getRight()
          Returns null.
 byte[] getType()
          Returns the type of the resulting value of evaluating the expression.
 boolean hasAddress()
          Returns true if the expression can be an operand of '&'.
 boolean isLvalue()
          Returns true if the expression is really an l-value.
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 java.lang.String toString()
           
 
クラス coins.ast.ASTree から継承したメソッド
getTag, putSeparator, rightToString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

VariableExpr

public VariableExpr(Declarator d)
メソッドの詳細

isLvalue

public boolean isLvalue()
インタフェース LvalueExpr の記述:
Returns true if the expression is really an l-value.

定義:
インタフェース LvalueExpr 内の isLvalue

hasAddress

public boolean hasAddress()
インタフェース LvalueExpr の記述:
Returns true if the expression can be an operand of '&'.

定義:
インタフェース LvalueExpr 内の hasAddress

accept

public void accept(Visitor v)
クラス ASTree の記述:
Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

定義:
クラス ASTree 内の accept

getLeft

public ASTree getLeft()
Returns null.

定義:
クラス ASTree 内の getLeft

getRight

public ASTree getRight()
Returns null.

定義:
クラス ASTree 内の getRight

setLeft

public void setLeft(ASTree _left)
定義:
クラス ASTree 内の setLeft

setRight

public void setRight(ASTree _right)
定義:
クラス ASTree 内の setRight

getType

public byte[] getType()
インタフェース Expr の記述:
Returns the type of the resulting value of evaluating the expression. See ast.TypeId

定義:
インタフェース Expr 内の getType
戻り値:
the encoded type.

getDeclarator

public Declarator getDeclarator()
Returns the declarator of the variable.


toString

public java.lang.String toString()
オーバーライド:
クラス ASTree 内の toString