Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTName, IASTNameOwner, IASTNode, org.eclipse.cdt.core.dom.IName

public interface ICPPASTTemplateId
extends IASTName, IASTNameOwner


Field Summary
static IASTNode[] EMPTY_ARG_ARRAY
          Constant.
static ASTNodeProperty TEMPLATE_ID_ARGUMENT
          TEMPLATE_ID_ARGUMENT = template id argument.
static ASTNodeProperty TEMPLATE_NAME
          TEMPLATE_NAME is the IASTName.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTName
EMPTY_NAME_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.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
 
Method Summary
 void addTemplateArgument(IASTExpression expression)
          Add template argument.
 void addTemplateArgument(IASTTypeId typeId)
          Add template argument.
 IASTNode[] getTemplateArguments()
          Get all template arguments.
 IASTName getTemplateName()
          Get the name.
 void setTemplateName(IASTName name)
          Set the name.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTName
getBinding, getCompletionContext, getLinkage, resolveBinding, setBinding
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.IName
getFileLocation, isDeclaration, isDefinition, isReference, toCharArray
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
 

Field Detail

TEMPLATE_NAME

public static final ASTNodeProperty TEMPLATE_NAME
TEMPLATE_NAME is the IASTName.


TEMPLATE_ID_ARGUMENT

public static final ASTNodeProperty TEMPLATE_ID_ARGUMENT
TEMPLATE_ID_ARGUMENT = template id argument.


EMPTY_ARG_ARRAY

public static final IASTNode[] EMPTY_ARG_ARRAY
Constant.

Method Detail

getTemplateName

public IASTName getTemplateName()
Get the name.

Returns:
IASTName

setTemplateName

public void setTemplateName(IASTName name)
Set the name.

Parameters:
name - IASTName

addTemplateArgument

public void addTemplateArgument(IASTTypeId typeId)
Add template argument.

Parameters:
typeId - IASTTypeId

addTemplateArgument

public void addTemplateArgument(IASTExpression expression)
Add template argument.

Parameters:
expression - IASTExpression

getTemplateArguments

public IASTNode[] getTemplateArguments()
Get all template arguments. (as nodes)

Returns:
IASTNode []

Eclipse CDT
Pre-release 3.0

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