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

* Copyright (c) 2002-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @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; 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; } }