Package org.jruby.lexer
Class ByteListLexerSource
java.lang.Object
org.jruby.lexer.LexerSource
org.jruby.lexer.ByteListLexerSource
Lexer source for ripper when we have all bytes available to us.
-
Field Summary
Fields inherited from class org.jruby.lexer.LexerSource
scriptLines
-
Constructor Summary
ConstructorsConstructorDescriptionByteListLexerSource
(String sourceName, int line, ByteList in, RubyArray list) Create our food-source for the lexer. -
Method Summary
Modifier and TypeMethodDescriptionorg.jcodings.Encoding
int
gets()
void
setEncoding
(org.jcodings.Encoding encoding) Methods inherited from class org.jruby.lexer.LexerSource
encodeExistingScriptLines, getFilename, getLineOffset
-
Constructor Details
-
ByteListLexerSource
Create our food-source for the lexer.- Parameters:
sourceName
- is the file we are readingline
- starting line number for source (used by eval)in
- the ByteList backing the source we want to lex
-
-
Method Details
-
getEncoding
public org.jcodings.Encoding getEncoding()- Specified by:
getEncoding
in classLexerSource
-
setEncoding
public void setEncoding(org.jcodings.Encoding encoding) - Specified by:
setEncoding
in classLexerSource
-
gets
- Specified by:
gets
in classLexerSource
-
getOffset
public int getOffset()- Specified by:
getOffset
in classLexerSource
-
getRemainingAsChannel
- Specified by:
getRemainingAsChannel
in classLexerSource
-
getRemainingAsIO
- Specified by:
getRemainingAsIO
in classLexerSource
-