Package org.jruby.prism.parser
Class ParserPrismBase
java.lang.Object
org.jruby.parser.Parser
org.jruby.prism.parser.ParserPrismBase
- Direct Known Subclasses:
ParserPrismNative,ParserPrismWasm
public abstract class ParserPrismBase
extends org.jruby.parser.Parser
-
Field Summary
FieldsFields inherited from class org.jruby.parser.Parser
runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jruby.ParseResultaddGetsLoop(org.jruby.Ruby runtime, org.jruby.ParseResult result, boolean printing, boolean processLineEndings, boolean split) org.jruby.runtime.builtin.IRubyObjectgetLineStub(org.jruby.runtime.ThreadContext context, org.jruby.ParseResult arg, int lineCount) protected abstract byte[]parse(byte[] source, int sourceLength, byte[] metadata) protected org.jruby.ParseResultparse(String fileName, int lineNumber, InputStream in, org.jcodings.Encoding encoding, org.jruby.runtime.DynamicScope existingScope, org.jruby.parser.ParserType type) org.jruby.ParseResultparse(String fileName, int lineNumber, org.jruby.util.ByteList content, org.jruby.runtime.DynamicScope existingScope, org.jruby.parser.ParserType type) Methods inherited from class org.jruby.parser.Parser
getLines, parse, parse, parse, parse
-
Field Details
-
parserTiming
protected boolean parserTiming
-
-
Constructor Details
-
ParserPrismBase
public ParserPrismBase(org.jruby.Ruby runtime)
-
-
Method Details
-
parse
protected abstract byte[] parse(byte[] source, int sourceLength, byte[] metadata) -
parse
public org.jruby.ParseResult parse(String fileName, int lineNumber, org.jruby.util.ByteList content, org.jruby.runtime.DynamicScope existingScope, org.jruby.parser.ParserType type) - Overrides:
parsein classorg.jruby.parser.Parser
-
parse
protected org.jruby.ParseResult parse(String fileName, int lineNumber, InputStream in, org.jcodings.Encoding encoding, org.jruby.runtime.DynamicScope existingScope, org.jruby.parser.ParserType type) - Overrides:
parsein classorg.jruby.parser.Parser
-
getLineStub
public org.jruby.runtime.builtin.IRubyObject getLineStub(org.jruby.runtime.ThreadContext context, org.jruby.ParseResult arg, int lineCount) - Overrides:
getLineStubin classorg.jruby.parser.Parser
-
addGetsLoop
public org.jruby.ParseResult addGetsLoop(org.jruby.Ruby runtime, org.jruby.ParseResult result, boolean printing, boolean processLineEndings, boolean split) - Overrides:
addGetsLoopin classorg.jruby.parser.Parser
-