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

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     

    Fields inherited from class org.jruby.parser.Parser

    runtime
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParserPrismBase(org.jruby.Ruby runtime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jruby.ParseResult
    addGetsLoop(org.jruby.Ruby runtime, org.jruby.ParseResult result, boolean printing, boolean processLineEndings, boolean split)
     
    org.jruby.runtime.builtin.IRubyObject
    getLineStub(org.jruby.runtime.ThreadContext context, org.jruby.ParseResult arg, int lineCount)
     
    protected abstract byte[]
    parse(byte[] source, int sourceLength, byte[] metadata)
     
    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)
     
    org.jruby.ParseResult
    parse(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      parse in class org.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:
      parse in class org.jruby.parser.Parser
    • getLineStub

      public org.jruby.runtime.builtin.IRubyObject getLineStub(org.jruby.runtime.ThreadContext context, org.jruby.ParseResult arg, int lineCount)
      Overrides:
      getLineStub in class org.jruby.parser.Parser
    • addGetsLoop

      public org.jruby.ParseResult addGetsLoop(org.jruby.Ruby runtime, org.jruby.ParseResult result, boolean printing, boolean processLineEndings, boolean split)
      Overrides:
      addGetsLoop in class org.jruby.parser.Parser