Package cruise.umple.compiler
Class Event
java.lang.Object
cruise.umple.compiler.Event
public class Event
extends java.lang.Object
NEW CLASS****************************************
-
Constructor Summary
Constructors Constructor Description Event(java.lang.String aName)
-
Method Summary
Modifier and Type Method Description boolean
addOrMoveParamAt(MethodParameter aParam, int index)
boolean
addParam(MethodParameter aParam)
boolean
addParamAt(MethodParameter aParam, int index)
Event
clone()
Please maintain this method if you're going to add new features to Events.boolean
compareWithAnotherEvent(Event inEvent)
static Event
createAutoTransition()
void
delete()
boolean
equals(java.lang.Object obj)
java.lang.String
getArgs()
boolean
getAutoTransition()
boolean
getIsInternal()
for code generation only e.g.boolean
getIsTimer()
String args = null;java.lang.String
getName()
MethodParameter
getParam(int index)
java.util.List<MethodParameter>
getParams()
The event parameters.java.lang.String
getTimerInSeconds()
TODO: how do you specify milliseconds etc.java.lang.String
getType()
The type of the method.boolean
getUnspecified()
int
hashCode()
boolean
hasParams()
int
indexOfParam(MethodParameter aParam)
boolean
isAutoTransition()
boolean
isIsInternal()
boolean
isIsTimer()
boolean
isUnspecified()
static int
minimumNumberOfParams()
int
numberOfParams()
boolean
removeParam(MethodParameter aParam)
boolean
setAutoTransition(boolean aAutoTransition)
boolean
setIsInternal(boolean aIsInternal)
boolean
setIsTimer(boolean aIsTimer)
boolean
setName(java.lang.String aName)
static void
setNextAutoTransitionId(int value)
boolean
setTimerInSeconds(java.lang.String aTimerInSeconds)
boolean
setType(java.lang.String aType)
boolean
setUnspecified(boolean aUnspecified)
java.lang.String
toString()
-
Constructor Details
-
Event
public Event(java.lang.String aName)
-
-
Method Details
-
setName
public boolean setName(java.lang.String aName) -
setIsTimer
public boolean setIsTimer(boolean aIsTimer) -
setAutoTransition
public boolean setAutoTransition(boolean aAutoTransition) -
setTimerInSeconds
public boolean setTimerInSeconds(java.lang.String aTimerInSeconds) -
setIsInternal
public boolean setIsInternal(boolean aIsInternal) -
setUnspecified
public boolean setUnspecified(boolean aUnspecified) -
setType
public boolean setType(java.lang.String aType) -
getName
public java.lang.String getName() -
getIsTimer
public boolean getIsTimer()String args = null; -
getAutoTransition
public boolean getAutoTransition() -
getTimerInSeconds
public java.lang.String getTimerInSeconds()TODO: how do you specify milliseconds etc. -
getIsInternal
public boolean getIsInternal()for code generation only e.g. ouside scope of nested state -
getUnspecified
public boolean getUnspecified() -
getType
public java.lang.String getType()The type of the method. -
isIsTimer
public boolean isIsTimer() -
isAutoTransition
public boolean isAutoTransition() -
isIsInternal
public boolean isIsInternal() -
isUnspecified
public boolean isUnspecified() -
getParam
-
getParams
The event parameters. -
numberOfParams
public int numberOfParams() -
hasParams
public boolean hasParams() -
indexOfParam
-
minimumNumberOfParams
public static int minimumNumberOfParams() -
addParam
-
removeParam
-
addParamAt
-
addOrMoveParamAt
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete() -
createAutoTransition
-
setNextAutoTransitionId
public static void setNextAutoTransitionId(int value) -
getArgs
public java.lang.String getArgs() -
compareWithAnotherEvent
-
clone
Please maintain this method if you're going to add new features to Events. This code manually creates a clone of a Events.- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-