coins.ast.expr
Class AddressExpr

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.expr.OperatorExpr
          extended bycoins.ast.expr.UnaryExpr
              extended bycoins.ast.expr.AddressExpr
All Implemented Interfaces:
Expr, java.io.Serializable

public class AddressExpr
extends UnaryExpr

'&' Expression for computing the address of the operand.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class coins.ast.expr.UnaryExpr
expr
 
Constructor Summary
AddressExpr(Expr expr, byte[] _type)
           
 
Method Summary
 void accept(Visitor v)
          Is a method for the visitor pattern.
protected  java.lang.String getTag()
          Returns the type of this node.
 byte[] getType()
          Returns the type of the resulting value of evaluating the expression.
 int operatorId()
          Returns the token identifier of the operator name.
 java.lang.String operatorName()
          Returns the string representation of the operator name.
 
Methods inherited from class coins.ast.expr.UnaryExpr
getExpr, getLeft, getRight, setLeft, setRight
 
Methods inherited from class coins.ast.ASTree
putSeparator, rightToString, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressExpr

public AddressExpr(Expr expr,
                   byte[] _type)
Method Detail

accept

public void accept(Visitor v)
Description copied from class: 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.

Specified by:
accept in class ASTree

getType

public byte[] getType()
Description copied from interface: Expr
Returns the type of the resulting value of evaluating the expression. See ast.TypeId

Returns:
the encoded type.

operatorId

public int operatorId()
Description copied from class: OperatorExpr
Returns the token identifier of the operator name. See ast.TokenId

Specified by:
operatorId in class OperatorExpr

operatorName

public java.lang.String operatorName()
Description copied from class: OperatorExpr
Returns the string representation of the operator name.

Specified by:
operatorName in class OperatorExpr

getTag

protected java.lang.String getTag()
Description copied from class: ASTree
Returns the type of this node. This method is used by toString().

Overrides:
getTag in class OperatorExpr