| java.lang.Object org.codehaus.groovy.antlr.SourceBuffer
SourceBuffer | public class SourceBuffer (Code) | | A simple buffer that provides line/col access to chunks of source code
held within itself.
author: Jeremy Rayner version: $Revision: 2250 $ |
SourceBuffer | public SourceBuffer()(Code) | | |
getSnippet | public String getSnippet(LineColumn start, LineColumn end)(Code) | | Obtains a snippet of the source code within the bounds specified
Parameters: start - (inclusive line/ inclusive column) Parameters: end - (inclusive line / exclusive column) specified snippet of source code as a String, or null if no source available |
write | public void write(int c)(Code) | | Writes the specified character into the buffer
Parameters: c - |
|
|