Class BuilderImplTemplate
java.lang.Object
org.opendaylight.yangtools.binding.codegen.BaseTemplate
org.opendaylight.yangtools.binding.codegen.AbstractBuilderTemplate
org.opendaylight.yangtools.binding.codegen.BuilderImplTemplate
-
Field Summary
Fields inherited from class org.opendaylight.yangtools.binding.codegen.AbstractBuilderTemplate
augmentType, keyType, properties, targetType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()
protected CharSequence
generateCopyAugmentation
(Type implType) protected CharSequence
generateCopyKeys
(List<GeneratedProperty> keyProps) protected CharSequence
generateCopyNonKeys
(Collection<org.opendaylight.yangtools.binding.codegen.BuilderGeneratedProperty> props) protected CharSequence
Template method which generates the methodequals()
.protected CharSequence
Template method which generates the methodhashCode()
.protected CharSequence
Template method which generates the methodtoString()
.protected static Optional
<MethodSignature> getterByName
(Iterable<MethodSignature> methods, String implMethodName) getterMethod
(GeneratedProperty field) Template method which generates the getter method forfield
protected static String
propertyNameFromGetter
(String getterName) protected static String
Methods inherited from class org.opendaylight.yangtools.binding.codegen.AbstractBuilderTemplate
generateCopyConstructor, generateDeprecatedAnnotation, generateFields, generateGetters
Methods inherited from class org.opendaylight.yangtools.binding.codegen.BaseTemplate
asArguments, asArgumentsDeclaration, asJavadoc, asLink, asNonNullArgumentsDeclaration, checkArgument, emitConstant, formatDataForJavaDoc, formatDataForJavaDoc, formatReference, formatToParagraph, generateAnnotation, generateCheckers, generateParameters, setterMethod, wrapToDocumentation
-
Constructor Details
-
BuilderImplTemplate
-
-
Method Details
-
body
-
generateDeprecatedAnnotation
- Specified by:
generateDeprecatedAnnotation
in classAbstractBuilderTemplate
-
getterMethod
Description copied from class:BaseTemplate
Template method which generates the getter method forfield
- Overrides:
getterMethod
in classBaseTemplate
- Parameters:
field
- generated property with data about field which is generated as the getter method- Returns:
- string with the getter method source code in JAVA format
-
generateHashCode
Template method which generates the methodhashCode()
.- Returns:
- string with the
hashCode()
method definition in JAVA format
-
generateEquals
Template method which generates the methodequals()
.- Returns:
- string with the
equals()
method definition in JAVA format
-
generateToString
Template method which generates the methodtoString()
.- Returns:
- string with the
toString()
method definition in JAVA format
-
generateCopyKeys
- Specified by:
generateCopyKeys
in classAbstractBuilderTemplate
-
generateCopyNonKeys
protected CharSequence generateCopyNonKeys(Collection<org.opendaylight.yangtools.binding.codegen.BuilderGeneratedProperty> props) - Specified by:
generateCopyNonKeys
in classAbstractBuilderTemplate
-
generateCopyAugmentation
- Specified by:
generateCopyAugmentation
in classAbstractBuilderTemplate
-
getterByName
protected static Optional<MethodSignature> getterByName(Iterable<MethodSignature> methods, String implMethodName) -
propertyNameFromGetter
-
propertyNameFromGetter
-