Package org.apache.bcel.classfile

Examples of org.apache.bcel.classfile.LineNumber


    }
  }

  private int getLineNumber(LineNumber[] lineNumbers, Instruction line) {
    int pc = line.getPc();
    LineNumber previousLineNumber = null;
    for (LineNumber lineNumber : lineNumbers) {
      if (lineNumber.getStartPC() <= pc) {
        previousLineNumber = lineNumber;
      } else {
        return previousLineNumber.getLineNumber();
      }
    }
    if (previousLineNumber != null && previousLineNumber.getStartPC() <= pc) {
      return previousLineNumber.getLineNumber();
    }
    return -1;
  }
View Full Code Here


    }
  }

  private int getLineNumber(LineNumber[] lineNumbers, Instruction line) {
    int pc = line.getPc();
    LineNumber previousLineNumber = null;
    for (LineNumber lineNumber : lineNumbers) {
      if (lineNumber.getStartPC() <= pc) {
        previousLineNumber = lineNumber;
      } else {
        return previousLineNumber.getLineNumber();
      }
    }
    if (previousLineNumber != null && previousLineNumber.getStartPC() <= pc) {
      return previousLineNumber.getLineNumber();
    }
    return -1;
  }
View Full Code Here

    }
  }

  private int getLineNumber(LineNumber[] lineNumbers, Instruction line) {
    int pc = line.getPc();
    LineNumber previousLineNumber = null;
    for (LineNumber lineNumber : lineNumbers) {
      if (lineNumber.getStartPC() <= pc) {
        previousLineNumber = lineNumber;
      } else {
        return previousLineNumber.getLineNumber();
      }
    }
    if (previousLineNumber != null && previousLineNumber.getStartPC() <= pc) {
      return previousLineNumber.getLineNumber();
    }
    return -1;
  }
View Full Code Here

    }
  }

  private int getLineNumber(LineNumber[] lineNumbers, Instruction line) {
    int pc = line.getPc();
    LineNumber previousLineNumber = null;
    for (LineNumber lineNumber : lineNumbers) {
      if (lineNumber.getStartPC() <= pc) {
        previousLineNumber = lineNumber;
      } else {
        return previousLineNumber.getLineNumber();
      }
    }
    if (previousLineNumber != null && previousLineNumber.getStartPC() <= pc) {
      return previousLineNumber.getLineNumber();
    }
    return -1;
  }
View Full Code Here

TOP

Related Classes of org.apache.bcel.classfile.LineNumber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.