Basic Queries
From AtlasWiki
Revision as of 19:27, 2 February 2015 by BenHolland (Talk | contribs) (Created page with "This tutorial assumes you have the <code>HelloWorld</code> Java project in your workspace and have just completed the Learning Atlas Setup tutorials. If you haven't already e...")
This tutorial assumes you have the HelloWorld
Java project in your workspace and have just completed the Learning Atlas Setup tutorials.
If you haven't already enter the following queries in the Atlas Shell. Don't worry what they mean right now, by the end of this tutorial you will!
var declaresEdges = universe.edgesTaggedWithAny(Edge.DECLARES).retainEdges() var app = declaresEdges.forward(universe.project("HelloWorld")) var methods = app.nodesTaggedWithAny(Node.METHOD) var initializers = app.methods("<init>") union app.methods("<clinit>") var constructors = app.nodesTaggedWithAny(Node.IS_CONSTRUCTOR) var callEdges = universe.edgesTaggedWithAny(Edge.CALL).retainEdges() var graph = (methods difference (initializers union constructors)).induce(callEdges) show(graph)
Your Eclipse should now look something like the following screenshot.
Note: You can drag and drop Eclipse views around and rearrange them by pinning to different areas in Eclipse.