harpoon.Analysis.SizeOpt
Class Field2Method

java.lang.Object
  extended by 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.7 2004/02/08 03:20:22 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 Map<HField,HMethod> field2getter
          This maps fields to 'getter' methods.
 Map<HField,HMethod> field2setter
          This maps fields to 'setter' methods.
 Map<HMethod,HField> getter2field
          This maps 'getter' methods to the field they get.
 Map<HMethod,HField> setter2field
          This maps 'setter' methods to the field they set.
 
Constructor Summary
Field2Method(HCodeFactory hcf, Set<HField> 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<HMethod,HField> getter2field
This maps 'getter' methods to the field they get.


setter2field

public final Map<HMethod,HField> setter2field
This maps 'setter' methods to the field they set.


field2getter

public final Map<HField,HMethod> field2getter
This maps fields to 'getter' methods.


field2setter

public final Map<HField,HMethod> field2setter
This maps fields to 'setter' methods.

Constructor Detail

Field2Method

public Field2Method(HCodeFactory hcf,
                    Set<HField> 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()