|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.expr.OperatorExpr
coins.ast.expr.UnaryExpr
coins.ast.expr.MemberExpr
Member access expression "->" (arrow) or
"." (dot).
| Field Summary |
| Fields inherited from class coins.ast.expr.UnaryExpr |
expr |
| Fields inherited from interface 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 |
| Constructor Summary | |
MemberExpr(Expr expr,
boolean _arrow,
java.lang.String member,
Aggregate def,
Declarator d)
|
|
| Method Summary | |
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 "." (dot). |
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 |
public MemberExpr(Expr expr,
boolean _arrow,
java.lang.String member,
Aggregate def,
Declarator d)
| Method Detail |
public void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTreepublic byte[] getType()
Expr
getType in interface Exprpublic boolean isLvalue()
LvalueExpr
isLvalue in interface LvalueExprpublic boolean hasAddress()
LvalueExpr
hasAddress in interface LvalueExprpublic java.lang.String name()
public Aggregate getStructure()
public Declarator getMember()
public int operatorId()
TokenId.ARROW or "." (dot).
operatorId in class OperatorExprpublic java.lang.String operatorName()
OperatorExpr
operatorName in class OperatorExprprotected java.lang.String getTag()
ASTreetoString().
getTag in class OperatorExpr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||