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.

Method Detail

insertAll

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. Members annotated with
Local or Parameter are not inserted.

Parameters:

targetType - the target type

template - the source template

createTypeFromTemplate

Generates a type (class, interface, enum, ...) from the template model `templateOfType`
by by substituting all the template parameters by their values.
Inserts all the methods, fields, constructors, initialization blocks (if
target is a class), inner types, super class and super interfaces.
Note!
This algorithm does NOT handle interfaces or annotations
Template, Local, TemplateParameter or Parameter
in a special way, it means they all will be added to the generated type too.
If you do not want to add them then clone your templateOfType and remove these nodes from that model before.