Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

ptolemy.copernicus.c
Class AnalysisUtilities

java.lang.Object
 extended byptolemy.copernicus.c.AnalysisUtilities

public class AnalysisUtilities
extends java.lang.Object

This class provides utilities for analyzing classes, methods and fields.

Since:
Ptolemy II 4.0
Version:
$Id: AnalysisUtilities.java,v 1.22 2005年07月08日 19:56:56 cxh Exp $
Author:
Ankush Varma
Accepted Rating:
Red (ssb)
Proposed Rating:
Red (ankush)

Constructor Summary
AnalysisUtilities()
Method Summary
static java.util.LinkedList classesRequiredBy(soot.SootField field)
Returns the set of classes needed by a field.
static java.util.HashSet getAllInterfacesOf(soot.SootClass source)
Return the set of interfaces, and all superInterfaces thereof implemented in a class or any of its superclasses.
static java.util.HashSet getArgumentClasses(soot.SootMethod method)
Returns the list of classes in the arguments to a given method.
static java.util.HashSet getLocalTypeClasses(soot.SootMethod method)
Return the set of classes corresponding to the types of local variables in the body of a given method.
static java.util.HashSet getSuperInterfacesOf(soot.SootClass source)
Return the list of interfaces, and all superInterfaces of these interfaces implemented by a given class.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AnalysisUtilities

public AnalysisUtilities()
Method Detail

classesRequiredBy

public static java.util.LinkedList classesRequiredBy(soot.SootField field)
Returns the set of classes needed by a field. These are the declaring class of the field, and the type class (if any) of the field.

Parameters:
field - The field.
Returns:
The set of classes required to define the field.

getAllInterfacesOf

public static java.util.HashSet getAllInterfacesOf(soot.SootClass source)
Return the set of interfaces, and all superInterfaces thereof implemented in a class or any of its superclasses. This is the set of all interfaces the class may be cast as.

Parameters:
source - The class to analyze.
Returns:
The set of interfaces the class may be cast as.

getArgumentClasses

public static java.util.HashSet getArgumentClasses(soot.SootMethod method)
Returns the list of classes in the arguments to a given method. Also takes into account the return type of the method.

Parameters:
method - The method to be analyzed.
Returns:
The list of classes corresponding to the types of the arguments to this method.

getLocalTypeClasses

public static java.util.HashSet getLocalTypeClasses(soot.SootMethod method)
Return the set of classes corresponding to the types of local variables in the body of a given method.

Parameters:
method - The method to analyze.
Returns:
The set of classes corresponding to the types of local variables in the body of this method.

getSuperInterfacesOf

public static java.util.HashSet getSuperInterfacesOf(soot.SootClass source)
Return the list of interfaces, and all superInterfaces of these interfaces implemented by a given class.

Parameters:
source - The class to analyze.
Returns:
The list of interfaces it can support.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /