public class BuilderTemplate extends AbstractBuilderTemplate
Modifier and Type | Field and Description |
---|---|
static String |
BUILDER
Constant used as suffix for builder name.
|
augmentType, keyType, properties, targetType
Constructor and Description |
---|
BuilderTemplate(GeneratedType genType,
GeneratedType targetType,
Set<GeneratedProperty> properties,
Type augmentType,
Type keyType)
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 |
generateCopyAugmentation(Type implType) |
protected CharSequence |
generateCopyKeys(List<GeneratedProperty> keyProps) |
boolean |
hasImplementsFromUses(GeneratedType type)
Method is used to find out if given type implements any interface from uses.
|
boolean |
isLocalInnerClass(JavaTypeName name) |
generateAugmentField, generateCopyConstructor, generateFields, generateGetters, generateToString
asArguments, asArgumentsDeclaration, asCode, asJavadoc, asLink, checkArgument, emitConstant, encodeJavadocSymbols, fieldName, formatDataForJavaDoc, formatDataForJavaDoc, formatToParagraph, generate, generateCheckers, generateParameters, getterMethod, getterMethodName, hashCodeResult, propertyNameFromGetter, setterMethod, wrapToDocumentation
public static final String BUILDER
public BuilderTemplate(GeneratedType genType, GeneratedType targetType, Set<GeneratedProperty> properties, Type augmentType, Type keyType)
IllegalArgumentException
- if genType
equals null
public boolean isLocalInnerClass(JavaTypeName name)
public CharSequence body()
body
in class BaseTemplate
public boolean hasImplementsFromUses(GeneratedType type)
protected String formatDataForJavaDoc(GeneratedType type)
formatDataForJavaDoc
in class BaseTemplate
protected CharSequence generateCopyKeys(List<GeneratedProperty> keyProps)
generateCopyKeys
in class AbstractBuilderTemplate
protected CharSequence generateCopyAugmentation(Type implType)
generateCopyAugmentation
in class AbstractBuilderTemplate
Copyright © 2019 OpenDaylight. All rights reserved.