Package cruise.umple.compiler
Class XtextGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.XtextGenerator
- All Implemented Interfaces:
CodeGenerator
public class XtextGenerator extends CodeGeneratorWithSubptions
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
XtextGenerator.PatternHandler
-
Constructor Summary
Constructors Constructor Description XtextGenerator()
-
Method Summary
Modifier and Type Method Description boolean
addPattern(XtextGenerator.PatternHandler aPattern)
void
delete()
void
generate()
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.UmpleModel
getModel()
java.lang.String
getOutput()
java.lang.String
getOutputPath()
XtextGenerator.PatternHandler
getPattern(int index)
XtextGenerator.PatternHandler[]
getPatterns()
java.util.HashSet<java.lang.String>
getTerminals()
boolean
hasPatterns()
int
indexOfPattern(XtextGenerator.PatternHandler aPattern)
int
numberOfPatterns()
boolean
removePattern(XtextGenerator.PatternHandler aPattern)
boolean
setModel(UmpleModel aModel)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setOutput(java.lang.String aOutput)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setOutputPath(java.lang.String aOutputPath)
boolean
setTerminals(java.util.HashSet<java.lang.String> aTerminals)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, postpare, prepare, removeSuboption, setSuboption
-
Constructor Details
-
XtextGenerator
public XtextGenerator()
-
-
Method Details
-
addPattern
-
removePattern
-
setModel
Description copied from class:CodeGeneratorWithSubptions
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setModel
in interfaceCodeGenerator
- Overrides:
setModel
in classCodeGeneratorWithSubptions
-
setOutputPath
public boolean setOutputPath(java.lang.String aOutputPath) -
setOutput
public boolean setOutput(java.lang.String aOutput)Description copied from class:CodeGeneratorWithSubptions
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setOutput
in interfaceCodeGenerator
- Overrides:
setOutput
in classCodeGeneratorWithSubptions
-
setTerminals
public boolean setTerminals(java.util.HashSet<java.lang.String> aTerminals) -
getPattern
-
getPatterns
-
numberOfPatterns
public int numberOfPatterns() -
hasPatterns
public boolean hasPatterns() -
indexOfPattern
-
getModel
-
getOutputPath
public java.lang.String getOutputPath() -
getOutput
public java.lang.String getOutput() -
getTerminals
public java.util.HashSet<java.lang.String> getTerminals() -
delete
public void delete()- Overrides:
delete
in classCodeGeneratorWithSubptions
-
generate
public void generate()Description copied from class:CodeGeneratorWithSubptions
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
generate
in interfaceCodeGenerator
- Overrides:
generate
in classCodeGeneratorWithSubptions
-
toString
public java.lang.String toString()- Overrides:
toString
in classCodeGeneratorWithSubptions
-