@Beta
public interface CodeGenerator
Modifier and Type | Method and Description |
---|---|
String |
generate(Type type)
Generates code for
type . |
org.opendaylight.yangtools.concepts.Identifier |
getUnitName(Type type)
Returns name of
type parameter. |
boolean |
isAcceptable(Type type)
Checks if the concrete instance of
type fit to concrete
implementation of this interface. |
String generate(Type type)
type
.type
- Input type to be processedboolean isAcceptable(Type type)
type
fit to concrete
implementation of this interface.
(e. g. method return true if in EnumGenerator
(which
implements this interface) has input parameter of type Enumeration (which
is subtype of Type)type
- Input type to be processedorg.opendaylight.yangtools.concepts.Identifier getUnitName(Type type)
type
parameter.type
- Input type to be processedCopyright © 2019 OpenDaylight. All rights reserved.