Class StringSelector
- java.lang.Object
-
- org.stianloader.micromixin.transform.internal.selectors.StringSelector
-
- All Implemented Interfaces:
InjectionPointConstraint,MixinTargetSelector
public class StringSelector extends java.lang.Object implements MixinTargetSelector, InjectionPointConstraint
-
-
Constructor Summary
Constructors Constructor Description StringSelector(java.lang.String text)StringSelector(java.lang.String owner, java.lang.String name, java.lang.String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(org.objectweb.asm.tree.AbstractInsnNode insn, SimpleRemapper remapper, java.lang.StringBuilder sharedBuilder)Check whether the specified instruction is applicable to this constraint.org.objectweb.asm.tree.MethodNodeselectMethod(org.objectweb.asm.tree.ClassNode within, MixinStub source)java.lang.StringtoString()
-
-
-
Method Detail
-
selectMethod
@Nullable public org.objectweb.asm.tree.MethodNode selectMethod(@NotNull org.objectweb.asm.tree.ClassNode within, @NotNull MixinStub source)- Specified by:
selectMethodin interfaceMixinTargetSelector
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isValid
public boolean isValid(@NotNull org.objectweb.asm.tree.AbstractInsnNode insn, @NotNull SimpleRemapper remapper, @NotNull java.lang.StringBuilder sharedBuilder)Description copied from interface:InjectionPointConstraintCheck whether the specified instruction is applicable to this constraint.- Specified by:
isValidin interfaceInjectionPointConstraint- Parameters:
insn- The instruction to check.remapper- The remapper instance to make use of. This is used to remap any references of the mixin class to the target class when applying injection point constraints.sharedBuilder- SharedStringBuilderinstance to reduceStringBuilderallocations.- Returns:
- True if valid, false otherwise
-
-