Top Fields Constructors Methods
org.jruby.ext.ripper

public Class RubyRipper

extends RubyObject
Class Inheritance
Imports
java.io.IOException, org.jruby.Ruby, .RubyClass, .RubyHash, .RubyNumeric, .RubyObject, .RubyString, org.jruby.anno.JRubyMethod, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.lexer.ByteListLexerSource, .GetsLexerSource, .LexerSource, .LexingCommon, org.jruby.runtime.ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private IRubyObject
private static String[]
private static int[]
private RipperParserBase
private boolean
private static int
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
private
RubyRipper(Ruby runtime, RubyClass klazz)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
private static RubyHash
private static RubyHash
public static IRubyObject
public IRubyObject
private static void
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
private IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public static RubyClass
public static IRubyObject
lex_state_name(ThreadContext context, IRubyObject self, IRubyObject lexStateParam)

private int
public IRubyObject
public IRubyObject
private LexerSource
source(ThreadContext context, IRubyObject src, String filename, int lineno)

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

filenameback to summary
private IRubyObject filename
lexStateNamesback to summary
private static String[] lexStateNames
lexStateValuesback to summary
private static int[] lexStateValues
parserback to summary
private RipperParserBase parser
parseStartedback to summary
private boolean parseStarted
singleStateLexStateNamesback to summary
private static int singleStateLexStateNames

Constructor Detail

RubyRipperback to summary
private RubyRipper(Ruby runtime, RubyClass klazz)

Method Detail

columnback to summary
public IRubyObject column(ThreadContext context)
Annotations
@JRubyMethod
createParserEventTableback to summary
private static RubyHash createParserEventTable(ThreadContext context)
createScannerEventTableback to summary
private static RubyHash createScannerEventTable(ThreadContext context)
dedent_stringback to summary
public static IRubyObject dedent_string(ThreadContext context, IRubyObject self, IRubyObject _input, IRubyObject _width)
Annotations
@JRubyMethod
meta:true
dedent_stringback to summary
public IRubyObject dedent_string(ThreadContext context, IRubyObject _input, IRubyObject _width)
Annotations
@JRubyMethod
defineLexStateConstantsback to summary
private static void defineLexStateConstants(ThreadContext context, RubyClass ripper)
encodingback to summary
public IRubyObject encoding(ThreadContext context)
Annotations
@JRubyMethod
end_seen_pback to summary
public IRubyObject end_seen_p(ThreadContext context)
Annotations
@JRubyMethod
name:end_seen?
error_pback to summary
public IRubyObject error_p(ThreadContext context)
Annotations
@JRubyMethod
name:error?
filenameback to summary
public IRubyObject filename(ThreadContext context)
Annotations
@JRubyMethod
filenameAsStringback to summary
private IRubyObject filenameAsString(ThreadContext context, IRubyObject filename)
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject src)
Annotations
@JRubyMethod
visibility:PRIVATE
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject src, IRubyObject file)
Annotations
@JRubyMethod
visibility:PRIVATE
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject src, IRubyObject file, IRubyObject line)
Annotations
@JRubyMethod
visibility:PRIVATE
initRipperback to summary
public static RubyClass initRipper(ThreadContext context)
lex_state_nameback to summary
public static IRubyObject lex_state_name(ThreadContext context, IRubyObject self, IRubyObject lexStateParam)
Annotations
@JRubyMethod
meta:true
lineAsIntback to summary
private int lineAsInt(ThreadContext context, IRubyObject line)
linenoback to summary
public IRubyObject lineno(ThreadContext context)
Annotations
@JRubyMethod
parseback to summary
public IRubyObject parse(ThreadContext context)
Annotations
@JRubyMethod
sourceback to summary
private LexerSource source(ThreadContext context, IRubyObject src, String filename, int lineno)
stateback to summary
public IRubyObject state(ThreadContext context)
Annotations
@JRubyMethod
tokenback to summary
public IRubyObject token(ThreadContext context)
Annotations
@JRubyMethod
yydebugback to summary
public IRubyObject yydebug(ThreadContext context)
Annotations
@JRubyMethod
yydebug_setback to summary
public IRubyObject yydebug_set(ThreadContext context, IRubyObject arg)
Annotations
@JRubyMethod
name:yydebug=