public interface IASTCastExpression extends IASTExpression
IASTExpression.ValueCategoryIASTNode.CopyStyle| Modifier and Type | Field and Description |
|---|---|
static int |
op_cast
op_cast represents a traditional cast. |
static int |
op_last
op_last for subinterfaces |
static ASTNodeProperty |
OPERAND
OPERAND represents the relationship between a cast
expression and the expression it is casting (operand). |
static ASTNodeProperty |
TYPE_ID
TYPE_ID represents the relationship between a cast
expression and the type cast to. |
EMPTY_EXPRESSION_ARRAYEMPTY_NODE_ARRAY| Modifier and Type | Method and Description |
|---|---|
IASTCastExpression |
copy()
Returns a mutable copy of the tree rooted at this node.
|
IASTCastExpression |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTExpression |
getOperand()
Get expression being cast.
|
int |
getOperator()
Get the type of cast (as an operator).
|
IASTTypeId |
getTypeId()
Get the typeId.
|
void |
setOperand(IASTExpression expression)
Set the expression being cast.
|
void |
setOperator(int value)
Set the operator (type of cast).
|
void |
setTypeId(IASTTypeId typeId)
Set the typeId.
|
getExpressionType, getValueCategory, isLValueaccept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParentstatic final ASTNodeProperty TYPE_ID
TYPE_ID represents the relationship between a cast
expression and the type cast to.static final ASTNodeProperty OPERAND
OPERAND represents the relationship between a cast
expression and the expression it is casting (operand).static final int op_cast
op_cast represents a traditional cast.static final int op_last
op_last for subinterfacesint getOperator()
void setOperator(int value)
value - IASTExpression getOperand()
IASTExpression the expression being castvoid setOperand(IASTExpression expression)
expression - IASTExpression the expression to be castvoid setTypeId(IASTTypeId typeId)
typeId - IASTTypeId to be set.IASTTypeId getTypeId()
IASTTypeId representing type being casted to.IASTCastExpression copy()
IASTNodecopy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor 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 to copy(CopyStyle.withoutLocations).
copy in interface IASTExpressioncopy in interface IASTInitializerClausecopy in interface IASTNodeIASTCastExpression copy(IASTNode.CopyStyle style)
IASTNodecopy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
copy in interface IASTExpressioncopy in interface IASTInitializerClausecopy in interface IASTNodestyle - IASTNode.CopyStyle create a copy with or without locations. Please see
IASTNode.CopyStyle for restrictions on copies with Locations.Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.