From dc1851ee966ed9a19ae5a50b4567a1c6fa730d5f Mon Sep 17 00:00:00 2001 From: sjfink Date: Fri, 16 Nov 2007 19:41:45 +0000 Subject: [PATCH] more EMF obliteration git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2039 f5eafffb-2e1d-0410-98e4-8ec43c5233c4 --- com.ibm.wala.emf/META-INF/MANIFEST.MF | 6 - .../ecore/common/impl/CommonPackageImpl.java | 10 - .../src/com/ibm/wala/ecore/graph/EGraph.java | 84 -- .../src/com/ibm/wala/ecore/graph/ETree.java | 21 - .../ibm/wala/ecore/graph/GraphFactory.java | 55 -- .../ibm/wala/ecore/graph/GraphPackage.java | 238 ------ .../ibm/wala/ecore/graph/impl/EGraphImpl.java | 233 ------ .../ibm/wala/ecore/graph/impl/ETreeImpl.java | 42 - .../ecore/graph/impl/GraphFactoryImpl.java | 111 --- .../ecore/graph/impl/GraphPackageImpl.java | 246 ------ .../ecore/graph/util/GraphAdapterFactory.java | 139 ---- .../wala/ecore/graph/util/GraphSwitch.java | 156 ---- .../j2ee/scope/impl/J2EEScopePackageImpl.java | 10 - .../ibm/wala/ecore/java/EClassLoaderName.java | 178 ----- .../com/ibm/wala/ecore/java/EJavaClass.java | 84 -- .../com/ibm/wala/ecore/java/JavaFactory.java | 46 -- .../com/ibm/wala/ecore/java/JavaPackage.java | 754 ------------------ .../wala/ecore/java/impl/EJavaClassImpl.java | 218 ----- .../wala/ecore/java/impl/JavaFactoryImpl.java | 149 ---- .../wala/ecore/java/impl/JavaPackageImpl.java | 456 ----------- .../java/scope/impl/JavaScopePackageImpl.java | 10 - .../ecore/java/util/JavaAdapterFactory.java | 245 ------ .../ibm/wala/ecore/java/util/JavaSwitch.java | 182 ----- .../ecore/regex/impl/RegexPackageImpl.java | 10 - 24 files changed, 3683 deletions(-) delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/EGraph.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/ETree.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphFactory.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphPackage.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/EGraphImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/ETreeImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphFactoryImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphPackageImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphAdapterFactory.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/util/GraphSwitch.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EClassLoaderName.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/EJavaClass.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaFactory.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaPackage.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/EJavaClassImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaFactoryImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaPackageImpl.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaAdapterFactory.java delete mode 100644 com.ibm.wala.emf/src/com/ibm/wala/ecore/java/util/JavaSwitch.java diff --git a/com.ibm.wala.emf/META-INF/MANIFEST.MF b/com.ibm.wala.emf/META-INF/MANIFEST.MF index c11ec4d48..06b570279 100644 --- a/com.ibm.wala.emf/META-INF/MANIFEST.MF +++ b/com.ibm.wala.emf/META-INF/MANIFEST.MF @@ -15,18 +15,12 @@ Export-Package: ., com.ibm.wala.ecore.common, com.ibm.wala.ecore.common.impl, com.ibm.wala.ecore.common.util, - com.ibm.wala.ecore.graph, - com.ibm.wala.ecore.graph.impl, - com.ibm.wala.ecore.graph.util, com.ibm.wala.ecore.j2ee.scope, com.ibm.wala.ecore.j2ee.scope.impl, com.ibm.wala.ecore.j2ee.scope.util, - com.ibm.wala.ecore.java, - com.ibm.wala.ecore.java.impl, com.ibm.wala.ecore.java.scope, com.ibm.wala.ecore.java.scope.impl, com.ibm.wala.ecore.java.scope.util, - com.ibm.wala.ecore.java.util, com.ibm.wala.ecore.regex, com.ibm.wala.ecore.regex.impl, com.ibm.wala.ecore.regex.util diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/common/impl/CommonPackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/common/impl/CommonPackageImpl.java index caef8ea1f..b83435836 100644 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/common/impl/CommonPackageImpl.java +++ b/com.ibm.wala.emf/src/com/ibm/wala/ecore/common/impl/CommonPackageImpl.java @@ -26,12 +26,8 @@ import com.ibm.wala.ecore.common.EObjectWithContainerId; import com.ibm.wala.ecore.common.EPair; import com.ibm.wala.ecore.common.ERelation; import com.ibm.wala.ecore.common.EStringHolder; -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.RegexPackage; @@ -171,25 +167,19 @@ public class CommonPackageImpl extends EPackageImpl implements CommonPackage { 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); 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 theCommonPackage.createPackageContents(); - theGraphPackage.createPackageContents(); theRegexPackage.createPackageContents(); - theJavaPackage.createPackageContents(); theJavaScopePackage.createPackageContents(); theJ2EEScopePackage.createPackageContents(); // Initialize created meta-data theCommonPackage.initializePackageContents(); - theGraphPackage.initializePackageContents(); theRegexPackage.initializePackageContents(); - theJavaPackage.initializePackageContents(); theJavaScopePackage.initializePackageContents(); theJ2EEScopePackage.initializePackageContents(); diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/EGraph.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/EGraph.java deleted file mode 100644 index f0e6c72c2..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/EGraph.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph; - -import org.eclipse.emf.ecore.EObject; - -import com.ibm.wala.ecore.common.ECollection; -import com.ibm.wala.ecore.common.ERelation; - -/** - * - * A representation of the model object 'EGraph'. - * - * - *

