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 interror(RipperLexer lexer, int len, ByteList str, ByteList eos) intgetFlags()intparseString(RipperLexer lexer, LexerSource src) protected intrestore(RipperLexer lexer)
-
Field Details
-
nd_lit
-
flags
private final int flags -
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:
parseStringin classStrTerm- Throws:
IOException
-