comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java @ 19695:33bdafbf285d

Truffle: SourceSection can now produce the line/column coordinates of its final character
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 03 Mar 2015 17:11:46 -0800
parents 74e142bd2b12
children
comparison
equal deleted inserted replaced
19694:787b5aa53401 19695:33bdafbf285d
1 /* 1 /*
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
64 * @return the starting column number 64 * @return the starting column number
65 */ 65 */
66 int getStartColumn(); 66 int getStartColumn();
67 67
68 /** 68 /**
69 * Returns 1-based line number of the last character in this section (inclusive).
70 *
71 * @return the starting line number
72 */
73 int getEndLine();
74
75 /**
76 * Returns the 1-based column number of the last character in this section (inclusive).
77 *
78 * @return the starting column number
79 */
80 int getEndColumn();
81
82 /**
69 * Returns the 0-based index of the first character in this section. 83 * Returns the 0-based index of the first character in this section.
70 * 84 *
71 * @return the starting character index 85 * @return the starting character index
72 */ 86 */
73 int getCharIndex(); 87 int getCharIndex();