Here you can find the source of setSourceLine(InstructionHandle ih, int lineNumber)
public static void setSourceLine(InstructionHandle ih, int lineNumber)
//package com.java2s; /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. //from w w w.j a va 2s. co m * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * PARC initial implementation * ******************************************************************/ import org.aspectj.apache.bcel.generic.InstructionHandle; import org.aspectj.apache.bcel.generic.LineNumberTag; public class Main { public static void setSourceLine(InstructionHandle ih, int lineNumber) { // OPTIMIZE LineNumberTag instances for the same line could be shared // throughout a method... ih.addTargeter(new LineNumberTag(lineNumber)); } }