public class EnumTemplate extends BaseTemplate
importMap, type
Constructor and Description |
---|
EnumTemplate(Enumeration enums)
Constructs instance of this class with concrete
enums . |
Modifier and Type | Method and Description |
---|---|
CharSequence |
body()
Template method which generates enumeration body (declaration + enumeration items).
|
CharSequence |
generateAsInnerClass()
Generates only JAVA enumeration source code.
|
CharSequence |
writeEnumeration(Enumeration enumeration) |
CharSequence |
writeEnumItem(String name,
String mappedName,
int value,
String description) |
asArguments, asArgumentsDeclaration, asCode, asJavadoc, asLink, emitConstant, encodeJavadocSymbols, fieldName, findProperty, formatDataForJavaDoc, formatDataForJavaDoc, formatDataForJavaDoc, formatToParagraph, generate, generateParameters, generateToString, getRestrictions, getterMethod, getterMethodName, importedName, importedName, imports, isAccessor, isLocalInnerClass, packageDefinition, propertyNameFromGetter, setterMethod, wrapToDocumentation
public EnumTemplate(Enumeration enums)
enums
.enums
- enumeration which will be transformed to JAVA source codepublic CharSequence generateAsInnerClass()
public CharSequence writeEnumItem(String name, String mappedName, int value, String description)
public CharSequence body()
body
in class BaseTemplate
public CharSequence writeEnumeration(Enumeration enumeration)
Copyright © 2019 OpenDaylight. All rights reserved.