|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ksu.cis.indus.dom.SlicerDOM
public final class SlicerDOM
This class encapsulates the logic to extract dependencies from a dependence analysis based on slice direction.
| Constructor Summary | |
|---|---|
SlicerDOM()
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
boolean |
createMarkerForSootStmtMethod(edu.ksu.cis.indus.common.datastructures.Pair stmtMethod,
java.lang.String message,
long timeStamp)
Creates a marker for the given statement-method pair with the given message and timestamp. |
void |
displayDialog(java.lang.String message)
Displays a dialog with the given message. |
edu.ksu.cis.indus.common.soot.BasicBlockGraphMgr |
getBasicBlockGraphManager()
Retrieves a handle to the basic block manager. |
edu.ksu.cis.indus.interfaces.ICallGraphInfo |
getCallGraph()
Retrieves a handle to the call graph. |
org.eclipse.jdt.core.ICompilationUnit |
getCompilationUnit(org.eclipse.core.resources.IFile file)
Retrieves the compilation unit corresponding to the contents of the given file. |
int |
getCounter()
Retrieve the current counter value. |
java.util.Collection<edu.ksu.cis.indus.staticanalyses.dependency.IDependencyAnalysis> |
getDA(java.lang.Comparable<?> id)
Retrieves a handle to the requested dependence analysis info. |
java.util.Collection<edu.ksu.cis.indus.staticanalyses.dependency.IDependencyAnalysis> |
getDAs()
Retrieves a handle to all dependence analyses. |
edu.ksu.cis.indus.interfaces.IEnvironment |
getEnvironment()
Retrieves a handle to the environment. |
edu.ksu.cis.indus.interfaces.IEscapeInfo |
getEscapeInfo()
Retrieves a handle to the escape info. |
java.util.ArrayList |
getFileFor(soot.SootClass sc)
Retrieves the files corresponding to the class represented by the given class. |
soot.SootMethod |
getJimpleMethodForSelection()
Retrieves the Jimple method corresponding to the method that contains the current selection. |
java.util.Collection<soot.jimple.Stmt> |
getJimpleStmtsFor(org.eclipse.core.resources.IFile thefile,
org.eclipse.jdt.core.IType theclass,
org.eclipse.jdt.core.IMethod themethod,
int theline)
Retrieves the Jimple statements for the given line in the given method in the given type in the given file. |
java.util.Collection<soot.jimple.Stmt> |
getJimpleStmtsForSelection()
Retrieves the Jimple statements for the given selection. |
edu.ksu.cis.indus.kaveri.KaveriPlugin |
getKaveriPlugin()
Retrieves a handle to the Kaveri plugin. |
org.eclipse.jdt.core.IMethod |
getMethodForIn(soot.SootMethod sm,
org.eclipse.core.resources.IFile file)
Retrieves the JDT method corresponding the given Soot method. |
edu.ksu.cis.indus.interfaces.IMonitorInfo |
getMonitorInfo()
Retrieves a handle to the monitor information. |
edu.ksu.cis.indus.staticanalyses.interfaces.IValueAnalyzer<soot.Value> |
getOFAnalyzer()
Retrieves a handle to the object-flow analyzer. |
edu.ksu.cis.indus.interfaces.IReadWriteInfo |
getReadWriteInfo()
Retrieves a handle to the read-write info. |
java.util.Collection<soot.SootMethod> |
getRootMethods()
Retrieves the collection root/entry methods. |
org.eclipse.jface.viewers.ISelection |
getSelection()
Retrieves the current selection (if any) in the active editor (if any). |
org.eclipse.jdt.core.ICompilationUnit |
getSelectionContainingCompilationUnit()
Retrieves the compilation unit corresponding to the file in which the current selection occurs. |
org.eclipse.core.resources.IFile |
getSelectionContainingFile()
Retrieves the file containing the selection. |
edu.ksu.cis.indus.tools.slicer.SlicerTool |
getSlicerTool()
Retrieves a handle to the slicer tool. |
edu.ksu.cis.indus.common.soot.IStmtGraphFactory<?> |
getStmtGraphFactory()
Retrieves a handle to the CFG factory. |
org.eclipse.ui.IWorkbench |
getWorkbench()
Get a handle to the workbench. |
org.eclipse.core.resources.IWorkspace |
getWorkSpace()
Get a handle to the workspace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SlicerDOM()
| Method Detail |
|---|
public int getCounter()
public org.eclipse.ui.IWorkbench getWorkbench()
public org.eclipse.core.resources.IWorkspace getWorkSpace()
public java.util.ArrayList getFileFor(soot.SootClass sc)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public boolean createMarkerForSootStmtMethod(edu.ksu.cis.indus.common.datastructures.Pair stmtMethod,
java.lang.String message,
long timeStamp)
throws org.eclipse.core.runtime.CoreException
stmtMethod - is a pair of statement and method that is to be bookmarked.message - is the message of the bookmark.timeStamp - to be included in the message.
true if a marker was added; false, otherwise.
org.eclipse.core.runtime.CoreException
public org.eclipse.jdt.core.IMethod getMethodForIn(soot.SootMethod sm,
org.eclipse.core.resources.IFile file)
throws org.eclipse.jdt.core.JavaModelException
sm - is the Soot method.file - in which the corresponding JDT method is to be searched for.
org.eclipse.jdt.core.JavaModelExceptionpublic void displayDialog(java.lang.String message)
message - to be displayed.public org.eclipse.jface.viewers.ISelection getSelection()
null, otherwise.public org.eclipse.core.resources.IFile getSelectionContainingFile()
public org.eclipse.jdt.core.ICompilationUnit getCompilationUnit(org.eclipse.core.resources.IFile file)
public org.eclipse.jdt.core.ICompilationUnit getSelectionContainingCompilationUnit()
public soot.SootMethod getJimpleMethodForSelection()
throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
public java.util.Collection<soot.jimple.Stmt> getJimpleStmtsForSelection()
throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
public java.util.Collection<soot.jimple.Stmt> getJimpleStmtsFor(org.eclipse.core.resources.IFile thefile,
org.eclipse.jdt.core.IType theclass,
org.eclipse.jdt.core.IMethod themethod,
int theline)
thefile - containing theclass.theclass - containing themethod.themethod - containing theline.theline - of interest.
public edu.ksu.cis.indus.kaveri.KaveriPlugin getKaveriPlugin()
public edu.ksu.cis.indus.interfaces.IEscapeInfo getEscapeInfo()
public edu.ksu.cis.indus.interfaces.IReadWriteInfo getReadWriteInfo()
public edu.ksu.cis.indus.interfaces.IEnvironment getEnvironment()
public edu.ksu.cis.indus.tools.slicer.SlicerTool getSlicerTool()
public edu.ksu.cis.indus.common.soot.BasicBlockGraphMgr getBasicBlockGraphManager()
public edu.ksu.cis.indus.staticanalyses.interfaces.IValueAnalyzer<soot.Value> getOFAnalyzer()
public edu.ksu.cis.indus.interfaces.ICallGraphInfo getCallGraph()
public edu.ksu.cis.indus.interfaces.IMonitorInfo getMonitorInfo()
public java.util.Collection<soot.SootMethod> getRootMethods()
public java.util.Collection<edu.ksu.cis.indus.staticanalyses.dependency.IDependencyAnalysis> getDA(java.lang.Comparable<?> id)
public java.util.Collection<edu.ksu.cis.indus.staticanalyses.dependency.IDependencyAnalysis> getDAs()
public edu.ksu.cis.indus.common.soot.IStmtGraphFactory<?> getStmtGraphFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||