|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.antlr.SourceBuffer
public class SourceBuffer
A simple buffer that provides line/col access to chunks of source code held within itself.
Constructor Summary | |
---|---|
SourceBuffer()
|
Method Summary | |
---|---|
java.lang.String |
getSnippet(LineColumn start,
LineColumn end)
Obtains a snippet of the source code within the bounds specified |
void |
write(int c)
Writes the specified character into the buffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceBuffer()
Method Detail |
---|
public java.lang.String getSnippet(LineColumn start, LineColumn end)
start
- (inclusive line/ inclusive column)end
- (inclusive line / exclusive column)
public void write(int c)
c
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |