
public class FieldReferencesGraph extends Object
| Constructor and Description |
|---|
FieldReferencesGraph() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildFieldReferencesGraph(JProgram program)
Build the field references graph of a JProgram.
|
Set<JField> |
getReferencedFieldsByMethods(Collection<JMethod> methods)
Return the referenced fields by
methods. |
Set<JMethod> |
getReferencingMethodsForFields(Collection<JField> fields)
Return the methods that reference
fields. |
void |
removeField(JField field)
For removing a field, remove the {referencedFields <-> methods} pairs that are related to the
field.
|
void |
removeMethod(JMethod method)
For removing a method, remove the {referencedFields <-> methods} pairs that are related to the
method.
|
void |
reset()
Reset the graph.
|
void |
updateFieldReferencesOfMethod(JMethod method)
Update field references graph of a method.
|
public void buildFieldReferencesGraph(JProgram program)
public Set<JField> getReferencedFieldsByMethods(Collection<JMethod> methods)
methods.public Set<JMethod> getReferencingMethodsForFields(Collection<JField> fields)
fields.public void removeField(JField field)
public void removeMethod(JMethod method)
public void reset()
public void updateFieldReferencesOfMethod(JMethod method)
Copyright © 2018. All rights reserved.