Notes
1. file parses can deserialize from IR but evals never do.
| Modifier and Type | Field and Description |
|---|---|
| private final Parser | |
| public static final boolean | |
| private final ParserStats | |
| public final boolean | |
| private final Ruby |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ParseResult | addGetsLoop(Ruby runtime, ParseResult oldRoot, boolean printing, boolean processLineEndings, boolean split)
|
| private byte[] | |
| private static String | |
| public IRubyObject | |
| public Parser | |
| public ParserStats | |
| private ParseResult | loadFileFromIRPersistence(String fileName, int lineNumber, InputStream in, Encoding encoding, DynamicScope scope, ParserType type)
|
| public ParseResult | Returns: the parsed Rubythe potentially relative path file fileName, int the zero-indexed line lineNumber, String the source source, DynamicScope scope of the eval which for embedding can potentially be none scope)
|
| public ParseResult | Returns: the parsed Rubythe potentially relative path file fileName, int the zero-indexed line lineNumber, ByteList the source source, DynamicScope scope of the eval scope)
|
| public ParseResult | parseFile(String
the potentially relative path file fileName, int the zero-indexed line lineNumber, InputStream the source in, Encoding the encoding to treat the source unless magic comments intervene encoding)Parse a (non-main) file. |
| public ParseResult | Returns: the parsed Rubythe potentially relative path file fileName, int the zero-indexed line lineNumber, InputStream the source in, Encoding the encoding to treat the source unless magic comments intervene encoding, DynamicScope top-level binding in case of MAIN file (eval uses should call parseEval instead). scope, ParserType whether this is eval, is -e, or should worry about DATA type)Parse main file (-e or main script file). |
| parser | back to summary |
|---|---|
| private final Parser parser | |
| PARSER_WASM | back to summary |
|---|---|
| public static final boolean PARSER_WASM | |
| parserStats | back to summary |
|---|---|
| private final ParserStats parserStats | |
| parserTiming | back to summary |
|---|---|
| public final boolean parserTiming | |
| runtime | back to summary |
|---|---|
| private final Ruby runtime | |
| ParserManager | back to summary |
|---|---|
| public ParserManager(Ruby runtime) | |
| addGetsLoop | back to summary |
|---|---|
| public ParseResult addGetsLoop(Ruby runtime, ParseResult oldRoot, boolean printing, boolean processLineEndings, boolean split) | |
| encodeToBytes | back to summary |
|---|---|
| private byte[] encodeToBytes(String string) | |
| getLibraryExtension | back to summary |
|---|---|
| private static String getLibraryExtension() | |
| getLineStub | back to summary |
|---|---|
| public IRubyObject getLineStub(ThreadContext context, IRubyObject arg) | |
| getParser | back to summary |
|---|---|
| public Parser getParser() | |
| getParserStats | back to summary |
|---|---|
| public ParserStats getParserStats() | |
| loadFileFromIRPersistence | back to summary |
|---|---|
| private ParseResult loadFileFromIRPersistence(String fileName, int lineNumber, InputStream in, Encoding encoding, DynamicScope scope, ParserType type) | |
| parseEval | back to summary |
|---|---|
public ParseResult parseEval(String fileName, int lineNumber, String source, DynamicScope scope)
| |
| parseEval | back to summary |
|---|---|
public ParseResult parseEval(String fileName, int lineNumber, ByteList source, DynamicScope scope)
| |
| parseFile | back to summary |
|---|---|
| public ParseResult parseFile(String fileName, int lineNumber, InputStream in, Encoding encoding) Parse a (non-main) file. Other file parses should use parseFile. Evals should use parseEval.
| |
| parseMainFile | back to summary |
|---|---|
| public ParseResult parseMainFile(String fileName, int lineNumber, InputStream in, Encoding encoding, DynamicScope scope, ParserType type) Parse main file (-e or main script file). Other file parses should use parseFile. Evals should use parseEval.
| |