more EMF obliteration
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2039 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
eb9abad76c
commit
dc1851ee96
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,84 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>EGraph</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link com.ibm.wala.ecore.graph.EGraph#getNodes <em>Nodes</em>}</li>
|
||||
* <li>{@link com.ibm.wala.ecore.graph.EGraph#getEdges <em>Edges</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see com.ibm.wala.ecore.graph.GraphPackage#getEGraph()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EGraph extends EObject {
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nodes</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Nodes</em>' reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nodes</em>' 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 <em>Nodes</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nodes</em>' reference.
|
||||
* @see #getNodes()
|
||||
* @generated
|
||||
*/
|
||||
void setNodes(ECollection value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Edges</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Edges</em>' containment reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Edges</em>' 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 <em>Edges</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Edges</em>' containment reference.
|
||||
* @see #getEdges()
|
||||
* @generated
|
||||
*/
|
||||
void setEdges(ERelation value);
|
||||
|
||||
} // EGraph
|
|
@ -1,21 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
package com.ibm.wala.ecore.graph;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>ETree</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see com.ibm.wala.ecore.graph.GraphPackage#getETree()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ETree extends EGraph {
|
||||
} // ETree
|
|
@ -1,55 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
package com.ibm.wala.ecore.graph;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Factory</b> for the model.
|
||||
* It provides a create method for each non-abstract class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.graph.GraphPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface GraphFactory extends EFactory {
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
GraphFactory eINSTANCE = com.ibm.wala.ecore.graph.impl.GraphFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>EGraph</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>EGraph</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EGraph createEGraph();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>ETree</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>ETree</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ETree createETree();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
GraphPackage getGraphPackage();
|
||||
|
||||
} //GraphFactory
|
|
@ -1,238 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Package</b> for the model.
|
||||
* It contains accessors for the meta objects to represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.graph.GraphFactory
|
||||
* @model kind="package"
|
||||
* @generated
|
||||
*/
|
||||
public interface GraphPackage extends EPackage {
|
||||
/**
|
||||
* The package name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNAME = "graph";
|
||||
|
||||
/**
|
||||
* The package namespace URI.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_URI = "http:///com/ibm/wala/wala.ecore.graph";
|
||||
|
||||
/**
|
||||
* The package namespace name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_PREFIX = "com.ibm.wala.graph";
|
||||
|
||||
/**
|
||||
* The singleton instance of the package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EGraph</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Nodes</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EGRAPH__NODES = 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Edges</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EGRAPH__EDGES = 1;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EGraph</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EGRAPH_FEATURE_COUNT = 2;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link com.ibm.wala.ecore.graph.impl.ETreeImpl <em>ETree</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Nodes</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETREE__NODES = EGRAPH__NODES;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Edges</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETREE__EDGES = EGRAPH__EDGES;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>ETree</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETREE_FEATURE_COUNT = EGRAPH_FEATURE_COUNT + 0;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link com.ibm.wala.ecore.graph.EGraph <em>EGraph</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EGraph</em>'.
|
||||
* @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 <em>Nodes</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the reference '<em>Nodes</em>'.
|
||||
* @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 <em>Edges</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference '<em>Edges</em>'.
|
||||
* @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 <em>ETree</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>ETree</em>'.
|
||||
* @see com.ibm.wala.ecore.graph.ETree
|
||||
* @generated
|
||||
*/
|
||||
EClass getETree();
|
||||
|
||||
/**
|
||||
* Returns the factory that creates the instances of the model.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the factory that creates the instances of the model.
|
||||
* @generated
|
||||
*/
|
||||
GraphFactory getGraphFactory();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* Defines literals for the meta objects that represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
interface Literals {
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.graph.impl.EGraphImpl <em>EGraph</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Nodes</b></em>' reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference EGRAPH__NODES = eINSTANCE.getEGraph_Nodes();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Edges</b></em>' containment reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference EGRAPH__EDGES = eINSTANCE.getEGraph_Edges();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.graph.impl.ETreeImpl <em>ETree</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.graph.impl.ETreeImpl
|
||||
* @see com.ibm.wala.ecore.graph.impl.GraphPackageImpl#getETree()
|
||||
* @generated
|
||||
*/
|
||||
EClass ETREE = eINSTANCE.getETree();
|
||||
|
||||
}
|
||||
|
||||
} //GraphPackage
|
|
@ -1,233 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>EGraph</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link com.ibm.wala.ecore.graph.impl.EGraphImpl#getNodes <em>Nodes</em>}</li>
|
||||
* <li>{@link com.ibm.wala.ecore.graph.impl.EGraphImpl#getEdges <em>Edges</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EGraphImpl extends EObjectImpl implements EGraph {
|
||||
/**
|
||||
* The cached value of the '{@link #getNodes() <em>Nodes</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNodes()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ECollection nodes = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEdges() <em>Edges</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEdges()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ERelation edges = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EGraphImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EClass eStaticClass() {
|
||||
return GraphPackage.Literals.EGRAPH;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ECollection basicGetNodes() {
|
||||
return nodes;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setNodes(ECollection newNodes) {
|
||||
ECollection oldNodes = nodes;
|
||||
nodes = newNodes;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.EGRAPH__NODES, oldNodes, nodes));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ERelation getEdges() {
|
||||
return edges;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>ETree</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ETreeImpl extends EGraphImpl implements ETree {
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ETreeImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EClass eStaticClass() {
|
||||
return GraphPackage.Literals.ETREE;
|
||||
}
|
||||
|
||||
} //ETreeImpl
|
|
@ -1,111 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class GraphFactoryImpl extends EFactoryImpl implements GraphFactory {
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public GraphFactoryImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EGraph createEGraph() {
|
||||
EGraphImpl eGraph = new EGraphImpl();
|
||||
return eGraph;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ETree createETree() {
|
||||
ETreeImpl eTree = new ETreeImpl();
|
||||
return eTree;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public GraphPackage getGraphPackage() {
|
||||
return (GraphPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
public static GraphPackage getPackage() {
|
||||
return GraphPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //GraphFactoryImpl
|
|
@ -1,246 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Package</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class GraphPackageImpl extends EPackageImpl implements GraphPackage {
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eGraphEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eTreeEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
* package URI value.
|
||||
* <p>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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static boolean isInited = false;
|
||||
|
||||
/**
|
||||
* Creates, registers, and initializes the <b>Package</b> 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.
|
||||
* <p>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.
|
||||
* <p>Invocation of this method will not affect any packages that have
|
||||
* already been initialized.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEGraph() {
|
||||
return eGraphEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getEGraph_Nodes() {
|
||||
return (EReference)eGraphEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getEGraph_Edges() {
|
||||
return (EReference)eGraphEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getETree() {
|
||||
return eTreeEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public GraphFactory getGraphFactory() {
|
||||
return (GraphFactory)getEFactoryInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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
|
|
@ -1,139 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Adapter Factory</b> for the model.
|
||||
* It provides an adapter <code>createXXX</code> method for each class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.graph.GraphPackage
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public class GraphAdapterFactory extends AdapterFactoryImpl {
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static GraphPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public GraphAdapterFactory() {
|
||||
if (modelPackage == null) {
|
||||
modelPackage = GraphPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this factory is applicable for the type of the object.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>createXXX</code> methods.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>target</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param target the object to adapt.
|
||||
* @return the adapter for the <code>target</code>.
|
||||
* @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 <em>EGraph</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>ETree</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createEObjectAdapter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
} //GraphAdapterFactory
|
|
@ -1,156 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Switch</b> for the model's inheritance hierarchy.
|
||||
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
|
||||
* to invoke the <code>caseXXX</code> method for each class of the model,
|
||||
* starting with the actual class of the object
|
||||
* and proceeding up the inheritance hierarchy
|
||||
* until a non-null result is returned,
|
||||
* which is the result of the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.graph.GraphPackage
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public class GraphSwitch {
|
||||
/**
|
||||
* The cached model package
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static GraphPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the switch.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public GraphSwitch() {
|
||||
if (modelPackage == null) {
|
||||
modelPackage = GraphPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
public Object doSwitch(EObject theEObject) {
|
||||
return doSwitch(theEObject.eClass(), theEObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
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 '<em>EGraph</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EGraph</em>'.
|
||||
* @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 '<em>ETree</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>ETree</em>'.
|
||||
* @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 '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch, but this is the last case anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EObject</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
|
||||
* @generated
|
||||
*/
|
||||
public Object defaultCase(EObject object) {
|
||||
return null;
|
||||
}
|
||||
|
||||
} //GraphSwitch
|
|
@ -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
|
||||
|
|
|
@ -1,178 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>EClass Loader Name</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.JavaPackage#getEClassLoaderName()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public final class EClassLoaderName extends AbstractEnumerator {
|
||||
/**
|
||||
* The '<em><b>Application</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Application</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #APPLICATION_LITERAL
|
||||
* @model name="Application"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int APPLICATION = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>Primordial</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Primordial</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #PRIMORDIAL_LITERAL
|
||||
* @model name="Primordial"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int PRIMORDIAL = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>Extension</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Extension</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EXTENSION_LITERAL
|
||||
* @model name="Extension"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int EXTENSION = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>Application</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #APPLICATION
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final EClassLoaderName APPLICATION_LITERAL = new EClassLoaderName(APPLICATION, "Application", "Application");
|
||||
|
||||
/**
|
||||
* The '<em><b>Primordial</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #PRIMORDIAL
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final EClassLoaderName PRIMORDIAL_LITERAL = new EClassLoaderName(PRIMORDIAL, "Primordial", "Primordial");
|
||||
|
||||
/**
|
||||
* The '<em><b>Extension</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EXTENSION
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final EClassLoaderName EXTENSION_LITERAL = new EClassLoaderName(EXTENSION, "Extension", "Extension");
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>EClass Loader Name</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EClassLoaderName[] VALUES_ARRAY =
|
||||
new EClassLoaderName[] {
|
||||
APPLICATION_LITERAL,
|
||||
PRIMORDIAL_LITERAL,
|
||||
EXTENSION_LITERAL,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>EClass Loader Name</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>EClass Loader Name</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>EClass Loader Name</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>EClass Loader Name</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClassLoaderName(int value, String name, String literal) {
|
||||
super(value, name, literal);
|
||||
}
|
||||
|
||||
} //EClassLoaderName
|
|
@ -1,84 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
package com.ibm.wala.ecore.java;
|
||||
|
||||
import com.ibm.wala.ecore.common.EObjectWithContainerId;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>EJava Class</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link com.ibm.wala.ecore.java.EJavaClass#getClassName <em>Class Name</em>}</li>
|
||||
* <li>{@link com.ibm.wala.ecore.java.EJavaClass#getLoader <em>Loader</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see com.ibm.wala.ecore.java.JavaPackage#getEJavaClass()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EJavaClass extends EObjectWithContainerId {
|
||||
/**
|
||||
* Returns the value of the '<em><b>Class Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Class Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Class Name</em>' 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 <em>Class Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Class Name</em>' attribute.
|
||||
* @see #getClassName()
|
||||
* @generated
|
||||
*/
|
||||
void setClassName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Loader</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.ibm.wala.ecore.java.EClassLoaderName}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Loader</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Loader</em>' 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 <em>Loader</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Loader</em>' attribute.
|
||||
* @see com.ibm.wala.ecore.java.EClassLoaderName
|
||||
* @see #getLoader()
|
||||
* @generated
|
||||
*/
|
||||
void setLoader(EClassLoaderName value);
|
||||
|
||||
} // EJavaClass
|
|
@ -1,46 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
package com.ibm.wala.ecore.java;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Factory</b> for the model.
|
||||
* It provides a create method for each non-abstract class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.JavaPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface JavaFactory extends EFactory {
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
JavaFactory eINSTANCE = com.ibm.wala.ecore.java.impl.JavaFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>EJava Class</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>EJava Class</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EJavaClass createEJavaClass();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
JavaPackage getJavaPackage();
|
||||
|
||||
} //JavaFactory
|
|
@ -1,754 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Package</b> for the model.
|
||||
* It contains accessors for the meta objects to represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.JavaFactory
|
||||
* @model kind="package"
|
||||
* @generated
|
||||
*/
|
||||
public interface JavaPackage extends EPackage {
|
||||
/**
|
||||
* The package name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNAME = "java";
|
||||
|
||||
/**
|
||||
* The package namespace URI.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_URI = "http:///com/ibm/wala/wala.ecore.java";
|
||||
|
||||
/**
|
||||
* The package namespace name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_PREFIX = "com.ibm.wala.java";
|
||||
|
||||
/**
|
||||
* The singleton instance of the package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EJava Class</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Id</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_CLASS__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Class Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_CLASS__CLASS_NAME = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Loader</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_CLASS__LOADER = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EJava Class</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EJava Method</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Id</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_METHOD__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Method Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_METHOD__METHOD_NAME = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Descriptor</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_METHOD__DESCRIPTOR = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Java Class</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_METHOD__JAVA_CLASS = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 2;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Signature</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EJAVA_METHOD__SIGNATURE = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 3;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EJava Method</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>ECall Site</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Id</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECALL_SITE__ID = CommonPackage.EOBJECT_WITH_CONTAINER_ID__ID;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Bytecode Index</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECALL_SITE__BYTECODE_INDEX = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Java Method</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECALL_SITE__JAVA_METHOD = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Declared Target</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECALL_SITE__DECLARED_TARGET = CommonPackage.EOBJECT_WITH_CONTAINER_ID_FEATURE_COUNT + 2;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>ECall Site</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EClass Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Nodes</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECLASS_HIERARCHY__NODES = GraphPackage.ETREE__NODES;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Edges</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ECLASS_HIERARCHY__EDGES = GraphPackage.ETREE__EDGES;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EClass Hierarchy</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EInterface Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Nodes</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EINTERFACE_HIERARCHY__NODES = GraphPackage.EGRAPH__NODES;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Edges</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int EINTERFACE_HIERARCHY__EDGES = GraphPackage.EGRAPH__EDGES;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EInterface Hierarchy</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EType Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Classes</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETYPE_HIERARCHY__CLASSES = 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Interfaces</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETYPE_HIERARCHY__INTERFACES = 1;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Implements</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETYPE_HIERARCHY__IMPLEMENTS = 2;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>EType Hierarchy</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ETYPE_HIERARCHY_FEATURE_COUNT = 3;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link com.ibm.wala.ecore.java.EClassLoaderName <em>EClass Loader Name</em>}' enum.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EJava Class</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EJava Class</em>'.
|
||||
* @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 <em>Class Name</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Class Name</em>'.
|
||||
* @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 <em>Loader</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Loader</em>'.
|
||||
* @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 <em>EJava Method</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EJava Method</em>'.
|
||||
* @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 <em>Method Name</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Method Name</em>'.
|
||||
* @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 <em>Descriptor</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Descriptor</em>'.
|
||||
* @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 <em>Java Class</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the reference '<em>Java Class</em>'.
|
||||
* @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 <em>Signature</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Signature</em>'.
|
||||
* @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 <em>ECall Site</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>ECall Site</em>'.
|
||||
* @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 <em>Bytecode Index</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Bytecode Index</em>'.
|
||||
* @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 <em>Java Method</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the reference '<em>Java Method</em>'.
|
||||
* @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 <em>Declared Target</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the reference '<em>Declared Target</em>'.
|
||||
* @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 <em>EClass Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EClass Hierarchy</em>'.
|
||||
* @see com.ibm.wala.ecore.java.EClassHierarchy
|
||||
* @generated
|
||||
*/
|
||||
EClass getEClassHierarchy();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link com.ibm.wala.ecore.java.EInterfaceHierarchy <em>EInterface Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EInterface Hierarchy</em>'.
|
||||
* @see com.ibm.wala.ecore.java.EInterfaceHierarchy
|
||||
* @generated
|
||||
*/
|
||||
EClass getEInterfaceHierarchy();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link com.ibm.wala.ecore.java.ETypeHierarchy <em>EType Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>EType Hierarchy</em>'.
|
||||
* @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 <em>Classes</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference '<em>Classes</em>'.
|
||||
* @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 <em>Interfaces</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference '<em>Interfaces</em>'.
|
||||
* @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 <em>Implements</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference '<em>Implements</em>'.
|
||||
* @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 <em>EClass Loader Name</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for enum '<em>EClass Loader Name</em>'.
|
||||
* @see com.ibm.wala.ecore.java.EClassLoaderName
|
||||
* @generated
|
||||
*/
|
||||
EEnum getEClassLoaderName();
|
||||
|
||||
/**
|
||||
* Returns the factory that creates the instances of the model.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the factory that creates the instances of the model.
|
||||
* @generated
|
||||
*/
|
||||
JavaFactory getJavaFactory();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* Defines literals for the meta objects that represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
interface Literals {
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EJavaClassImpl <em>EJava Class</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Class Name</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute EJAVA_CLASS__CLASS_NAME = eINSTANCE.getEJavaClass_ClassName();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Loader</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute EJAVA_CLASS__LOADER = eINSTANCE.getEJavaClass_Loader();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EJavaMethodImpl <em>EJava Method</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Method Name</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute EJAVA_METHOD__METHOD_NAME = eINSTANCE.getEJavaMethod_MethodName();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Descriptor</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute EJAVA_METHOD__DESCRIPTOR = eINSTANCE.getEJavaMethod_Descriptor();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Java Class</b></em>' reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference EJAVA_METHOD__JAVA_CLASS = eINSTANCE.getEJavaMethod_JavaClass();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Signature</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute EJAVA_METHOD__SIGNATURE = eINSTANCE.getEJavaMethod_Signature();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.ECallSiteImpl <em>ECall Site</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Bytecode Index</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute ECALL_SITE__BYTECODE_INDEX = eINSTANCE.getECallSite_BytecodeIndex();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Java Method</b></em>' reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference ECALL_SITE__JAVA_METHOD = eINSTANCE.getECallSite_JavaMethod();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Declared Target</b></em>' reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference ECALL_SITE__DECLARED_TARGET = eINSTANCE.getECallSite_DeclaredTarget();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.java.impl.EClassHierarchyImpl <em>EClass Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EInterface Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EType Hierarchy</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 '<em><b>Classes</b></em>' containment reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference ETYPE_HIERARCHY__CLASSES = eINSTANCE.getETypeHierarchy_Classes();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Interfaces</b></em>' containment reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference ETYPE_HIERARCHY__INTERFACES = eINSTANCE.getETypeHierarchy_Interfaces();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Implements</b></em>' containment reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference ETYPE_HIERARCHY__IMPLEMENTS = eINSTANCE.getETypeHierarchy_Implements();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link com.ibm.wala.ecore.java.EClassLoaderName <em>EClass Loader Name</em>}' enum.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.EClassLoaderName
|
||||
* @see com.ibm.wala.ecore.java.impl.JavaPackageImpl#getEClassLoaderName()
|
||||
* @generated
|
||||
*/
|
||||
EEnum ECLASS_LOADER_NAME = eINSTANCE.getEClassLoaderName();
|
||||
|
||||
}
|
||||
|
||||
} //JavaPackage
|
|
@ -1,218 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>EJava Class</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link com.ibm.wala.ecore.java.impl.EJavaClassImpl#getClassName <em>Class Name</em>}</li>
|
||||
* <li>{@link com.ibm.wala.ecore.java.impl.EJavaClassImpl#getLoader <em>Loader</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EJavaClassImpl extends EObjectWithContainerIdImpl implements EJavaClass {
|
||||
/**
|
||||
* The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getClassName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String CLASS_NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getClassName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String className = CLASS_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getLoader() <em>Loader</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLoader()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EClassLoaderName LOADER_EDEFAULT = EClassLoaderName.APPLICATION_LITERAL;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getLoader() <em>Loader</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLoader()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EClassLoaderName loader = LOADER_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EJavaClassImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EClass eStaticClass() {
|
||||
return JavaPackage.Literals.EJAVA_CLASS;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClassLoaderName getLoader() {
|
||||
return loader;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
*/
|
||||
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
|
|
@ -1,149 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class JavaFactoryImpl extends EFactoryImpl implements JavaFactory {
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public JavaFactoryImpl() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EJavaClass createEJavaClass() {
|
||||
EJavaClassImpl eJavaClass = new EJavaClassImpl();
|
||||
return eJavaClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String convertEClassLoaderNameToString(EDataType eDataType, Object instanceValue) {
|
||||
return instanceValue == null ? null : instanceValue.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public JavaPackage getJavaPackage() {
|
||||
return (JavaPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
public static JavaPackage getPackage() {
|
||||
return JavaPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //JavaFactoryImpl
|
|
@ -1,456 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Package</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class JavaPackageImpl extends EPackageImpl implements JavaPackage {
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eJavaClassEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eJavaMethodEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eCallSiteEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eClassHierarchyEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eInterfaceHierarchyEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eTypeHierarchyEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EEnum eClassLoaderNameEEnum = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
* package URI value.
|
||||
* <p>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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static boolean isInited = false;
|
||||
|
||||
/**
|
||||
* Creates, registers, and initializes the <b>Package</b> 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.
|
||||
* <p>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.
|
||||
* <p>Invocation of this method will not affect any packages that have
|
||||
* already been initialized.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEJavaClass() {
|
||||
return eJavaClassEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEJavaClass_ClassName() {
|
||||
return (EAttribute)eJavaClassEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEJavaClass_Loader() {
|
||||
return (EAttribute)eJavaClassEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEJavaMethod() {
|
||||
return eJavaMethodEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEJavaMethod_MethodName() {
|
||||
return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEJavaMethod_Descriptor() {
|
||||
return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getEJavaMethod_JavaClass() {
|
||||
return (EReference)eJavaMethodEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEJavaMethod_Signature() {
|
||||
return (EAttribute)eJavaMethodEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getECallSite() {
|
||||
return eCallSiteEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getECallSite_BytecodeIndex() {
|
||||
return (EAttribute)eCallSiteEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getECallSite_JavaMethod() {
|
||||
return (EReference)eCallSiteEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getECallSite_DeclaredTarget() {
|
||||
return (EReference)eCallSiteEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEClassHierarchy() {
|
||||
return eClassHierarchyEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEInterfaceHierarchy() {
|
||||
return eInterfaceHierarchyEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getETypeHierarchy() {
|
||||
return eTypeHierarchyEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getETypeHierarchy_Classes() {
|
||||
return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getETypeHierarchy_Interfaces() {
|
||||
return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getETypeHierarchy_Implements() {
|
||||
return (EReference)eTypeHierarchyEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EEnum getEClassLoaderName() {
|
||||
return eClassLoaderNameEEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public JavaFactory getJavaFactory() {
|
||||
return (JavaFactory)getEFactoryInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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
|
|
@ -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
|
||||
|
|
|
@ -1,245 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Adapter Factory</b> for the model.
|
||||
* It provides an adapter <code>createXXX</code> method for each class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.JavaPackage
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public class JavaAdapterFactory extends AdapterFactoryImpl {
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static JavaPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public JavaAdapterFactory() {
|
||||
if (modelPackage == null) {
|
||||
modelPackage = JavaPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this factory is applicable for the type of the object.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>createXXX</code> methods.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>target</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param target the object to adapt.
|
||||
* @return the adapter for the <code>target</code>.
|
||||
* @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 <em>EJava Class</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EJava Method</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>ECall Site</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EClass Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EInterface Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EType Hierarchy</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EObject With Container Id</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>EGraph</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <em>ETree</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createEObjectAdapter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
} //JavaAdapterFactory
|
|
@ -1,182 +0,0 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
* $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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Switch</b> for the model's inheritance hierarchy.
|
||||
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
|
||||
* to invoke the <code>caseXXX</code> method for each class of the model,
|
||||
* starting with the actual class of the object
|
||||
* and proceeding up the inheritance hierarchy
|
||||
* until a non-null result is returned,
|
||||
* which is the result of the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.ibm.wala.ecore.java.JavaPackage
|
||||
* @generated
|
||||
*/
|
||||
@Internal
|
||||
public class JavaSwitch {
|
||||
/**
|
||||
* The cached model package
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static JavaPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the switch.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public JavaSwitch() {
|
||||
if (modelPackage == null) {
|
||||
modelPackage = JavaPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
public Object doSwitch(EObject theEObject) {
|
||||
return doSwitch(theEObject.eClass(), theEObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
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 '<em>EJava Class</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EJava Class</em>'.
|
||||
* @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 '<em>EObject With Container Id</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EObject With Container Id</em>'.
|
||||
* @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 '<em>EGraph</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EGraph</em>'.
|
||||
* @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 '<em>ETree</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>ETree</em>'.
|
||||
* @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 '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch, but this is the last case anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpretting the object as an instance of '<em>EObject</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
|
||||
* @generated
|
||||
*/
|
||||
public Object defaultCase(EObject object) {
|
||||
return null;
|
||||
}
|
||||
|
||||
} //JavaSwitch
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue