/*
* Copyright (c) 2011, IRISA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of IRISA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
package net.sf.orcc.backends.llvm.tta.architecture.util;
import java.util.Map;
import net.sf.orcc.backends.llvm.tta.architecture.ArchitecturePackage;
import net.sf.orcc.backends.llvm.tta.architecture.Bridge;
import net.sf.orcc.backends.llvm.tta.architecture.Bus;
import net.sf.orcc.backends.llvm.tta.architecture.Component;
import net.sf.orcc.backends.llvm.tta.architecture.Design;
import net.sf.orcc.backends.llvm.tta.architecture.Element;
import net.sf.orcc.backends.llvm.tta.architecture.ExprBinary;
import net.sf.orcc.backends.llvm.tta.architecture.ExprFalse;
import net.sf.orcc.backends.llvm.tta.architecture.ExprTrue;
import net.sf.orcc.backends.llvm.tta.architecture.ExprUnary;
import net.sf.orcc.backends.llvm.tta.architecture.FuPort;
import net.sf.orcc.backends.llvm.tta.architecture.FunctionUnit;
import net.sf.orcc.backends.llvm.tta.architecture.GlobalControlUnit;
import net.sf.orcc.backends.llvm.tta.architecture.Guard;
import net.sf.orcc.backends.llvm.tta.architecture.Implementation;
import net.sf.orcc.backends.llvm.tta.architecture.Link;
import net.sf.orcc.backends.llvm.tta.architecture.Memory;
import net.sf.orcc.backends.llvm.tta.architecture.Operation;
import net.sf.orcc.backends.llvm.tta.architecture.Port;
import net.sf.orcc.backends.llvm.tta.architecture.Processor;
import net.sf.orcc.backends.llvm.tta.architecture.Reads;
import net.sf.orcc.backends.llvm.tta.architecture.RegisterFile;
import net.sf.orcc.backends.llvm.tta.architecture.Resource;
import net.sf.orcc.backends.llvm.tta.architecture.Segment;
import net.sf.orcc.backends.llvm.tta.architecture.ShortImmediate;
import net.sf.orcc.backends.llvm.tta.architecture.Signal;
import net.sf.orcc.backends.llvm.tta.architecture.Socket;
import net.sf.orcc.backends.llvm.tta.architecture.Term;
import net.sf.orcc.backends.llvm.tta.architecture.TermBool;
import net.sf.orcc.backends.llvm.tta.architecture.TermUnit;
import net.sf.orcc.backends.llvm.tta.architecture.Writes;
import net.sf.orcc.graph.Edge;
import net.sf.orcc.graph.Graph;
import net.sf.orcc.graph.Vertex;
import net.sf.orcc.util.Adaptable;
import net.sf.orcc.util.Attributable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance
* hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> 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. <!-- end-user-doc -->
* @see net.sf.orcc.backends.llvm.tta.architecture.ArchitecturePackage
* @generated
*/
public class ArchitectureSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected static ArchitecturePackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
*/
public ArchitectureSwitch() {
if (modelPackage == null) {
modelPackage = ArchitecturePackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @parameter 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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case ArchitecturePackage.DESIGN: {
Design design = (Design) theEObject;
T result = caseDesign(design);
if (result == null)
result = caseGraph(design);
if (result == null)
result = caseVertex(design);
if (result == null)
result = caseAttributable(design);
if (result == null)
result = caseAdaptable(design);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.LINK: {
Link link = (Link) theEObject;
T result = caseLink(link);
if (result == null)
result = caseEdge(link);
if (result == null)
result = caseAttributable(link);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.SIGNAL: {
Signal signal = (Signal) theEObject;
T result = caseSignal(signal);
if (result == null)
result = caseLink(signal);
if (result == null)
result = caseEdge(signal);
if (result == null)
result = caseAttributable(signal);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.COMPONENT: {
Component component = (Component) theEObject;
T result = caseComponent(component);
if (result == null)
result = caseVertex(component);
if (result == null)
result = caseAttributable(component);
if (result == null)
result = caseAdaptable(component);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.PORT: {
Port port = (Port) theEObject;
T result = casePort(port);
if (result == null)
result = caseVertex(port);
if (result == null)
result = caseAttributable(port);
if (result == null)
result = caseAdaptable(port);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.MEMORY: {
Memory memory = (Memory) theEObject;
T result = caseMemory(memory);
if (result == null)
result = caseLink(memory);
if (result == null)
result = caseEdge(memory);
if (result == null)
result = caseAttributable(memory);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.PROCESSOR: {
Processor processor = (Processor) theEObject;
T result = caseProcessor(processor);
if (result == null)
result = caseComponent(processor);
if (result == null)
result = caseVertex(processor);
if (result == null)
result = caseAttributable(processor);
if (result == null)
result = caseAdaptable(processor);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.BUS: {
Bus bus = (Bus) theEObject;
T result = caseBus(bus);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.BRIDGE: {
Bridge bridge = (Bridge) theEObject;
T result = caseBridge(bridge);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.SEGMENT: {
Segment segment = (Segment) theEObject;
T result = caseSegment(segment);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.GLOBAL_CONTROL_UNIT: {
GlobalControlUnit globalControlUnit = (GlobalControlUnit) theEObject;
T result = caseGlobalControlUnit(globalControlUnit);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.FUNCTION_UNIT: {
FunctionUnit functionUnit = (FunctionUnit) theEObject;
T result = caseFunctionUnit(functionUnit);
if (result == null)
result = casePort(functionUnit);
if (result == null)
result = caseVertex(functionUnit);
if (result == null)
result = caseAttributable(functionUnit);
if (result == null)
result = caseAdaptable(functionUnit);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.REGISTER_FILE: {
RegisterFile registerFile = (RegisterFile) theEObject;
T result = caseRegisterFile(registerFile);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.FU_PORT: {
FuPort fuPort = (FuPort) theEObject;
T result = caseFuPort(fuPort);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.SOCKET: {
Socket socket = (Socket) theEObject;
T result = caseSocket(socket);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.OPERATION: {
Operation operation = (Operation) theEObject;
T result = caseOperation(operation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.ELEMENT: {
Element element = (Element) theEObject;
T result = caseElement(element);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.READS: {
Reads reads = (Reads) theEObject;
T result = caseReads(reads);
if (result == null)
result = caseElement(reads);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.WRITES: {
Writes writes = (Writes) theEObject;
T result = caseWrites(writes);
if (result == null)
result = caseElement(writes);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.RESOURCE: {
Resource resource = (Resource) theEObject;
T result = caseResource(resource);
if (result == null)
result = caseElement(resource);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.SHORT_IMMEDIATE: {
ShortImmediate shortImmediate = (ShortImmediate) theEObject;
T result = caseShortImmediate(shortImmediate);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.GUARD: {
Guard guard = (Guard) theEObject;
T result = caseGuard(guard);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.EXPR_UNARY: {
ExprUnary exprUnary = (ExprUnary) theEObject;
T result = caseExprUnary(exprUnary);
if (result == null)
result = caseGuard(exprUnary);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.EXPR_BINARY: {
ExprBinary exprBinary = (ExprBinary) theEObject;
T result = caseExprBinary(exprBinary);
if (result == null)
result = caseGuard(exprBinary);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.EXPR_TRUE: {
ExprTrue exprTrue = (ExprTrue) theEObject;
T result = caseExprTrue(exprTrue);
if (result == null)
result = caseGuard(exprTrue);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.EXPR_FALSE: {
ExprFalse exprFalse = (ExprFalse) theEObject;
T result = caseExprFalse(exprFalse);
if (result == null)
result = caseGuard(exprFalse);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.TERM: {
Term term = (Term) theEObject;
T result = caseTerm(term);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.TERM_BOOL: {
TermBool termBool = (TermBool) theEObject;
T result = caseTermBool(termBool);
if (result == null)
result = caseTerm(termBool);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.TERM_UNIT: {
TermUnit termUnit = (TermUnit) theEObject;
T result = caseTermUnit(termUnit);
if (result == null)
result = caseTerm(termUnit);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.IMPLEMENTATION: {
Implementation implementation = (Implementation) theEObject;
T result = caseImplementation(implementation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.TYPE_TO_IMPL_MAP_ENTRY: {
@SuppressWarnings("unchecked")
Map.Entry<String, Implementation> typeToImplMapEntry = (Map.Entry<String, Implementation>) theEObject;
T result = caseTypeToImplMapEntry(typeToImplMapEntry);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case ArchitecturePackage.PORT_TO_INDEX_MAP_ENTRY: {
@SuppressWarnings("unchecked")
Map.Entry<FuPort, Integer> portToIndexMapEntry = (Map.Entry<FuPort, Integer>) theEObject;
T result = casePortToIndexMapEntry(portToIndexMapEntry);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Design</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Design</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDesign(Design object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '
* <em>Link</em>'. <!-- begin-user-doc --> This implementation returns null;
* returning a non-null result will terminate the switch. <!-- end-user-doc
* -->
*
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '
* <em>Link</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLink(Link object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Signal</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Signal</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSignal(Signal object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Component</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Component</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseComponent(Component object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Processor</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Processor</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseProcessor(Processor object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Memory</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Memory</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMemory(Memory object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '
* <em>Bus</em>'. <!-- begin-user-doc --> This implementation returns null;
* returning a non-null result will terminate the switch. <!-- end-user-doc
* -->
*
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '
* <em>Bus</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBus(Bus object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Bridge</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Bridge</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBridge(Bridge object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Segment</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Segment</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSegment(Segment object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Global Control Unit</em>'.
* <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate
* the switch. <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Global Control Unit</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGlobalControlUnit(GlobalControlUnit object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Function Unit</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Function Unit</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFunctionUnit(FunctionUnit object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Register File</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Register File</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseRegisterFile(RegisterFile object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fu Port</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fu Port</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFuPort(FuPort object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '
* <em>Port</em>'. <!-- begin-user-doc --> This implementation returns null;
* returning a non-null result will terminate the switch. <!-- end-user-doc
* -->
*
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '
* <em>Port</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePort(Port object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Socket</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Socket</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSocket(Socket object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Operation</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Operation</em>'.
* @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 '<em>Guard</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Guard</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGuard(Guard object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Expr Unary</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Expr Unary</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExprUnary(ExprUnary object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Expr Binary</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Expr Binary</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExprBinary(ExprBinary object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Expr True</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Expr True</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExprTrue(ExprTrue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Expr False</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Expr False</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExprFalse(ExprFalse object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '
* <em>Term</em>'. <!-- begin-user-doc --> This implementation returns null;
* returning a non-null result will terminate the switch. <!-- end-user-doc
* -->
*
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '
* <em>Term</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTerm(Term object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Term Bool</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Term Bool</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTermBool(TermBool object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Term Unit</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Term Unit</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTermUnit(TermUnit object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Implementation</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Implementation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseImplementation(Implementation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Type To Impl Map Entry</em>'.
* <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate
* the switch. <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Type To Impl Map Entry</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTypeToImplMapEntry(Map.Entry<String, Implementation> object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Port To Index Map Entry</em>'.
* <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate
* the switch. <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Port To Index Map Entry</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePortToIndexMapEntry(Map.Entry<FuPort, Integer> object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Graph</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Graph</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGraph(Graph object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '
* <em>Edge</em>'. <!-- begin-user-doc --> This implementation returns null;
* returning a non-null result will terminate the switch. <!-- end-user-doc
* -->
*
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '
* <em>Edge</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEdge(Edge object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Attributable</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Attributable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAttributable(Attributable object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Adaptable</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Adaptable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAdaptable(Adaptable object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Vertex</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Vertex</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseVertex(Vertex object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Element</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseElement(Element object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Reads</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Reads</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseReads(Reads object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Writes</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Writes</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWrites(Writes object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Resource</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Resource</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseResource(Resource object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Short Immediate</em>'.
* <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Short Immediate</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseShortImmediate(ShortImmediate object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc --> This implementation returns
* null; returning a non-null result will terminate the switch, but this is
* the last case anyway. <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} // ArchitectureSwitch