< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/LineNumberGen.java

Print this page




  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.bcel.internal.generic;
  23 
  24 import com.sun.org.apache.bcel.internal.classfile.LineNumber;
  25 
  26 /**
  27  * This class represents a line number within a method, i.e., give an instruction
  28  * a line number corresponding to the source code line.
  29  *
  30  * @version $Id$
  31  * @see     LineNumber
  32  * @see     MethodGen
  33  */
  34 public class LineNumberGen implements InstructionTargeter, Cloneable {
  35 
  36     private InstructionHandle ih;
  37     private int src_line;
  38 
  39 
  40     /**
  41      * Create a line number.
  42      *
  43      * @param ih instruction handle to reference
  44      */
  45     public LineNumberGen(final InstructionHandle ih, final int src_line) {
  46         setInstruction(ih);
  47         setSourceLine(src_line);
  48     }
  49 
  50 




  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.bcel.internal.generic;
  23 
  24 import com.sun.org.apache.bcel.internal.classfile.LineNumber;
  25 
  26 /**
  27  * This class represents a line number within a method, i.e., give an instruction
  28  * a line number corresponding to the source code line.
  29  *

  30  * @see     LineNumber
  31  * @see     MethodGen
  32  */
  33 public class LineNumberGen implements InstructionTargeter, Cloneable {
  34 
  35     private InstructionHandle ih;
  36     private int src_line;
  37 
  38 
  39     /**
  40      * Create a line number.
  41      *
  42      * @param ih instruction handle to reference
  43      */
  44     public LineNumberGen(final InstructionHandle ih, final int src_line) {
  45         setInstruction(ih);
  46         setSourceLine(src_line);
  47     }
  48 
  49 


< prev index next >