Package org.aspectj.apache.bcel.classfile

Examples of org.aspectj.apache.bcel.classfile.LineNumberTable


    for (int i = 0; i < size; i++) {
      ln[i] = lineNumbersList.get(i).getLineNumber();
    }

    return new LineNumberTable(cp.addUtf8("LineNumberTable"), 2 + ln.length * 4, ln, cp);
  }
View Full Code Here


    if (il != null) {
      byte_code = il.getByteCode();
    }

    LineNumberTable lnt = null;
    LocalVariableTable lvt = null;
    // J5TODO: LocalVariableTypeTable support!

    /*
     * Create LocalVariableTable and LineNumberTable attributes (for debuggers, e.g.)
View Full Code Here

    determineParameterNames();
    return super.getParameterNames();
  }

  public int getLineNumberOfFirstInstruction() {
    LineNumberTable lnt = method.getLineNumberTable();
    if (lnt == null) {
      return -1;
    }
    LineNumber[] lns = lnt.getLineNumberTable();
    if (lns == null || lns.length == 0) {
      return -1;
    }
    return lns[0].getLineNumber();
  }
View Full Code Here

    for (int i = 0; i < size; i++) {
      ln[i] = lineNumbersList.get(i).getLineNumber();
    }

    return new LineNumberTable(cp.addUtf8("LineNumberTable"), 2 + ln.length * 4, ln, cp);
  }
View Full Code Here

        throw new IllegalStateException("Unexpected problem whilst preparing bytecode for " + this.getClassName() + "."
            + this.getName() + this.getSignature(), e);
      }
    }

    LineNumberTable lnt = null;
    LocalVariableTable lvt = null;
    // J5TODO: LocalVariableTypeTable support!

    /*
     * Create LocalVariableTable and LineNumberTable attributes (for debuggers, e.g.)
View Full Code Here

    determineParameterNames();
    return super.getParameterNames();
  }

  public int getLineNumberOfFirstInstruction() {
    LineNumberTable lnt = method.getLineNumberTable();
    if (lnt == null) {
      return -1;
    }
    LineNumber[] lns = lnt.getLineNumberTable();
    if (lns == null || lns.length == 0) {
      return -1;
    }
    return lns[0].getLineNumber();
  }
View Full Code Here

    int codeLength = code.getCode().length;

    /////////////////////
    // LineNumberTable //
    /////////////////////
    LineNumberTable lnt = code.getLineNumberTable();
    if (lnt != null){
      LineNumber[] lineNumbers = lnt.getLineNumberTable();
      IntList offsets = new IntList();
      lineNumber_loop: for (int i=0; i < lineNumbers.length; i++){ // may appear in any order.
        for (int j=0; j < instructionPositions.length; j++){
          // TODO: Make this a binary search! The instructionPositions array is naturally ordered!
          int offset = lineNumbers[i].getStartPC();
View Full Code Here

    try {
      for(int i=0; i < size; i++)
  ln[i] = ((LineNumberGen)line_number_vec.get(i)).getLineNumber();
    } catch(ArrayIndexOutOfBoundsException e) {} // Never occurs

    return new LineNumberTable(cp.addUtf8("LineNumberTable"),
             2 + ln.length * 4, ln, cp.getConstantPool());
  }
View Full Code Here

    byte[] byte_code = null;

    if(il != null)
      byte_code = il.getByteCode();

    LineNumberTable    lnt = null;
    LocalVariableTable lvt = null;
    //J5TODO: LocalVariableTypeTable support!

    /* Create LocalVariableTable and LineNumberTable attributes (for debuggers, e.g.)
     */
 
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.classfile.LineNumberTable

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.