public class MemorySwitch<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.
MemoryPackage
Modifier and Type | Field and Description |
---|---|
protected static MemoryPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
MemorySwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'.
|
T |
caseBaseScalarType(BaseScalarType object)
Returns the result of interpreting the object as an instance of 'Base Scalar Type'.
|
T |
caseBitType(BitType object)
Returns the result of interpreting the object as an instance of 'Bit Type'.
|
T |
caseFixedLengthBlobType(FixedLengthBlobType object)
Returns the result of interpreting the object as an instance of 'Fixed Length Blob Type'.
|
T |
caseFixedLengthStringType(FixedLengthStringType object)
Returns the result of interpreting the object as an instance of 'Fixed Length String Type'.
|
T |
caseFloat32Type(Float32Type object)
Returns the result of interpreting the object as an instance of 'Float32 Type'.
|
T |
caseFloat64Type(Float64Type object)
Returns the result of interpreting the object as an instance of 'Float64 Type'.
|
T |
caseOrderedType(OrderedType object)
Returns the result of interpreting the object as an instance of 'Ordered Type'.
|
T |
caseScalarType(ScalarType object)
Returns the result of interpreting the object as an instance of 'Scalar Type'.
|
T |
caseSignedInteger16Type(SignedInteger16Type object)
Returns the result of interpreting the object as an instance of 'Signed Integer16 Type'.
|
T |
caseSignedInteger32Type(SignedInteger32Type object)
Returns the result of interpreting the object as an instance of 'Signed Integer32 Type'.
|
T |
caseSignedInteger64Type(SignedInteger64Type object)
Returns the result of interpreting the object as an instance of 'Signed Integer64 Type'.
|
T |
caseSignedInteger8Type(SignedInteger8Type object)
Returns the result of interpreting the object as an instance of 'Signed Integer8 Type'.
|
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'.
|
T |
caseTypeDefinition(TypeDefinition object)
Returns the result of interpreting the object as an instance of 'Type Definition'.
|
T |
caseTypeSystem(TypeSystem object)
Returns the result of interpreting the object as an instance of 'Type System'.
|
T |
caseUnsignedInteger16Type(UnsignedInteger16Type object)
Returns the result of interpreting the object as an instance of 'Unsigned Integer16 Type'.
|
T |
caseUnsignedInteger32Type(UnsignedInteger32Type object)
Returns the result of interpreting the object as an instance of 'Unsigned Integer32 Type'.
|
T |
caseUnsignedInteger8Type(UnsignedInteger8Type object)
Returns the result of interpreting the object as an instance of 'Unsigned Integer8 Type'.
|
T |
caseUserDefinedType(UserDefinedType object)
Returns the result of interpreting the object as an instance of 'User Defined Type'.
|
T |
caseVariable(Variable object)
Returns the result of interpreting the object as an instance of 'Variable'.
|
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 MemoryPackage 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 caseTypeDefinition(TypeDefinition object)
object
- the target of the switch.doSwitch(EObject)
public T caseUserDefinedType(UserDefinedType object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnsignedInteger16Type(UnsignedInteger16Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseScalarType(ScalarType object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnsignedInteger32Type(UnsignedInteger32Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnsignedInteger8Type(UnsignedInteger8Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypeSystem(TypeSystem object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrderedType(OrderedType object)
object
- the target of the switch.doSwitch(EObject)
public T caseFloat64Type(Float64Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseSignedInteger8Type(SignedInteger8Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseSignedInteger16Type(SignedInteger16Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseSignedInteger32Type(SignedInteger32Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseSignedInteger64Type(SignedInteger64Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseFixedLengthStringType(FixedLengthStringType object)
object
- the target of the switch.doSwitch(EObject)
public T caseFixedLengthBlobType(FixedLengthBlobType object)
object
- the target of the switch.doSwitch(EObject)
public T caseBitType(BitType object)
object
- the target of the switch.doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariable(Variable object)
object
- the target of the switch.doSwitch(EObject)
public T caseAttribute(Attribute object)
object
- the target of the switch.doSwitch(EObject)
public T caseFloat32Type(Float32Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseBaseScalarType(BaseScalarType 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)