GammaSwitch

open class GammaSwitch<T> : Switch<T>

The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX method for each class of the model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is returned, which is the result of the switch.

See also

Constructors

Link copied to clipboard
constructor()
Creates an instance of the switch.

Functions

Link copied to clipboard
open fun caseAct(object: Act): T
Returns the result of interpreting the object as an instance of 'Act'.
Link copied to clipboard
open fun caseAction(object: Action): T
Returns the result of interpreting the object as an instance of 'Action'.
Link copied to clipboard
open fun caseAG(object: AG): T
Returns the result of interpreting the object as an instance of 'AG'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Any Port Event Reference'.
Link copied to clipboard
open fun caseAnyTrigger(object: AnyTrigger): T
Returns the result of interpreting the object as an instance of 'Any Trigger'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Arithmetic Binary Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Arithmetic Unary Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Assignment Action'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Asynchronous Adapter Declaration'.
Returns the result of interpreting the object as an instance of 'Asynchronous Composite Component Declaration'.
Link copied to clipboard
open fun caseBlock(object: Block): T
Returns the result of interpreting the object as an instance of 'Block'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Boolean Operator'.
Link copied to clipboard
open fun caseBooleanType(object: BooleanType): T
Returns the result of interpreting the object as an instance of 'Boolean Type'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Cascade Component Declaration'.
Link copied to clipboard
open fun caseChannel(object: Channel): T
Returns the result of interpreting the object as an instance of 'Channel'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Clock Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Clock Tick Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Comparison Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Component Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Component Instance'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Component Instance Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Composite Component Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Control Specification'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Control Trigger'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Direct Reference Expression'.
Link copied to clipboard
open fun caseEF(object: EF): T
Returns the result of interpreting the object as an instance of 'EF'.
Link copied to clipboard
open fun caseEntryState(object: EntryState): T
Returns the result of interpreting the object as an instance of 'Entry State'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Event Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Event Parameter Reference Expression'.
Link copied to clipboard
open fun caseEventPassing(object: EventPassing): T
Returns the result of interpreting the object as an instance of 'Event Passing'.
Link copied to clipboard
open fun caseEventTrigger(object: EventTrigger): T
Returns the result of interpreting the object as an instance of 'Event Trigger'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Execution Trace'.
Link copied to clipboard
open fun caseExpression(object: Expression): T
Returns the result of interpreting the object as an instance of 'Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Field Assignment'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Field Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Fired Transition Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Model Package'.
Link copied to clipboard
open fun caseGammaRoot(object: GammaRoot): T
Returns the result of interpreting the object as an instance of 'Root'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Import Statement'.
Link copied to clipboard
open fun caseInitialState(object: InitialState): T
Returns the result of interpreting the object as an instance of 'Initial State'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Instance Element Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Instance Port Reference'.
Link copied to clipboard
open fun caseIntegerType(object: IntegerType): T
Returns the result of interpreting the object as an instance of 'Integer Type'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Interface Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Literal Boolean'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Literal Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Literal Integer'.
Link copied to clipboard
open fun caseMessageQueue(object: MessageQueue): T
Returns the result of interpreting the object as an instance of 'Message Queue'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Message Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Message Trigger'.
Link copied to clipboard
open fun caseNamedElement(object: NamedElement): T
Returns the result of interpreting the object as an instance of 'Named Element'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Negation Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Parameter Declaration'.
Link copied to clipboard
open fun casePortBinding(object: PortBinding): T
Returns the result of interpreting the object as an instance of 'Port Binding'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Port Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Port Event Reference'.
Link copied to clipboard
open fun caseRaiseEventAct(object: RaiseEventAct): T
Returns the result of interpreting the object as an instance of 'Raise Event Act'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Raise Event Action'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Record Access Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Record Literal Expression'.
Link copied to clipboard
open fun caseRecordType(object: RecordType): T
Returns the result of interpreting the object as an instance of 'Record Type'.
Link copied to clipboard
open fun caseRegion(object: Region): T
Returns the result of interpreting the object as an instance of 'Region'.
Link copied to clipboard
open fun caseResetAct(object: ResetAct): T
Returns the result of interpreting the object as an instance of 'Reset Act'.
Link copied to clipboard
open fun caseScheduleAct(object: ScheduleAct): T
Returns the result of interpreting the object as an instance of 'Schedule Act'.
Returns the result of interpreting the object as an instance of 'Scheduled Asynchronous Composite Component Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Scheduling Constraint'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Set Timeout Action'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Shallow History State'.
Link copied to clipboard
open fun caseState(object: State): T
Returns the result of interpreting the object as an instance of 'State'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Statechart Declaration'.
Link copied to clipboard
open fun caseStateNode(object: StateNode): T
Returns the result of interpreting the object as an instance of 'State Node'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'State Reference Expression'.
Link copied to clipboard
open fun caseStep(object: Step): T
Returns the result of interpreting the object as an instance of 'Step'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Sync Component Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Temporal Operator'.
Link copied to clipboard
open fun caseTimeElapseAct(object: TimeElapseAct): T
Returns the result of interpreting the object as an instance of 'Time Elapse Act'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Timeout Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Timeout Trigger'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Time Specification'.
Link copied to clipboard
open fun caseTransition(object: Transition): T
Returns the result of interpreting the object as an instance of 'Transition'.
Link copied to clipboard
open fun caseTrigger(object: Trigger): T
Returns the result of interpreting the object as an instance of 'Trigger'.
Link copied to clipboard
open fun caseType(object: Type): T
Returns the result of interpreting the object as an instance of 'Type'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Type Declaration'.
Link copied to clipboard
open fun caseTypeReference(object: TypeReference): T
Returns the result of interpreting the object as an instance of 'Type Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Value Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Variable Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Variable Reference Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Verification Case Declaration'.
Link copied to clipboard
open fun defaultCase(object: EObject): T
Returns the result of interpreting the object as an instance of 'EObject'.