|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.ocl.examples.xtext.base.basecs.util.BaseCSSwitch<T>
public class BaseCSSwitch<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.
BaseCSPackage
Field Summary | |
---|---|
protected static BaseCSPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
BaseCSSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAnnotationCS(AnnotationCS object)
Returns the result of interpreting the object as an instance of 'Annotation CS'. |
T |
caseAnnotationElementCS(AnnotationElementCS object)
Returns the result of interpreting the object as an instance of 'Annotation Element CS'. |
T |
caseAttributeCS(AttributeCS object)
Returns the result of interpreting the object as an instance of 'Attribute CS'. |
T |
caseClassCS(ClassCS object)
Returns the result of interpreting the object as an instance of 'Class CS'. |
T |
caseClassifierCS(ClassifierCS object)
Returns the result of interpreting the object as an instance of 'Classifier CS'. |
T |
caseConstraintCS(ConstraintCS object)
Returns the result of interpreting the object as an instance of 'Constraint CS'. |
T |
caseDataTypeCS(DataTypeCS object)
Returns the result of interpreting the object as an instance of 'Data Type CS'. |
T |
caseDetailCS(DetailCS object)
Returns the result of interpreting the object as an instance of 'Detail CS'. |
T |
caseDocumentationCS(DocumentationCS object)
Returns the result of interpreting the object as an instance of 'Documentation CS'. |
T |
caseElementCS(ElementCS object)
Returns the result of interpreting the object as an instance of 'Element CS'. |
T |
caseElementRefCS(ElementRefCS object)
Returns the result of interpreting the object as an instance of 'Element Ref CS'. |
T |
caseEnumerationCS(EnumerationCS object)
Returns the result of interpreting the object as an instance of 'Enumeration CS'. |
T |
caseEnumerationLiteralCS(EnumerationLiteralCS object)
Returns the result of interpreting the object as an instance of 'Enumeration Literal CS'. |
T |
caseFeatureCS(FeatureCS object)
Returns the result of interpreting the object as an instance of 'Feature CS'. |
T |
caseImportCS(ImportCS object)
Returns the result of interpreting the object as an instance of 'Import CS'. |
T |
caseLambdaTypeCS(LambdaTypeCS object)
Returns the result of interpreting the object as an instance of 'Lambda Type CS'. |
T |
caseLibraryCS(LibraryCS object)
Returns the result of interpreting the object as an instance of 'Library CS'. |
T |
caseModelElementCS(ModelElementCS object)
Returns the result of interpreting the object as an instance of 'Model Element CS'. |
T |
caseModelElementRefCS(ModelElementRefCS object)
Returns the result of interpreting the object as an instance of 'Model Element Ref CS'. |
T |
caseMultiplicityBoundsCS(MultiplicityBoundsCS object)
Returns the result of interpreting the object as an instance of 'Multiplicity Bounds CS'. |
T |
caseMultiplicityCS(MultiplicityCS object)
Returns the result of interpreting the object as an instance of 'Multiplicity CS'. |
T |
caseMultiplicityStringCS(MultiplicityStringCS object)
Returns the result of interpreting the object as an instance of 'Multiplicity String CS'. |
T |
caseNameable(Nameable object)
Returns the result of interpreting the object as an instance of 'Nameable'. |
T |
caseNamedElementCS(NamedElementCS object)
Returns the result of interpreting the object as an instance of 'Named Element CS'. |
T |
caseNamespaceCS(NamespaceCS object)
Returns the result of interpreting the object as an instance of 'Namespace CS'. |
T |
caseOperationCS(OperationCS object)
Returns the result of interpreting the object as an instance of 'Operation CS'. |
T |
casePackageCS(PackageCS object)
Returns the result of interpreting the object as an instance of 'Package CS'. |
T |
casePackageOwnerCS(PackageOwnerCS object)
Returns the result of interpreting the object as an instance of 'Package Owner CS'. |
T |
caseParameterCS(ParameterCS object)
Returns the result of interpreting the object as an instance of 'Parameter CS'. |
T |
casePathElementCS(PathElementCS object)
Returns the result of interpreting the object as an instance of 'Path Element CS'. |
T |
casePathElementWithURICS(PathElementWithURICS object)
Returns the result of interpreting the object as an instance of 'Path Element With URICS'. |
T |
casePathNameCS(PathNameCS object)
Returns the result of interpreting the object as an instance of 'Path Name CS'. |
T |
casePivotable(Pivotable object)
Returns the result of interpreting the object as an instance of 'Pivotable'. |
T |
casePivotableElementCS(PivotableElementCS object)
Returns the result of interpreting the object as an instance of 'Pivotable Element CS'. |
T |
casePrimitiveTypeRefCS(PrimitiveTypeRefCS object)
Returns the result of interpreting the object as an instance of 'Primitive Type Ref CS'. |
T |
caseReferenceCS(ReferenceCS object)
Returns the result of interpreting the object as an instance of 'Reference CS'. |
T |
caseRootCS(RootCS object)
Returns the result of interpreting the object as an instance of 'Root CS'. |
T |
caseRootPackageCS(RootPackageCS object)
Returns the result of interpreting the object as an instance of 'Root Package CS'. |
T |
caseSpecificationCS(SpecificationCS object)
Returns the result of interpreting the object as an instance of 'Specification CS'. |
T |
caseStructuralFeatureCS(StructuralFeatureCS object)
Returns the result of interpreting the object as an instance of 'Structural Feature CS'. |
T |
caseTemplateableElementCS(TemplateableElementCS object)
Returns the result of interpreting the object as an instance of 'Templateable Element CS'. |
T |
caseTemplateBindingCS(TemplateBindingCS object)
Returns the result of interpreting the object as an instance of 'Template Binding CS'. |
T |
caseTemplateParameterCS(TemplateParameterCS object)
Returns the result of interpreting the object as an instance of 'Template Parameter CS'. |
T |
caseTemplateParameterSubstitutionCS(TemplateParameterSubstitutionCS object)
Returns the result of interpreting the object as an instance of 'Template Parameter Substitution CS'. |
T |
caseTemplateSignatureCS(TemplateSignatureCS object)
Returns the result of interpreting the object as an instance of 'Template Signature CS'. |
T |
caseTuplePartCS(TuplePartCS object)
Returns the result of interpreting the object as an instance of 'Tuple Part CS'. |
T |
caseTupleTypeCS(TupleTypeCS object)
Returns the result of interpreting the object as an instance of 'Tuple Type CS'. |
T |
caseTypeCS(TypeCS object)
Returns the result of interpreting the object as an instance of 'Type CS'. |
T |
caseTypedElementCS(TypedElementCS object)
Returns the result of interpreting the object as an instance of 'Typed Element CS'. |
T |
caseTypedRefCS(TypedRefCS object)
Returns the result of interpreting the object as an instance of 'Typed Ref CS'. |
T |
caseTypedTypeRefCS(TypedTypeRefCS object)
Returns the result of interpreting the object as an instance of 'Typed Type Ref CS'. |
T |
caseTypeParameterCS(TypeParameterCS object)
Returns the result of interpreting the object as an instance of 'Type Parameter CS'. |
T |
caseTypeRefCS(TypeRefCS object)
Returns the result of interpreting the object as an instance of 'Type Ref CS'. |
T |
caseVisitableCS(VisitableCS object)
Returns the result of interpreting the object as an instance of 'Visitable CS'. |
T |
caseWildcardTypeRefCS(WildcardTypeRefCS object)
Returns the result of interpreting the object as an instance of 'Wildcard Type Ref CS'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package. |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
---|
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static BaseCSPackage modelPackage
Constructor Detail |
---|
public BaseCSSwitch()
Method Detail |
---|
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseAnnotationCS(AnnotationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnnotationElementCS(AnnotationElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAttributeCS(AttributeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseClassCS(ClassCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseClassifierCS(ClassifierCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConstraintCS(ConstraintCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataTypeCS(DataTypeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDetailCS(DetailCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDocumentationCS(DocumentationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseElementCS(ElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseElementRefCS(ElementRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEnumerationCS(EnumerationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEnumerationLiteralCS(EnumerationLiteralCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFeatureCS(FeatureCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImportCS(ImportCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLambdaTypeCS(LambdaTypeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibraryCS(LibraryCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModelElementCS(ModelElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModelElementRefCS(ModelElementRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMultiplicityBoundsCS(MultiplicityBoundsCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMultiplicityCS(MultiplicityCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMultiplicityStringCS(MultiplicityStringCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedElementCS(NamedElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamespaceCS(NamespaceCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOperationCS(OperationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePackageCS(PackageCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePackageOwnerCS(PackageOwnerCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseParameterCS(ParameterCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePathElementCS(PathElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePathElementWithURICS(PathElementWithURICS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePathNameCS(PathNameCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePivotableElementCS(PivotableElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePrimitiveTypeRefCS(PrimitiveTypeRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReferenceCS(ReferenceCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRootCS(RootCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRootPackageCS(RootPackageCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSpecificationCS(SpecificationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructuralFeatureCS(StructuralFeatureCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateBindingCS(TemplateBindingCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateParameterCS(TemplateParameterCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateParameterSubstitutionCS(TemplateParameterSubstitutionCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateSignatureCS(TemplateSignatureCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateableElementCS(TemplateableElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTuplePartCS(TuplePartCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTupleTypeCS(TupleTypeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypeCS(TypeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypeParameterCS(TypeParameterCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypeRefCS(TypeRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedElementCS(TypedElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedRefCS(TypedRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedTypeRefCS(TypedTypeRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVisitableCS(VisitableCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWildcardTypeRefCS(WildcardTypeRefCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePivotable(Pivotable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNameable(Nameable object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |