|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTUnaryExpression
This interface is used to represent a unary expression in the AST.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression |
---|
IASTExpression.ValueCategory |
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
IASTNode.CopyStyle |
Field Summary | |
---|---|
static int |
op_alignOf
For gnu parsers, only. |
static int |
op_amper
Operator ampersand. |
static int |
op_bracketedPrimary
A bracketed expression. |
static int |
op_last
Deprecated. all constants must be defined in this interface |
static int |
op_minus
Operator minus. |
static int |
op_noexcept
For c++, only: noexcept ( expression ) |
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_sizeofParameterPack
For c++, only: 'sizeof... ( parameterPack )' |
static int |
op_star
Operator star. |
static int |
op_throw
for c++, only. |
static int |
op_tilde
Operator tilde. |
static int |
op_typeid
for c++, only. |
static int |
op_typeof
Deprecated. Shall not be used, 'typeof something' is not an expression, it's a declaration specifier. |
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 | |
---|---|
IASTUnaryExpression |
copy()
Returns a mutable copy of the tree rooted at this node. |
IASTUnaryExpression |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node. |
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.IASTExpression |
---|
getExpressionType, getValueCategory, isLValue |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
Field Detail |
---|
static final int op_prefixIncr
op_prefixIncr
++exp
static final int op_prefixDecr
op_prefixDecr
--exp
static final int op_plus
op_plus
==> +exp
static final int op_minus
op_minux
==> -exp
static final int op_star
op_star
==> *exp
static final int op_amper
op_amper
==> &exp
static final int op_tilde
op_tilde
==> ~exp
static final int op_not
op_not
==> ! exp
static final int op_sizeof
op_sizeof
==> sizeof exp
static final int op_postFixIncr
op_postFixIncr
==> exp++
static final int op_postFixDecr
op_bracketedPrimary
==> exp--
static final int op_bracketedPrimary
op_bracketedPrimary
==> ( exp )
static final int op_throw
op_throw
throw exp
static final int op_typeid
op_typeid
= typeid( exp )
@Deprecated static final int op_typeof
static final int op_alignOf
op_alignOf
is used for __alignOf( unaryExpression ) type
expressions.
static final int op_sizeofParameterPack
static final int op_noexcept
@Deprecated static final int op_last
op_last
is made available for subclasses.
static final ASTNodeProperty OPERAND
OPERAND
represents the relationship between an IASTUnaryExpression
and
it's nested IASTExpression
.
Method Detail |
---|
int getOperator()
void setOperator(int value)
value
- (int) valueIASTExpression getOperand()
IASTExpression
void setOperand(IASTExpression expression)
expression
- IASTExpression
IASTUnaryExpression 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.
Calling this method is equivalent
copy
in interface IASTExpression
copy
in interface IASTInitializerClause
copy
in interface IASTNode
IASTUnaryExpression copy(IASTNode.CopyStyle style)
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 IASTInitializerClause
copy
in interface IASTNode
style
- IASTNode.CopyStyle
create a copy with or without locations. Please see
IASTNode.CopyStyle
for restrictions on copies with Locations.
|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |