Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TempExpr Class Reference

Inheritance diagram for TempExpr:
[legend]
Collaboration diagram for TempExpr:
[legend]
List of all members.

Public Methods

void caseArrayRef (ArrayRef v)
void caseInstanceFieldRef (InstanceFieldRef v)
void caseInterfaceInvokeExpr (InterfaceInvokeExpr v)
void caseLocal (Local v)
void caseParameterRef (ParameterRef v)
void caseSpecialInvokeExpr (SpecialInvokeExpr v)
void caseStaticFieldRef (StaticFieldRef v)
void caseThisRef (ThisRef v)
void caseVirtualInvokeExpr (VirtualInvokeExpr v)
void defaultCase (Object obj)

Private Methods

 TempExpr ()
void build (Value v)
void init (SootMethod sm)
void print (Value v, String s)

Private Attributes

SootMethod sm
Analysis analyser

Detailed Description

A jimple expression walker.

Author:
Venkatesh Prasad Ranganath
Version:
Name:
(
Revision:
1.1.1.1
)

Definition at line 52 of file TempExpr.java.


Constructor & Destructor Documentation

TempExpr::TempExpr   [inline, private]
 

Creates a new TempExpr instance.

Definition at line 70 of file TempExpr.java.


Member Function Documentation

void TempExpr::build Value   v [inline, private]
 

Triggers the walk.

Parameters:
v   the expression to be walked on.

Definition at line 79 of file TempExpr.java.

Referenced by TempStmt::caseAssignStmt(), TempStmt::caseIdentityStmt(), TempStmt::caseIfStmt(), TempStmt::caseInvokeStmt(), and TempStmt::caseReturnStmt().

void TempExpr::caseArrayRef ArrayRef   v [inline]
 

Handles the case when caseArrayRefs are encountered.

Parameters:
v   object representing the array reference.

Definition at line 88 of file TempExpr.java.

void TempExpr::caseInstanceFieldRef InstanceFieldRef   v [inline]
 

Handles the case when caseInstanceFieldRefs are encountered.

Parameters:
v   object representing the instance field reference.

Definition at line 97 of file TempExpr.java.

void TempExpr::caseInterfaceInvokeExpr InterfaceInvokeExpr   v [inline, virtual]
 

Handles the case when caseInterfaceInvokeExprs are encountered.

Parameters:
v   object representing a interface invoke expression.

Reimplemented from ExprSwitch.

Definition at line 107 of file TempExpr.java.

void TempExpr::caseLocal Local   v [inline]
 

Handles the case when Locals are encountered.

Parameters:
v   object representing the local.

Definition at line 116 of file TempExpr.java.

void TempExpr::caseParameterRef ParameterRef   v [inline]
 

Handles the case when caseParameterRefs are encountered.

Parameters:
v   object representing parameter reference.

Definition at line 125 of file TempExpr.java.

void TempExpr::caseSpecialInvokeExpr SpecialInvokeExpr   v [inline, virtual]
 

Handles the case when caseSpecialInvokeExprs are encountered.

Parameters:
v   object representing a special invoke expression.

Reimplemented from ExprSwitch.

Definition at line 134 of file TempExpr.java.

void TempExpr::caseStaticFieldRef StaticFieldRef   v [inline]
 

Handles the case when caseStaticFieldRefs are encountered.

Parameters:
v   object representing static field reference.

Definition at line 143 of file TempExpr.java.

void TempExpr::caseThisRef ThisRef   v [inline]
 

Handles the case when caseThisRefs are encountered.

Parameters:
v   object representing a reference to this variable.

Definition at line 152 of file TempExpr.java.

void TempExpr::caseVirtualInvokeExpr VirtualInvokeExpr   v [inline, virtual]
 

Handles the case when caseVirtualInvokeExprs are encountered.

Parameters:
v   object representing a virtual invoke expression.

Reimplemented from ExprSwitch.

Definition at line 161 of file TempExpr.java.

void TempExpr::defaultCase Object   obj [inline, virtual]
 

Handles cases which we donot intend to handle at this time.

Parameters:
obj   object representing anything.

Reimplemented from ExprSwitch.

Definition at line 170 of file TempExpr.java.

void TempExpr::init SootMethod   sm [inline, private]
 

Performs initialization before proceeding with walking.

Parameters:
sm   the method enclosing the expression being walked.

Definition at line 183 of file TempExpr.java.

Referenced by Demo::analyze().

void TempExpr::print Value   v,
String   s
[inline, private]
 

A generic method to print all information available from the analysis about the given expression.

Parameters:
v   the expression of interest.
s   a parameterizing string. This just is printed along with the other information.

Definition at line 195 of file TempExpr.java.


Member Data Documentation

Analysis TempExpr::analyser [private]
 

The analyzer object.

Definition at line 64 of file TempExpr.java.

SootMethod TempExpr::sm [private]
 

Method enclosing the expression being walked.

Definition at line 58 of file TempExpr.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:22:22 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001