public class CodeSwitch<T>
extends java.lang.Object
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.
CodePackage| Constructor and Description |
|---|
CodeSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseAbstractCodeElement(AbstractCodeElement object)
Returns the result of interpreting the object as an instance of 'Abstract Code Element'.
|
T |
caseAbstractCodeRelationship(AbstractCodeRelationship object)
Returns the result of interpreting the object as an instance of 'Abstract Code Relationship'.
|
T |
caseArrayType(ArrayType object)
Returns the result of interpreting the object as an instance of 'Array Type'.
|
T |
caseBagType(BagType object)
Returns the result of interpreting the object as an instance of 'Bag Type'.
|
T |
caseBitstringType(BitstringType object)
Returns the result of interpreting the object as an instance of 'Bitstring Type'.
|
T |
caseBitType(BitType object)
Returns the result of interpreting the object as an instance of 'Bit Type'.
|
T |
caseBooleanType(BooleanType object)
Returns the result of interpreting the object as an instance of 'Boolean Type'.
|
T |
caseCallableUnit(CallableUnit object)
Returns the result of interpreting the object as an instance of 'Callable Unit'.
|
T |
caseCharType(CharType object)
Returns the result of interpreting the object as an instance of 'Char Type'.
|
T |
caseChoiceType(ChoiceType object)
Returns the result of interpreting the object as an instance of 'Choice Type'.
|
T |
caseClassUnit(ClassUnit object)
Returns the result of interpreting the object as an instance of 'Class Unit'.
|
T |
caseCodeAssembly(CodeAssembly object)
Returns the result of interpreting the object as an instance of 'Assembly'.
|
T |
caseCodeElement(CodeElement object)
Returns the result of interpreting the object as an instance of 'Element'.
|
T |
caseCodeItem(CodeItem object)
Returns the result of interpreting the object as an instance of 'Item'.
|
T |
caseCodeModel(CodeModel object)
Returns the result of interpreting the object as an instance of 'Model'.
|
T |
caseCodeRelationship(CodeRelationship object)
Returns the result of interpreting the object as an instance of 'Relationship'.
|
T |
caseCommentUnit(CommentUnit object)
Returns the result of interpreting the object as an instance of 'Comment Unit'.
|
T |
caseCompilationUnit(CompilationUnit object)
Returns the result of interpreting the object as an instance of 'Compilation Unit'.
|
T |
caseCompositeType(CompositeType object)
Returns the result of interpreting the object as an instance of 'Composite Type'.
|
T |
caseComputationalObject(ComputationalObject object)
Returns the result of interpreting the object as an instance of 'Computational Object'.
|
T |
caseConditionalDirective(ConditionalDirective object)
Returns the result of interpreting the object as an instance of 'Conditional Directive'.
|
T |
caseControlElement(ControlElement object)
Returns the result of interpreting the object as an instance of 'Control Element'.
|
T |
caseDataElement(DataElement object)
Returns the result of interpreting the object as an instance of 'Data Element'.
|
T |
caseDatatype(Datatype object)
Returns the result of interpreting the object as an instance of 'Datatype'.
|
T |
caseDateType(DateType object)
Returns the result of interpreting the object as an instance of 'Date Type'.
|
T |
caseDecimalType(DecimalType object)
Returns the result of interpreting the object as an instance of 'Decimal Type'.
|
T |
caseDefinedType(DefinedType object)
Returns the result of interpreting the object as an instance of 'Defined Type'.
|
T |
caseDerivedType(DerivedType object)
Returns the result of interpreting the object as an instance of 'Derived Type'.
|
T |
caseElement(Element object)
Returns the result of interpreting the object as an instance of 'Element'.
|
T |
caseEnumeratedType(EnumeratedType object)
Returns the result of interpreting the object as an instance of 'Enumerated Type'.
|
T |
caseExpands(Expands object)
Returns the result of interpreting the object as an instance of 'Expands'.
|
T |
caseExtends(Extends object)
Returns the result of interpreting the object as an instance of 'Extends'.
|
T |
caseFloatType(FloatType object)
Returns the result of interpreting the object as an instance of 'Float Type'.
|
T |
caseGeneratedFrom(GeneratedFrom object)
Returns the result of interpreting the object as an instance of 'Generated From'.
|
T |
caseHasType(HasType object)
Returns the result of interpreting the object as an instance of 'Has Type'.
|
T |
caseHasValue(HasValue object)
Returns the result of interpreting the object as an instance of 'Has Value'.
|
T |
caseImplementationOf(ImplementationOf object)
Returns the result of interpreting the object as an instance of 'Implementation Of'.
|
T |
caseImplements(Implements object)
Returns the result of interpreting the object as an instance of 'Implements'.
|
T |
caseImports(Imports object)
Returns the result of interpreting the object as an instance of 'Imports'.
|
T |
caseIncludeDirective(IncludeDirective object)
Returns the result of interpreting the object as an instance of 'Include Directive'.
|
T |
caseIncludes(Includes object)
Returns the result of interpreting the object as an instance of 'Includes'.
|
T |
caseIndexUnit(IndexUnit object)
Returns the result of interpreting the object as an instance of 'Index Unit'.
|
T |
caseInstanceOf(InstanceOf object)
Returns the result of interpreting the object as an instance of 'Instance Of'.
|
T |
caseIntegerType(IntegerType object)
Returns the result of interpreting the object as an instance of 'Integer Type'.
|
T |
caseInterfaceUnit(InterfaceUnit object)
Returns the result of interpreting the object as an instance of 'Interface Unit'.
|
T |
caseItemUnit(ItemUnit object)
Returns the result of interpreting the object as an instance of 'Item Unit'.
|
T |
caseKDMEntity(KDMEntity object)
Returns the result of interpreting the object as an instance of 'KDM Entity'.
|
T |
caseKDMFramework(KDMFramework object)
Returns the result of interpreting the object as an instance of 'KDM Framework'.
|
T |
caseKDMModel(KDMModel object)
Returns the result of interpreting the object as an instance of 'KDM Model'.
|
T |
caseKDMRelationship(KDMRelationship object)
Returns the result of interpreting the object as an instance of 'KDM Relationship'.
|
T |
caseLanguageUnit(LanguageUnit object)
Returns the result of interpreting the object as an instance of 'Language Unit'.
|
T |
caseMacroDirective(MacroDirective object)
Returns the result of interpreting the object as an instance of 'Macro Directive'.
|
T |
caseMacroUnit(MacroUnit object)
Returns the result of interpreting the object as an instance of 'Macro Unit'.
|
T |
caseMemberUnit(MemberUnit object)
Returns the result of interpreting the object as an instance of 'Member Unit'.
|
T |
caseMethodUnit(MethodUnit object)
Returns the result of interpreting the object as an instance of 'Method Unit'.
|
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'.
|
T |
caseModule(Module object)
Returns the result of interpreting the object as an instance of 'Module'.
|
T |
caseNamespace(Namespace object)
Returns the result of interpreting the object as an instance of 'Namespace'.
|
T |
caseOctetstringType(OctetstringType object)
Returns the result of interpreting the object as an instance of 'Octetstring Type'.
|
T |
caseOctetType(OctetType object)
Returns the result of interpreting the object as an instance of 'Octet Type'.
|
T |
caseOrdinalType(OrdinalType object)
Returns the result of interpreting the object as an instance of 'Ordinal Type'.
|
T |
casePackage(Package object)
Returns the result of interpreting the object as an instance of 'Package'.
|
T |
caseParameterTo(ParameterTo object)
Returns the result of interpreting the object as an instance of 'Parameter To'.
|
T |
caseParameterUnit(ParameterUnit object)
Returns the result of interpreting the object as an instance of 'Parameter Unit'.
|
T |
casePointerType(PointerType object)
Returns the result of interpreting the object as an instance of 'Pointer Type'.
|
T |
casePreprocessorDirective(PreprocessorDirective object)
Returns the result of interpreting the object as an instance of 'Preprocessor Directive'.
|
T |
casePrimitiveType(PrimitiveType object)
Returns the result of interpreting the object as an instance of 'Primitive Type'.
|
T |
caseRangeType(RangeType object)
Returns the result of interpreting the object as an instance of 'Range Type'.
|
T |
caseRecordType(RecordType object)
Returns the result of interpreting the object as an instance of 'Record Type'.
|
T |
caseRedefines(Redefines object)
Returns the result of interpreting the object as an instance of 'Redefines'.
|
T |
caseScaledType(ScaledType object)
Returns the result of interpreting the object as an instance of 'Scaled Type'.
|
T |
caseSequenceType(SequenceType object)
Returns the result of interpreting the object as an instance of 'Sequence Type'.
|
T |
caseSetType(SetType object)
Returns the result of interpreting the object as an instance of 'Set Type'.
|
T |
caseSharedUnit(SharedUnit object)
Returns the result of interpreting the object as an instance of 'Shared Unit'.
|
T |
caseSignature(Signature object)
Returns the result of interpreting the object as an instance of 'Signature'.
|
T |
caseStorableUnit(StorableUnit object)
Returns the result of interpreting the object as an instance of 'Storable Unit'.
|
T |
caseStringType(StringType object)
Returns the result of interpreting the object as an instance of 'String Type'.
|
T |
caseSynonymUnit(SynonymUnit object)
Returns the result of interpreting the object as an instance of 'Synonym Unit'.
|
T |
caseTemplateParameter(TemplateParameter object)
Returns the result of interpreting the object as an instance of 'Template Parameter'.
|
T |
caseTemplateType(TemplateType object)
Returns the result of interpreting the object as an instance of 'Template Type'.
|
T |
caseTemplateUnit(TemplateUnit object)
Returns the result of interpreting the object as an instance of 'Template Unit'.
|
T |
caseTimeType(TimeType object)
Returns the result of interpreting the object as an instance of 'Time Type'.
|
T |
caseTypeUnit(TypeUnit object)
Returns the result of interpreting the object as an instance of 'Type Unit'.
|
T |
caseValue(Value object)
Returns the result of interpreting the object as an instance of 'Value'.
|
T |
caseValueElement(ValueElement object)
Returns the result of interpreting the object as an instance of 'Value Element'.
|
T |
caseValueList(ValueList object)
Returns the result of interpreting the object as an instance of 'Value List'.
|
T |
caseVariantTo(VariantTo object)
Returns the result of interpreting the object as an instance of 'Variant To'.
|
T |
caseVisibleIn(VisibleIn object)
Returns the result of interpreting the object as an instance of 'Visible In'.
|
T |
caseVoidType(VoidType object)
Returns the result of interpreting the object as an instance of 'Void Type'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
T |
doSwitch(EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
public T doSwitch(EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T caseCodeModel(CodeModel object)
object - the target of the switch.doSwitch(EObject)public T caseAbstractCodeElement(AbstractCodeElement object)
object - the target of the switch.doSwitch(EObject)public T caseAbstractCodeRelationship(AbstractCodeRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseCodeItem(CodeItem object)
object - the target of the switch.doSwitch(EObject)public T caseComputationalObject(ComputationalObject object)
object - the target of the switch.doSwitch(EObject)public T caseDatatype(Datatype object)
object - the target of the switch.doSwitch(EObject)public T caseModule(Module object)
object - the target of the switch.doSwitch(EObject)public T caseCompilationUnit(CompilationUnit object)
object - the target of the switch.doSwitch(EObject)public T caseSharedUnit(SharedUnit object)
object - the target of the switch.doSwitch(EObject)public T caseLanguageUnit(LanguageUnit object)
object - the target of the switch.doSwitch(EObject)public T caseCodeAssembly(CodeAssembly object)
object - the target of the switch.doSwitch(EObject)public T casePackage(Package object)
object - the target of the switch.doSwitch(EObject)public T caseControlElement(ControlElement object)
object - the target of the switch.doSwitch(EObject)public T caseCallableUnit(CallableUnit object)
object - the target of the switch.doSwitch(EObject)public T caseMethodUnit(MethodUnit object)
object - the target of the switch.doSwitch(EObject)public T caseDataElement(DataElement object)
object - the target of the switch.doSwitch(EObject)public T caseStorableUnit(StorableUnit object)
object - the target of the switch.doSwitch(EObject)public T caseItemUnit(ItemUnit object)
object - the target of the switch.doSwitch(EObject)public T caseIndexUnit(IndexUnit object)
object - the target of the switch.doSwitch(EObject)public T caseMemberUnit(MemberUnit object)
object - the target of the switch.doSwitch(EObject)public T caseParameterUnit(ParameterUnit object)
object - the target of the switch.doSwitch(EObject)public T caseValueElement(ValueElement object)
object - the target of the switch.doSwitch(EObject)public T caseValue(Value object)
object - the target of the switch.doSwitch(EObject)public T caseValueList(ValueList object)
object - the target of the switch.doSwitch(EObject)public T casePrimitiveType(PrimitiveType object)
object - the target of the switch.doSwitch(EObject)public T caseBooleanType(BooleanType object)
object - the target of the switch.doSwitch(EObject)public T caseCharType(CharType object)
object - the target of the switch.doSwitch(EObject)public T caseOrdinalType(OrdinalType object)
object - the target of the switch.doSwitch(EObject)public T caseDateType(DateType object)
object - the target of the switch.doSwitch(EObject)public T caseTimeType(TimeType object)
object - the target of the switch.doSwitch(EObject)public T caseIntegerType(IntegerType object)
object - the target of the switch.doSwitch(EObject)public T caseDecimalType(DecimalType object)
object - the target of the switch.doSwitch(EObject)public T caseScaledType(ScaledType object)
object - the target of the switch.doSwitch(EObject)public T caseFloatType(FloatType object)
object - the target of the switch.doSwitch(EObject)public T caseVoidType(VoidType object)
object - the target of the switch.doSwitch(EObject)public T caseStringType(StringType object)
object - the target of the switch.doSwitch(EObject)public T caseBitType(BitType object)
object - the target of the switch.doSwitch(EObject)public T caseBitstringType(BitstringType object)
object - the target of the switch.doSwitch(EObject)public T caseOctetType(OctetType object)
object - the target of the switch.doSwitch(EObject)public T caseOctetstringType(OctetstringType object)
object - the target of the switch.doSwitch(EObject)public T caseEnumeratedType(EnumeratedType object)
object - the target of the switch.doSwitch(EObject)public T caseCompositeType(CompositeType object)
object - the target of the switch.doSwitch(EObject)public T caseChoiceType(ChoiceType object)
object - the target of the switch.doSwitch(EObject)public T caseRecordType(RecordType object)
object - the target of the switch.doSwitch(EObject)public T caseDerivedType(DerivedType object)
object - the target of the switch.doSwitch(EObject)public T caseArrayType(ArrayType object)
object - the target of the switch.doSwitch(EObject)public T casePointerType(PointerType object)
object - the target of the switch.doSwitch(EObject)public T caseRangeType(RangeType object)
object - the target of the switch.doSwitch(EObject)public T caseBagType(BagType object)
object - the target of the switch.doSwitch(EObject)public T caseSetType(SetType object)
object - the target of the switch.doSwitch(EObject)public T caseSequenceType(SequenceType object)
object - the target of the switch.doSwitch(EObject)public T caseSignature(Signature object)
object - the target of the switch.doSwitch(EObject)public T caseDefinedType(DefinedType object)
object - the target of the switch.doSwitch(EObject)public T caseTypeUnit(TypeUnit object)
object - the target of the switch.doSwitch(EObject)public T caseSynonymUnit(SynonymUnit object)
object - the target of the switch.doSwitch(EObject)public T caseClassUnit(ClassUnit object)
object - the target of the switch.doSwitch(EObject)public T caseInterfaceUnit(InterfaceUnit object)
object - the target of the switch.doSwitch(EObject)public T caseTemplateUnit(TemplateUnit object)
object - the target of the switch.doSwitch(EObject)public T caseTemplateParameter(TemplateParameter object)
object - the target of the switch.doSwitch(EObject)public T caseTemplateType(TemplateType object)
object - the target of the switch.doSwitch(EObject)public T caseInstanceOf(InstanceOf object)
object - the target of the switch.doSwitch(EObject)public T caseParameterTo(ParameterTo object)
object - the target of the switch.doSwitch(EObject)public T caseImplements(Implements object)
object - the target of the switch.doSwitch(EObject)public T caseImplementationOf(ImplementationOf object)
object - the target of the switch.doSwitch(EObject)public T caseHasType(HasType object)
object - the target of the switch.doSwitch(EObject)public T caseHasValue(HasValue object)
object - the target of the switch.doSwitch(EObject)public T caseExtends(Extends object)
object - the target of the switch.doSwitch(EObject)public T casePreprocessorDirective(PreprocessorDirective object)
object - the target of the switch.doSwitch(EObject)public T caseMacroUnit(MacroUnit object)
object - the target of the switch.doSwitch(EObject)public T caseMacroDirective(MacroDirective object)
object - the target of the switch.doSwitch(EObject)public T caseIncludeDirective(IncludeDirective object)
object - the target of the switch.doSwitch(EObject)public T caseConditionalDirective(ConditionalDirective object)
object - the target of the switch.doSwitch(EObject)public T caseExpands(Expands object)
object - the target of the switch.doSwitch(EObject)public T caseGeneratedFrom(GeneratedFrom object)
object - the target of the switch.doSwitch(EObject)public T caseIncludes(Includes object)
object - the target of the switch.doSwitch(EObject)public T caseVariantTo(VariantTo object)
object - the target of the switch.doSwitch(EObject)public T caseRedefines(Redefines object)
object - the target of the switch.doSwitch(EObject)public T caseCommentUnit(CommentUnit object)
object - the target of the switch.doSwitch(EObject)public T caseNamespace(Namespace object)
object - the target of the switch.doSwitch(EObject)public T caseVisibleIn(VisibleIn object)
object - the target of the switch.doSwitch(EObject)public T caseImports(Imports object)
object - the target of the switch.doSwitch(EObject)public T caseCodeElement(CodeElement object)
object - the target of the switch.doSwitch(EObject)public T caseCodeRelationship(CodeRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseElement(Element object)
object - the target of the switch.doSwitch(EObject)public T caseModelElement(ModelElement object)
object - the target of the switch.doSwitch(EObject)public T caseKDMFramework(KDMFramework object)
object - the target of the switch.doSwitch(EObject)public T caseKDMModel(KDMModel object)
object - the target of the switch.doSwitch(EObject)public T caseKDMEntity(KDMEntity object)
object - the target of the switch.doSwitch(EObject)public T caseKDMRelationship(KDMRelationship object)
object - the target of the switch.doSwitch(EObject)public T defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)