private static final class UnResolvedWeightedCallTargets.UnResolvedSingleTarget extends UnResolvedWeightedCallTargets
UnResolvedWeightedCallTargets.Visitor| Modifier and Type | Field and Description |
|---|---|
private MethodReference |
target |
private float |
weight |
| Constructor and Description |
|---|
UnResolvedSingleTarget(MethodReference t,
double w) |
| Modifier and Type | Method and Description |
|---|---|
UnResolvedWeightedCallTargets |
augmentCount(MethodReference t,
double v)
Augment the weight associated with the argument method by the argument amount.
|
void |
decay(double rate)
Decay the weights of all call targets by the specified amount
|
UnResolvedWeightedCallTargets |
filter(MethodReference goal) |
double |
totalWeight() |
void |
visitTargets(UnResolvedWeightedCallTargets.Visitor func)
Iterate over all of the targets, evaluating the argument function on each edge.
|
create, incrementCountprivate final MethodReference target
private float weight
UnResolvedSingleTarget(MethodReference t, double w)
public void visitTargets(UnResolvedWeightedCallTargets.Visitor func)
UnResolvedWeightedCallTargetsvisitTargets in class UnResolvedWeightedCallTargetsfunc - the function to evaluate on each targetpublic UnResolvedWeightedCallTargets augmentCount(MethodReference t, double v)
UnResolvedWeightedCallTargetsaugmentCount in class UnResolvedWeightedCallTargetst - the target methodv - the amount to addpublic void decay(double rate)
UnResolvedWeightedCallTargetsdecay in class UnResolvedWeightedCallTargetsrate - the value to decay bypublic double totalWeight()
totalWeight in class UnResolvedWeightedCallTargetspublic UnResolvedWeightedCallTargets filter(MethodReference goal)
filter in class UnResolvedWeightedCallTargetsgoal - MethodReference that is the only statically possible targetnull if no such target exists