public class BuilderTemplate extends BaseTemplate
importMap, type
Constructor and Description |
---|
BuilderTemplate(GeneratedType genType)
Constructs new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
body()
Template method which generates JAVA class body for builder class and for IMPL class.
|
protected String |
formatDataForJavaDoc(GeneratedType type) |
protected CharSequence |
generateEquals()
Template method which generates the method
equals() . |
protected CharSequence |
generateHashCode()
Template method which generates the method
hashCode() . |
CharSequence |
generateToString(Collection<GeneratedProperty> properties) |
boolean |
hasImplementsFromUses(GeneratedType type)
Method is used to find out if given type implements any interface from uses.
|
CharSequence |
implementedInterfaceGetter() |
boolean |
isLocalInnerClass(String importedTypePackageName) |
asArguments, asArgumentsDeclaration, asCode, asJavadoc, asLink, emitConstant, encodeJavadocSymbols, fieldName, findProperty, formatDataForJavaDoc, formatDataForJavaDoc, formatToParagraph, generate, generateParameters, getRestrictions, getterMethod, getterMethodName, importedName, importedName, imports, isAccessor, packageDefinition, propertyNameFromGetter, setterMethod, wrapToDocumentation
public BuilderTemplate(GeneratedType genType)
IllegalArgumentException
- if genType
equals null
public boolean isLocalInnerClass(String importedTypePackageName)
isLocalInnerClass
in class BaseTemplate
public CharSequence body()
body
in class BaseTemplate
public boolean hasImplementsFromUses(GeneratedType type)
protected CharSequence generateHashCode()
hashCode()
.hashCode()
method definition in JAVA formatprotected CharSequence generateEquals()
equals()
.equals()
method definition in JAVA formatpublic CharSequence generateToString(Collection<GeneratedProperty> properties)
generateToString
in class BaseTemplate
public CharSequence implementedInterfaceGetter()
protected String formatDataForJavaDoc(GeneratedType type)
formatDataForJavaDoc
in class BaseTemplate
Copyright © 2019 OpenDaylight. All rights reserved.