Package org.jruby.ext.ripper
Class HeredocTerm
java.lang.Object
org.jruby.ext.ripper.StrTerm
org.jruby.ext.ripper.HeredocTerm
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeredocTerm
(ByteList marker, int func, int nth, int line, ByteList lastLine) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
int
getFlags()
int
parseString
(RubyLexer lexer, LexerSource src) protected int
-
Field Details
-
nth
protected final int nth -
line
protected final int line -
lastLine
-
-
Constructor Details
-
HeredocTerm
-
-
Method Details
-
getFlags
public int getFlags() -
error
-
restore
-
parseString
- Specified by:
parseString
in classStrTerm
- Throws:
IOException
-