org.nasdanika.models.java.util.JavaSwitch Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.java.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.nasdanika.models.java.Annotation;
import org.nasdanika.models.java.AnnotationInterface;
import org.nasdanika.models.java.AnnotationInterfaceMember;
import org.nasdanika.models.java.BlockComment;
import org.nasdanika.models.java.ClassInitializer;
import org.nasdanika.models.java.Code;
import org.nasdanika.models.java.Comment;
import org.nasdanika.models.java.CompilationUnit;
import org.nasdanika.models.java.Constructor;
import org.nasdanika.models.java.EnumConstant;
import org.nasdanika.models.java.Field;
import org.nasdanika.models.java.GenericType;
import org.nasdanika.models.java.Initializer;
import org.nasdanika.models.java.Interface;
import org.nasdanika.models.java.JavaPackage;
import org.nasdanika.models.java.JavadocComment;
import org.nasdanika.models.java.LineComment;
import org.nasdanika.models.java.Member;
import org.nasdanika.models.java.Method;
import org.nasdanika.models.java.NamedElement;
import org.nasdanika.models.java.Operation;
import org.nasdanika.models.java.Parameter;
import org.nasdanika.models.java.Reference;
import org.nasdanika.models.java.Source;
import org.nasdanika.models.java.Type;
import org.nasdanika.models.java.TypeParameter;
import org.nasdanika.models.java.TypedElement;
import org.nasdanika.models.source.Range;
import org.nasdanika.persistence.Marked;
/**
*
* The Switch for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) 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.
*
* @see org.nasdanika.models.java.JavaPackage
* @generated
*/
public class JavaSwitch extends Switch {
/**
* The cached model package
*
*
* @generated
*/
protected static JavaPackage modelPackage;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public JavaSwitch() {
if (modelPackage == null) {
modelPackage = JavaPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
*
*
* @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
*
*
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case JavaPackage.SOURCE: {
Source source = (Source)theEObject;
T result = caseSource(source);
if (result == null) result = caseSource_Source(source);
if (result == null) result = caseRange(source);
if (result == null) result = caseMarked(source);
if (result == null) result = caseIMarked(source);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.NAMED_ELEMENT: {
NamedElement namedElement = (NamedElement)theEObject;
T result = caseNamedElement(namedElement);
if (result == null) result = caseSource(namedElement);
if (result == null) result = caseSource_Source(namedElement);
if (result == null) result = caseRange(namedElement);
if (result == null) result = caseMarked(namedElement);
if (result == null) result = caseIMarked(namedElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.COMPILATION_UNIT: {
CompilationUnit compilationUnit = (CompilationUnit)theEObject;
T result = caseCompilationUnit(compilationUnit);
if (result == null) result = caseNamedElement(compilationUnit);
if (result == null) result = caseSource(compilationUnit);
if (result == null) result = caseSource_Source(compilationUnit);
if (result == null) result = caseRange(compilationUnit);
if (result == null) result = caseMarked(compilationUnit);
if (result == null) result = caseIMarked(compilationUnit);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.COMMENT: {
Comment comment = (Comment)theEObject;
T result = caseComment(comment);
if (result == null) result = caseRange(comment);
if (result == null) result = caseMarked(comment);
if (result == null) result = caseIMarked(comment);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.LINE_COMMENT: {
LineComment lineComment = (LineComment)theEObject;
T result = caseLineComment(lineComment);
if (result == null) result = caseComment(lineComment);
if (result == null) result = caseRange(lineComment);
if (result == null) result = caseMarked(lineComment);
if (result == null) result = caseIMarked(lineComment);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.JAVADOC_COMMENT: {
JavadocComment javadocComment = (JavadocComment)theEObject;
T result = caseJavadocComment(javadocComment);
if (result == null) result = caseComment(javadocComment);
if (result == null) result = caseRange(javadocComment);
if (result == null) result = caseMarked(javadocComment);
if (result == null) result = caseIMarked(javadocComment);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.BLOCK_COMMENT: {
BlockComment blockComment = (BlockComment)theEObject;
T result = caseBlockComment(blockComment);
if (result == null) result = caseComment(blockComment);
if (result == null) result = caseRange(blockComment);
if (result == null) result = caseMarked(blockComment);
if (result == null) result = caseIMarked(blockComment);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.MEMBER: {
Member member = (Member)theEObject;
T result = caseMember(member);
if (result == null) result = caseNamedElement(member);
if (result == null) result = caseSource(member);
if (result == null) result = caseSource_Source(member);
if (result == null) result = caseRange(member);
if (result == null) result = caseMarked(member);
if (result == null) result = caseIMarked(member);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.REFERENCE: {
Reference reference = (Reference)theEObject;
T result = caseReference(reference);
if (result == null) result = caseNamedElement(reference);
if (result == null) result = caseSource(reference);
if (result == null) result = caseSource_Source(reference);
if (result == null) result = caseRange(reference);
if (result == null) result = caseMarked(reference);
if (result == null) result = caseIMarked(reference);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.GENERIC_TYPE: {
GenericType genericType = (GenericType)theEObject;
T result = caseGenericType(genericType);
if (result == null) result = caseReference(genericType);
if (result == null) result = caseNamedElement(genericType);
if (result == null) result = caseSource(genericType);
if (result == null) result = caseSource_Source(genericType);
if (result == null) result = caseRange(genericType);
if (result == null) result = caseMarked(genericType);
if (result == null) result = caseIMarked(genericType);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.ANNOTATION: {
Annotation annotation = (Annotation)theEObject;
T result = caseAnnotation(annotation);
if (result == null) result = caseReference(annotation);
if (result == null) result = caseNamedElement(annotation);
if (result == null) result = caseSource(annotation);
if (result == null) result = caseSource_Source(annotation);
if (result == null) result = caseRange(annotation);
if (result == null) result = caseMarked(annotation);
if (result == null) result = caseIMarked(annotation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.TYPE_PARAMETER: {
TypeParameter typeParameter = (TypeParameter)theEObject;
T result = caseTypeParameter(typeParameter);
if (result == null) result = caseNamedElement(typeParameter);
if (result == null) result = caseSource(typeParameter);
if (result == null) result = caseSource_Source(typeParameter);
if (result == null) result = caseRange(typeParameter);
if (result == null) result = caseMarked(typeParameter);
if (result == null) result = caseIMarked(typeParameter);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.TYPED_ELEMENT: {
TypedElement typedElement = (TypedElement)theEObject;
T result = caseTypedElement(typedElement);
if (result == null) result = caseNamedElement(typedElement);
if (result == null) result = caseSource(typedElement);
if (result == null) result = caseSource_Source(typedElement);
if (result == null) result = caseRange(typedElement);
if (result == null) result = caseMarked(typedElement);
if (result == null) result = caseIMarked(typedElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.TYPE: {
Type type = (Type)theEObject;
T result = caseType(type);
if (result == null) result = caseMember(type);
if (result == null) result = caseNamedElement(type);
if (result == null) result = caseSource(type);
if (result == null) result = caseSource_Source(type);
if (result == null) result = caseRange(type);
if (result == null) result = caseMarked(type);
if (result == null) result = caseIMarked(type);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.ANNOTATION_INTERFACE: {
AnnotationInterface annotationInterface = (AnnotationInterface)theEObject;
T result = caseAnnotationInterface(annotationInterface);
if (result == null) result = caseType(annotationInterface);
if (result == null) result = caseMember(annotationInterface);
if (result == null) result = caseNamedElement(annotationInterface);
if (result == null) result = caseSource(annotationInterface);
if (result == null) result = caseSource_Source(annotationInterface);
if (result == null) result = caseRange(annotationInterface);
if (result == null) result = caseMarked(annotationInterface);
if (result == null) result = caseIMarked(annotationInterface);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.ANNOTATION_INTERFACE_MEMBER: {
AnnotationInterfaceMember annotationInterfaceMember = (AnnotationInterfaceMember)theEObject;
T result = caseAnnotationInterfaceMember(annotationInterfaceMember);
if (result == null) result = caseMember(annotationInterfaceMember);
if (result == null) result = caseNamedElement(annotationInterfaceMember);
if (result == null) result = caseSource(annotationInterfaceMember);
if (result == null) result = caseSource_Source(annotationInterfaceMember);
if (result == null) result = caseRange(annotationInterfaceMember);
if (result == null) result = caseMarked(annotationInterfaceMember);
if (result == null) result = caseIMarked(annotationInterfaceMember);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.CLASS: {
org.nasdanika.models.java.Class class_ = (org.nasdanika.models.java.Class)theEObject;
T result = caseClass(class_);
if (result == null) result = caseType(class_);
if (result == null) result = caseMember(class_);
if (result == null) result = caseNamedElement(class_);
if (result == null) result = caseSource(class_);
if (result == null) result = caseSource_Source(class_);
if (result == null) result = caseRange(class_);
if (result == null) result = caseMarked(class_);
if (result == null) result = caseIMarked(class_);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.INTERFACE: {
Interface interface_ = (Interface)theEObject;
T result = caseInterface(interface_);
if (result == null) result = caseType(interface_);
if (result == null) result = caseMember(interface_);
if (result == null) result = caseNamedElement(interface_);
if (result == null) result = caseSource(interface_);
if (result == null) result = caseSource_Source(interface_);
if (result == null) result = caseRange(interface_);
if (result == null) result = caseMarked(interface_);
if (result == null) result = caseIMarked(interface_);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.CONSTRUCTOR: {
Constructor constructor = (Constructor)theEObject;
T result = caseConstructor(constructor);
if (result == null) result = caseOperation(constructor);
if (result == null) result = caseCode(constructor);
if (result == null) result = caseTypedElement(constructor);
if (result == null) result = caseMember(constructor);
if (result == null) result = caseNamedElement(constructor);
if (result == null) result = caseSource(constructor);
if (result == null) result = caseSource_Source(constructor);
if (result == null) result = caseRange(constructor);
if (result == null) result = caseMarked(constructor);
if (result == null) result = caseIMarked(constructor);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.ENUM: {
org.nasdanika.models.java.Enum enum_ = (org.nasdanika.models.java.Enum)theEObject;
T result = caseEnum(enum_);
if (result == null) result = caseType(enum_);
if (result == null) result = caseMember(enum_);
if (result == null) result = caseNamedElement(enum_);
if (result == null) result = caseSource(enum_);
if (result == null) result = caseSource_Source(enum_);
if (result == null) result = caseRange(enum_);
if (result == null) result = caseMarked(enum_);
if (result == null) result = caseIMarked(enum_);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.ENUM_CONSTANT: {
EnumConstant enumConstant = (EnumConstant)theEObject;
T result = caseEnumConstant(enumConstant);
if (result == null) result = caseMember(enumConstant);
if (result == null) result = caseNamedElement(enumConstant);
if (result == null) result = caseSource(enumConstant);
if (result == null) result = caseSource_Source(enumConstant);
if (result == null) result = caseRange(enumConstant);
if (result == null) result = caseMarked(enumConstant);
if (result == null) result = caseIMarked(enumConstant);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.FIELD: {
Field field = (Field)theEObject;
T result = caseField(field);
if (result == null) result = caseCode(field);
if (result == null) result = caseTypedElement(field);
if (result == null) result = caseMember(field);
if (result == null) result = caseNamedElement(field);
if (result == null) result = caseSource(field);
if (result == null) result = caseSource_Source(field);
if (result == null) result = caseRange(field);
if (result == null) result = caseMarked(field);
if (result == null) result = caseIMarked(field);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.MODULE: {
org.nasdanika.models.java.Module module = (org.nasdanika.models.java.Module)theEObject;
T result = caseModule(module);
if (result == null) result = caseSource(module);
if (result == null) result = caseSource_Source(module);
if (result == null) result = caseRange(module);
if (result == null) result = caseMarked(module);
if (result == null) result = caseIMarked(module);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.PACKAGE: {
org.nasdanika.models.java.Package package_ = (org.nasdanika.models.java.Package)theEObject;
T result = casePackage(package_);
if (result == null) result = caseSource(package_);
if (result == null) result = caseSource_Source(package_);
if (result == null) result = caseRange(package_);
if (result == null) result = caseMarked(package_);
if (result == null) result = caseIMarked(package_);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.METHOD: {
Method method = (Method)theEObject;
T result = caseMethod(method);
if (result == null) result = caseOperation(method);
if (result == null) result = caseCode(method);
if (result == null) result = caseTypedElement(method);
if (result == null) result = caseMember(method);
if (result == null) result = caseNamedElement(method);
if (result == null) result = caseSource(method);
if (result == null) result = caseSource_Source(method);
if (result == null) result = caseRange(method);
if (result == null) result = caseMarked(method);
if (result == null) result = caseIMarked(method);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.CODE: {
Code code = (Code)theEObject;
T result = caseCode(code);
if (result == null) result = caseMember(code);
if (result == null) result = caseNamedElement(code);
if (result == null) result = caseSource(code);
if (result == null) result = caseSource_Source(code);
if (result == null) result = caseRange(code);
if (result == null) result = caseMarked(code);
if (result == null) result = caseIMarked(code);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.INITIALIZER: {
Initializer initializer = (Initializer)theEObject;
T result = caseInitializer(initializer);
if (result == null) result = caseCode(initializer);
if (result == null) result = caseMember(initializer);
if (result == null) result = caseNamedElement(initializer);
if (result == null) result = caseSource(initializer);
if (result == null) result = caseSource_Source(initializer);
if (result == null) result = caseRange(initializer);
if (result == null) result = caseMarked(initializer);
if (result == null) result = caseIMarked(initializer);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.CLASS_INITIALIZER: {
ClassInitializer classInitializer = (ClassInitializer)theEObject;
T result = caseClassInitializer(classInitializer);
if (result == null) result = caseCode(classInitializer);
if (result == null) result = caseMember(classInitializer);
if (result == null) result = caseNamedElement(classInitializer);
if (result == null) result = caseSource(classInitializer);
if (result == null) result = caseSource_Source(classInitializer);
if (result == null) result = caseRange(classInitializer);
if (result == null) result = caseMarked(classInitializer);
if (result == null) result = caseIMarked(classInitializer);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.PARAMETER: {
Parameter parameter = (Parameter)theEObject;
T result = caseParameter(parameter);
if (result == null) result = caseTypedElement(parameter);
if (result == null) result = caseNamedElement(parameter);
if (result == null) result = caseSource(parameter);
if (result == null) result = caseSource_Source(parameter);
if (result == null) result = caseRange(parameter);
if (result == null) result = caseMarked(parameter);
if (result == null) result = caseIMarked(parameter);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.OPERATION: {
Operation operation = (Operation)theEObject;
T result = caseOperation(operation);
if (result == null) result = caseCode(operation);
if (result == null) result = caseTypedElement(operation);
if (result == null) result = caseMember(operation);
if (result == null) result = caseNamedElement(operation);
if (result == null) result = caseSource(operation);
if (result == null) result = caseSource_Source(operation);
if (result == null) result = caseRange(operation);
if (result == null) result = caseMarked(operation);
if (result == null) result = caseIMarked(operation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case JavaPackage.RECORD: {
org.nasdanika.models.java.Record record = (org.nasdanika.models.java.Record)theEObject;
T result = caseRecord(record);
if (result == null) result = caseType(record);
if (result == null) result = caseMember(record);
if (result == null) result = caseNamedElement(record);
if (result == null) result = caseSource(record);
if (result == null) result = caseSource_Source(record);
if (result == null) result = caseRange(record);
if (result == null) result = caseMarked(record);
if (result == null) result = caseIMarked(record);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of 'Class'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Class'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseClass(org.nasdanika.models.java.Class object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Constructor'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Constructor'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConstructor(Constructor object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Enum'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Enum'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnum(org.nasdanika.models.java.Enum object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Enum Constant'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Enum Constant'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnumConstant(EnumConstant object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Field'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Field'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseField(Field object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Interface'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Interface'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInterface(Interface object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Module'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Module'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseModule(org.nasdanika.models.java.Module object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Package'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Package'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePackage(org.nasdanika.models.java.Package object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Source'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Source'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSource(Source object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Record'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Record'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseRecord(org.nasdanika.models.java.Record object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Member'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Member'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMember(Member object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Reference'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Reference'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseReference(Reference object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Generic Type'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Generic Type'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGenericType(GenericType object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Annotation'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Annotation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAnnotation(Annotation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Type Parameter'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Type Parameter'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTypeParameter(TypeParameter object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Typed Element'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Typed Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTypedElement(TypedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Method'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Method'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMethod(Method object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Code'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Code'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCode(Code object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Initializer'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Initializer'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInitializer(Initializer object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Class Initializer'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Class Initializer'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseClassInitializer(ClassInitializer object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Parameter'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Parameter'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseParameter(Parameter object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Operation'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Operation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseOperation(Operation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Type'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Type'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseType(Type object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Annotation Interface'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Annotation Interface'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAnnotationInterface(AnnotationInterface object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Annotation Interface Member'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Annotation Interface Member'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAnnotationInterfaceMember(AnnotationInterfaceMember object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Compilation Unit'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Compilation Unit'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCompilationUnit(CompilationUnit object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Comment'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Comment'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseComment(Comment object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Line Comment'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Line Comment'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLineComment(LineComment object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Javadoc Comment'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Javadoc Comment'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseJavadocComment(JavadocComment object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Block Comment'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Block Comment'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBlockComment(BlockComment object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Named Element'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Named Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseNamedElement(NamedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'IMarked'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'IMarked'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseIMarked(Marked object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Marked'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Marked'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMarked(org.nasdanika.ncore.Marked object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Range'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Range'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseRange(Range object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Source'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Source'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSource_Source(org.nasdanika.models.source.Source object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'EObject'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //JavaSwitch