/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }
/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of the stack portion of this frame. The local * variable table size will be copied, but its contents will be empty. * * @return the shallow copy of the stack */ public Frame copyStack() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
/** * Makes a shallow copy of this frame, i.e. the type instances will * remain the same. * * @return the shallow copy */ public Frame copy() { Frame frame = new Frame(locals.length, stack.length); System.arraycopy(locals, 0, frame.locals, 0, locals.length); System.arraycopy(stack, 0, frame.stack, 0, stack.length); frame.top = top; return frame; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }
private Frame firstFrame(MethodInfo method, int maxLocals, int maxStack) { int pos = 0; Frame first = new Frame(maxLocals, maxStack); if ((method.getAccessFlags() & AccessFlag.STATIC) == 0) { first.setLocal(pos++, Type.get(clazz)); } CtClass[] parameters; try { parameters = Descriptor.getParameterTypes(method.getDescriptor(), clazz.getClassPool()); } catch (NotFoundException e) { throw new RuntimeException(e); } for (int i = 0; i < parameters.length; i++) { Type type = zeroExtend(Type.get(parameters[i])); first.setLocal(pos++, type); if (type.getSize() == 2) first.setLocal(pos++, Type.TOP); } return first; }