coins.ast.expr
クラス PointerBinaryExpr

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

public class PointerBinaryExpr
extends BinaryExpr
implements TokenId

Pointer binary expression.

The left operand is a pointer value. The right operand is an integer offset. The parser maintains this order. If the right operand is a pointer, then the parser implicitly exchanges the operands.

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

フィールドの概要
 
クラス coins.ast.expr.BinaryExpr から継承したフィールド
left, right
 
インタフェース coins.ast.TokenId から継承したフィールド
AND_E, ANDAND, ARROW, ASM, AUTO, BAD_TOKEN, BREAK, CASE, CAST_OP, CHAR, CHAR_CONST, COND_OP, CONST, CONTINUE, DEFAULT, DIV_E, DO, DOUBLE, DOUBLE_CONST, ELLIPSIS, ELSE, ENUM, EOF, EQ, EXOR_E, EXTERN, FLOAT, FLOAT_CONST, FOR, FUNCALL, GE, GOTO, IDENTIFIER, IF, IGNORE, INDEX_OP, INLINE, INT, INT_CONST, LE, LONG, LONG_CONST, LONG_DOUBLE_CONST, LONGLONG_CONST, LSHIFT, LSHIFT_E, MINUS_E, MINUSMINUS, MOD_E, MUL_E, MUTABLE, NEQ, OR_E, OROR, PLUS_E, PLUSPLUS, PRAGMA, REGISTER, RESTRICT, RETURN, RSHIFT, RSHIFT_E, SHORT, SIGNED, SIZEOF, SKIP_GCC_ASM, SKIP_GCC_ATTRIBUTE, STATIC, STRING_L, STRING_WL, STRUCT, SWITCH, TYPEDEF, TYPEDEF_NAME, UINT_CONST, ULONG_CONST, ULONGLONG_CONST, UNION, UNSIGNED, VOID, VOLATILE, WHILE
 
コンストラクタの概要
PointerBinaryExpr(Expr expr1, int op, Expr expr2)
          Constructs a pointer binary expression.
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 Expr getOffset()
          Returns the right operand.
 Expr getPointer()
          Returns the left operand.
 byte[] getType()
          Returns the type of the resulting value of the binary expression.
 int operatorId()
          Returns the token identifier of the operator name.
 java.lang.String operatorName()
          Returns the string representation of the operator name.
 
クラス coins.ast.expr.BinaryExpr から継承したメソッド
getLeft, getLeftOperand, getRight, getRightOperand, setLeft, setRight
 
クラス coins.ast.expr.OperatorExpr から継承したメソッド
getTag
 
クラス coins.ast.ASTree から継承したメソッド
putSeparator, rightToString, toString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

PointerBinaryExpr

public PointerBinaryExpr(Expr expr1,
                         int op,
                         Expr expr2)
Constructs a pointer binary expression.

パラメータ:
expr1 - a pointer expression
op - + or -
expr2 - an integer expression
メソッドの詳細

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

getType

public byte[] getType()
Returns the type of the resulting value of the binary expression.

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

getPointer

public Expr getPointer()
Returns the left operand.


getOffset

public Expr getOffset()
Returns the right operand.


operatorId

public int operatorId()
クラス OperatorExpr の記述:
Returns the token identifier of the operator name. See ast.TokenId

定義:
クラス OperatorExpr 内の operatorId

operatorName

public java.lang.String operatorName()
クラス OperatorExpr の記述:
Returns the string representation of the operator name.

定義:
クラス OperatorExpr 内の operatorName