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.-
Interface SummaryInterfaceDescriptionContext passed to a
Target 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.A target selector which selects elements directly by name.A target selector which can identify constructor typesDecoration interface for dynamic target selectorsA target selector which can be remapped at compile time via an obfuscation service -
Class SummaryClassDescriptionElementNode<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"Since 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.ATarget Selectorwhich matches an element of candidate members using a regular expression.Utility class for parsing selectorsTargetSelector.Result<TNode>Query result struct -
Enum Class SummaryEnum ClassDescriptionElement node type, returned by getType so consumers don't need to do instanceof checks, and allows switching on element type in a more expressive wayAvailable selector reconfigurationsResult of a
target selectormatch operation which describes the type of match. -
Exception SummaryExceptionDescriptionException to be thrown from
ITargetSelector.validate()when a target selector fails verification -
Annotation Interfaces SummaryAnnotation InterfaceDescriptionDecoration 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"