package nl.tudelft.simulation.dsol.interpreter.classfile; import java.io.DataInput; import java.io.IOException; /** * A LineNumber. *

* (c) copyright 2002-2014 Delft University of Technology.
* BSD-style license. See DSOL License.
* @author Peter Jacobs * @author Alexander Verbraeck */ public final class LineNumber { /** the startByte attribute. */ private int startByte = -1; /** the lineNumber attribute. */ private int lineNumber = -1; /** * constructs a new LineNumber. * @param dataInput dataInput to use * @throws IOException on failure */ public LineNumber(final DataInput dataInput) throws IOException { super(); this.startByte = dataInput.readUnsignedShort(); this.lineNumber = dataInput.readUnsignedShort(); } /** * @return Returns the lineNumber. */ public int getLineNumber() { return this.lineNumber; } /** * @return Returns the startByte. */ public int getStartByte() { return this.startByte; } }