Top Description Fields Constructors Methods
org.jruby.lexer

public Class GetsLexerSource

extends LexerSource
Class Inheritance
Imports
org.jcodings.Encoding, org.jruby.RubyArray, .RubyEncoding, .RubyIO, .RubyString, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList, .IOInputStream, org.jruby.util.io.ChannelHelper, java.nio.channels.Channel, .Channels

Lexer source from ripper getting a line at a time via 'gets' calls.

Field Summary

Modifier and TypeField and Description
private Encoding
private IRubyObject
private int
Inherited from org.jruby.lexer.LexerSource:
scriptLines

Constructor Summary

AccessConstructor and Description
public
GetsLexerSource(String sourceName, int line, IRubyObject io, RubyArray<T extends IRubyObject> scriptLines, Encoding encoding)

public
GetsLexerSource(String sourceName, int line, IRubyObject io, RubyArray<T extends IRubyObject> scriptLines)

Method Summary

Modifier and TypeMethod and Description
public static final Encoding
public Encoding
public int
public Channel
public IRubyObject
public ByteList
gets()

Implements abstract org.jruby.lexer.LexerSource.gets.

public void
Inherited from org.jruby.lexer.LexerSource:
encodeExistingScriptLinesgetFilenamegetLineOffset

Field Detail

encodingback to summary
private Encoding encoding
ioback to summary
private IRubyObject io
offsetback to summary
private int offset

Constructor Detail

GetsLexerSourceback to summary
public GetsLexerSource(String sourceName, int line, IRubyObject io, RubyArray<T extends IRubyObject> scriptLines, Encoding encoding)
GetsLexerSourceback to summary
public GetsLexerSource(String sourceName, int line, IRubyObject io, RubyArray<T extends IRubyObject> scriptLines)

Method Detail

frobnicateEncodingback to summary
public static final Encoding frobnicateEncoding(IRubyObject io)
getEncodingback to summary
public Encoding getEncoding()

Implements abstract org.jruby.lexer.LexerSource.getEncoding.

Annotations
@Override
getOffsetback to summary
public int getOffset()

Implements abstract org.jruby.lexer.LexerSource.getOffset.

Annotations
@Override
getRemainingAsChannelback to summary
public Channel getRemainingAsChannel()

Implements abstract org.jruby.lexer.LexerSource.getRemainingAsChannel.

Annotations
@Override
getRemainingAsIOback to summary
public IRubyObject getRemainingAsIO()

Implements abstract org.jruby.lexer.LexerSource.getRemainingAsIO.

Annotations
@Override
getsback to summary
public ByteList gets()

Implements abstract org.jruby.lexer.LexerSource.gets.

Annotations
@Override
setEncodingback to summary
public void setEncoding(Encoding encoding)

Implements abstract org.jruby.lexer.LexerSource.setEncoding.

Annotations
@Override