public class ByteListLexerSource extends LexerSource
scriptLines| Constructor and Description |
|---|
ByteListLexerSource(java.lang.String sourceName,
int line,
ByteList in,
RubyArray list)
Create our food-source for the lexer.
|
| Modifier and Type | Method and Description |
|---|---|
org.jcodings.Encoding |
getEncoding() |
int |
getOffset() |
java.nio.channels.Channel |
getRemainingAsChannel() |
IRubyObject |
getRemainingAsIO() |
ByteList |
gets() |
void |
setEncoding(org.jcodings.Encoding encoding) |
encodeExistingScriptLines, getFilename, getLineOffsetpublic ByteListLexerSource(java.lang.String sourceName,
int line,
ByteList in,
RubyArray list)
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 ByteList gets()
gets in class LexerSourcepublic int getOffset()
getOffset in class LexerSourcepublic java.nio.channels.Channel getRemainingAsChannel()
getRemainingAsChannel in class LexerSourcepublic IRubyObject getRemainingAsIO()
getRemainingAsIO in class LexerSourceCopyright © 2001-2021 JRuby. All Rights Reserved.