<init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, boolean saveData)<init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, org.jruby.RubyInstanceConfig config)<init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, boolean saveData, org.jruby.RubyInstanceConfig config)isDebug() · also: is_debuggetDefaultEncoding() · also: get_default_encodingsetDefaultEncoding(org.jcodings.Encoding encoding) · also: set_default_encodingisEvalParse() · also: is_eval_parseIs the requested parse for an eval()?
Returns: true if for eval
isInlineSource() · also: is_inline_sourceAre we parsing source provided as part of the '-e' option to Ruby.
Returns: true if source is from -e option
getLineNumber() · also: get_line_numberparseAsBlock(org.jruby.runtime.DynamicScope existingScope)If we are performing an eval we should pass existing scope in. Calling this lets the parser know we need to do this.
| name | type | description |
|---|---|---|
| existing_scope | org.jruby.runtime.DynamicScope | is the scope that captures new vars, etc... |
isSaveData() · also: is_save_dataGet whether we are saving the DATA contents of the file.