Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTBinaryExpression

All Superinterfaces:
IASTExpression, IASTNode
All Known Subinterfaces:
ICPPASTBinaryExpression, IGPPASTBinaryExpression

public interface IASTBinaryExpression
extends IASTExpression

This interface represents a binary expression.


Field Summary
static int op_assign
          assignment =
static int op_binaryAnd
          binary and &
static int op_binaryAndAssign
          binary and assign &=
static int op_binaryOr
          binary Or |
static int op_binaryOrAssign
          binary Or assign |=
static int op_binaryXor
          binary Xor ^
static int op_binaryXorAssign
          binary Xor assign ^=
static int op_divide
          divide /
static int op_divideAssign
          divide assignemnt /=
static int op_equals
          equals ==
static int op_greaterEqual
          greater than or equals >=
static int op_greaterThan
          greater than >
static int op_last
          op_last is the field used in subinterfaces to start their operators at
static int op_lessEqual
          less than or equals <=
static int op_lessThan
          less than <
static int op_logicalAnd
          logical and &&
static int op_logicalOr
          logical or ||
static int op_minus
          minus -
static int op_minusAssign
          minus assignment -=
static int op_modulo
          modulo %
static int op_moduloAssign
          modulo assignment %=
static int op_multiply
          multiply *
static int op_multiplyAssign
          multiply assignment *=
static int op_notequals
          not equals !
static int op_plus
          plus +
static int op_plusAssign
          plus assignment +=
static int op_shiftLeft
          shift left <<
static int op_shiftLeftAssign
          shift left assignment <<=
static int op_shiftRight
          shift right >>
static int op_shiftRightAssign
          shift right assign >>=
static ASTNodeProperty OPERAND_ONE
          Node property that describes the relationship between an IASTBinaryExpression and an IASTExpression representing the lhs.
static ASTNodeProperty OPERAND_TWO
          Node property that describes the relationship between an IASTBinaryExpression and an IASTExpression representing the rhs.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
EMPTY_EXPRESSION_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTExpression getOperand1()
          Get the first operand.
 IASTExpression getOperand2()
          Get the second operand.
 int getOperator()
          Get the operator.
 void setOperand1(IASTExpression expression)
          Set the first operand.
 void setOperand2(IASTExpression expression)
           
 void setOperator(int op)
          Set the operator.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
getExpressionType
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

OPERAND_ONE

public static final ASTNodeProperty OPERAND_ONE
Node property that describes the relationship between an IASTBinaryExpression and an IASTExpression representing the lhs.


OPERAND_TWO

public static final ASTNodeProperty OPERAND_TWO
Node property that describes the relationship between an IASTBinaryExpression and an IASTExpression representing the rhs.


op_multiply

public static final int op_multiply
multiply *

See Also:
Constant Field Values

op_divide

public static final int op_divide
divide /

See Also:
Constant Field Values

op_modulo

public static final int op_modulo
modulo %

See Also:
Constant Field Values

op_plus

public static final int op_plus
plus +

See Also:
Constant Field Values

op_minus

public static final int op_minus
minus -

See Also:
Constant Field Values

op_shiftLeft

public static final int op_shiftLeft
shift left <<

See Also:
Constant Field Values

op_shiftRight

public static final int op_shiftRight
shift right >>

See Also:
Constant Field Values

op_lessThan

public static final int op_lessThan
less than <

See Also:
Constant Field Values

op_greaterThan

public static final int op_greaterThan
greater than >

See Also:
Constant Field Values

op_lessEqual

public static final int op_lessEqual
less than or equals <=

See Also:
Constant Field Values

op_greaterEqual

public static final int op_greaterEqual
greater than or equals >=

See Also:
Constant Field Values

op_binaryAnd

public static final int op_binaryAnd
binary and &

See Also:
Constant Field Values

op_binaryXor

public static final int op_binaryXor
binary Xor ^

See Also:
Constant Field Values

op_binaryOr

public static final int op_binaryOr
binary Or |

See Also:
Constant Field Values

op_logicalAnd

public static final int op_logicalAnd
logical and &&

See Also:
Constant Field Values

op_logicalOr

public static final int op_logicalOr
logical or ||

See Also:
Constant Field Values

op_assign

public static final int op_assign
assignment =

See Also:
Constant Field Values

op_multiplyAssign

public static final int op_multiplyAssign
multiply assignment *=

See Also:
Constant Field Values

op_divideAssign

public static final int op_divideAssign
divide assignemnt /=

See Also:
Constant Field Values

op_moduloAssign

public static final int op_moduloAssign
modulo assignment %=

See Also:
Constant Field Values

op_plusAssign

public static final int op_plusAssign
plus assignment +=

See Also:
Constant Field Values

op_minusAssign

public static final int op_minusAssign
minus assignment -=

See Also:
Constant Field Values

op_shiftLeftAssign

public static final int op_shiftLeftAssign
shift left assignment <<=

See Also:
Constant Field Values

op_shiftRightAssign

public static final int op_shiftRightAssign
shift right assign >>=

See Also:
Constant Field Values

op_binaryAndAssign

public static final int op_binaryAndAssign
binary and assign &=

See Also:
Constant Field Values

op_binaryXorAssign

public static final int op_binaryXorAssign
binary Xor assign ^=

See Also:
Constant Field Values

op_binaryOrAssign

public static final int op_binaryOrAssign
binary Or assign |=

See Also:
Constant Field Values

op_equals

public static final int op_equals
equals ==

See Also:
Constant Field Values

op_notequals

public static final int op_notequals
not equals !=

See Also:
Constant Field Values

op_last

public static final int op_last
op_last is the field used in subinterfaces to start their operators at

See Also:
Constant Field Values
Method Detail

setOperator

public void setOperator(int op)
Set the operator.

Parameters:
op - Value to set.

getOperator

public int getOperator()
Get the operator.

Returns:
int value as operator

getOperand1

public IASTExpression getOperand1()
Get the first operand.

Returns:
IASTExpression representing operand 1.

setOperand1

public void setOperand1(IASTExpression expression)
Set the first operand.

Parameters:
expression - IASTExpression value.

getOperand2

public IASTExpression getOperand2()
Get the second operand.

Returns:
IASTExpression representing operand 2.

setOperand2

public void setOperand2(IASTExpression expression)
Parameters:
expression - IASTExpression value

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.