com.togethersoft.sca.ast
Interface AstAssignmentExpression

All Superinterfaces:
AstExpression, AstObject

public interface AstAssignmentExpression
extends AstExpression

Represents a simple or compound assignment expression. For example:

     size = 0;
     size += 10;
 


Field Summary
static int ASSIGN
          Constant representing a simple = assignment expression.
static int BAND_ASSIGN
          Constant representing a compound &= assignment expression.
static int BOR_ASSIGN
          Constant representing a compound |= assignment expression.
static int BSR_ASSIGN
          Constant representing a compound >>>= assignment expression.
static int BXOR_ASSIGN
          Constant representing a compound ^= assignment expression.
static int DIV_ASSIGN
          Constant representing a compound /= assignment expression.
static int MINUS_ASSIGN
          Constant representing a compound -= assignment expression.
static int MOD_ASSIGN
          Constant representing a compound %= assignment expression.
static int PLUS_ASSIGN
          Constant representing a compound += assignment expression.
static int SL_ASSIGN
          Constant representing a compound <<= assignment expression.
static int SR_ASSIGN
          Constant representing a compound >>= assignment expression.
static int STAR_ASSIGN
          Constant representing a compound *= assignment expression.
 
Fields inherited from interface com.togethersoft.sca.ast.AstObject
ARRAY_CREATION, ARRAY_INITIALIZER, ARRAY_REFERENCE, ASSERT_STATEMENT, ASSIGNMENT_EXPRESSION, BINARY_EXPRESSION, BREAK_STATEMENT, CASE_LABEL, CAST_EXPRESSION, CATCH_CLAUSE, CLASS_FILE, COMMENT, COMPILATION_UNIT, COMPOUND_STATEMENT, CONDITIONAL_EXPRESSION, CONSTRUCTOR_INVOCATION, CONTINUE_STATEMENT, DBC_RESULT, DECLARATION_STATEMENT, DO_STATEMENT, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FIELD_REFERENCE, FINALLY_CLAUSE, FOR_STATEMENT, IF_STATEMENT, IMPORT, INITIALIZER, JAVADOC_TAG, LITERAL, METHOD, METHOD_CALL_EXPRESSION, N_A, OBJECT_CREATION_EXPRESSION, PACKAGE, PARENTHESIZED_EXPRESSION, RETURN_STATEMENT, SIMPLE_REFERENCE, SUPER_EXPRESSION, SWITCH_GROUP, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THIS_EXPRESSION, THROW_SPECIFIER, THROW_STATEMENT, TRY_STATEMENT, TYPE, TYPE_EXPRESSION, UNARY_EXPRESSION, VARIABLE, VARIABLE_DECLARATION, WHILE_STATEMENT
 
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

ASSIGN

public static final int ASSIGN
Constant representing a simple = assignment expression.

BAND_ASSIGN

public static final int BAND_ASSIGN
Constant representing a compound &= assignment expression.

BOR_ASSIGN

public static final int BOR_ASSIGN
Constant representing a compound |= assignment expression.

BSR_ASSIGN

public static final int BSR_ASSIGN
Constant representing a compound >>>= assignment expression.

BXOR_ASSIGN

public static final int BXOR_ASSIGN
Constant representing a compound ^= assignment expression.

DIV_ASSIGN

public static final int DIV_ASSIGN
Constant representing a compound /= assignment expression.

MINUS_ASSIGN

public static final int MINUS_ASSIGN
Constant representing a compound -= assignment expression.

MOD_ASSIGN

public static final int MOD_ASSIGN
Constant representing a compound %= assignment expression.

PLUS_ASSIGN

public static final int PLUS_ASSIGN
Constant representing a compound += assignment expression.

SL_ASSIGN

public static final int SL_ASSIGN
Constant representing a compound <<= assignment expression.

SR_ASSIGN

public static final int SR_ASSIGN
Constant representing a compound >>= assignment expression.

STAR_ASSIGN

public static final int STAR_ASSIGN
Constant representing a compound *= assignment expression.
Method Detail

getExpressionKind

public int getExpressionKind()
Returns this expression's kind encoded as an integer.
Returns:
the kind of this expression.

getLeftOperand

public AstExpression getLeftOperand()
Returns the left operand of this expression.
Returns:
the left operand.

getRightOperand

public AstExpression getRightOperand()
Returns the right operand of this expression.
Returns:
the right operand.