public class SourceBuffer extends Object
A simple buffer that provides line/col access to chunks of source code held within itself.
| Constructor and description |
|---|
SourceBuffer
() |
| Type Params | Return Type | Name and description |
|---|---|---|
public String |
getSnippet(LineColumn start, LineColumn end)Obtains a snippet of the source code within the bounds specified. | |
public void |
write(int c)Writes the specified character into the buffer. |
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Obtains a snippet of the source code within the bounds specified.
start - (inclusive line / inclusive column)end - (inclusive line / exclusive column)Writes the specified character into the buffer.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/antlr/SourceBuffer.html