jruby/docs BETA
Navigation
org.jruby.parser 23
C ArgsTailHolder
C JavaSignatureParser
C NodeExits
C Parser
C ParserConfiguration
C ParserManager
I ParserProvider
C ParserProviderDefault
C ParserServiceLoader
I ParserState
C ParserSyntaxException
E ParserType
C ProductionState
I ReOptions
C RubyParser
C RubyParserBase
C RubyParserResult
C ScopedParserState
C StaticScope
C StaticScopeFactory
C TokenInfo
C YYDebug
C YyTables
ParserConfiguration — members 14
C new(runtime, line_number, inline_source, is_file_parse, save_data)
C new(runtime, line_number, inline_source, is_file_parse, config)
C new(runtime, line_number, inline_source, is_file_parse, save_data, config)
M debug?() boolean
M default_encoding() Encoding
C default_encoding=(encoding)
M encoding_service() EncodingService
M eval_parse?() boolean
M inline_source?() boolean
M k_code() KCode
M line_number() int
C parse_as_block(existing_scope)
M runtime() Ruby
M save_data?() boolean

org.jruby.parser.ParserConfiguration

class 14 members

Constructors

new

new ( Ruby runtime, int line_number, boolean inline_source, boolean is_file_parse, boolean save_data )
Java: <init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, boolean saveData)

new

new ( Ruby runtime, int line_number, boolean inline_source, boolean is_file_parse, RubyInstanceConfig config )
Java: <init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, org.jruby.RubyInstanceConfig config)

new

new ( Ruby runtime, int line_number, boolean inline_source, boolean is_file_parse, boolean save_data, RubyInstanceConfig config )
Java: <init>(org.jruby.Ruby runtime, int lineNumber, boolean inlineSource, boolean isFileParse, boolean saveData, org.jruby.RubyInstanceConfig config)

Instance Methods

debug?

boolean debug? ( )
Java: isDebug() · also: is_debug

default_encoding

Encoding default_encoding ( )
Java: getDefaultEncoding() · also: get_default_encoding

default_encoding=

default_encoding= ( Encoding encoding )
Java: setDefaultEncoding(org.jcodings.Encoding encoding) · also: set_default_encoding

encoding_service

EncodingService encoding_service ( )
Java: getEncodingService() · also: get_encoding_service

eval_parse?

boolean eval_parse? ( )
Java: isEvalParse() · also: is_eval_parse

Is the requested parse for an eval()?

Returns: true if for eval

inline_source?

boolean inline_source? ( )
Java: isInlineSource() · also: is_inline_source

Are we parsing source provided as part of the '-e' option to Ruby.

Returns: true if source is from -e option

k_code

KCode k_code ( )
Java: getKCode() · also: get_k_code

line_number

int line_number ( )
Java: getLineNumber() · also: get_line_number

parse_as_block

parse_as_block ( DynamicScope existing_scope )
Java: parseAsBlock(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.

nametypedescription
existing_scopeorg.jruby.runtime.DynamicScopeis the scope that captures new vars, etc...

runtime

Ruby runtime ( )
Java: getRuntime() · also: get_runtime

save_data?

boolean save_data? ( )
Java: isSaveData() · also: is_save_data

Get whether we are saving the DATA contents of the file.