|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICPPASTLinkageSpecification
This interface represents a linkage specification. e.g. extern "C" { ... }
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
IASTNode.CopyStyle |
Field Summary | |
---|---|
static ASTNodeProperty |
OWNED_DECLARATION
OWNED_DECLARATION is the owned declaration role for
linkages. |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclaration |
---|
EMPTY_DECLARATION_ARRAY |
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
---|
EMPTY_NODE_ARRAY |
Method Summary | |
---|---|
void |
addDeclaration(IASTDeclaration declaration)
Add another declaration to the linkage. |
ICPPASTLinkageSpecification |
copy()
Returns a mutable copy of the tree rooted at this node. |
ICPPASTLinkageSpecification |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node. |
IASTDeclaration[] |
getDeclarations()
Get all of the declarations. |
java.lang.String |
getLiteral()
Get the "literal" that represents the linkage. |
void |
setLiteral(java.lang.String value)
Set the "literal" that represents the linkage. |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclarationListOwner |
---|
getDeclarations |
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 ASTNodeProperty OWNED_DECLARATION
OWNED_DECLARATION
is the owned declaration role for
linkages.
Method Detail |
---|
java.lang.String getLiteral()
void setLiteral(java.lang.String value)
value
- StringIASTDeclaration[] getDeclarations()
IASTDeclaration[]
void addDeclaration(IASTDeclaration declaration)
addDeclaration
in interface IASTDeclarationListOwner
declaration
- IASTDeclaration
ICPPASTLinkageSpecification 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 IASTDeclaration
copy
in interface IASTNode
ICPPASTLinkageSpecification 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 IASTDeclaration
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 |