Package org.jruby.parser
Class Parser
java.lang.Object
org.jruby.parser.Parser
Serves as a simple facade for all the parsing magic.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGetsLoop
(Ruby runtime, ParseResult oldRoot, boolean printing, boolean processLineEndings, boolean split) protected RubyArray
<?> getLineStub
(ThreadContext context, ParseResult result, int lineCount) parse
(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated.protected ParseResult
parse
(String fileName, int lineNumber, InputStream in, org.jcodings.Encoding encoding, DynamicScope existingScope, ParserType type) parse
(String fileName, int lineNumber, ByteList content, DynamicScope existingScope, ParserType type) parse
(String file, InputStream content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated.parse
(String file, LexerSource lexerSource, DynamicScope blockScope, ParserConfiguration configuration) Deprecated.parse
(String file, ByteList content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated.
-
Field Details
-
runtime
-
-
Constructor Details
-
Parser
-
-
Method Details
-
parse
public ParseResult parse(String fileName, int lineNumber, ByteList content, DynamicScope existingScope, ParserType type) -
parse
protected ParseResult parse(String fileName, int lineNumber, InputStream in, org.jcodings.Encoding encoding, DynamicScope existingScope, ParserType type) -
parse
@Deprecated public Node parse(String file, ByteList content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated. -
parse
@Deprecated public Node parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated. -
parse
@Deprecated public Node parse(String file, InputStream content, DynamicScope blockScope, ParserConfiguration configuration) Deprecated. -
parse
@Deprecated public Node parse(String file, LexerSource lexerSource, DynamicScope blockScope, ParserConfiguration configuration) Deprecated. -
getLines
-
getLineStub
-
addGetsLoop
public ParseResult addGetsLoop(Ruby runtime, ParseResult oldRoot, boolean printing, boolean processLineEndings, boolean split)
-