Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTExpression, IASTNode
All Known Subinterfaces:
ICPPASTUnaryExpression, IGNUASTUnaryExpression

public interface IASTUnaryExpression
extends IASTExpression

This interface is used to represent a unary expression in the AST.


Field Summary
static int op_amper
          Operator ampersand.
static int op_bracketedPrimary
          A bracketed expression.
static int op_last
          op_last is made available for subclasses.
static int op_minus
          Operator minus.
static int op_not
          not.
static int op_plus
          Operator plus.
static int op_postFixDecr
          Postfix decrement.
static int op_postFixIncr
          Postfix increment.
static int op_prefixDecr
          Prefix decrement.
static int op_prefixIncr
          Prefix increment.
static int op_sizeof
          sizeof.
static int op_star
          Operator star.
static int op_tilde
          Operator tilde.
static ASTNodeProperty OPERAND
          OPERAND represents the relationship between an IASTUnaryExpression and it's nested IASTExpression.
 
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 getOperand()
          Get the operand.
 int getOperator()
          Get the operator/kind.
 void setOperand(IASTExpression expression)
          Set the operand.
 void setOperator(int value)
          Set the operator/kind.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

op_prefixIncr

static final int op_prefixIncr
Prefix increment. op_prefixIncr ++exp

See Also:
Constant Field Values

op_prefixDecr

static final int op_prefixDecr
Prefix decrement. op_prefixDecr --exp

See Also:
Constant Field Values

op_plus

static final int op_plus
Operator plus. op_plus ==> + exp

See Also:
Constant Field Values

op_minus

static final int op_minus
Operator minus. op_minux ==> -exp

See Also:
Constant Field Values

op_star

static final int op_star
Operator star. op_star ==> *exp

See Also:
Constant Field Values

op_amper

static final int op_amper
Operator ampersand. op_amper ==> &exp

See Also:
Constant Field Values

op_tilde

static final int op_tilde
Operator tilde. op_tilde ==> ~exp

See Also:
Constant Field Values

op_not

static final int op_not
not. op_not ==> ! exp

See Also:
Constant Field Values

op_sizeof

static final int op_sizeof
sizeof. op_sizeof ==> sizeof exp

See Also:
Constant Field Values

op_postFixIncr

static final int op_postFixIncr
Postfix increment. op_postFixIncr ==> exp++

See Also:
Constant Field Values

op_postFixDecr

static final int op_postFixDecr
Postfix decrement. op_bracketedPrimary ==> exp--

See Also:
Constant Field Values

op_bracketedPrimary

static final int op_bracketedPrimary
A bracketed expression. op_bracketedPrimary ==> ( exp )

See Also:
Constant Field Values

op_last

static final int op_last
op_last is made available for subclasses.

See Also:
Constant Field Values

OPERAND

static final ASTNodeProperty OPERAND
OPERAND represents the relationship between an IASTUnaryExpression and it's nested IASTExpression.

Method Detail

getOperator

int getOperator()
Get the operator/kind.

Returns:
(int)

setOperator

void setOperator(int value)
Set the operator/kind.

Parameters:
value - (int) value

getOperand

IASTExpression getOperand()
Get the operand.

Returns:
IASTExpression

setOperand

void setOperand(IASTExpression expression)
Set the operand.

Parameters:
expression - IASTExpression

Eclipse CDT
Pre-release 3.0

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