public class PredicatesSwitch<T> extends Switch<T>
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.
PredicatesPackage
Modifier and Type | Field and Description |
---|---|
protected static PredicatesPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
PredicatesSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAndPredicate(AndPredicate object)
Returns the result of interpreting the object as an instance of 'And Predicate'.
|
T |
caseBuilderPredicate(BuilderPredicate object)
Returns the result of interpreting the object as an instance of 'Builder Predicate'.
|
T |
caseCommentPredicate(CommentPredicate object)
Returns the result of interpreting the object as an instance of 'Comment Predicate'.
|
T |
caseFilePredicate(FilePredicate object)
Returns the result of interpreting the object as an instance of 'File Predicate'.
|
T |
caseLocationPredicate(LocationPredicate object)
Returns the result of interpreting the object as an instance of 'Location Predicate'.
|
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'.
|
T |
caseNamePredicate(NamePredicate object)
Returns the result of interpreting the object as an instance of 'Name Predicate'.
|
T |
caseNaturePredicate(NaturePredicate object)
Returns the result of interpreting the object as an instance of 'Nature Predicate'.
|
T |
caseNotPredicate(NotPredicate object)
Returns the result of interpreting the object as an instance of 'Not Predicate'.
|
T |
caseOrPredicate(OrPredicate object)
Returns the result of interpreting the object as an instance of 'Or Predicate'.
|
T |
casePredicate(Predicate object)
Returns the result of interpreting the object as an instance of 'Predicate'.
|
T |
caseRepositoryPredicate(RepositoryPredicate object)
Returns the result of interpreting the object as an instance of 'Repository Predicate'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static PredicatesPackage modelPackage
public PredicatesSwitch()
protected boolean isSwitchFor(EPackage ePackage)
isSwitchFor
in class Switch<T>
protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
public T casePredicate(Predicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseNamePredicate(NamePredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseCommentPredicate(CommentPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseLocationPredicate(LocationPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseRepositoryPredicate(RepositoryPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseAndPredicate(AndPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrPredicate(OrPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseNotPredicate(NotPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseNaturePredicate(NaturePredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseBuilderPredicate(BuilderPredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseFilePredicate(FilePredicate object)
object
- the target of the switch.doSwitch(EObject)
public T caseModelElement(ModelElement object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html