public class Decorator extends GeneratedType
Modifier and Type | Class and Description |
---|---|
static class |
Decorator.Builder |
Writable.Context
Modifier and Type | Method and Description |
---|---|
SortedSet<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
protected String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
addAnnotation, addWithDependents, getAccessibility, getAnnotations, getConstructor, getFields, getInterfaceName, getInterfacePackage, getMethods, getName, getPackageName, getSuperClassName, getVersionInformation, isSuppressGeneratorTimestamp, isSuppressGeneratorVersionComment, removeConstructor, setFields
write
getTemplateNameForClass
public SortedSet<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class GeneratedType
null
.protected String getTemplateName()
FreeMarkerWritable
FreeMarkerWritable.getTemplateNameForClass(Class)
is called with getClass()
, but this can be customized by
overriding this method if required.getTemplateName
in class FreeMarkerWritable
null
.Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.