|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICPPASTNewExpression
This interface represents a new expression.
Field Summary | |
---|---|
static ASTNodeProperty |
NEW_INITIALIZER
NEW_INITIALIZER |
static ASTNodeProperty |
NEW_PLACEMENT
NEW_PLACEMENT is a role for an expression to represent the location of where the memory should be allocated. |
static ASTNodeProperty |
NEW_TYPEID_ARRAY_EXPRESSION
Expressions that go inside array brackets. |
static ASTNodeProperty |
TYPE_ID
TYPE_ID is the type being 'newed'. |
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 |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitNameOwner |
---|
IMPLICIT_NAME |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
EMPTY_NODE_ARRAY |
Method Summary | |
---|---|
void |
addNewTypeIdArrayExpression(IASTExpression expression)
Deprecated. the id-expressions are part of the type-id |
ICPPASTNewExpression |
copy()
Returns a mutable copy of the tree rooted at this node. |
IASTExpression |
getNewInitializer()
|
IASTExpression |
getNewPlacement()
Get the new placement (optional). |
IASTExpression[] |
getNewTypeIdArrayExpressions()
Deprecated. the id-expressions are part of the type-id. |
IASTTypeId |
getTypeId()
Get the type Id. |
boolean |
isArrayAllocation()
Returns true if this expression is allocating an array. |
boolean |
isGlobal()
Is this a ::new expression? |
boolean |
isNewTypeId()
Returns whether the the typeID a new type ID, which is the case when the type-id is provided without parenthesis. |
void |
setIsGlobal(boolean value)
Set this expression to bea global ::new expression (or not). |
void |
setIsNewTypeId(boolean value)
Set the type ID to be a new type ID. |
void |
setNewInitializer(IASTExpression expression)
|
void |
setNewPlacement(IASTExpression expression)
Set the new placement expression. |
void |
setTypeId(IASTTypeId typeId)
Set the type Id. |
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 |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitNameOwner |
---|
getImplicitNames |
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 NEW_PLACEMENT
static final ASTNodeProperty NEW_INITIALIZER
NEW_INITIALIZER
static final ASTNodeProperty TYPE_ID
static final ASTNodeProperty NEW_TYPEID_ARRAY_EXPRESSION
Method Detail |
---|
boolean isGlobal()
void setIsGlobal(boolean value)
value
- booleanIASTExpression getNewPlacement()
IASTExpression
void setNewPlacement(IASTExpression expression)
expression
- IASTExpression
IASTExpression getNewInitializer()
IASTExpression
void setNewInitializer(IASTExpression expression)
expression
- IASTExpression
IASTTypeId getTypeId()
IASTTypeId
void setTypeId(IASTTypeId typeId)
typeId
- IASTTypeId
boolean isNewTypeId()
void setIsNewTypeId(boolean value)
value
- booleanboolean isArrayAllocation()
@Deprecated IASTExpression[] getNewTypeIdArrayExpressions()
@Deprecated void addNewTypeIdArrayExpression(IASTExpression expression)
ICPPASTNewExpression 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 |