public final class BuilderGenerator extends Object implements CodeGenerator
Modifier and Type | Field and Description |
---|---|
static String |
BUILDER
Constant used as sufix for builder name.
|
Constructor and Description |
---|
BuilderGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generate(Type type)
Generates JAVA source code for generated type
Type . |
String |
getUnitName(Type type)
Returns name of
type parameter. |
boolean |
isAcceptable(Type type)
Passes via list of implemented types in
type . |
public static final String BUILDER
public boolean isAcceptable(Type type)
type
.isAcceptable
in interface CodeGenerator
type
- JAVA Type
Augmentable
.public String generate(Type type)
Type
. The code
is generated according to the template source code template which is
written in XTEND language.generate
in interface CodeGenerator
type
- Input type to be processedpublic String getUnitName(Type type)
CodeGenerator
type
parameter.getUnitName
in interface CodeGenerator
type
- Input type to be processedCopyright © 2019 OpenDaylight. All rights reserved.