OxstsSwitch

open class OxstsSwitch<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
Returns the result of interpreting the object as an instance of 'Abstract For Operation'.
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 'Annotated Element'.
Link copied to clipboard
open fun caseAnnotation(object: Annotation): T
Returns the result of interpreting the object as an instance of 'Annotation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Annotation Container'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Annotation Declaration'.
Link copied to clipboard
open fun caseArgument(object: Argument): T
Returns the result of interpreting the object as an instance of 'Argument'.
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
open fun caseArrayLiteral(object: ArrayLiteral): T
Returns the result of interpreting the object as an instance of 'Array Literal'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Assignment Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Assumption Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Binary Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Boolean Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Call Suffix Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Cast Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Choice Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Class Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Comparison Operator'.
Link copied to clipboard
open fun caseConjunction(object: Conjunction): T
Returns the result of interpreting the object as an instance of 'Conjunction'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Data Type Declaration'.
Link copied to clipboard
open fun caseDeclaration(object: Declaration): T
Returns the result of interpreting the object as an instance of 'Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Definite Multiplicity'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Direct Reference Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Domain Declaration'.
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 caseElement(object: Element): T
Returns the result of interpreting the object as an instance of 'Element'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Element Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Enum Declaration'.
Link copied to clipboard
open fun caseEnumLiteral(object: EnumLiteral): T
Returns the result of interpreting the object as an instance of 'Enum Literal'.
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 'Feature Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Field Assignment'.
Link copied to clipboard
open fun caseForOperation(object: ForOperation): T
Returns the result of interpreting the object as an instance of 'For Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Function Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Havoc Operation'.
Link copied to clipboard
open fun caseIfOperation(object: IfOperation): T
Returns the result of interpreting the object as an instance of 'If Operation'.
Link copied to clipboard
open fun caseIfThenElse(object: IfThenElse): T
Returns the result of interpreting the object as an instance of 'If Then Else'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Import Statement'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Indexing Suffix Expression'.
Link copied to clipboard
open fun caseInlineCall(object: InlineCall): T
Returns the result of interpreting the object as an instance of 'Inline Call'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Inline Choice For'.
Link copied to clipboard
open fun caseInlinedOxsts(object: InlinedOxsts): T
Returns the result of interpreting the object as an instance of 'Inlined Oxsts'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Inline For Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Inline If Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Inline Operation'.
Link copied to clipboard
open fun caseInlineSeqFor(object: InlineSeqFor): T
Returns the result of interpreting the object as an instance of 'Inline Seq For'.
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 Infinity'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Literal Integer'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Literal Nothing'.
Link copied to clipboard
open fun caseLiteralReal(object: LiteralReal): T
Returns the result of interpreting the object as an instance of 'Literal Real'.
Link copied to clipboard
open fun caseLiteralString(object: LiteralString): T
Returns the result of interpreting the object as an instance of 'Literal String'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Local Var Declaration Operation'.
Link copied to clipboard
open fun caseMultiplicity(object: Multiplicity): T
Returns the result of interpreting the object as an instance of 'Multiplicity'.
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
open fun caseNamespace(object: Namespace): T
Returns the result of interpreting the object as an instance of 'Namespace'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Navigation Suffix Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Negation Operator'.
Link copied to clipboard
open fun caseOperation(object: Operation): T
Returns the result of interpreting the object as an instance of 'Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Operator Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Model Package'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Parameter Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Parametric Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Pattern Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Postfix Unary Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Property Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Range Expression'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Record Declaration'.
Link copied to clipboard
open fun caseRecordLiteral(object: RecordLiteral): T
Returns the result of interpreting the object as an instance of 'Record Literal'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Redefinable Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Reference Expression'.
Link copied to clipboard
open fun caseSelfReference(object: SelfReference): T
Returns the result of interpreting the object as an instance of 'Self Reference'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Sequence Operation'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Target Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Temporal Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Top Level Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Transition Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Type Declaration'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Type Specification'.
Link copied to clipboard
open fun caseUnaryOperator(object: UnaryOperator): T
Returns the result of interpreting the object as an instance of 'Unary Operator'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Unbounded Multiplicity'.
Link copied to clipboard
Returns the result of interpreting the object as an instance of 'Variable Declaration'.
Link copied to clipboard
open fun defaultCase(object: EObject): T
Returns the result of interpreting the object as an instance of 'EObject'.