public class ByteListLexerSource extends LexerSource
scriptLines
Constructor and Description |
---|
ByteListLexerSource(String sourceName,
int line,
org.jruby.util.ByteList in,
RubyArray list)
Create our food-source for the lexer.
|
Modifier and Type | Method and Description |
---|---|
org.jcodings.Encoding |
getEncoding() |
int |
getOffset() |
org.jruby.util.ByteList |
gets() |
void |
setEncoding(org.jcodings.Encoding encoding) |
encodeExistingScriptLines, getFilename, getLineOffset
public ByteListLexerSource(String sourceName, int line, org.jruby.util.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 LexerSource
public void setEncoding(org.jcodings.Encoding encoding)
setEncoding
in class LexerSource
public org.jruby.util.ByteList gets()
gets
in class LexerSource
public int getOffset()
getOffset
in class LexerSource
Copyright © 2001-2015 JRuby. All Rights Reserved.