coins.ast.expr
クラス MemberExpr

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

public class MemberExpr
extends UnaryExpr
implements TokenId, LvalueExpr

Member access expression "->" (arrow) or "." (dot).

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

フィールドの概要
 
クラス coins.ast.expr.UnaryExpr から継承したフィールド
expr
 
インタフェース 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
 
コンストラクタの概要
MemberExpr(Expr expr, boolean _arrow, java.lang.String member, Aggregate def, Declarator d)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 Declarator getMember()
          Returns the declaration of the accessed member.
 Aggregate getStructure()
          Returns the declaration of the struct or union data type that the accessed member belongs to.
protected  java.lang.String getTag()
          Returns the type of this node.
 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.
 java.lang.String name()
          Returns the member name.
 int operatorId()
          Returns TokenId.ARROW or ".
 java.lang.String operatorName()
          Returns the string representation of the operator name.
 
クラス coins.ast.expr.UnaryExpr から継承したメソッド
getExpr, getLeft, getRight, setLeft, setRight
 
クラス coins.ast.ASTree から継承したメソッド
putSeparator, rightToString, toString, toString1
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

MemberExpr

public MemberExpr(Expr expr,
                  boolean _arrow,
                  java.lang.String member,
                  Aggregate def,
                  Declarator d)
メソッドの詳細

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()
インタフェース Expr の記述:
Returns the type of the resulting value of evaluating the expression. See ast.TypeId

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

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

name

public java.lang.String name()
Returns the member name.


getStructure

public Aggregate getStructure()
Returns the declaration of the struct or union data type that the accessed member belongs to.


getMember

public Declarator getMember()
Returns the declaration of the accessed member.


operatorId

public int operatorId()
Returns TokenId.ARROW or "." (dot).

定義:
クラス OperatorExpr 内の operatorId

operatorName

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

定義:
クラス OperatorExpr 内の operatorName

getTag

protected java.lang.String getTag()
クラス ASTree の記述:
Returns the type of this node. This method is used by toString().

オーバーライド:
クラス OperatorExpr 内の getTag