public class ByteListLexerSource extends LexerSource
| Constructor and Description |
|---|
ByteListLexerSource(String sourceName,
int line,
org.jruby.util.ByteList in)
Create our food-source for the lexer.
|
| Modifier and Type | Method and Description |
|---|---|
org.jcodings.Encoding |
getEncoding() |
org.jruby.util.ByteList |
gets() |
void |
setEncoding(org.jcodings.Encoding encoding) |
getFilename, getLineOffsetpublic ByteListLexerSource(String sourceName, int line, org.jruby.util.ByteList in)
sourceName - is the file we are readingline - starting line number for source (used by eval)in - the ByteList backing the source we want to lexpublic org.jcodings.Encoding getEncoding()
getEncoding in class LexerSourcepublic void setEncoding(org.jcodings.Encoding encoding)
setEncoding in class LexerSourcepublic org.jruby.util.ByteList gets()
gets in class LexerSourceCopyright © 2001–2024 JRuby. All rights reserved.