
com.llamalad7.mixinextras.expression.impl.pool.SimpleMemberDefinition Maven / Gradle / Ivy
package com.llamalad7.mixinextras.expression.impl.pool;
import com.llamalad7.mixinextras.expression.impl.flow.FlowValue;
import com.llamalad7.mixinextras.expression.impl.flow.postprocessing.LMFInfo;
import com.llamalad7.mixinextras.expression.impl.utils.FlowDecorations;
import org.objectweb.asm.Handle;
import org.objectweb.asm.tree.AbstractInsnNode;
public interface SimpleMemberDefinition extends MemberDefinition {
boolean matches(AbstractInsnNode insn);
default boolean matches(Handle handle) {
return false;
}
@Override
default boolean matches(FlowValue node) {
LMFInfo lmfInfo = node.getDecoration(FlowDecorations.LMF_INFO);
if (lmfInfo != null) {
return matches(lmfInfo.impl);
}
return matches(node.getInsn());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy