Package spoon.template
package spoon.template
This package defines a framework for well-typed pure-Java templates.
A template is a regular Java class that implements the Template
interface and
that contains some template parameters.
Related Documentation
-
InterfaceDescriptionA template code is simply a piece of code that uses a
TemplateParameter
's instance.This interface defines a typed template parameter. -
ClassDescriptionAbstractTemplate<T extends CtElement>handles the well-formedness and helper methods of templatesThis class represents a template parameter that defines a void block statement directly expressed in Java (no returns).This class represents an expression template parameter expressed in Java.Inserts all the methods, fields, constructors, initialization blocks (if target is a class), inner types, and super interfaces (except
Template
) from a given template by substituting all the template parameters by their values.This class represents a template parameter that defines a statement list directly expressed in Java (no returns).This class defines the substitution API for templates (seeTemplate
).This class defines an engine for matching a template to pieces of code. -
ExceptionDescriptionThis runtime exception can be throws when something wrong occurs in template operations such as loading, substitution, and matching.