Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTNode, IASTPointerOperator
All Known Subinterfaces:
ICASTPointer, ICPPASTPointerToMember, IGPPASTPointer, IGPPASTPointerToMember

public interface IASTPointer
extends IASTPointerOperator

This represents the good ol' * pointer operator.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTPointerOperator
EMPTY_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTPointer copy()
          Returns a mutable copy of the tree rooted at this node.
 boolean isConst()
          Is this a const pointer?
 boolean isVolatile()
          Is this a volatile pointer?
 void setConst(boolean value)
          Set this to be a const pointer (true/false).
 void setVolatile(boolean value)
          Set this to be a volatile pointer (true/false).
 
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
 

Method Detail

isConst

boolean isConst()
Is this a const pointer?

Returns:
boolean

isVolatile

boolean isVolatile()
Is this a volatile pointer?

Returns:
boolean

setConst

void setConst(boolean value)
Set this to be a const pointer (true/false).

Parameters:
value - - the value

setVolatile

void setVolatile(boolean value)
Set this to be a volatile pointer (true/false).

Parameters:
value - - the value

copy

IASTPointer copy()
Description copied from interface: IASTNode
Returns a mutable copy of the tree rooted at this node. The following postconditions hold: 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.

Specified by:
copy in interface IASTNode
Specified by:
copy in interface IASTPointerOperator
Since:
5.1

Eclipse CDT
Pre-release 3.0

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