Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTTemplateDeclaration

All Superinterfaces:
IASTDeclaration, IASTNode

public interface ICPPASTTemplateDeclaration
extends IASTDeclaration

Template declaration.


Field Summary
static ASTNodeProperty OWNED_DECLARATION
          OWNED_DECLARATION is the subdeclaration that we maintain grammatically.
static ASTNodeProperty PARAMETER
          PARAMETER is used for template parameters.
 
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 addTemplateParamter(ICPPASTTemplateParameter parm)
          Add a template parameter.
 IASTDeclaration getDeclaration()
          Get templated declaration.
 ICPPTemplateScope getScope()
          get the template scope representing this declaration in the logical tree
 ICPPASTTemplateParameter[] getTemplateParameters()
          Get template parameters.
 boolean isExported()
          Is the export keyword used?
 void setDeclaration(IASTDeclaration declaration)
          Set the templated declaration.
 void setExported(boolean value)
          Should the export keyword be used?
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

OWNED_DECLARATION

static final ASTNodeProperty OWNED_DECLARATION
OWNED_DECLARATION is the subdeclaration that we maintain grammatically.


PARAMETER

static final ASTNodeProperty PARAMETER
PARAMETER is used for template parameters.

Method Detail

isExported

boolean isExported()
Is the export keyword used?

Returns:
boolean

setExported

void setExported(boolean value)
Should the export keyword be used?

Parameters:
value - boolean

getDeclaration

IASTDeclaration getDeclaration()
Get templated declaration.

Returns:
IASTDeclaration

setDeclaration

void setDeclaration(IASTDeclaration declaration)
Set the templated declaration.

Parameters:
declaration - IASTDeclaration

getTemplateParameters

ICPPASTTemplateParameter[] getTemplateParameters()
Get template parameters.

Returns:
ICPPASTTemplateParameter []

addTemplateParamter

void addTemplateParamter(ICPPASTTemplateParameter parm)
Add a template parameter.

Parameters:
parm - ICPPASTTemplateParameter

getScope

ICPPTemplateScope getScope()
get the template scope representing this declaration in the logical tree

Returns:
ICPPTemplateScope

Eclipse CDT
Pre-release 3.0

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