From dc1851ee966ed9a19ae5a50b4567a1c6fa730d5f Mon Sep 17 00:00:00 2001
From: sjfink
- * The following features are supported:
- *
- *
- *
- * If the meaning of the 'Nodes' reference isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Nodes' reference. - * @see #setNodes(ECollection) - * @see com.ibm.wala.ecore.graph.GraphPackage#getEGraph_Nodes() - * @model required="true" - * @generated - */ - ECollection getNodes(); - - /** - * Sets the value of the '{@link com.ibm.wala.ecore.graph.EGraph#getNodes Nodes}' reference. - * - * - * @param value the new value of the 'Nodes' reference. - * @see #getNodes() - * @generated - */ - void setNodes(ECollection value); - - /** - * Returns the value of the 'Edges' containment reference. - * - *- * If the meaning of the 'Edges' containment reference isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Edges' containment reference. - * @see #setEdges(ERelation) - * @see com.ibm.wala.ecore.graph.GraphPackage#getEGraph_Edges() - * @model containment="true" required="true" - * @generated - */ - ERelation getEdges(); - - /** - * Sets the value of the '{@link com.ibm.wala.ecore.graph.EGraph#getEdges Edges}' containment reference. - * - * - * @param value the new value of the 'Edges' containment reference. - * @see #getEdges() - * @generated - */ - void setEdges(ERelation value); - -} // EGraph \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/ETree.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/ETree.java deleted file mode 100644 index a2f475098..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/ETree.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - *- * The following features are implemented: - *
- *
- * - * @generated - */ -public class ETreeImpl extends EGraphImpl implements ETree { - /** - * - * - * @generated - */ - protected ETreeImpl() { - super(); - } - - /** - * - * - * @generated - */ - protected EClass eStaticClass() { - return GraphPackage.Literals.ETREE; - } - -} //ETreeImpl \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphFactoryImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphFactoryImpl.java deleted file mode 100644 index 926b1bdbf..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphFactoryImpl.java +++ /dev/null @@ -1,111 +0,0 @@ -/** - *Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see com.ibm.wala.ecore.graph.GraphPackage#eNS_URI - * @see #init() - * @generated - */ - private GraphPackageImpl() { - super(eNS_URI, GraphFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *
Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *
Invocation of this method will not affect any packages that have
- * already been initialized.
- *
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static GraphPackage init() {
- if (isInited) return (GraphPackage)EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI);
-
- // Obtain or create and register package
- GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new GraphPackageImpl());
-
- isInited = true;
-
- // Obtain or create and register interdependencies
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- RegexPackageImpl theRegexPackage = (RegexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) instanceof RegexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) : RegexPackage.eINSTANCE);
- JavaPackageImpl theJavaPackage = (JavaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) instanceof JavaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) : JavaPackage.eINSTANCE);
- JavaScopePackageImpl theJavaScopePackage = (JavaScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) instanceof JavaScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) : JavaScopePackage.eINSTANCE);
- J2EEScopePackageImpl theJ2EEScopePackage = (J2EEScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) instanceof J2EEScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) : J2EEScopePackage.eINSTANCE);
-
- // Create package meta-data objects
- theGraphPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theRegexPackage.createPackageContents();
- theJavaPackage.createPackageContents();
- theJavaScopePackage.createPackageContents();
- theJ2EEScopePackage.createPackageContents();
-
- // Initialize created meta-data
- theGraphPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theRegexPackage.initializePackageContents();
- theJavaPackage.initializePackageContents();
- theJavaScopePackage.initializePackageContents();
- theJ2EEScopePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theGraphPackage.freeze();
-
- return theGraphPackage;
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getEGraph() {
- return eGraphEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getEGraph_Nodes() {
- return (EReference)eGraphEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getEGraph_Edges() {
- return (EReference)eGraphEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getETree() {
- return eTreeEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public GraphFactory getGraphFactory() {
- return (GraphFactory)getEFactoryInstance();
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- eGraphEClass = createEClass(EGRAPH);
- createEReference(eGraphEClass, EGRAPH__NODES);
- createEReference(eGraphEClass, EGRAPH__EDGES);
-
- eTreeEClass = createEClass(ETREE);
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
-
- // Add supertypes to classes
- eTreeEClass.getESuperTypes().add(this.getEGraph());
-
- // Initialize classes and features; add operations and parameters
- initEClass(eGraphEClass, EGraph.class, "EGraph", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getEGraph_Nodes(), theCommonPackage.getECollection(), null, "nodes", null, 1, 1, EGraph.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getEGraph_Edges(), theCommonPackage.getERelation(), null, "edges", null, 1, 1, EGraph.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(eTreeEClass, ETree.class, "ETree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //GraphPackageImpl
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphAdapterFactory.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphAdapterFactory.java
deleted file mode 100644
index 4bc612084..000000000
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphAdapterFactory.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * createXXX
method for each class of the model.
- *
- * @see com.ibm.wala.ecore.graph.GraphPackage
- * @generated
- */
-@Internal
-public class GraphAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static GraphPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public GraphAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = GraphPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true
if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch the delegates to the createXXX
methods.
- *
- *
- * @generated
- */
- protected GraphSwitch modelSwitch =
- new GraphSwitch() {
- public Object caseEGraph(EGraph object) {
- return createEGraphAdapter();
- }
- public Object caseETree(ETree object) {
- return createETreeAdapter();
- }
- public Object defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the target
.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target
.
- * @generated
- */
- public Adapter createAdapter(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.graph.EGraph EGraph}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.graph.EGraph
- * @generated
- */
- public Adapter createEGraphAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.graph.ETree ETree}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.graph.ETree
- * @generated
- */
- public Adapter createETreeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //GraphAdapterFactory
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphSwitch.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphSwitch.java
deleted file mode 100644
index 10183008a..000000000
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphSwitch.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/**
- * 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 com.ibm.wala.ecore.graph.GraphPackage
- * @generated
- */
-@Internal
-public class GraphSwitch {
- /**
- * The cached model package
- *
- *
- * @generated
- */
- protected static GraphPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- *
- *
- * @generated
- */
- public GraphSwitch() {
- if (modelPackage == null) {
- modelPackage = GraphPackage.eINSTANCE;
- }
- }
-
- /**
- * 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
- */
- public Object doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * 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
- */
- protected Object doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch((EClass)eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * 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
- */
- protected Object doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case GraphPackage.EGRAPH: {
- EGraph eGraph = (EGraph)theEObject;
- Object result = caseEGraph(eGraph);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case GraphPackage.ETREE: {
- ETree eTree = (ETree)theEObject;
- Object result = caseETree(eTree);
- if (result == null) result = caseEGraph(eTree);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'EGraph'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of 'EGraph'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEGraph(EGraph object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'ETree'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of 'ETree'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseETree(ETree object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public Object defaultCase(EObject object) {
- return null;
- }
-
-} //GraphSwitch
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/j2ee/scope/impl/J2EEScopePackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/j2ee/scope/impl/J2EEScopePackageImpl.java
index 2e9dfc4a8..112e8d25a 100644
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/j2ee/scope/impl/J2EEScopePackageImpl.java
+++ b/com.ibm.wala.emf/src/com/ibm/wala/ecore/j2ee/scope/impl/J2EEScopePackageImpl.java
@@ -13,15 +13,11 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
import com.ibm.wala.annotations.Internal;
import com.ibm.wala.ecore.common.CommonPackage;
import com.ibm.wala.ecore.common.impl.CommonPackageImpl;
-import com.ibm.wala.ecore.graph.GraphPackage;
-import com.ibm.wala.ecore.graph.impl.GraphPackageImpl;
import com.ibm.wala.ecore.j2ee.scope.EEarFile;
import com.ibm.wala.ecore.j2ee.scope.EJ2EEAnalysisScope;
import com.ibm.wala.ecore.j2ee.scope.EWarFile;
import com.ibm.wala.ecore.j2ee.scope.J2EEScopeFactory;
import com.ibm.wala.ecore.j2ee.scope.J2EEScopePackage;
-import com.ibm.wala.ecore.java.JavaPackage;
-import com.ibm.wala.ecore.java.impl.JavaPackageImpl;
import com.ibm.wala.ecore.java.scope.JavaScopePackage;
import com.ibm.wala.ecore.java.scope.impl.JavaScopePackageImpl;
import com.ibm.wala.ecore.regex.RegexPackage;
@@ -113,26 +109,20 @@ public class J2EEScopePackageImpl extends EPackageImpl implements J2EEScopePacka
isInited = true;
// Obtain or create and register interdependencies
- GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) : GraphPackage.eINSTANCE);
CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
RegexPackageImpl theRegexPackage = (RegexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) instanceof RegexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) : RegexPackage.eINSTANCE);
- JavaPackageImpl theJavaPackage = (JavaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) instanceof JavaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) : JavaPackage.eINSTANCE);
JavaScopePackageImpl theJavaScopePackage = (JavaScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) instanceof JavaScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) : JavaScopePackage.eINSTANCE);
// Create package meta-data objects
theJ2EEScopePackage.createPackageContents();
- theGraphPackage.createPackageContents();
theCommonPackage.createPackageContents();
theRegexPackage.createPackageContents();
- theJavaPackage.createPackageContents();
theJavaScopePackage.createPackageContents();
// Initialize created meta-data
theJ2EEScopePackage.initializePackageContents();
- theGraphPackage.initializePackageContents();
theCommonPackage.initializePackageContents();
theRegexPackage.initializePackageContents();
- theJavaPackage.initializePackageContents();
theJavaScopePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EClassLoaderName.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EClassLoaderName.java
deleted file mode 100644
index e92357df0..000000000
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EClassLoaderName.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/**
- *
- * If the meaning of 'Application' literal object isn't clear, - * there really should be more of a description here... - *
- * - * @see #APPLICATION_LITERAL - * @model name="Application" - * @generated - * @ordered - */ - public static final int APPLICATION = 0; - - /** - * The 'Primordial' literal value. - * - *- * If the meaning of 'Primordial' literal object isn't clear, - * there really should be more of a description here... - *
- * - * @see #PRIMORDIAL_LITERAL - * @model name="Primordial" - * @generated - * @ordered - */ - public static final int PRIMORDIAL = 1; - - /** - * The 'Extension' literal value. - * - *- * If the meaning of 'Extension' literal object isn't clear, - * there really should be more of a description here... - *
- * - * @see #EXTENSION_LITERAL - * @model name="Extension" - * @generated - * @ordered - */ - public static final int EXTENSION = 2; - - /** - * The 'Application' literal object. - * - * - * @see #APPLICATION - * @generated - * @ordered - */ - public static final EClassLoaderName APPLICATION_LITERAL = new EClassLoaderName(APPLICATION, "Application", "Application"); - - /** - * The 'Primordial' literal object. - * - * - * @see #PRIMORDIAL - * @generated - * @ordered - */ - public static final EClassLoaderName PRIMORDIAL_LITERAL = new EClassLoaderName(PRIMORDIAL, "Primordial", "Primordial"); - - /** - * The 'Extension' literal object. - * - * - * @see #EXTENSION - * @generated - * @ordered - */ - public static final EClassLoaderName EXTENSION_LITERAL = new EClassLoaderName(EXTENSION, "Extension", "Extension"); - - /** - * An array of all the 'EClass Loader Name' enumerators. - * - * - * @generated - */ - private static final EClassLoaderName[] VALUES_ARRAY = - new EClassLoaderName[] { - APPLICATION_LITERAL, - PRIMORDIAL_LITERAL, - EXTENSION_LITERAL, - }; - - /** - * A public read-only list of all the 'EClass Loader Name' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'EClass Loader Name' literal with the specified literal value. - * - * - * @generated - */ - public static EClassLoaderName get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - EClassLoaderName result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'EClass Loader Name' literal with the specified name. - * - * - * @generated - */ - public static EClassLoaderName getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - EClassLoaderName result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'EClass Loader Name' literal with the specified integer value. - * - * - * @generated - */ - public static EClassLoaderName get(int value) { - switch (value) { - case APPLICATION: return APPLICATION_LITERAL; - case PRIMORDIAL: return PRIMORDIAL_LITERAL; - case EXTENSION: return EXTENSION_LITERAL; - } - return null; - } - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private EClassLoaderName(int value, String name, String literal) { - super(value, name, literal); - } - -} //EClassLoaderName diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EJavaClass.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EJavaClass.java deleted file mode 100644 index 85271b0a2..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EJavaClass.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - *- * The following features are supported: - *
- * If the meaning of the 'Class Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Class Name' attribute. - * @see #setClassName(String) - * @see com.ibm.wala.ecore.java.JavaPackage#getEJavaClass_ClassName() - * @model required="true" - * @generated - */ - String getClassName(); - - /** - * Sets the value of the '{@link com.ibm.wala.ecore.java.EJavaClass#getClassName Class Name}' attribute. - * - * - * @param value the new value of the 'Class Name' attribute. - * @see #getClassName() - * @generated - */ - void setClassName(String value); - - /** - * Returns the value of the 'Loader' attribute. - * The literals are from the enumeration {@link com.ibm.wala.ecore.java.EClassLoaderName}. - * - *- * If the meaning of the 'Loader' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Loader' attribute. - * @see com.ibm.wala.ecore.java.EClassLoaderName - * @see #setLoader(EClassLoaderName) - * @see com.ibm.wala.ecore.java.JavaPackage#getEJavaClass_Loader() - * @model required="true" - * @generated - */ - EClassLoaderName getLoader(); - - /** - * Sets the value of the '{@link com.ibm.wala.ecore.java.EJavaClass#getLoader Loader}' attribute. - * - * - * @param value the new value of the 'Loader' attribute. - * @see com.ibm.wala.ecore.java.EClassLoaderName - * @see #getLoader() - * @generated - */ - void setLoader(EClassLoaderName value); - -} // EJavaClass \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaFactory.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaFactory.java deleted file mode 100644 index 923c0d776..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaFactory.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - *- * The following features are implemented: - *
Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see com.ibm.wala.ecore.java.JavaPackage#eNS_URI - * @see #init() - * @generated - */ - private JavaPackageImpl() { - super(eNS_URI, JavaFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - *
Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - *
Invocation of this method will not affect any packages that have
- * already been initialized.
- *
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static JavaPackage init() {
- if (isInited) return (JavaPackage)EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI);
-
- // Obtain or create and register package
- JavaPackageImpl theJavaPackage = (JavaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JavaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JavaPackageImpl());
-
- isInited = true;
-
- // Obtain or create and register interdependencies
- GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) : GraphPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- RegexPackageImpl theRegexPackage = (RegexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) instanceof RegexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) : RegexPackage.eINSTANCE);
- JavaScopePackageImpl theJavaScopePackage = (JavaScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) instanceof JavaScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) : JavaScopePackage.eINSTANCE);
- J2EEScopePackageImpl theJ2EEScopePackage = (J2EEScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) instanceof J2EEScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) : J2EEScopePackage.eINSTANCE);
-
- // Create package meta-data objects
- theJavaPackage.createPackageContents();
- theGraphPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theRegexPackage.createPackageContents();
- theJavaScopePackage.createPackageContents();
- theJ2EEScopePackage.createPackageContents();
-
- // Initialize created meta-data
- theJavaPackage.initializePackageContents();
- theGraphPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theRegexPackage.initializePackageContents();
- theJavaScopePackage.initializePackageContents();
- theJ2EEScopePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theJavaPackage.freeze();
-
- return theJavaPackage;
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getEJavaClass() {
- return eJavaClassEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getEJavaClass_ClassName() {
- return (EAttribute)eJavaClassEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getEJavaClass_Loader() {
- return (EAttribute)eJavaClassEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getEJavaMethod() {
- return eJavaMethodEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getEJavaMethod_MethodName() {
- return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getEJavaMethod_Descriptor() {
- return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getEJavaMethod_JavaClass() {
- return (EReference)eJavaMethodEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getEJavaMethod_Signature() {
- return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getECallSite() {
- return eCallSiteEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EAttribute getECallSite_BytecodeIndex() {
- return (EAttribute)eCallSiteEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getECallSite_JavaMethod() {
- return (EReference)eCallSiteEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getECallSite_DeclaredTarget() {
- return (EReference)eCallSiteEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getEClassHierarchy() {
- return eClassHierarchyEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getEInterfaceHierarchy() {
- return eInterfaceHierarchyEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EClass getETypeHierarchy() {
- return eTypeHierarchyEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getETypeHierarchy_Classes() {
- return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getETypeHierarchy_Interfaces() {
- return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- public EReference getETypeHierarchy_Implements() {
- return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- public EEnum getEClassLoaderName() {
- return eClassLoaderNameEEnum;
- }
-
- /**
- *
- *
- * @generated
- */
- public JavaFactory getJavaFactory() {
- return (JavaFactory)getEFactoryInstance();
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- eJavaClassEClass = createEClass(EJAVA_CLASS);
- createEAttribute(eJavaClassEClass, EJAVA_CLASS__CLASS_NAME);
- createEAttribute(eJavaClassEClass, EJAVA_CLASS__LOADER);
-
- eJavaMethodEClass = createEClass(EJAVA_METHOD);
- createEAttribute(eJavaMethodEClass, EJAVA_METHOD__METHOD_NAME);
- createEAttribute(eJavaMethodEClass, EJAVA_METHOD__DESCRIPTOR);
- createEReference(eJavaMethodEClass, EJAVA_METHOD__JAVA_CLASS);
- createEAttribute(eJavaMethodEClass, EJAVA_METHOD__SIGNATURE);
-
- eCallSiteEClass = createEClass(ECALL_SITE);
- createEAttribute(eCallSiteEClass, ECALL_SITE__BYTECODE_INDEX);
- createEReference(eCallSiteEClass, ECALL_SITE__JAVA_METHOD);
- createEReference(eCallSiteEClass, ECALL_SITE__DECLARED_TARGET);
-
- eClassHierarchyEClass = createEClass(ECLASS_HIERARCHY);
-
- eInterfaceHierarchyEClass = createEClass(EINTERFACE_HIERARCHY);
-
- eTypeHierarchyEClass = createEClass(ETYPE_HIERARCHY);
- createEReference(eTypeHierarchyEClass, ETYPE_HIERARCHY__CLASSES);
- createEReference(eTypeHierarchyEClass, ETYPE_HIERARCHY__INTERFACES);
- createEReference(eTypeHierarchyEClass, ETYPE_HIERARCHY__IMPLEMENTS);
-
- // Create enums
- eClassLoaderNameEEnum = createEEnum(ECLASS_LOADER_NAME);
- }
-
- /**
- *
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- *
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- JavaScopePackage theJavaScopePackage = (JavaScopePackage)EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI);
- CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
- GraphPackage theGraphPackage = (GraphPackage)EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI);
-
- // Add subpackages
- getESubpackages().add(theJavaScopePackage);
-
- // Add supertypes to classes
- eJavaClassEClass.getESuperTypes().add(theCommonPackage.getEObjectWithContainerId());
- eJavaMethodEClass.getESuperTypes().add(theCommonPackage.getEObjectWithContainerId());
- eCallSiteEClass.getESuperTypes().add(theCommonPackage.getEObjectWithContainerId());
- eClassHierarchyEClass.getESuperTypes().add(theGraphPackage.getETree());
- eInterfaceHierarchyEClass.getESuperTypes().add(theGraphPackage.getEGraph());
-
- // Initialize classes and features; add operations and parameters
- initEClass(eJavaClassEClass, EJavaClass.class, "EJavaClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getEJavaClass_ClassName(), ecorePackage.getEString(), "className", null, 1, 1, EJavaClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEJavaClass_Loader(), this.getEClassLoaderName(), "loader", null, 1, 1, EJavaClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-
- addEOperation(eJavaMethodEClass, ecorePackage.getEBoolean(), "isClinit", 0, 1);
-
-
- // Initialize enums and add enum literals
- initEEnum(eClassLoaderNameEEnum, EClassLoaderName.class, "EClassLoaderName");
- addEEnumLiteral(eClassLoaderNameEEnum, EClassLoaderName.APPLICATION_LITERAL);
- addEEnumLiteral(eClassLoaderNameEEnum, EClassLoaderName.PRIMORDIAL_LITERAL);
- addEEnumLiteral(eClassLoaderNameEEnum, EClassLoaderName.EXTENSION_LITERAL);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //JavaPackageImpl
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/scope/impl/JavaScopePackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/scope/impl/JavaScopePackageImpl.java
index f41131050..c821c8172 100644
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/scope/impl/JavaScopePackageImpl.java
+++ b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/scope/impl/JavaScopePackageImpl.java
@@ -15,12 +15,8 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
import com.ibm.wala.ecore.common.CommonPackage;
import com.ibm.wala.ecore.common.impl.CommonPackageImpl;
-import com.ibm.wala.ecore.graph.GraphPackage;
-import com.ibm.wala.ecore.graph.impl.GraphPackageImpl;
import com.ibm.wala.ecore.j2ee.scope.J2EEScopePackage;
import com.ibm.wala.ecore.j2ee.scope.impl.J2EEScopePackageImpl;
-import com.ibm.wala.ecore.java.JavaPackage;
-import com.ibm.wala.ecore.java.impl.JavaPackageImpl;
import com.ibm.wala.ecore.java.scope.EBuiltInModule;
import com.ibm.wala.ecore.java.scope.EBuiltInResource;
import com.ibm.wala.ecore.java.scope.EClassFile;
@@ -178,26 +174,20 @@ public class JavaScopePackageImpl extends EPackageImpl implements JavaScopePacka
isInited = true;
// Obtain or create and register interdependencies
- GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) : GraphPackage.eINSTANCE);
CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
RegexPackageImpl theRegexPackage = (RegexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) instanceof RegexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegexPackage.eNS_URI) : RegexPackage.eINSTANCE);
- JavaPackageImpl theJavaPackage = (JavaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) instanceof JavaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) : JavaPackage.eINSTANCE);
J2EEScopePackageImpl theJ2EEScopePackage = (J2EEScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) instanceof J2EEScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) : J2EEScopePackage.eINSTANCE);
// Create package meta-data objects
theJavaScopePackage.createPackageContents();
- theGraphPackage.createPackageContents();
theCommonPackage.createPackageContents();
theRegexPackage.createPackageContents();
- theJavaPackage.createPackageContents();
theJ2EEScopePackage.createPackageContents();
// Initialize created meta-data
theJavaScopePackage.initializePackageContents();
- theGraphPackage.initializePackageContents();
theCommonPackage.initializePackageContents();
theRegexPackage.initializePackageContents();
- theJavaPackage.initializePackageContents();
theJ2EEScopePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaAdapterFactory.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaAdapterFactory.java
deleted file mode 100644
index 640cf5a42..000000000
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaAdapterFactory.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/**
- * createXXX
method for each class of the model.
- *
- * @see com.ibm.wala.ecore.java.JavaPackage
- * @generated
- */
-@Internal
-public class JavaAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static JavaPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public JavaAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = JavaPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true
if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch the delegates to the createXXX
methods.
- *
- *
- * @generated
- */
- protected JavaSwitch modelSwitch =
- new JavaSwitch() {
- public Object caseEJavaClass(EJavaClass object) {
- return createEJavaClassAdapter();
- }
- public Object caseEObjectWithContainerId(EObjectWithContainerId object) {
- return createEObjectWithContainerIdAdapter();
- }
- public Object caseEGraph(EGraph object) {
- return createEGraphAdapter();
- }
- public Object caseETree(ETree object) {
- return createETreeAdapter();
- }
- public Object defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the target
.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target
.
- * @generated
- */
- public Adapter createAdapter(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.EJavaClass EJava Class}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.EJavaClass
- * @generated
- */
- public Adapter createEJavaClassAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.EJavaMethod EJava Method}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.EJavaMethod
- * @generated
- */
- public Adapter createEJavaMethodAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.ECallSite ECall Site}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.ECallSite
- * @generated
- */
- public Adapter createECallSiteAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.EClassHierarchy EClass Hierarchy}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.EClassHierarchy
- * @generated
- */
- public Adapter createEClassHierarchyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.EInterfaceHierarchy EInterface Hierarchy}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.EInterfaceHierarchy
- * @generated
- */
- public Adapter createEInterfaceHierarchyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.java.ETypeHierarchy EType Hierarchy}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.java.ETypeHierarchy
- * @generated
- */
- public Adapter createETypeHierarchyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.common.EObjectWithContainerId EObject With Container Id}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.common.EObjectWithContainerId
- * @generated
- */
- public Adapter createEObjectWithContainerIdAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.graph.EGraph EGraph}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.graph.EGraph
- * @generated
- */
- public Adapter createEGraphAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link com.ibm.wala.ecore.graph.ETree ETree}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see com.ibm.wala.ecore.graph.ETree
- * @generated
- */
- public Adapter createETreeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //JavaAdapterFactory
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaSwitch.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaSwitch.java
deleted file mode 100644
index d20a96169..000000000
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaSwitch.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/**
- * 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 com.ibm.wala.ecore.java.JavaPackage
- * @generated
- */
-@Internal
-public class JavaSwitch {
- /**
- * The cached model package
- *
- *
- * @generated
- */
- protected static JavaPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- *
- *
- * @generated
- */
- public JavaSwitch() {
- if (modelPackage == null) {
- modelPackage = JavaPackage.eINSTANCE;
- }
- }
-
- /**
- * 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
- */
- public Object doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * 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
- */
- protected Object doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch((EClass)eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * 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
- */
- protected Object doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case JavaPackage.EJAVA_CLASS: {
- EJavaClass eJavaClass = (EJavaClass)theEObject;
- Object result = caseEJavaClass(eJavaClass);
- if (result == null) result = caseEObjectWithContainerId(eJavaClass);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'EJava 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 interpretting the object as an instance of 'EJava Class'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEJavaClass(EJavaClass object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'EObject With Container Id'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of 'EObject With Container Id'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEObjectWithContainerId(EObjectWithContainerId object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'EGraph'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of 'EGraph'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEGraph(EGraph object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of 'ETree'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of 'ETree'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseETree(ETree object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public Object defaultCase(EObject object) {
- return null;
- }
-
-} //JavaSwitch
diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/regex/impl/RegexPackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/regex/impl/RegexPackageImpl.java
index 0f6082641..40e8286d6 100644
--- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/regex/impl/RegexPackageImpl.java
+++ b/com.ibm.wala.emf/src/com/ibm/wala/ecore/regex/impl/RegexPackageImpl.java
@@ -13,12 +13,8 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
import com.ibm.wala.ecore.common.CommonPackage;
import com.ibm.wala.ecore.common.impl.CommonPackageImpl;
-import com.ibm.wala.ecore.graph.GraphPackage;
-import com.ibm.wala.ecore.graph.impl.GraphPackageImpl;
import com.ibm.wala.ecore.j2ee.scope.J2EEScopePackage;
import com.ibm.wala.ecore.j2ee.scope.impl.J2EEScopePackageImpl;
-import com.ibm.wala.ecore.java.JavaPackage;
-import com.ibm.wala.ecore.java.impl.JavaPackageImpl;
import com.ibm.wala.ecore.java.scope.JavaScopePackage;
import com.ibm.wala.ecore.java.scope.impl.JavaScopePackageImpl;
import com.ibm.wala.ecore.regex.EPattern;
@@ -96,25 +92,19 @@ public class RegexPackageImpl extends EPackageImpl implements RegexPackage {
isInited = true;
// Obtain or create and register interdependencies
- GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI) : GraphPackage.eINSTANCE);
CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JavaPackageImpl theJavaPackage = (JavaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) instanceof JavaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI) : JavaPackage.eINSTANCE);
JavaScopePackageImpl theJavaScopePackage = (JavaScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) instanceof JavaScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaScopePackage.eNS_URI) : JavaScopePackage.eINSTANCE);
J2EEScopePackageImpl theJ2EEScopePackage = (J2EEScopePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) instanceof J2EEScopePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(J2EEScopePackage.eNS_URI) : J2EEScopePackage.eINSTANCE);
// Create package meta-data objects
theRegexPackage.createPackageContents();
- theGraphPackage.createPackageContents();
theCommonPackage.createPackageContents();
- theJavaPackage.createPackageContents();
theJavaScopePackage.createPackageContents();
theJ2EEScopePackage.createPackageContents();
// Initialize created meta-data
theRegexPackage.initializePackageContents();
- theGraphPackage.initializePackageContents();
theCommonPackage.initializePackageContents();
- theJavaPackage.initializePackageContents();
theJavaScopePackage.initializePackageContents();
theJ2EEScopePackage.initializePackageContents();