Package spoon.template
Class BlockTemplate
-
Constructor Summary
-
Method Summary
Methods inherited from class spoon.template.AbstractTemplate
addGeneratedBy, getFactory, isAddGeneratedBy, isValid, isWellFormed, withPartialEvaluation
-
Constructor Details
-
BlockTemplate
public BlockTemplate()Creates a new block template parameter.
-
-
Method Details
-
getBlock
Returns the block. -
apply
Description copied from interface:Template
Returns the code which results from applying the template.- Parameters:
targetType
- the type that defines the context of the substitution. It may be null for templates with no context.
-
S
-
block
This method must be implemented to define the template block.- Throws:
Throwable
-