Interface CodeGenerator
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 oftypeparameter.booleanisAcceptable(Type type) Checks if the concrete instance oftypefit 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 oftypefit 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 oftypeparameter.- Parameters:
type- Input type to be processed- Returns:
- name of generated unit
-