public class GremlinSwitch<T>
extends org.eclipse.emf.ecore.util.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.
GremlinPackage| Modifier and Type | Field and Description |
|---|---|
protected static GremlinPackage |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
GremlinSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseAddAllCall(AddAllCall object)
Returns the result of interpreting the object as an instance of 'Add All Call'.
|
T |
caseAffectationExpression(AffectationExpression object)
Returns the result of interpreting the object as an instance of 'Affectation Expression'.
|
T |
caseAndExpression(AndExpression object)
Returns the result of interpreting the object as an instance of 'And Expression'.
|
T |
caseBinaryExpression(BinaryExpression object)
Returns the result of interpreting the object as an instance of 'Binary Expression'.
|
T |
caseBooleanLiteral(BooleanLiteral object)
Returns the result of interpreting the object as an instance of 'Boolean Literal'.
|
T |
caseClosure(Closure object)
Returns the result of interpreting the object as an instance of 'Closure'.
|
T |
caseClosureIt(ClosureIt object)
Returns the result of interpreting the object as an instance of 'Closure It'.
|
T |
caseCollectionDefinition(CollectionDefinition object)
Returns the result of interpreting the object as an instance of 'Collection Definition'.
|
T |
caseContainsAllCall(ContainsAllCall object)
Returns the result of interpreting the object as an instance of 'Contains All Call'.
|
T |
caseContainsCall(ContainsCall object)
Returns the result of interpreting the object as an instance of 'Contains Call'.
|
T |
caseCountCall(CountCall object)
Returns the result of interpreting the object as an instance of 'Count Call'.
|
T |
caseCustomMethodCall(CustomMethodCall object)
Returns the result of interpreting the object as an instance of 'Custom Method Call'.
|
T |
caseCustomStep(CustomStep object)
Returns the result of interpreting the object as an instance of 'Custom Step'.
|
T |
caseDifferenceExpression(DifferenceExpression object)
Returns the result of interpreting the object as an instance of 'Difference Expression'.
|
T |
caseDoubleLiteral(DoubleLiteral object)
Returns the result of interpreting the object as an instance of 'Double Literal'.
|
T |
caseEdgesStep(EdgesStep object)
Returns the result of interpreting the object as an instance of 'Edges Step'.
|
T |
caseEqualityExpression(EqualityExpression object)
Returns the result of interpreting the object as an instance of 'Equality Expression'.
|
T |
caseExceptStep(ExceptStep object)
Returns the result of interpreting the object as an instance of 'Except Step'.
|
T |
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.
|
T |
caseFillStep(FillStep object)
Returns the result of interpreting the object as an instance of 'Fill Step'.
|
T |
caseFilterStep(FilterStep object)
Returns the result of interpreting the object as an instance of 'Filter Step'.
|
T |
caseFirstCall(FirstCall object)
Returns the result of interpreting the object as an instance of 'First Call'.
|
T |
caseGatherStep(GatherStep object)
Returns the result of interpreting the object as an instance of 'Gather Step'.
|
T |
caseGreaterExpression(GreaterExpression object)
Returns the result of interpreting the object as an instance of 'Greater Expression'.
|
T |
caseGreaterOrEqualExpression(GreaterOrEqualExpression object)
Returns the result of interpreting the object as an instance of 'Greater Or Equal Expression'.
|
T |
caseGremlinScript(GremlinScript object)
Returns the result of interpreting the object as an instance of 'Script'.
|
T |
caseHasNextCall(HasNextCall object)
Returns the result of interpreting the object as an instance of 'Has Next Call'.
|
T |
caseIdentityStep(IdentityStep object)
Returns the result of interpreting the object as an instance of 'Identity Step'.
|
T |
caseIndexCall(IndexCall object)
Returns the result of interpreting the object as an instance of 'Index Call'.
|
T |
caseInEStep(InEStep object)
Returns the result of interpreting the object as an instance of 'In EStep'.
|
T |
caseInExpression(InExpression object)
Returns the result of interpreting the object as an instance of 'In Expression'.
|
T |
caseInstruction(Instruction object)
Returns the result of interpreting the object as an instance of 'Instruction'.
|
T |
caseIntegerLiteral(IntegerLiteral object)
Returns the result of interpreting the object as an instance of 'Integer Literal'.
|
T |
caseIntersectionCall(IntersectionCall object)
Returns the result of interpreting the object as an instance of 'Intersection Call'.
|
T |
caseInVStep(InVStep object)
Returns the result of interpreting the object as an instance of 'In VStep'.
|
T |
caseIsEmptyCall(IsEmptyCall object)
Returns the result of interpreting the object as an instance of 'Is Empty Call'.
|
T |
caseLeftShiftExpression(LeftShiftExpression object)
Returns the result of interpreting the object as an instance of 'Left Shift Expression'.
|
T |
caseLessExpression(LessExpression object)
Returns the result of interpreting the object as an instance of 'Less Expression'.
|
T |
caseLessOrEqualExpression(LessOrEqualExpression object)
Returns the result of interpreting the object as an instance of 'Less Or Equal Expression'.
|
T |
caseListDeclaration(ListDeclaration object)
Returns the result of interpreting the object as an instance of 'List Declaration'.
|
T |
caseMethodCall(MethodCall object)
Returns the result of interpreting the object as an instance of 'Method Call'.
|
T |
caseMethodDeclaration(MethodDeclaration object)
Returns the result of interpreting the object as an instance of 'Method Declaration'.
|
T |
caseNextCall(NextCall object)
Returns the result of interpreting the object as an instance of 'Next Call'.
|
T |
caseNotExpression(NotExpression object)
Returns the result of interpreting the object as an instance of 'Not Expression'.
|
T |
caseNullLiteral(NullLiteral object)
Returns the result of interpreting the object as an instance of 'Null Literal'.
|
T |
caseOrExpression(OrExpression object)
Returns the result of interpreting the object as an instance of 'Or Expression'.
|
T |
caseOutEStep(OutEStep object)
Returns the result of interpreting the object as an instance of 'Out EStep'.
|
T |
caseOutVStep(OutVStep object)
Returns the result of interpreting the object as an instance of 'Out VStep'.
|
T |
casePlusExpression(PlusExpression object)
Returns the result of interpreting the object as an instance of 'Plus Expression'.
|
T |
casePropertyStep(PropertyStep object)
Returns the result of interpreting the object as an instance of 'Property Step'.
|
T |
caseRetainAllCall(RetainAllCall object)
Returns the result of interpreting the object as an instance of 'Retain All Call'.
|
T |
caseRetainStep(RetainStep object)
Returns the result of interpreting the object as an instance of 'Retain Step'.
|
T |
caseReturnStatement(ReturnStatement object)
Returns the result of interpreting the object as an instance of 'Return Statement'.
|
T |
caseScatterStep(ScatterStep object)
Returns the result of interpreting the object as an instance of 'Scatter Step'.
|
T |
caseSetDeclaration(SetDeclaration object)
Returns the result of interpreting the object as an instance of 'Set Declaration'.
|
T |
caseSizeCall(SizeCall object)
Returns the result of interpreting the object as an instance of 'Size Call'.
|
T |
caseSortedSetDeclaration(SortedSetDeclaration object)
Returns the result of interpreting the object as an instance of 'Sorted Set Declaration'.
|
T |
caseStartStep(StartStep object)
Returns the result of interpreting the object as an instance of 'Start Step'.
|
T |
caseStep(Step object)
Returns the result of interpreting the object as an instance of 'Step'.
|
T |
caseStringLiteral(StringLiteral object)
Returns the result of interpreting the object as an instance of 'String Literal'.
|
T |
caseTernaryOperator(TernaryOperator object)
Returns the result of interpreting the object as an instance of 'Ternary Operator'.
|
T |
caseToIntegerCall(ToIntegerCall object)
Returns the result of interpreting the object as an instance of 'To Integer Call'.
|
T |
caseToListCall(ToListCall object)
Returns the result of interpreting the object as an instance of 'To List Call'.
|
T |
caseTransformStep(TransformStep object)
Returns the result of interpreting the object as an instance of 'Transform Step'.
|
T |
caseTraversalElement(TraversalElement object)
Returns the result of interpreting the object as an instance of 'Traversal Element'.
|
T |
caseTypeDeclaration(TypeDeclaration object)
Returns the result of interpreting the object as an instance of 'Type Declaration'.
|
T |
caseUnaryExpression(UnaryExpression object)
Returns the result of interpreting the object as an instance of 'Unary Expression'.
|
T |
caseUnionCall(UnionCall object)
Returns the result of interpreting the object as an instance of 'Union Call'.
|
T |
caseVariableAccess(VariableAccess object)
Returns the result of interpreting the object as an instance of 'Variable Access'.
|
T |
caseVariableDeclaration(VariableDeclaration object)
Returns the result of interpreting the object as an instance of 'Variable Declaration'.
|
T |
caseVerticesStep(VerticesStep object)
Returns the result of interpreting the object as an instance of 'Vertices Step'.
|
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.
|
protected static GremlinPackage modelPackage
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>ePackage - the package in question.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 caseGremlinScript(GremlinScript object)
object - the target of the switch.doSwitch(EObject)public T caseInstruction(Instruction object)
object - the target of the switch.doSwitch(EObject)public T caseReturnStatement(ReturnStatement object)
object - the target of the switch.doSwitch(EObject)public T caseMethodDeclaration(MethodDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseTypeDeclaration(TypeDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseListDeclaration(ListDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseSetDeclaration(SetDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseSortedSetDeclaration(SortedSetDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseVariableDeclaration(VariableDeclaration object)
object - the target of the switch.doSwitch(EObject)public T caseTraversalElement(TraversalElement object)
object - the target of the switch.doSwitch(EObject)public T caseCollectionDefinition(CollectionDefinition object)
object - the target of the switch.doSwitch(EObject)public T caseClosure(Closure object)
object - the target of the switch.doSwitch(EObject)public T caseClosureIt(ClosureIt object)
object - the target of the switch.doSwitch(EObject)public T caseVariableAccess(VariableAccess object)
object - the target of the switch.doSwitch(EObject)public T caseStep(Step object)
object - the target of the switch.doSwitch(EObject)public T caseIdentityStep(IdentityStep object)
object - the target of the switch.doSwitch(EObject)public T caseFillStep(FillStep object)
object - the target of the switch.doSwitch(EObject)public T caseStartStep(StartStep object)
object - the target of the switch.doSwitch(EObject)public T caseVerticesStep(VerticesStep object)
object - the target of the switch.doSwitch(EObject)public T caseEdgesStep(EdgesStep object)
object - the target of the switch.doSwitch(EObject)public T casePropertyStep(PropertyStep object)
object - the target of the switch.doSwitch(EObject)public T caseOutEStep(OutEStep object)
object - the target of the switch.doSwitch(EObject)public T caseInEStep(InEStep object)
object - the target of the switch.doSwitch(EObject)public T caseInVStep(InVStep object)
object - the target of the switch.doSwitch(EObject)public T caseOutVStep(OutVStep object)
object - the target of the switch.doSwitch(EObject)public T caseFilterStep(FilterStep object)
object - the target of the switch.doSwitch(EObject)public T caseRetainStep(RetainStep object)
object - the target of the switch.doSwitch(EObject)public T caseExceptStep(ExceptStep object)
object - the target of the switch.doSwitch(EObject)public T caseTransformStep(TransformStep object)
object - the target of the switch.doSwitch(EObject)public T caseGatherStep(GatherStep object)
object - the target of the switch.doSwitch(EObject)public T caseScatterStep(ScatterStep object)
object - the target of the switch.doSwitch(EObject)public T caseMethodCall(MethodCall object)
object - the target of the switch.doSwitch(EObject)public T caseCustomMethodCall(CustomMethodCall object)
object - the target of the switch.doSwitch(EObject)public T caseNextCall(NextCall object)
object - the target of the switch.doSwitch(EObject)public T caseHasNextCall(HasNextCall object)
object - the target of the switch.doSwitch(EObject)public T caseIndexCall(IndexCall object)
object - the target of the switch.doSwitch(EObject)public T caseCountCall(CountCall object)
object - the target of the switch.doSwitch(EObject)public T caseFirstCall(FirstCall object)
object - the target of the switch.doSwitch(EObject)public T caseToListCall(ToListCall object)
object - the target of the switch.doSwitch(EObject)public T caseIsEmptyCall(IsEmptyCall object)
object - the target of the switch.doSwitch(EObject)public T caseContainsCall(ContainsCall object)
object - the target of the switch.doSwitch(EObject)public T caseContainsAllCall(ContainsAllCall object)
object - the target of the switch.doSwitch(EObject)public T caseAddAllCall(AddAllCall object)
object - the target of the switch.doSwitch(EObject)public T caseRetainAllCall(RetainAllCall object)
object - the target of the switch.doSwitch(EObject)public T caseUnionCall(UnionCall object)
object - the target of the switch.doSwitch(EObject)public T caseIntersectionCall(IntersectionCall object)
object - the target of the switch.doSwitch(EObject)public T caseSizeCall(SizeCall object)
object - the target of the switch.doSwitch(EObject)public T caseExpression(Expression object)
object - the target of the switch.doSwitch(EObject)public T caseUnaryExpression(UnaryExpression object)
object - the target of the switch.doSwitch(EObject)public T caseNotExpression(NotExpression object)
object - the target of the switch.doSwitch(EObject)public T caseBinaryExpression(BinaryExpression object)
object - the target of the switch.doSwitch(EObject)public T caseEqualityExpression(EqualityExpression object)
object - the target of the switch.doSwitch(EObject)public T caseInExpression(InExpression object)
object - the target of the switch.doSwitch(EObject)public T caseDifferenceExpression(DifferenceExpression object)
object - the target of the switch.doSwitch(EObject)public T caseOrExpression(OrExpression object)
object - the target of the switch.doSwitch(EObject)public T caseAndExpression(AndExpression object)
object - the target of the switch.doSwitch(EObject)public T caseGreaterExpression(GreaterExpression object)
object - the target of the switch.doSwitch(EObject)public T caseGreaterOrEqualExpression(GreaterOrEqualExpression object)
object - the target of the switch.doSwitch(EObject)public T caseLessExpression(LessExpression object)
object - the target of the switch.doSwitch(EObject)public T caseLessOrEqualExpression(LessOrEqualExpression object)
object - the target of the switch.doSwitch(EObject)public T caseAffectationExpression(AffectationExpression object)
object - the target of the switch.doSwitch(EObject)public T caseLeftShiftExpression(LeftShiftExpression object)
object - the target of the switch.doSwitch(EObject)public T caseTernaryOperator(TernaryOperator object)
object - the target of the switch.doSwitch(EObject)public T caseStringLiteral(StringLiteral object)
object - the target of the switch.doSwitch(EObject)public T caseIntegerLiteral(IntegerLiteral object)
object - the target of the switch.doSwitch(EObject)public T caseDoubleLiteral(DoubleLiteral object)
object - the target of the switch.doSwitch(EObject)public T caseBooleanLiteral(BooleanLiteral object)
object - the target of the switch.doSwitch(EObject)public T caseNullLiteral(NullLiteral object)
object - the target of the switch.doSwitch(EObject)public T caseToIntegerCall(ToIntegerCall object)
object - the target of the switch.doSwitch(EObject)public T casePlusExpression(PlusExpression object)
object - the target of the switch.doSwitch(EObject)public T caseCustomStep(CustomStep 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)Copyright © 2018–2019 Atlanmod. All rights reserved.