|
||||||||||
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.oclstdlib.oclstdlibcs.util.OCLstdlibCSSwitch<T>
public class OCLstdlibCSSwitch<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.
OCLstdlibCSPackage
Field Summary | |
---|---|
protected static OCLstdlibCSPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
OCLstdlibCSSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
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 |
caseElementCS(ElementCS object)
Returns the result of interpreting the object as an instance of 'Element CS'. |
T |
caseFeatureCS(FeatureCS object)
Returns the result of interpreting the object as an instance of 'Feature CS'. |
T |
caseJavaImplementationCS(JavaImplementationCS object)
Returns the result of interpreting the object as an instance of 'Java Implementation CS'. |
T |
caseLibClassCS(LibClassCS object)
Returns the result of interpreting the object as an instance of 'Lib Class CS'. |
T |
caseLibConstraintCS(LibConstraintCS object)
Returns the result of interpreting the object as an instance of 'Lib Constraint CS'. |
T |
caseLibIterationCS(LibIterationCS object)
Returns the result of interpreting the object as an instance of 'Lib Iteration CS'. |
T |
caseLibOperationCS(LibOperationCS object)
Returns the result of interpreting the object as an instance of 'Lib Operation CS'. |
T |
caseLibPackageCS(LibPackageCS object)
Returns the result of interpreting the object as an instance of 'Lib Package CS'. |
T |
caseLibPropertyCS(LibPropertyCS object)
Returns the result of interpreting the object as an instance of 'Lib Property CS'. |
T |
caseLibRootPackageCS(LibRootPackageCS object)
Returns the result of interpreting the object as an instance of 'Lib Root Package CS'. |
T |
caseMetaTypeName(MetaTypeName object)
Returns the result of interpreting the object as an instance of 'Meta Type Name'. |
T |
caseModelElementCS(ModelElementCS object)
Returns the result of interpreting the object as an instance of 'Model Element 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 |
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 |
casePrecedenceCS(PrecedenceCS object)
Returns the result of interpreting the object as an instance of 'Precedence 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 |
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 |
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 |
caseVisitableCS(VisitableCS object)
Returns the result of interpreting the object as an instance of 'Visitable 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 OCLstdlibCSPackage modelPackage
Constructor Detail |
---|
public OCLstdlibCSSwitch()
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 caseLibClassCS(LibClassCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibConstraintCS(LibConstraintCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibIterationCS(LibIterationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibOperationCS(LibOperationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibPackageCS(LibPackageCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibPropertyCS(LibPropertyCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibRootPackageCS(LibRootPackageCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMetaTypeName(MetaTypeName object)
object
- the target of the switch.
doSwitch(EObject)
public T caseJavaImplementationCS(JavaImplementationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePrecedenceCS(PrecedenceCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVisitableCS(VisitableCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseElementCS(ElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePivotable(Pivotable object)
object
- the target of the switch.
doSwitch(EObject)
public T casePivotableElementCS(PivotableElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModelElementCS(ModelElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNameable(Nameable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedElementCS(NamedElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateableElementCS(TemplateableElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseClassifierCS(ClassifierCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedElementCS(TypedElementCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypeCS(TypeCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFeatureCS(FeatureCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOperationCS(OperationCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePackageOwnerCS(PackageOwnerCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructuralFeatureCS(StructuralFeatureCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAttributeCS(AttributeCS 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 caseNamespaceCS(NamespaceCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseClassCS(ClassCS object)
object
- the target of the switch.
doSwitch(EObject)
public T casePackageCS(PackageCS object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConstraintCS(ConstraintCS 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 |