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

JimpleLiteralPrinter Class Reference

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

Public Methods

 JimpleLiteralPrinter (String prefix)
void caseArrayLiteral (ArrayLiteral literal)
void caseBooleanLiteral (BooleanLiteral literal)
void caseClassLiteral (ClassLiteral literal)
void caseIntegerLiteral (IntegerLiteral literal)
void caseLockLiteral (LockLiteral literal)
void caseReferenceLiteral (ReferenceLiteral literal)
void flush ()

Private Attributes

Hashtable objectTable
int objectCount = 0
Vector printQueue = new Vector()
String prefix

Detailed Description

A visitor that prints JimpleLiterals neatly (using the notation i to print references to objects).

Demonstrates the use of JimpleLiteralSwitch to visit different types of literals.

Definition at line 48 of file JimpleLiteralPrinter.java.


Member Function Documentation

void JimpleLiteralPrinter::flush   [inline]
 

Flush output

This method should be called after all static fields and locals have been printed using the object---it will print any objects that these variables were pointing to (as well as any objects those objects point to, etc.).

Definition at line 128 of file JimpleLiteralPrinter.java.

Referenced by JimpleStore::print().


Member Data Documentation

Hashtable JimpleLiteralPrinter::objectTable [private]
 

Initial value:

   
    new Hashtable()

Definition at line 50 of file JimpleLiteralPrinter.java.


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