Eclipse CDT
7.0

org.eclipse.cdt.core.model
Interface ITemplate

All Known Subinterfaces:
IFunctionTemplate, IFunctionTemplateDeclaration, IMethodTemplate, IMethodTemplateDeclaration, IStructureTemplate, IStructureTemplateDeclaration

public interface ITemplate

The interface is used to model, class or function templates and their partial or explicit specializations.


Method Summary
 int getNumberOfTemplateParameters()
          Returns the number of template parameters
 java.lang.String[] getTemplateArguments()
          Returns the template arguments in a printable format.
 java.lang.String[] getTemplateParameterTypes()
          Returns the template parameter types.
 java.lang.String getTemplateSignature()
          Returns the template signature The signature depends on the type of template.
 

Method Detail

getTemplateParameterTypes

java.lang.String[] getTemplateParameterTypes()
Returns the template parameter types.

Returns:
String

getTemplateArguments

java.lang.String[] getTemplateArguments()
Returns the template arguments in a printable format. For templates that are no specialization, this will return the names of the template parameters.

Since:
5.2

getTemplateSignature

java.lang.String getTemplateSignature()
                                      throws CModelException
Returns the template signature The signature depends on the type of template. If it is a template of a structure or a variable, it will include the structure name and the list of parameters. If it is a template of a method or a function, it might include the class name with its template parameters (if any), as well as the function/method name, its template parameters, followed by its normal parameters.

Returns:
String
Throws:
CModelException

getNumberOfTemplateParameters

int getNumberOfTemplateParameters()
Returns the number of template parameters


Eclipse CDT
7.0

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