public interface OptimizerContext
Modifier and Type | Field and Description |
---|---|
static OptimizerContext |
NULL_OPTIMIZATION_CONTEXT
An optimization context that does not provide any information.
|
Modifier and Type | Method and Description |
---|---|
Set<JMethod> |
getCallees(Collection<JMethod> callerMethods)
Return callee methods of
callerMethods . |
Set<JMethod> |
getCallers(Collection<JMethod> calleeMethods)
Return caller methods of
calleeMethods . |
int |
getLastStepFor(String optimizerName)
Return the last modification step for a given optimizer.
|
Set<JMethod> |
getMethodsByReferencedFields(Collection<JField> fields)
Return methods that reference
fields . |
Set<JField> |
getModifiedFieldsSince(int stepSince)
Return all the effective modified fields since a given step.
|
Set<JMethod> |
getModifiedMethodsSince(int stepSince)
Return all the effective modified methods since a given step.
|
int |
getOptimizationStep()
Return the current optimization step number.
|
Set<JField> |
getReferencedFieldsByMethods(Collection<JMethod> methods)
Return fields that are referenced by
methods . |
Set<JMethod> |
getRemovedCalleeMethodsSince(int stepSince)
Get the removed callee methods since a given step.
|
void |
incOptimizationStep()
Increase the optimization step by 1, create a new set to record modifications in this step.
|
void |
markModified(JField modifiedField)
Add modified field to the modification information.
|
void |
markModified(JMethod modifiedMethod)
Add modified method to both the modification and dependence information.
|
void |
remove(JField field)
Remove field from the modification information.
|
void |
remove(JMethod method)
Remove method from both the dependence and modification information.
|
void |
removeFields(Collection<JField> fields)
Remove fields from the modification information.
|
void |
removeMethods(Collection<JMethod> methods)
Remove methods from the modification information.
|
void |
setLastStepFor(String optimizerName,
int step)
Set the last modification step of a given optimizer.
|
void |
syncDeletedSubCallGraphsSince(int step,
Collection<JMethod> prunedMethods)
Remove the pruned methods from the deleted sub call graphs since a given step.
|
void |
traverse(JVisitor visitor,
Set<? extends JNode> nodes)
Traverse the affected methods and fields.
|
static final OptimizerContext NULL_OPTIMIZATION_CONTEXT
void markModified(JField modifiedField)
void markModified(JMethod modifiedMethod)
Set<JMethod> getCallers(Collection<JMethod> calleeMethods)
calleeMethods
.Set<JMethod> getCallees(Collection<JMethod> callerMethods)
callerMethods
.int getLastStepFor(String optimizerName)
Set<JField> getModifiedFieldsSince(int stepSince)
Set<JMethod> getModifiedMethodsSince(int stepSince)
int getOptimizationStep()
void incOptimizationStep()
void remove(JField field)
void removeFields(Collection<JField> fields)
void remove(JMethod method)
void removeMethods(Collection<JMethod> methods)
void setLastStepFor(String optimizerName, int step)
Set<JMethod> getMethodsByReferencedFields(Collection<JField> fields)
fields
.Set<JField> getReferencedFieldsByMethods(Collection<JMethod> methods)
methods
.void syncDeletedSubCallGraphsSince(int step, Collection<JMethod> prunedMethods)
Set<JMethod> getRemovedCalleeMethodsSince(int stepSince)
Copyright © 2018. All rights reserved.