- * The following features are supported: - *

- *

- * - * @see com.ibm.wala.ecore.graph.GraphPackage#getEGraph() - * @model - * @generated - */ -public interface EGraph extends EObject { - /** - * Returns the value of the 'Nodes' reference. - * - *

- * 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph; - - -/** - * - * A representation of the model object 'ETree'. - * - * - * - * @see com.ibm.wala.ecore.graph.GraphPackage#getETree() - * @model - * @generated - */ -public interface ETree extends EGraph { -} // ETree \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphFactory.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphFactory.java deleted file mode 100644 index 90b42e92d..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphFactory.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see com.ibm.wala.ecore.graph.GraphPackage - * @generated - */ -public interface GraphFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - GraphFactory eINSTANCE = com.ibm.wala.ecore.graph.impl.GraphFactoryImpl.init(); - - /** - * Returns a new object of class 'EGraph'. - * - * - * @return a new object of class 'EGraph'. - * @generated - */ - EGraph createEGraph(); - - /** - * Returns a new object of class 'ETree'. - * - * - * @return a new object of class 'ETree'. - * @generated - */ - ETree createETree(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - GraphPackage getGraphPackage(); - -} //GraphFactory diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphPackage.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphPackage.java deleted file mode 100644 index a12bb5aa5..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/GraphPackage.java +++ /dev/null @@ -1,238 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - * - * - * @see com.ibm.wala.ecore.graph.GraphFactory - * @model kind="package" - * @generated - */ -public interface GraphPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "graph"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http:///com/ibm/wala/wala.ecore.graph"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "com.ibm.wala.graph"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - GraphPackage eINSTANCE = com.ibm.wala.ecore.graph.impl.GraphPackageImpl.init(); - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.graph.impl.EGraphImpl EGraph}' class. - * - * - * @see com.ibm.wala.ecore.graph.impl.EGraphImpl - * @see com.ibm.wala.ecore.graph.impl.GraphPackageImpl#getEGraph() - * @generated - */ - int EGRAPH = 0; - - /** - * The feature id for the 'Nodes' reference. - * - * - * @generated - * @ordered - */ - int EGRAPH__NODES = 0; - - /** - * The feature id for the 'Edges' containment reference. - * - * - * @generated - * @ordered - */ - int EGRAPH__EDGES = 1; - - /** - * The number of structural features of the 'EGraph' class. - * - * - * @generated - * @ordered - */ - int EGRAPH_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.graph.impl.ETreeImpl ETree}' class. - * - * - * @see com.ibm.wala.ecore.graph.impl.ETreeImpl - * @see com.ibm.wala.ecore.graph.impl.GraphPackageImpl#getETree() - * @generated - */ - int ETREE = 1; - - /** - * The feature id for the 'Nodes' reference. - * - * - * @generated - * @ordered - */ - int ETREE__NODES = EGRAPH__NODES; - - /** - * The feature id for the 'Edges' containment reference. - * - * - * @generated - * @ordered - */ - int ETREE__EDGES = EGRAPH__EDGES; - - /** - * The number of structural features of the 'ETree' class. - * - * - * @generated - * @ordered - */ - int ETREE_FEATURE_COUNT = EGRAPH_FEATURE_COUNT + 0; - - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.graph.EGraph EGraph}'. - * - * - * @return the meta object for class 'EGraph'. - * @see com.ibm.wala.ecore.graph.EGraph - * @generated - */ - EClass getEGraph(); - - /** - * Returns the meta object for the reference '{@link com.ibm.wala.ecore.graph.EGraph#getNodes Nodes}'. - * - * - * @return the meta object for the reference 'Nodes'. - * @see com.ibm.wala.ecore.graph.EGraph#getNodes() - * @see #getEGraph() - * @generated - */ - EReference getEGraph_Nodes(); - - /** - * Returns the meta object for the containment reference '{@link com.ibm.wala.ecore.graph.EGraph#getEdges Edges}'. - * - * - * @return the meta object for the containment reference 'Edges'. - * @see com.ibm.wala.ecore.graph.EGraph#getEdges() - * @see #getEGraph() - * @generated - */ - EReference getEGraph_Edges(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.graph.ETree ETree}'. - * - * - * @return the meta object for class 'ETree'. - * @see com.ibm.wala.ecore.graph.ETree - * @generated - */ - EClass getETree(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - GraphFactory getGraphFactory(); - - /** - * - * Defines literals for the meta objects that represent - * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.graph.impl.EGraphImpl EGraph}' class. - * - * - * @see com.ibm.wala.ecore.graph.impl.EGraphImpl - * @see com.ibm.wala.ecore.graph.impl.GraphPackageImpl#getEGraph() - * @generated - */ - EClass EGRAPH = eINSTANCE.getEGraph(); - - /** - * The meta object literal for the 'Nodes' reference feature. - * - * - * @generated - */ - EReference EGRAPH__NODES = eINSTANCE.getEGraph_Nodes(); - - /** - * The meta object literal for the 'Edges' containment reference feature. - * - * - * @generated - */ - EReference EGRAPH__EDGES = eINSTANCE.getEGraph_Edges(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.graph.impl.ETreeImpl ETree}' class. - * - * - * @see com.ibm.wala.ecore.graph.impl.ETreeImpl - * @see com.ibm.wala.ecore.graph.impl.GraphPackageImpl#getETree() - * @generated - */ - EClass ETREE = eINSTANCE.getETree(); - - } - -} //GraphPackage diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/EGraphImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/EGraphImpl.java deleted file mode 100644 index 94d37e815..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/EGraphImpl.java +++ /dev/null @@ -1,233 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import com.ibm.wala.ecore.common.ECollection; -import com.ibm.wala.ecore.common.ERelation; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * An implementation of the model object 'EGraph'. - * - *

