Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/NullSourceSection.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) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 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 |
71 | 71 |
72 public final int getStartColumn() { | 72 public final int getStartColumn() { |
73 throw new UnsupportedOperationException(this.toString()); | 73 throw new UnsupportedOperationException(this.toString()); |
74 } | 74 } |
75 | 75 |
76 public int getEndLine() { | |
77 throw new UnsupportedOperationException(this.toString()); | |
78 } | |
79 | |
80 public int getEndColumn() { | |
81 throw new UnsupportedOperationException(this.toString()); | |
82 } | |
83 | |
76 public final int getCharIndex() { | 84 public final int getCharIndex() { |
77 throw new UnsupportedOperationException(this.toString()); | 85 throw new UnsupportedOperationException(this.toString()); |
78 } | 86 } |
79 | 87 |
80 public final int getCharLength() { | 88 public final int getCharLength() { |
99 | 107 |
100 @Override | 108 @Override |
101 public String toString() { | 109 public String toString() { |
102 return getShortDescription(); | 110 return getShortDescription(); |
103 } | 111 } |
104 | |
105 } | 112 } |