|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTBinaryExpression
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_ellipses
For gcc compilers, only. |
static int |
op_equals
equals == |
static int |
op_greaterEqual
greater than or equals >= |
static int |
op_greaterThan
greater than > |
static int |
op_last
Deprecated. all constants must be defined here, to avoid using the same value twice. |
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_max
For g++, only. |
static int |
op_min
For g++, only. |
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_pmarrow
For c++, only. |
static int |
op_pmdot
For c==, only. |
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 | |
---|---|
IASTBinaryExpression |
copy()
Returns a mutable copy of the tree rooted at this node. |
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, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
Field Detail |
---|
static final ASTNodeProperty OPERAND_ONE
IASTBinaryExpression
and an IASTExpression
representing the lhs.
static final ASTNodeProperty OPERAND_TWO
IASTBinaryExpression
and an IASTExpression
representing the rhs.
static final int op_multiply
static final int op_divide
static final int op_modulo
static final int op_plus
static final int op_minus
static final int op_shiftLeft
static final int op_shiftRight
static final int op_lessThan
static final int op_greaterThan
static final int op_lessEqual
static final int op_greaterEqual
static final int op_binaryAnd
static final int op_binaryXor
static final int op_binaryOr
static final int op_logicalAnd
static final int op_logicalOr
static final int op_assign
static final int op_multiplyAssign
static final int op_divideAssign
static final int op_moduloAssign
static final int op_plusAssign
static final int op_minusAssign
static final int op_shiftLeftAssign
static final int op_shiftRightAssign
static final int op_binaryAndAssign
static final int op_binaryXorAssign
static final int op_binaryOrAssign
static final int op_equals
static final int op_notequals
static final int op_pmdot
op_pmdot
pointer-to-member field dereference.
static final int op_pmarrow
op_pmarrow
pointer-to-member pointer dereference.
static final int op_max
op_max
represents >?
static final int op_min
op_min
represents
static final int op_ellipses
op_ellipses
represents ... as used for case ranges.
@Deprecated static final int op_last
Method Detail |
---|
void setOperator(int op)
op
- Value to set.int getOperator()
IASTExpression getOperand1()
IASTExpression
representing operand 1.void setOperand1(IASTExpression expression)
expression
- IASTExpression
value.IASTExpression getOperand2()
IASTExpression
representing operand 2.void setOperand2(IASTExpression expression)
expression
- IASTExpression
valueIASTBinaryExpression copy()
IASTNode
copy.getParent() == null
copy.getPropertyInParent() == null
copy.isFrozen() == false
Preprocessor nodes do not currently support being copied.
Implicit name nodes are not copied, instead they can be regenerated
if required.
copy
in interface IASTExpression
copy
in interface IASTNode
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |