Package cruise.umple.compiler
Class ClassMetrics
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.SimpleMetricsGenerator
cruise.umple.compiler.ClassMetrics
- All Implemented Interfaces:
CodeGenerator
public class ClassMetrics extends SimpleMetricsGenerator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClassMetrics()
-
Method Summary
Modifier and Type Method Description void
calculate()
void
delete()
UmpleModel
getModel()
Contains various aspects from an Umple file (.ump), such as classes, attributes, associations and methods.java.lang.StringBuilder
getResultCode()
boolean
setModel(UmpleModel aModel)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setResultCode(java.lang.StringBuilder aResultCode)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.SimpleMetricsGenerator
_genCell, _genTopHeader, genCell, genCellFloat, genCellInt, genCellString, generate, genTopHeader, getCode, getOutput, setCode, setOutput, writeModel
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, postpare, prepare, removeSuboption, setSuboption
-
Constructor Details
-
ClassMetrics
public ClassMetrics()
-
-
Method Details
-
setResultCode
public boolean setResultCode(java.lang.StringBuilder aResultCode) -
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 classSimpleMetricsGenerator
-
getResultCode
public java.lang.StringBuilder getResultCode() -
getModel
Description copied from class:SimpleMetricsGenerator
Contains various aspects from an Umple file (.ump), such as classes, attributes, associations and methods. Generated output is based off of what's contained in here.- Overrides:
getModel
in classSimpleMetricsGenerator
-
delete
public void delete()- Overrides:
delete
in classSimpleMetricsGenerator
-
calculate
public void calculate() -
toString
public java.lang.String toString()- Overrides:
toString
in classSimpleMetricsGenerator
-