- * The following features are implemented: - *

- *

- * - * @generated - */ -public class EGraphImpl extends EObjectImpl implements EGraph { - /** - * The cached value of the '{@link #getNodes() Nodes}' reference. - * - * - * @see #getNodes() - * @generated - * @ordered - */ - protected ECollection nodes = null; - - /** - * The cached value of the '{@link #getEdges() Edges}' containment reference. - * - * - * @see #getEdges() - * @generated - * @ordered - */ - protected ERelation edges = null; - - /** - * - * - * @generated - */ - protected EGraphImpl() { - super(); - } - - /** - * - * - * @generated - */ - protected EClass eStaticClass() { - return GraphPackage.Literals.EGRAPH; - } - - /** - * - * - * @generated - */ - public ECollection getNodes() { - if (nodes != null && nodes.eIsProxy()) { - InternalEObject oldNodes = (InternalEObject)nodes; - nodes = (ECollection)eResolveProxy(oldNodes); - if (nodes != oldNodes) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.EGRAPH__NODES, oldNodes, nodes)); - } - } - return nodes; - } - - /** - * - * - * @generated - */ - public ECollection basicGetNodes() { - return nodes; - } - - /** - * - * - * @generated - */ - public void setNodes(ECollection newNodes) { - ECollection oldNodes = nodes; - nodes = newNodes; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.EGRAPH__NODES, oldNodes, nodes)); - } - - /** - * - * - * @generated - */ - public ERelation getEdges() { - return edges; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetEdges(ERelation newEdges, NotificationChain msgs) { - ERelation oldEdges = edges; - edges = newEdges; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GraphPackage.EGRAPH__EDGES, oldEdges, newEdges); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setEdges(ERelation newEdges) { - if (newEdges != edges) { - NotificationChain msgs = null; - if (edges != null) - msgs = ((InternalEObject)edges).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GraphPackage.EGRAPH__EDGES, null, msgs); - if (newEdges != null) - msgs = ((InternalEObject)newEdges).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GraphPackage.EGRAPH__EDGES, null, msgs); - msgs = basicSetEdges(newEdges, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.EGRAPH__EDGES, newEdges, newEdges)); - } - - /** - * - * - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case GraphPackage.EGRAPH__EDGES: - return basicSetEdges(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case GraphPackage.EGRAPH__NODES: - if (resolve) return getNodes(); - return basicGetNodes(); - case GraphPackage.EGRAPH__EDGES: - return getEdges(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case GraphPackage.EGRAPH__NODES: - setNodes((ECollection)newValue); - return; - case GraphPackage.EGRAPH__EDGES: - setEdges((ERelation)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case GraphPackage.EGRAPH__NODES: - setNodes((ECollection)null); - return; - case GraphPackage.EGRAPH__EDGES: - setEdges((ERelation)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case GraphPackage.EGRAPH__NODES: - return nodes != null; - case GraphPackage.EGRAPH__EDGES: - return edges != null; - } - return super.eIsSet(featureID); - } - -} //EGraphImpl \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/ETreeImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/ETreeImpl.java deleted file mode 100644 index c372f415a..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/ETreeImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.impl; - -import org.eclipse.emf.ecore.EClass; - -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * An implementation of the model object 'ETree'. - * - *

- *

- * - * @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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.graph.GraphFactory; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class GraphFactoryImpl extends EFactoryImpl implements GraphFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static GraphFactory init() { - try { - GraphFactory theGraphFactory = (GraphFactory)EPackage.Registry.INSTANCE.getEFactory("http:///com/ibm/wala/wala.ecore.graph"); - if (theGraphFactory != null) { - return theGraphFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new GraphFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - @Internal - public GraphFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case GraphPackage.EGRAPH: return createEGraph(); - case GraphPackage.ETREE: return createETree(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public EGraph createEGraph() { - EGraphImpl eGraph = new EGraphImpl(); - return eGraph; - } - - /** - * - * - * @generated - */ - public ETree createETree() { - ETreeImpl eTree = new ETreeImpl(); - return eTree; - } - - /** - * - * - * @generated - */ - public GraphPackage getGraphPackage() { - return (GraphPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - public static GraphPackage getPackage() { - return GraphPackage.eINSTANCE; - } - -} //GraphFactoryImpl diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphPackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphPackageImpl.java deleted file mode 100644 index 217011dc5..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/graph/impl/GraphPackageImpl.java +++ /dev/null @@ -1,246 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -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.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.graph.GraphFactory; -import com.ibm.wala.ecore.graph.GraphPackage; -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.RegexPackage; -import com.ibm.wala.ecore.regex.impl.RegexPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class GraphPackageImpl extends EPackageImpl implements GraphPackage { - /** - * - * - * @generated - */ - private EClass eGraphEClass = null; - - /** - * - * - * @generated - */ - private EClass eTreeEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.graph.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * 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 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.AbstractEnumerator; - -/** - * - * A representation of the literals of the enumeration 'EClass Loader Name', - * and utility methods for working with them. - * - * @see com.ibm.wala.ecore.java.JavaPackage#getEClassLoaderName() - * @model - * @generated - */ -public final class EClassLoaderName extends AbstractEnumerator { - /** - * The 'Application' literal value. - * - *

- * 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java; - -import com.ibm.wala.ecore.common.EObjectWithContainerId; - -/** - * - * A representation of the model object 'EJava Class'. - * - * - *

- * The following features are supported: - *

- *

- * - * @see com.ibm.wala.ecore.java.JavaPackage#getEJavaClass() - * @model - * @generated - */ -public interface EJavaClass extends EObjectWithContainerId { - /** - * Returns the value of the 'Class Name' attribute. - * - *

- * 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see com.ibm.wala.ecore.java.JavaPackage - * @generated - */ -public interface JavaFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - JavaFactory eINSTANCE = com.ibm.wala.ecore.java.impl.JavaFactoryImpl.init(); - - /** - * Returns a new object of class 'EJava Class'. - * - * - * @return a new object of class 'EJava Class'. - * @generated - */ - EJavaClass createEJavaClass(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - JavaPackage getJavaPackage(); - -} //JavaFactory diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaPackage.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaPackage.java deleted file mode 100644 index a7ae8fe00..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/JavaPackage.java +++ /dev/null @@ -1,754 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import com.ibm.wala.ecore.common.CommonPackage; -import com.ibm.wala.ecore.graph.GraphPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - * - * - * @see com.ibm.wala.ecore.java.JavaFactory - * @model kind="package" - * @generated - */ -public interface JavaPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "java"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http:///com/ibm/wala/wala.ecore.java"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "com.ibm.wala.java"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - JavaPackage eINSTANCE = com.ibm.wala.ecore.java.impl.JavaPackageImpl.init(); - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.EJavaClassImpl EJava Class}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EJavaClassImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEJavaClass() - * @generated - */ - int EJAVA_CLASS = 0; - - /** - * The feature id for the 'Id' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_CLASS__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID; - - /** - * The feature id for the 'Class Name' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_CLASS__CLASS_NAME = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Loader' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_CLASS__LOADER = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'EJava Class' class. - * - * - * @generated - * @ordered - */ - int EJAVA_CLASS_FEATURE_COUNT = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.EJavaMethodImpl EJava Method}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EJavaMethodImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEJavaMethod() - * @generated - */ - int EJAVA_METHOD = 1; - - /** - * The feature id for the 'Id' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID; - - /** - * The feature id for the 'Method Name' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD__METHOD_NAME = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Descriptor' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD__DESCRIPTOR = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Java Class' reference. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD__JAVA_CLASS = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Signature' attribute. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD__SIGNATURE = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'EJava Method' class. - * - * - * @generated - * @ordered - */ - int EJAVA_METHOD_FEATURE_COUNT = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 4; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.ECallSiteImpl ECall Site}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.ECallSiteImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getECallSite() - * @generated - */ - int ECALL_SITE = 2; - - /** - * The feature id for the 'Id' attribute. - * - * - * @generated - * @ordered - */ - int ECALL_SITE__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID; - - /** - * The feature id for the 'Bytecode Index' attribute. - * - * - * @generated - * @ordered - */ - int ECALL_SITE__BYTECODE_INDEX = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Java Method' reference. - * - * - * @generated - * @ordered - */ - int ECALL_SITE__JAVA_METHOD = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Declared Target' reference. - * - * - * @generated - * @ordered - */ - int ECALL_SITE__DECLARED_TARGET = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'ECall Site' class. - * - * - * @generated - * @ordered - */ - int ECALL_SITE_FEATURE_COUNT = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 3; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.EClassHierarchyImpl EClass Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EClassHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEClassHierarchy() - * @generated - */ - int ECLASS_HIERARCHY = 3; - - /** - * The feature id for the 'Nodes' reference. - * - * - * @generated - * @ordered - */ - int ECLASS_HIERARCHY__NODES = GraphPackage.ETREE__NODES; - - /** - * The feature id for the 'Edges' containment reference. - * - * - * @generated - * @ordered - */ - int ECLASS_HIERARCHY__EDGES = GraphPackage.ETREE__EDGES; - - /** - * The number of structural features of the 'EClass Hierarchy' class. - * - * - * @generated - * @ordered - */ - int ECLASS_HIERARCHY_FEATURE_COUNT = GraphPackage.ETREE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.EInterfaceHierarchyImpl EInterface Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EInterfaceHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEInterfaceHierarchy() - * @generated - */ - int EINTERFACE_HIERARCHY = 4; - - /** - * The feature id for the 'Nodes' reference. - * - * - * @generated - * @ordered - */ - int EINTERFACE_HIERARCHY__NODES = GraphPackage.EGRAPH__NODES; - - /** - * The feature id for the 'Edges' containment reference. - * - * - * @generated - * @ordered - */ - int EINTERFACE_HIERARCHY__EDGES = GraphPackage.EGRAPH__EDGES; - - /** - * The number of structural features of the 'EInterface Hierarchy' class. - * - * - * @generated - * @ordered - */ - int EINTERFACE_HIERARCHY_FEATURE_COUNT = GraphPackage.EGRAPH_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.impl.ETypeHierarchyImpl EType Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.ETypeHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getETypeHierarchy() - * @generated - */ - int ETYPE_HIERARCHY = 5; - - /** - * The feature id for the 'Classes' containment reference. - * - * - * @generated - * @ordered - */ - int ETYPE_HIERARCHY__CLASSES = 0; - - /** - * The feature id for the 'Interfaces' containment reference. - * - * - * @generated - * @ordered - */ - int ETYPE_HIERARCHY__INTERFACES = 1; - - /** - * The feature id for the 'Implements' containment reference. - * - * - * @generated - * @ordered - */ - int ETYPE_HIERARCHY__IMPLEMENTS = 2; - - /** - * The number of structural features of the 'EType Hierarchy' class. - * - * - * @generated - * @ordered - */ - int ETYPE_HIERARCHY_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link com.ibm.wala.ecore.java.EClassLoaderName EClass Loader Name}' enum. - * - * - * @see com.ibm.wala.ecore.java.EClassLoaderName - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEClassLoaderName() - * @generated - */ - int ECLASS_LOADER_NAME = 6; - - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.EJavaClass EJava Class}'. - * - * - * @return the meta object for class 'EJava Class'. - * @see com.ibm.wala.ecore.java.EJavaClass - * @generated - */ - EClass getEJavaClass(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.EJavaClass#getClassName Class Name}'. - * - * - * @return the meta object for the attribute 'Class Name'. - * @see com.ibm.wala.ecore.java.EJavaClass#getClassName() - * @see #getEJavaClass() - * @generated - */ - EAttribute getEJavaClass_ClassName(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.EJavaClass#getLoader Loader}'. - * - * - * @return the meta object for the attribute 'Loader'. - * @see com.ibm.wala.ecore.java.EJavaClass#getLoader() - * @see #getEJavaClass() - * @generated - */ - EAttribute getEJavaClass_Loader(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.EJavaMethod EJava Method}'. - * - * - * @return the meta object for class 'EJava Method'. - * @see com.ibm.wala.ecore.java.EJavaMethod - * @generated - */ - EClass getEJavaMethod(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.EJavaMethod#getMethodName Method Name}'. - * - * - * @return the meta object for the attribute 'Method Name'. - * @see com.ibm.wala.ecore.java.EJavaMethod#getMethodName() - * @see #getEJavaMethod() - * @generated - */ - EAttribute getEJavaMethod_MethodName(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.EJavaMethod#getDescriptor Descriptor}'. - * - * - * @return the meta object for the attribute 'Descriptor'. - * @see com.ibm.wala.ecore.java.EJavaMethod#getDescriptor() - * @see #getEJavaMethod() - * @generated - */ - EAttribute getEJavaMethod_Descriptor(); - - /** - * Returns the meta object for the reference '{@link com.ibm.wala.ecore.java.EJavaMethod#getJavaClass Java Class}'. - * - * - * @return the meta object for the reference 'Java Class'. - * @see com.ibm.wala.ecore.java.EJavaMethod#getJavaClass() - * @see #getEJavaMethod() - * @generated - */ - EReference getEJavaMethod_JavaClass(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.EJavaMethod#getSignature Signature}'. - * - * - * @return the meta object for the attribute 'Signature'. - * @see com.ibm.wala.ecore.java.EJavaMethod#getSignature() - * @see #getEJavaMethod() - * @generated - */ - EAttribute getEJavaMethod_Signature(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.ECallSite ECall Site}'. - * - * - * @return the meta object for class 'ECall Site'. - * @see com.ibm.wala.ecore.java.ECallSite - * @generated - */ - EClass getECallSite(); - - /** - * Returns the meta object for the attribute '{@link com.ibm.wala.ecore.java.ECallSite#getBytecodeIndex Bytecode Index}'. - * - * - * @return the meta object for the attribute 'Bytecode Index'. - * @see com.ibm.wala.ecore.java.ECallSite#getBytecodeIndex() - * @see #getECallSite() - * @generated - */ - EAttribute getECallSite_BytecodeIndex(); - - /** - * Returns the meta object for the reference '{@link com.ibm.wala.ecore.java.ECallSite#getJavaMethod Java Method}'. - * - * - * @return the meta object for the reference 'Java Method'. - * @see com.ibm.wala.ecore.java.ECallSite#getJavaMethod() - * @see #getECallSite() - * @generated - */ - EReference getECallSite_JavaMethod(); - - /** - * Returns the meta object for the reference '{@link com.ibm.wala.ecore.java.ECallSite#getDeclaredTarget Declared Target}'. - * - * - * @return the meta object for the reference 'Declared Target'. - * @see com.ibm.wala.ecore.java.ECallSite#getDeclaredTarget() - * @see #getECallSite() - * @generated - */ - EReference getECallSite_DeclaredTarget(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.EClassHierarchy EClass Hierarchy}'. - * - * - * @return the meta object for class 'EClass Hierarchy'. - * @see com.ibm.wala.ecore.java.EClassHierarchy - * @generated - */ - EClass getEClassHierarchy(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.EInterfaceHierarchy EInterface Hierarchy}'. - * - * - * @return the meta object for class 'EInterface Hierarchy'. - * @see com.ibm.wala.ecore.java.EInterfaceHierarchy - * @generated - */ - EClass getEInterfaceHierarchy(); - - /** - * Returns the meta object for class '{@link com.ibm.wala.ecore.java.ETypeHierarchy EType Hierarchy}'. - * - * - * @return the meta object for class 'EType Hierarchy'. - * @see com.ibm.wala.ecore.java.ETypeHierarchy - * @generated - */ - EClass getETypeHierarchy(); - - /** - * Returns the meta object for the containment reference '{@link com.ibm.wala.ecore.java.ETypeHierarchy#getClasses Classes}'. - * - * - * @return the meta object for the containment reference 'Classes'. - * @see com.ibm.wala.ecore.java.ETypeHierarchy#getClasses() - * @see #getETypeHierarchy() - * @generated - */ - EReference getETypeHierarchy_Classes(); - - /** - * Returns the meta object for the containment reference '{@link com.ibm.wala.ecore.java.ETypeHierarchy#getInterfaces Interfaces}'. - * - * - * @return the meta object for the containment reference 'Interfaces'. - * @see com.ibm.wala.ecore.java.ETypeHierarchy#getInterfaces() - * @see #getETypeHierarchy() - * @generated - */ - EReference getETypeHierarchy_Interfaces(); - - /** - * Returns the meta object for the containment reference '{@link com.ibm.wala.ecore.java.ETypeHierarchy#getImplements Implements}'. - * - * - * @return the meta object for the containment reference 'Implements'. - * @see com.ibm.wala.ecore.java.ETypeHierarchy#getImplements() - * @see #getETypeHierarchy() - * @generated - */ - EReference getETypeHierarchy_Implements(); - - /** - * Returns the meta object for enum '{@link com.ibm.wala.ecore.java.EClassLoaderName EClass Loader Name}'. - * - * - * @return the meta object for enum 'EClass Loader Name'. - * @see com.ibm.wala.ecore.java.EClassLoaderName - * @generated - */ - EEnum getEClassLoaderName(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - JavaFactory getJavaFactory(); - - /** - * - * Defines literals for the meta objects that represent - * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EJavaClassImpl EJava Class}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EJavaClassImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEJavaClass() - * @generated - */ - EClass EJAVA_CLASS = eINSTANCE.getEJavaClass(); - - /** - * The meta object literal for the 'Class Name' attribute feature. - * - * - * @generated - */ - EAttribute EJAVA_CLASS__CLASS_NAME = eINSTANCE.getEJavaClass_ClassName(); - - /** - * The meta object literal for the 'Loader' attribute feature. - * - * - * @generated - */ - EAttribute EJAVA_CLASS__LOADER = eINSTANCE.getEJavaClass_Loader(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EJavaMethodImpl EJava Method}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EJavaMethodImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEJavaMethod() - * @generated - */ - EClass EJAVA_METHOD = eINSTANCE.getEJavaMethod(); - - /** - * The meta object literal for the 'Method Name' attribute feature. - * - * - * @generated - */ - EAttribute EJAVA_METHOD__METHOD_NAME = eINSTANCE.getEJavaMethod_MethodName(); - - /** - * The meta object literal for the 'Descriptor' attribute feature. - * - * - * @generated - */ - EAttribute EJAVA_METHOD__DESCRIPTOR = eINSTANCE.getEJavaMethod_Descriptor(); - - /** - * The meta object literal for the 'Java Class' reference feature. - * - * - * @generated - */ - EReference EJAVA_METHOD__JAVA_CLASS = eINSTANCE.getEJavaMethod_JavaClass(); - - /** - * The meta object literal for the 'Signature' attribute feature. - * - * - * @generated - */ - EAttribute EJAVA_METHOD__SIGNATURE = eINSTANCE.getEJavaMethod_Signature(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.ECallSiteImpl ECall Site}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.ECallSiteImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getECallSite() - * @generated - */ - EClass ECALL_SITE = eINSTANCE.getECallSite(); - - /** - * The meta object literal for the 'Bytecode Index' attribute feature. - * - * - * @generated - */ - EAttribute ECALL_SITE__BYTECODE_INDEX = eINSTANCE.getECallSite_BytecodeIndex(); - - /** - * The meta object literal for the 'Java Method' reference feature. - * - * - * @generated - */ - EReference ECALL_SITE__JAVA_METHOD = eINSTANCE.getECallSite_JavaMethod(); - - /** - * The meta object literal for the 'Declared Target' reference feature. - * - * - * @generated - */ - EReference ECALL_SITE__DECLARED_TARGET = eINSTANCE.getECallSite_DeclaredTarget(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EClassHierarchyImpl EClass Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EClassHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEClassHierarchy() - * @generated - */ - EClass ECLASS_HIERARCHY = eINSTANCE.getEClassHierarchy(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EInterfaceHierarchyImpl EInterface Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.EInterfaceHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEInterfaceHierarchy() - * @generated - */ - EClass EINTERFACE_HIERARCHY = eINSTANCE.getEInterfaceHierarchy(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.ETypeHierarchyImpl EType Hierarchy}' class. - * - * - * @see com.ibm.wala.ecore.java.impl.ETypeHierarchyImpl - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getETypeHierarchy() - * @generated - */ - EClass ETYPE_HIERARCHY = eINSTANCE.getETypeHierarchy(); - - /** - * The meta object literal for the 'Classes' containment reference feature. - * - * - * @generated - */ - EReference ETYPE_HIERARCHY__CLASSES = eINSTANCE.getETypeHierarchy_Classes(); - - /** - * The meta object literal for the 'Interfaces' containment reference feature. - * - * - * @generated - */ - EReference ETYPE_HIERARCHY__INTERFACES = eINSTANCE.getETypeHierarchy_Interfaces(); - - /** - * The meta object literal for the 'Implements' containment reference feature. - * - * - * @generated - */ - EReference ETYPE_HIERARCHY__IMPLEMENTS = eINSTANCE.getETypeHierarchy_Implements(); - - /** - * The meta object literal for the '{@link com.ibm.wala.ecore.java.EClassLoaderName EClass Loader Name}' enum. - * - * - * @see com.ibm.wala.ecore.java.EClassLoaderName - * @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEClassLoaderName() - * @generated - */ - EEnum ECLASS_LOADER_NAME = eINSTANCE.getEClassLoaderName(); - - } - -} //JavaPackage diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/EJavaClassImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/EJavaClassImpl.java deleted file mode 100644 index c11212c44..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/EJavaClassImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import com.ibm.wala.ecore.common.impl.EObjectWithContainerIdImpl; -import com.ibm.wala.ecore.java.EClassLoaderName; -import com.ibm.wala.ecore.java.EJavaClass; -import com.ibm.wala.ecore.java.JavaPackage; - -/** - * - * An implementation of the model object 'EJava Class'. - * - *

- * The following features are implemented: - *

- *

- * - * @generated - */ -public class EJavaClassImpl extends EObjectWithContainerIdImpl implements EJavaClass { - /** - * The default value of the '{@link #getClassName() Class Name}' attribute. - * - * - * @see #getClassName() - * @generated - * @ordered - */ - protected static final String CLASS_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getClassName() Class Name}' attribute. - * - * - * @see #getClassName() - * @generated - * @ordered - */ - protected String className = CLASS_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getLoader() Loader}' attribute. - * - * - * @see #getLoader() - * @generated - * @ordered - */ - protected static final EClassLoaderName LOADER_EDEFAULT = EClassLoaderName.APPLICATION_LITERAL; - - /** - * The cached value of the '{@link #getLoader() Loader}' attribute. - * - * - * @see #getLoader() - * @generated - * @ordered - */ - protected EClassLoaderName loader = LOADER_EDEFAULT; - - /** - * - * - * @generated - */ - protected EJavaClassImpl() { - super(); - } - - /** - * - * - * @generated - */ - protected EClass eStaticClass() { - return JavaPackage.Literals.EJAVA_CLASS; - } - - /** - * - * - * @generated - */ - public String getClassName() { - return className; - } - - /** - * - * - * @generated - */ - public void setClassName(String newClassName) { - String oldClassName = className; - className = newClassName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavaPackage.EJAVA_CLASS__CLASS_NAME, oldClassName, className)); - } - - /** - * - * - * @generated - */ - public EClassLoaderName getLoader() { - return loader; - } - - /** - * - * - * @generated - */ - public void setLoader(EClassLoaderName newLoader) { - EClassLoaderName oldLoader = loader; - loader = newLoader == null ? LOADER_EDEFAULT : newLoader; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, JavaPackage.EJAVA_CLASS__LOADER, oldLoader, loader)); - } - - /** - * - * - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case JavaPackage.EJAVA_CLASS__CLASS_NAME: - return getClassName(); - case JavaPackage.EJAVA_CLASS__LOADER: - return getLoader(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case JavaPackage.EJAVA_CLASS__CLASS_NAME: - setClassName((String)newValue); - return; - case JavaPackage.EJAVA_CLASS__LOADER: - setLoader((EClassLoaderName)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case JavaPackage.EJAVA_CLASS__CLASS_NAME: - setClassName(CLASS_NAME_EDEFAULT); - return; - case JavaPackage.EJAVA_CLASS__LOADER: - setLoader(LOADER_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case JavaPackage.EJAVA_CLASS__CLASS_NAME: - return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className); - case JavaPackage.EJAVA_CLASS__LOADER: - return loader != LOADER_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - */ - public String toString() { - return className; - } - - public boolean equals(Object obj) { - if (getClass().equals(obj.getClass())) { - EJavaClassImpl other = (EJavaClassImpl)obj; - return loader.equals(other.loader) && className.equals(other.className); - } else { - return false; - } - } - - public int hashCode() { - return loader.hashCode() + 93 * className.hashCode(); - } - -} //EJavaClassImpl \ No newline at end of file diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaFactoryImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaFactoryImpl.java deleted file mode 100644 index ff68b15a8..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaFactoryImpl.java +++ /dev/null @@ -1,149 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.java.EClassLoaderName; -import com.ibm.wala.ecore.java.EJavaClass; -import com.ibm.wala.ecore.java.JavaFactory; -import com.ibm.wala.ecore.java.JavaPackage; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class JavaFactoryImpl extends EFactoryImpl implements JavaFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static JavaFactory init() { - try { - JavaFactory theJavaFactory = (JavaFactory)EPackage.Registry.INSTANCE.getEFactory("http:///com/ibm/wala/wala.ecore.java"); - if (theJavaFactory != null) { - return theJavaFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new JavaFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - @Internal - public JavaFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case JavaPackage.EJAVA_CLASS: return createEJavaClass(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case JavaPackage.ECLASS_LOADER_NAME: - return createEClassLoaderNameFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case JavaPackage.ECLASS_LOADER_NAME: - return convertEClassLoaderNameToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public EJavaClass createEJavaClass() { - EJavaClassImpl eJavaClass = new EJavaClassImpl(); - return eJavaClass; - } - - /** - * - * - * @generated - */ - public EClassLoaderName createEClassLoaderNameFromString(EDataType eDataType, String initialValue) { - EClassLoaderName result = EClassLoaderName.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertEClassLoaderNameToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public JavaPackage getJavaPackage() { - return (JavaPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - public static JavaPackage getPackage() { - return JavaPackage.eINSTANCE; - } - -} //JavaFactoryImpl diff --git a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaPackageImpl.java b/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaPackageImpl.java deleted file mode 100644 index 0613da651..000000000 --- a/com.ibm.wala.emf/src/com/ibm/wala/ecore/java/impl/JavaPackageImpl.java +++ /dev/null @@ -1,456 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -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.EClassLoaderName; -import com.ibm.wala.ecore.java.EJavaClass; -import com.ibm.wala.ecore.java.JavaFactory; -import com.ibm.wala.ecore.java.JavaPackage; -import com.ibm.wala.ecore.java.scope.JavaScopePackage; -import com.ibm.wala.ecore.java.scope.impl.JavaScopePackageImpl; -import com.ibm.wala.ecore.regex.RegexPackage; -import com.ibm.wala.ecore.regex.impl.RegexPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class JavaPackageImpl extends EPackageImpl implements JavaPackage { - /** - * - * - * @generated - */ - private EClass eJavaClassEClass = null; - - /** - * - * - * @generated - */ - private EClass eJavaMethodEClass = null; - - /** - * - * - * @generated - */ - private EClass eCallSiteEClass = null; - - /** - * - * - * @generated - */ - private EClass eClassHierarchyEClass = null; - - /** - * - * - * @generated - */ - private EClass eInterfaceHierarchyEClass = null; - - /** - * - * - * @generated - */ - private EClass eTypeHierarchyEClass = null; - - /** - * - * - * @generated - */ - private EEnum eClassLoaderNameEEnum = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.common.EObjectWithContainerId; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.java.EJavaClass; -import com.ibm.wala.ecore.java.JavaPackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter 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 @@ -/** - * - * - * - * $Id$ - */ -package com.ibm.wala.ecore.java.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import com.ibm.wala.annotations.Internal; -import com.ibm.wala.ecore.common.EObjectWithContainerId; -import com.ibm.wala.ecore.graph.EGraph; -import com.ibm.wala.ecore.graph.ETree; -import com.ibm.wala.ecore.java.EJavaClass; -import com.ibm.wala.ecore.java.JavaPackage; - -/** - * - * 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 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();