/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
/** * Returns the line number of the source line containing the expression. * * @return -1 if this information is not available. */ public int getLineNumber() { return thisMethod.getLineNumber(currentPos); }
private static String buildSuffix(Member m, Class<?>[] argTypes) { Class<?> klass = m.getDeclaringClass(); ClassPool pool = ClassPool.getDefault(); int lineNum = 1; CtConstructor constructor; CtMethod method; try { CtClass cc = pool.get(klass.getName()); CtClass[] ctClasses = new CtClass[argTypes.length]; for (int i = 0; i < ctClasses.length; i++) { ctClasses[i] = pool.get(argTypes[i].getName()); } if (m instanceof Constructor) { constructor = cc.getDeclaredConstructor(ctClasses); lineNum = constructor.getMethodInfo().getLineNumber(0); } else { method = cc.getDeclaredMethod(m.getName(), ctClasses); lineNum = method.getMethodInfo().getLineNumber(0) - 1; } } catch (NotFoundException e) {} if (m instanceof Constructor) return "\n\tat " + klass.getName() + "." + klass.getSimpleName() + "(" + klass.getSimpleName() + ".java:" + lineNum + ")"; else return "\n\tat " + klass.getName() + "." + m.getName() + "(" + klass.getSimpleName() + ".java:" + lineNum + ")"; }
List<CtBehavior> withLineNumber = Arrays.asList(behaviors).stream() .filter(input -> input.getMethodInfo().getLineNumber(0) > 0) .sorted((o1, o2) -> Integer.valueOf(o1.getMethodInfo().getLineNumber(0)).compareTo(o2.getMethodInfo().getLineNumber(0))) .collect(Collectors.toList()); if (!withLineNumber.isEmpty()) { CtBehavior method = withLineNumber.get(0); int lineNumber = method.getMethodInfo().getLineNumber(0);
constructor_line_numbers.put(new Integer(ctm.getMethodInfo().getLineNumber(0)), c); if(_e.getLineNumber()>=ctm.getMethodInfo().getLineNumber(0)) { current_distance = _e.getLineNumber() - ctm.getMethodInfo().getLineNumber(0); if(current_distance < shortest_distance) { shortest_distance = current_distance;
CtClass ctClass = pool.get(invoker.getClosure().getClass().getName()); CtMethod ctMethod = ctClass.getDeclaredMethod("doCall"); int lineNumber = ctMethod.getMethodInfo().getLineNumber(0);
lineNumber = methodInfo.getLineNumber(index); int op = ci.byteAt(index);
private Optional<Integer> getLineNumber(Optional<? extends CtBehavior> methodOptional) { Optional<Integer> lineNumberOptional = Optional.absent(); if (methodOptional.isPresent()) { CtBehavior ctMethod = methodOptional.get(); int lineNumber = ctMethod.getMethodInfo().getLineNumber(0); if (lineNumber >= 0) { lineNumberOptional = Optional.of(lineNumber); } } return lineNumberOptional; }
private Optional<Integer> getLineNumber(Optional<? extends CtBehavior> methodOptional) { Optional<Integer> lineNumberOptional = Optional.absent(); if (methodOptional.isPresent()) { CtBehavior ctMethod = methodOptional.get(); int lineNumber = ctMethod.getMethodInfo().getLineNumber(0); if (lineNumber >= 0) { lineNumberOptional = Optional.of(lineNumber); } } return lineNumberOptional; }
System.out.printf("Line %4d. Address %7d: %s%s%n", minfo.getLineNumber(address), address, Mnemonic.OPCODE[op], params);
if(m.getQualifiedName().equals(ClassVisitor.removeParameterQualification(ctm.getLongName())) && _e.getLineNumber()>=ctm.getMethodInfo().getLineNumber(0)) { current_distance = _e.getLineNumber() - ctm.getMethodInfo().getLineNumber(0); if(current_distance < shortest_distance) { shortest_distance = current_distance;
int lineNumber = methodInfo.getLineNumber( 0 );
Integer prevLine = methodInfo.getLineNumber(0); lineNumbers.add(prevLine); for (int i = 0; i < byteCodeLength; i++) { int line = methodInfo.getLineNumber(i); if (line > prevLine) { prevLine = Integer.valueOf(line);