public interface ITargetSelector
Explicit Target Selectors are handled internally using
MemberInfo structs, see the javadoc for MemberInfo for the
supported variants and examples.
| Modifier and Type | Method and Description |
|---|---|
ITargetSelector |
attach(IMixinContext context)
Attach this selector to the specified context.
|
ITargetSelector |
configure(java.lang.String... args)
Configure and return a modified version of this selector by consuming the
supplied arguments.
|
int |
getMatchCount()
Number of candidates which this selector should match
|
MatchResult |
match(org.objectweb.asm.tree.AbstractInsnNode insn)
Test whether this selector matches the supplied instruction node
|
<TNode> MatchResult |
match(ElementNode<TNode> node)
Test whether this selector matches the supplied element node
|
ITargetSelector |
next()
Get the next target selector in this path (or null if this
selector is the last selector in the chain.
|
ITargetSelector |
validate()
Perform basic sanity-check validation of the selector, checks that the
parsed out parameters are basically sane
|
ITargetSelector next()
ITargetSelector configure(java.lang.String... args)
In other words, calling configure("foo") when this object is already configured according to "foo" may simply return this object, or might return an identically-configured copy.
args - Configuration argumentsITargetSelector validate() throws InvalidSelectorException
InvalidSelectorException - if any sanity check failsITargetSelector attach(IMixinContext context) throws InvalidSelectorException
InvalidSelectorException is thrown.context - Context to attach toInvalidSelectorExceptionint getMatchCount()
<TNode> MatchResult match(ElementNode<TNode> node)
TNode - node typenode - node node to testMatchResult match(org.objectweb.asm.tree.AbstractInsnNode insn)
insn - instruction node to test