/** * Returns the byteIndex at which the target instruction can be found. * This call does not change the Target strategy. */ public int getByteIndex() { if (_target == null) return _byteIndex; return _target.getByteIndex(); }
/** * Returns the byteIndex at which the target instruction can be found. * This call does not change the Target strategy. */ public int getByteIndex() { if (_target == null) return _byteIndex; return _target.getByteIndex(); }
private Instruction findTarget(int jumpByteIndex, List inss) { Instruction ins; for (Iterator itr = inss.iterator(); itr.hasNext();) { ins = (Instruction) itr.next(); if (ins.getByteIndex() == jumpByteIndex) return ins; } return null; }
private Instruction findJumpPoint(int jumpByteIndex, List inss) { Instruction ins; for (Iterator itr = inss.iterator(); itr.hasNext();) { ins = (Instruction) itr.next(); if (ins.getByteIndex() == jumpByteIndex) return ins; } return null; }
private Instruction findTarget(int jumpByteIndex, List inss) { Instruction ins; for (Iterator itr = inss.iterator(); itr.hasNext();) { ins = (Instruction) itr.next(); if (ins.getByteIndex() == jumpByteIndex) return ins; } return null; }
private Instruction findJumpPoint(int jumpByteIndex, List inss) { Instruction ins; for (Iterator itr = inss.iterator(); itr.hasNext();) { ins = (Instruction) itr.next(); if (ins.getByteIndex() == jumpByteIndex) return ins; } return null; }
/** * Return the line number for the given instruction, or null if none. */ public LineNumber getLineNumber(Instruction ins) { if (ins == null) return null; return getLineNumber(ins.getByteIndex()); }
/** * Return the line number for the given instruction, or null if none. */ public LineNumber getLineNumber(Instruction ins) { if (ins == null) return null; return getLineNumber(ins.getByteIndex()); }
public void enterInstruction(Instruction obj) { _out.print(_prefix + obj.getByteIndex() + " " + obj.getName() + " "); }
public void enterInstruction(Instruction obj) { _out.print(_prefix + obj.getByteIndex() + " " + obj.getName() + " "); }
/** * Get the number of bytes for which this local has a value in * the code byte array. */ public int getLength() { if (_end != null) return _end.getByteIndex() + _end.getLength() - _target.getByteIndex(); return _length; }
/** * Get the number of bytes for which this local has a value in * the code byte array. */ public int getLength() { if (_end != null) return _end.getByteIndex() + _end.getLength() - _target.getByteIndex(); return _length; }
int getLength() { // covers maxStack, maxLocals, codeLength, exceptionTableLength, // attributeCount int length = 12; // add code Instruction last = getLastInstruction(); if (last != null) length += last.getByteIndex() + last.getLength(); // add exception reps; each is 8 bytes length += (8 * _handlers.size()); // add all attribute lengths Attribute[] attrs = getAttributes(); for (int i = 0; i < attrs.length; i++) length += (attrs[i].getLength() + 6); return length; }
int getLength() { // covers maxStack, maxLocals, codeLength, exceptionTableLength, // attributeCount int length = 12; // add code Instruction last = getLastInstruction(); if (last != null) length += last.getByteIndex() + last.getLength(); // add exception reps; each is 8 bytes length += (8 * _handlers.size()); // add all attribute lengths Attribute[] attrs = getAttributes(); for (int i = 0; i < attrs.length; i++) length += (attrs[i].getLength() + 6); return length; }