public class TargetSelectors extends java.lang.Object implements java.lang.Iterable<TargetSelectors.SelectedMethod>
| Modifier and Type | Class and Description |
|---|---|
static class |
TargetSelectors.SelectedMethod
Selected target method, paired with the selector which identified it
|
| Constructor and Description |
|---|
TargetSelectors(ISelectorContext context,
org.objectweb.asm.tree.ClassNode classNode) |
| Modifier and Type | Method and Description |
|---|---|
TargetSelectors |
addSelector(ITargetSelector selector) |
void |
clear() |
void |
find()
Find methods in the target class which match the parsed selectors
|
protected void |
findNestedTargets()
For each root target, resolve the nested targets from the target
descriptor
|
boolean |
isPermissivePassEnabled() |
java.util.Iterator<TargetSelectors.SelectedMethod> |
iterator() |
void |
parse(java.util.Set<ITargetSelector> selectors) |
void |
remove(TargetSelectors.SelectedMethod target) |
TargetSelectors |
setPermissivePass(boolean enabled) |
int |
size() |
void |
validate(int expectedCallbackCount,
int requiredCallbackCount)
Post-search validation that some targets were found, we can fail-fast if
no targets were actually identified or if the specified limits are
exceeded.
|
public TargetSelectors(ISelectorContext context, org.objectweb.asm.tree.ClassNode classNode)
public void parse(java.util.Set<ITargetSelector> selectors)
public TargetSelectors addSelector(ITargetSelector selector)
public int size()
public void clear()
public java.util.Iterator<TargetSelectors.SelectedMethod> iterator()
iterator in interface java.lang.Iterable<TargetSelectors.SelectedMethod>public void remove(TargetSelectors.SelectedMethod target)
public boolean isPermissivePassEnabled()
public TargetSelectors setPermissivePass(boolean enabled)
public void find()
protected void findNestedTargets()
public void validate(int expectedCallbackCount,
int requiredCallbackCount)
expectedCallbackCount - Number of callbacks specified by expectrequiredCallbackCount - Number of callbacks specified by require