Top Description Fields Constructors Methods
org.jruby.lexer.yacc

public Class HeredocTerm

extends StrTerm
Class Inheritance
Imports
org.jruby.ast.Node, org.jruby.parser.RubyParser, org.jruby.util.ByteList

A lexing unit for scanning a heredoc element. Example:
foo(<<EOS, bar)
This is heredoc country!
EOF

Where:
EOS = marker
',bar)\n' = lastLine

Field Summary

Modifier and TypeField and Description
private final int
protected final ByteList
protected final int
private final ByteList
protected final int

Constructor Summary

AccessConstructor and Description
public
HeredocTerm(ByteList marker, int func, int nth, int line, ByteList lastLine)

Method Summary

Modifier and TypeMethod and Description
protected int
error(RubyLexer lexer, int len, ByteList str, ByteList eos)

private int
flush(RubyLexer lexer, boolean bol, ByteList tok)

public int
public int
protected int

Field Detail

flagsback to summary
private final int flags
lastLineback to summary
protected final ByteList lastLine
lineback to summary
protected final int line
nd_litback to summary
private final ByteList nd_lit
nthback to summary
protected final int nth

Constructor Detail

HeredocTermback to summary
public HeredocTerm(ByteList marker, int func, int nth, int line, ByteList lastLine)

Method Detail

errorback to summary
protected int error(RubyLexer lexer, int len, ByteList str, ByteList eos)
flushback to summary
private int flush(RubyLexer lexer, boolean bol, ByteList tok)
getFlagsback to summary
public int getFlags()

Implements abstract org.jruby.lexer.yacc.StrTerm.getFlags.

parseStringback to summary
public int parseString(RubyLexer lexer) throws IOException

Implements abstract org.jruby.lexer.yacc.StrTerm.parseString.

Annotations
@Override
restoreback to summary
protected int restore(RubyLexer lexer)