|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.SizeOpt.Field2Method
public class Field2Method
The Field2Method
code factory converts all GET
and SET
operations on a given set of fields into calls
to accessor getter/setter methods.
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 |
---|
public final Map<HMethod,HField> getter2field
public final Map<HMethod,HField> setter2field
public final Map<HField,HMethod> field2getter
public final Map<HField,HMethod> field2setter
Constructor Detail |
---|
public Field2Method(HCodeFactory hcf, Set<HField> fields2convert)
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 |
---|
public HCodeFactory codeFactory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |