本文整理匯總了Java中org.objectweb.asm.tree.AbstractInsnNode.getNext方法的典型用法代碼示例。如果您正苦於以下問題:Java AbstractInsnNode.getNext方法的具體用法?Java AbstractInsnNode.getNext怎麽用?Java AbstractInsnNode.getNext使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.objectweb.asm.tree.AbstractInsnNode
的用法示例。
在下文中一共展示了AbstractInsnNode.getNext方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: stringEncryptionTransformer
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
private static void stringEncryptionTransformer(ClassNode classNode) {
if (classNode.superName.equals("org/bukkit/plugin/java/JavaPlugin") || classNode.superName.equals("net/md_5/bungee/api/plugin/Plugin")) {
for (MethodNode methodNode : classNode.methods) {
InsnList nodes = methodNode.instructions;
for (int i = 0; i < nodes.size(); i++) {
AbstractInsnNode instruction = nodes.get(i);
if (instruction instanceof LdcInsnNode) {
if (instruction.getNext() instanceof MethodInsnNode) {
LdcInsnNode ldc = (LdcInsnNode) instruction;
MethodInsnNode methodinsnnode = (MethodInsnNode) ldc.getNext();
if (ldc.cst instanceof String) {
if (methodinsnnode.name.equalsIgnoreCase("\u0972") && methodinsnnode.desc.equalsIgnoreCase("(Ljava/lang/String;)Ljava/lang/String;")) {
methodNode.instructions.remove(methodinsnnode);
ldc.cst = decryptionArray((String)ldc.cst);
}
}
}
}
}
}
}
}
示例2: findNextLabel
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
public LabelNode findNextLabel(AbstractInsnNode node) {
while (node.getNext() != null) {
if (node.getNext() instanceof LabelNode)
return (LabelNode) node.getNext();
node = node.getNext();
}
return null;
}
示例3: getMethodTransformers
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
@Override
public MethodTransformer[] getMethodTransformers() {
MethodTransformer transformRenderParticle = new MethodTransformer() {
@Override
public MethodName getName() {
return Names.Particle_renderParticle;
}
@Override
public void transform(ClassNode classNode, MethodNode method, boolean obfuscated) {
CLTLog.info("Found method: " + method.name + " " + method.desc);
for (AbstractInsnNode instruction : method.instructions.toArray()) {
if (instruction.getOpcode() == ISHR) {
CLTLog.info("Found ISHR in method " + getName().all());
for (int i = 0; i < 12; i++) {
instruction = instruction.getNext();
}
transformParticle(classNode, method, instruction, 14);
break;
}
}
}
};
return new MethodTransformer[] {transformRenderParticle};
}
示例4: getNextRealInsn
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
public static @Nullable AbstractInsnNode getNextRealInsn(AbstractInsnNode insn) {
while ((insn = insn.getNext()) != null && insn.getOpcode() == -1);
return insn;
}
示例5: getNextPseudoInsn
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
public static @Nullable AbstractInsnNode getNextPseudoInsn(AbstractInsnNode insn) {
while ((insn = insn.getNext()) != null && insn.getOpcode() != -1);
return insn;
}
示例6: findNextInstruction
import org.objectweb.asm.tree.AbstractInsnNode; //導入方法依賴的package包/類
static AbstractInsnNode findNextInstruction(AbstractInsnNode node) {
do {
node = node.getNext();
} while (node.getOpcode() == -1);
return node;
}