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

SynchroStmt Class Reference

List of all members.

Public Methods

 SynchroStmt (Stmt s, String kind)
Value getLock ()
Stmt getWaitNotify ()
boolean isNotifyStmt ()
boolean isWaitStmt ()
void setLock (Value v)
String toString ()

Private Attributes

Value lock
Stmt waitNotify
String stmtKind

Detailed Description

This class is for information of synchronization statement in Jimple like wait and notify.

Definition at line 42 of file SynchroStmt.java.


Constructor & Destructor Documentation

SynchroStmt::SynchroStmt Stmt   s,
String   kind
[inline]
 

Parameters:
s   wait or notify statement.
kind   kind of the statement.

Definition at line 63 of file SynchroStmt.java.


Member Function Documentation

Value SynchroStmt::getLock   [inline]
 

Get the lock.

Returns:
lock.

Definition at line 73 of file SynchroStmt.java.

Referenced by InterClassAnalysis::lookupReadyDependStmt().

Stmt SynchroStmt::getWaitNotify   [inline]
 

Get the statement.

Returns:
waitNotify.

Definition at line 82 of file SynchroStmt.java.

Referenced by InterClassAnalysis::lookupReadyDependStmt(), LockAnalysis::readyDependOnWaits(), and InterClassAnalysis::readyForMethod().

boolean SynchroStmt::isNotifyStmt   [inline]
 

See if the statement is notify statement.

Returns:
true if stmtKind is notify or notifyAll; false otherwise.

Definition at line 93 of file SynchroStmt.java.

boolean SynchroStmt::isWaitStmt   [inline]
 

See if the statement is wait statement.

Returns:
true if stmtKind is wait; false otherwise.

Definition at line 103 of file SynchroStmt.java.

void SynchroStmt::setLock Value   v [inline]
 

Set a value for lock.

Parameters:
v   the value.

Definition at line 112 of file SynchroStmt.java.

Referenced by LockAnalysis::collectWaitNotifyStmt().


Member Data Documentation

Value SynchroStmt::lock [private]
 

The lock with which wait or notify is associtated.

Definition at line 48 of file SynchroStmt.java.

String SynchroStmt::stmtKind [private]
 

The kind of the statement: notify, notifyAll, or wait.

Definition at line 57 of file SynchroStmt.java.

Stmt SynchroStmt::waitNotify [private]
 

The statement of wait or notify.

Definition at line 52 of file SynchroStmt.java.


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