| spoon.template.TemplateParameter
TemplateParameter | public interface TemplateParameter (Code) | | This interface defines a typed template parameter. It is parameterized by
T , the type of the template parameter, which can be retrieved
by the
TemplateParameter.S() method. For more details on how to use template
parameters, see
Template .
|
Method Summary | |
T | S() Gets the type of the template parameter. | CtCodeElement | getSubstitution(CtSimpleType> targetType) Returns the code which must be substituted to this template parameter,
depending on its value. |
S | T S()(Code) | | Gets the type of the template parameter. This methods has no runtime
meaning (should return a null reference) but is used as a
marker in a template code. When generating a template code, each
invocation of this method will be substituted with the result of the
TemplateParameter.getSubstitution(CtSimpleType) method.
|
getSubstitution | CtCodeElement getSubstitution(CtSimpleType> targetType)(Code) | | Returns the code which must be substituted to this template parameter,
depending on its value.
Parameters: targetType - the type that defines the context of the substitution (forreference redirection). |
|
|