Package cruise.umple.compiler
Class MethodTraceItem
java.lang.Object
cruise.umple.compiler.MethodTraceItem
- All Implemented Interfaces:
TraceItem
public class MethodTraceItem extends java.lang.Object implements TraceItem
-
Constructor Summary
Constructors Constructor Description MethodTraceItem(TraceDirective aTraceDirective)
-
Method Summary
Modifier and Type Method Description boolean
addMethod(Method aMethod)
boolean
addMethodAt(Method aMethod, int index)
boolean
addOrMoveMethodAt(Method aMethod, int index)
void
delete()
boolean
getConditionallyWhere()
java.lang.String
getConditionType()
ConstraintTree
getConstraint()
boolean
getEntry()
boolean
getExit()
java.lang.String
getExtremities(CodeTranslator gen, java.lang.String name)
java.lang.Boolean
getIsPost()
java.lang.Boolean
getIsPre()
Method
getMethod(int index)
java.util.List<Method>
getMethods()
java.lang.String
getPeriodClause()
Position
getPosition()
TraceDirective
getTraceDirective()
java.lang.String
getTracerType()
boolean
hasMethods()
int
indexOfMethod(Method aMethod)
boolean
isConditionallyWhere()
static int
minimumNumberOfMethods()
int
numberOfMethods()
boolean
removeMethod(Method aMethod)
boolean
setConditionallyWhere(boolean aConditionallyWhere)
boolean
setConditionType(java.lang.String aConditionType)
boolean
setConstraint(ConstraintTree aConstraint)
boolean
setEntry(boolean aEntry)
boolean
setExit(boolean aExit)
boolean
setPeriodClause(java.lang.String aPeriodClause)
boolean
setPosition(Position aPosition)
boolean
setTraceDirective(TraceDirective aTraceDirective)
java.lang.String
toString()
java.lang.String
trace(CodeTranslator gen, java.lang.Object o, java.lang.String methodname, UmpleClass uClass, java.lang.String... args)
-
Constructor Details
-
Method Details
-
setConstraint
-
setEntry
public boolean setEntry(boolean aEntry) -
setExit
public boolean setExit(boolean aExit) -
setPosition
-
setPeriodClause
public boolean setPeriodClause(java.lang.String aPeriodClause) -
setConditionallyWhere
public boolean setConditionallyWhere(boolean aConditionallyWhere) -
setConditionType
public boolean setConditionType(java.lang.String aConditionType) -
getConstraint
-
getTracerType
public java.lang.String getTracerType()- Specified by:
getTracerType
in interfaceTraceItem
-
getEntry
public boolean getEntry() -
getExit
public boolean getExit() -
getPosition
-
getPeriodClause
public java.lang.String getPeriodClause()- Specified by:
getPeriodClause
in interfaceTraceItem
-
getConditionallyWhere
public boolean getConditionallyWhere() -
getConditionType
public java.lang.String getConditionType() -
isConditionallyWhere
public boolean isConditionallyWhere() -
getMethod
-
getMethods
-
numberOfMethods
public int numberOfMethods() -
hasMethods
public boolean hasMethods() -
indexOfMethod
-
getTraceDirective
-
minimumNumberOfMethods
public static int minimumNumberOfMethods() -
addMethod
-
removeMethod
-
addMethodAt
-
addOrMoveMethodAt
-
setTraceDirective
-
delete
public void delete() -
getIsPre
public java.lang.Boolean getIsPre() -
getIsPost
public java.lang.Boolean getIsPost() -
trace
public java.lang.String trace(CodeTranslator gen, java.lang.Object o, java.lang.String methodname, UmpleClass uClass, java.lang.String... args) -
getExtremities
- Specified by:
getExtremities
in interfaceTraceItem
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-