Package cruise.umple.compiler
Class AttributeTraceItem
java.lang.Object
cruise.umple.compiler.AttributeTraceItem
- All Implemented Interfaces:
TraceItem
public class AttributeTraceItem extends java.lang.Object implements TraceItem
An element of a trace directive that indicates to trace one or more attributes
-
Constructor Summary
Constructors Constructor Description AttributeTraceItem(TraceDirective aTraceDirective)
-
Method Summary
Modifier and Type Method Description java.lang.Boolean
addAttribute(Attribute attr)
boolean
addOrMoveUmpleVariableAt(UmpleVariable aUmpleVariable, int index)
boolean
addUmpleVariable(UmpleVariable aUmpleVariable)
boolean
addUmpleVariableAt(UmpleVariable aUmpleVariable, int index)
void
delete()
Attribute
getAttribute(int index)
java.lang.String
getDuringClause()
java.lang.String
getExtremities(CodeTranslator gen, java.lang.String name)
Gets and returns the if statement enclosing this trace item.java.lang.String
getForClause()
java.lang.Boolean
getIsPost()
java.lang.Boolean
getIsPre()
java.lang.String
getPeriodClause()
Position
getPosition()
boolean
getTraceConstructor()
TraceDirective
getTraceDirective()
boolean
getTraceGet()
java.lang.String
getTracerType()
boolean
getTraceSet()
UmpleVariable
getUmpleVariable(int index)
java.util.List<UmpleVariable>
getUmpleVariables()
boolean
hasUmpleVariables()
int
indexOfUmpleVariable(UmpleVariable aUmpleVariable)
static int
minimumNumberOfUmpleVariables()
int
numberOfUmpleVariables()
boolean
removeUmpleVariable(UmpleVariable aUmpleVariable)
boolean
setDuringClause(java.lang.String aDuringClause)
boolean
setForClause(java.lang.String aForClause)
boolean
setPeriodClause(java.lang.String aPeriodClause)
boolean
setPosition(Position aPosition)
boolean
setTraceConstructor(boolean aTraceConstructor)
boolean
setTraceDirective(TraceDirective aTraceDirective)
boolean
setTraceGet(boolean aTraceGet)
boolean
setTraceSet(boolean aTraceSet)
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
-
setTraceSet
public boolean setTraceSet(boolean aTraceSet) -
setTraceGet
public boolean setTraceGet(boolean aTraceGet) -
setTraceConstructor
public boolean setTraceConstructor(boolean aTraceConstructor) -
setForClause
public boolean setForClause(java.lang.String aForClause) -
setPeriodClause
public boolean setPeriodClause(java.lang.String aPeriodClause) -
setDuringClause
public boolean setDuringClause(java.lang.String aDuringClause) -
setPosition
-
getTracerType
public java.lang.String getTracerType()- Specified by:
getTracerType
in interfaceTraceItem
-
getTraceSet
public boolean getTraceSet() -
getTraceGet
public boolean getTraceGet() -
getTraceConstructor
public boolean getTraceConstructor() -
getForClause
public java.lang.String getForClause() -
getPeriodClause
public java.lang.String getPeriodClause()- Specified by:
getPeriodClause
in interfaceTraceItem
-
getDuringClause
public java.lang.String getDuringClause() -
getPosition
-
getUmpleVariable
-
getUmpleVariables
-
numberOfUmpleVariables
public int numberOfUmpleVariables() -
hasUmpleVariables
public boolean hasUmpleVariables() -
indexOfUmpleVariable
-
getTraceDirective
-
minimumNumberOfUmpleVariables
public static int minimumNumberOfUmpleVariables() -
addUmpleVariable
-
removeUmpleVariable
-
addUmpleVariableAt
-
addOrMoveUmpleVariableAt
-
setTraceDirective
-
delete
public void delete() -
getAttribute
-
addAttribute
-
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
Gets and returns the if statement enclosing this trace item. needs the name of the attribute- Specified by:
getExtremities
in interfaceTraceItem
- Returns:
- the if statement for the trace if one exists
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-