|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Represents a two operand expression. For example:
int i = size * 2;
int b = mask & 0x80;
| Field Summary | |
static int |
BAND
Constant representing an integer bitwise & expression. |
static int |
BOR
Constant representing an integer bitwise | expression. |
static int |
BSR
Constant representing an unsigned right shift >>> expression. |
static int |
BXOR
Constant representing an integer bitwise ^ expression. |
static int |
DIV
Constant representing a division / expression. |
static int |
EQ
Constant representing a == eqiality expression. |
static int |
GE
Constant representing a >= relational expression. |
static int |
GT
Constant representing a > relational expression. |
static int |
INSTANCEOF
Constant representing a type comparison instanceof expression. |
static int |
LAND
Constant representing a conditional-and && expression. |
static int |
LE
Constant representing a <= relational expression. |
static int |
LOR
Constant representing a conditional-or || expression. |
static int |
LT
Constant representing a < relational expression. |
static int |
MINUS
Constant representing a binary - expression. |
static int |
MOD
Constant representing a remainder % expression. |
static int |
MUL
Constant representing a multiplication * expression. |
static int |
NE
Constant representing a != equality expression. |
static int |
PLUS
Constant representing a binary + expression. |
static int |
SL
Constant representing a left shift << expression. |
static int |
SR
Constant representing a signed right shift >> expression. |
| Method Summary | |
int |
getExpressionKind()
Returns this expression's kind, encoded as an integer. |
AstExpression |
getLeftOperand()
Returns the left operand of this expression. |
AstExpression |
getRightOperand()
Returns the right operand of this expression. |
| Methods inherited from interface com.togethersoft.sca.ast.AstExpression |
getOperands, getRuntimeType, getType, isConstant |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Field Detail |
public static final int BAND
public static final int BOR
public static final int BSR
public static final int BXOR
public static final int DIV
public static final int EQ
public static final int GE
public static final int GT
public static final int INSTANCEOF
public static final int LAND
public static final int LE
public static final int LOR
public static final int LT
public static final int MINUS
public static final int MOD
public static final int MUL
public static final int NE
public static final int PLUS
public static final int SL
public static final int SR
| Method Detail |
public int getExpressionKind()
public AstExpression getLeftOperand()
public AstExpression getRightOperand()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||