private void cleanDebug(MethodNode mn) { for (AbstractInsnNode p = mn.instructions.getFirst(); p != null; ) { if (p.getType() == AbstractInsnNode.LINE) { AbstractInsnNode q = p.getNext(); mn.instructions.remove(p); p = q; } else { p = p.getNext(); } } mn.localVariables = null; }
AbstractInsnNode p = m.instructions.getFirst(); while (p != null) { if (p.getOpcode() == Opcodes.INVOKESTATIC) {
for (AbstractInsnNode p = m.instructions.getFirst(); p != null; p = p.getNext()) { if (p.getOpcode() == Opcodes.INVOKESTATIC) { MethodInsnNode mn = (MethodInsnNode) p;
private void emitUnits() { AbstractInsnNode insn = instructions.getFirst(); ArrayDeque<LabelNode> labls = new ArrayDeque<LabelNode>();
stack.push(insnList.getFirst());
worklist.add(new Edge(instructions.getFirst(), new ArrayList<Operand>())); conversionWorklist = worklist; edges = HashBasedTable.create(1, 1);
private void initParentCount(int[] parentCount) { parentCount[0] = 1; for (AbstractInsnNode p = insnList.getFirst(); p != null; p = p.getNext()) { if (p.getType() == AbstractInsnNode.JUMP_INSN) { JumpInsnNode jump = (JumpInsnNode) p;
private boolean hasLineNumber(final MethodNode methodNode) { for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { if (AbstractInsnNode.LINE == i.getType()) { return true; } } return false; }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { AbstractInsnNode i = methodNode.instructions.getFirst(); while (i != null) { filter(i, output); i = i.getNext(); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { if (ENUM_TYPE.equals(context.getSuperClassName()) && CONSTRUCTOR_NAME.equals(methodNode.name) && CONSTRUCTOR_DESC.equals(methodNode.desc) && new Matcher().match(methodNode)) { output.ignore(methodNode.instructions.getFirst(), methodNode.instructions.getLast()); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { if ((methodNode.access & Opcodes.ACC_PRIVATE) != 0 && CONSTRUCTOR_NAME.equals(methodNode.name) && CONSTRUCTOR_DESC.equals(methodNode.desc) && new Matcher() .match(methodNode, context.getSuperClassName())) { output.ignore(methodNode.instructions.getFirst(), methodNode.instructions.getLast()); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public Frame(VM vm, MethodCode methodCode, Object[] args) { this.vm = vm; this.heap = vm.heap; this.methodArea = vm.methodArea; this.methodCode = methodCode; this.maxStack = this.methodCode.maxStack; this.maxLocals = this.methodCode.maxLocals; this.operandStack = new OperandStack(this.maxStack); this.localVariables = new LocalVariables(this.maxLocals, args); this.result = new Result(this.methodCode.returnVariableType); this.currentInsnNode = this.methodCode.instructions.getFirst(); }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { final Matcher matcher = new Matcher(); for (AbstractInsnNode i = methodNode.instructions .getFirst(); i != null; i = i.getNext()) { matcher.match(i, output); } }
public void filter(final MethodNode methodNode, final IFilterContext context, final IFilterOutput output) { if (isMethodFiltered(context.getClassName(), context.getSuperClassName(), methodNode.name, methodNode.desc)) { output.ignore(methodNode.instructions.getFirst(), methodNode.instructions.getLast()); } }
public void process(ParserClassNode classNode, RuleMethod method) throws Exception { checkArgNotNull(classNode, "classNode"); checkArgNotNull(method, "method"); InsnList instructions = method.instructions; AbstractInsnNode insn = instructions.getFirst(); while (insn.getOpcode() != ARETURN) { if (insn.getOpcode() == INVOKESPECIAL) { process(classNode, method, (MethodInsnNode) insn); } insn = insn.getNext(); } }