harpoon.Analysis.SizeOpt
Class Field2Method

java.lang.Object
  |
  +--harpoon.Analysis.SizeOpt.Field2Method

public class Field2Method
extends Object

The Field2Method code factory converts all GET and SET operations on a given set of fields into calls to accessor getter/setter methods.

Version:
$Id: Field2Method.java,v 1.3 2002/02/26 22:42:23 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 Map field2getter
          This maps fields to 'getter' methods.
 Map field2setter
          This maps fields to 'setter' methods.
 Map getter2field
          This maps 'getter' methods to the field they get.
 Map setter2field
          This maps 'setter' methods to the field they set.
 
Constructor Summary
Field2Method(HCodeFactory hcf, Set fields2convert)
          Creates a Field2Method code factory which converts all GET and SET operations on the fields in the fields2convert Set into calls to accessor getter/setter methods.
 
Method Summary
 HCodeFactory codeFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getter2field

public final Map getter2field
This maps 'getter' methods to the field they get.


setter2field

public final Map setter2field
This maps 'setter' methods to the field they set.


field2getter

public final Map field2getter
This maps fields to 'getter' methods.


field2setter

public final Map field2setter
This maps fields to 'setter' methods.

Constructor Detail

Field2Method

public Field2Method(HCodeFactory hcf,
                    Set fields2convert)
Creates a Field2Method code factory which converts all GET and SET operations on the fields in the fields2convert Set into calls to accessor getter/setter methods. The input may be in Quad SSI/SSA/NoSSA/RSSx forms. The output will be in Quad-SSI form.

Method Detail

codeFactory

public HCodeFactory codeFactory()