ptolemy.copernicus.java
Class NamedObjAnalysis

java.lang.Object
  extended by ptolemy.copernicus.java.NamedObjAnalysis

public class NamedObjAnalysis
extends java.lang.Object

An analysis that establishes a correspondence between each local variable that refers to a named obj in a method an the named object that it refers to. This information is used to inline methods on named object locals.

Since:
Ptolemy II 4.0
Version:
$Id: NamedObjAnalysis.java,v 1.26 2007/12/06 18:28:51 cxh Exp $
Author:
Stephen Neuendorffer
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
NamedObjAnalysis(soot.SootMethod method, NamedObj thisBinding)
          Create a NamedObjAnalysis.
 
Method Summary
 NamedObj getObject(soot.Local local)
          Return the NameObj that corresponds with the local argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedObjAnalysis

public NamedObjAnalysis(soot.SootMethod method,
                        NamedObj thisBinding)
Create a NamedObjAnalysis.

Parameters:
method - The Soot method.
thisBinding - The NamedObj.
Method Detail

getObject

public NamedObj getObject(soot.Local local)
Return the NameObj that corresponds with the local argument.

Parameters:
local - The local variable
Returns:
The corresponding NamedObj.