Interface CodeGenerator
- All Known Implementing Classes:
BuilderGenerator
,EnumGenerator
,InterfaceGenerator
,TOGenerator
public interface CodeGenerator
Transforms virtual data to the concrete code in programming language.
-
Method Summary
Modifier and TypeMethodDescriptionGenerates code fortype
.getUnitName
(Type type) Returns name oftype
parameter.boolean
isAcceptable
(Type type) Checks if the concrete instance oftype
fit to concrete implementation of this interface (e.g.
-
Method Details
-
generate
Generates code fortype
.- Parameters:
type
- Input type to be processed- Returns:
- generated JAVA code
-
isAcceptable
Checks if the concrete instance oftype
fit to concrete implementation of this interface (e.g. method return true if inEnumGenerator
(which implements this interface) has input parameter of type Enumeration (which is subtype of Type).- Parameters:
type
- Input type to be processed- Returns:
- true if type is acceptable for processing.
-
getUnitName
Returns name oftype
parameter.- Parameters:
type
- Input type to be processed- Returns:
- name of generated unit
-