Package org.spongepowered.asm.mixin.injection.selectors
package org.spongepowered.asm.mixin.injection.selectors
Target selectors are consumed by injectors and injection points when
identifying target members in a class or inside a method, see
ITargetSelector.-
ClassDescriptionElementNode<TNode>Wrapper for all node types supported by
target selectors(FieldNode,MethodNode,FieldInsnNode,MethodInsnNodeandInvokeDynamicInsnNode) which allows access to common properties of things which are basically "arbitrary node with owner, name and descriptor"Element node type, returned by getType so consumers don't need to do instanceof checks, and allows switching on element type in a more expressive waySince the contract ofTargetSelector.parse(java.lang.Iterable<?>, org.spongepowered.asm.mixin.injection.selectors.ISelectorContext)prohibits returing null, instances of this selector are returned when supplied arguments are unparseable in order to throw exceptions only during validation.Exception to be thrown fromITargetSelector.validate()when a target selector fails verificationContext passed to aTarget Selectorin order to support context-sensitive behaviour for the selector.Target Selectors are used to identify target members in a class, with the criteria for selection being specified in a single string, effectively defining the query parameters.Available selector reconfigurationsA target selector which selects elements directly by name.A target selector which can identify constructor typesDecoration interface for dynamic target selectorsDecoration for subclasses which indicates an annotation type from which the selector can be parsed.Decoration for subclasses which indicates id used for a specific selector when specified, for example @MyNamespace:MySelector(argshere) would specify "MySelector"A target selector which can be remapped at compile time via an obfuscation serviceResult of atarget selectormatch operation which describes the type of match.ATarget Selectorwhich matches an element of candidate members using a regular expression.Utility class for parsing selectorsTargetSelector.Result<TNode>Query result structSelected target method, paired with the selector which identified it