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.Encodingintgets()voidsetEncoding(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:
getEncodingin classLexerSource
-
setEncoding
public void setEncoding(org.jcodings.Encoding encoding) - Specified by:
setEncodingin classLexerSource
-
gets
- Specified by:
getsin classLexerSource
-
getOffset
public int getOffset()- Specified by:
getOffsetin classLexerSource
-
getRemainingAsChannel
- Specified by:
getRemainingAsChannelin classLexerSource
-
getRemainingAsIO
- Specified by:
getRemainingAsIOin classLexerSource
-