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 voidcalculate()voiddelete()UmpleModelgetModel()Contains various aspects from an Umple file (.ump), such as classes, attributes, associations and methods.java.lang.StringBuildergetResultCode()booleansetModel(UmpleModel aModel)Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.booleansetResultCode(java.lang.StringBuilder aResultCode)java.lang.StringtoString()Methods inherited from class cruise.umple.compiler.SimpleMetricsGenerator
_genCell, _genTopHeader, genCell, genCellFloat, genCellInt, genCellString, generate, genTopHeader, getCode, getOutput, setCode, setOutput, writeModelMethods 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:CodeGeneratorWithSubptionsAllows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setModelin interfaceCodeGenerator- Overrides:
setModelin classSimpleMetricsGenerator
-
getResultCode
public java.lang.StringBuilder getResultCode() -
getModel
Description copied from class:SimpleMetricsGeneratorContains 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:
getModelin classSimpleMetricsGenerator
-
delete
public void delete()- Overrides:
deletein classSimpleMetricsGenerator
-
calculate
public void calculate() -
toString
public java.lang.String toString()- Overrides:
toStringin classSimpleMetricsGenerator
-