org.jruby
Class RubyStringScanner

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyStringScanner
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class RubyStringScanner
extends RubyObject

Author:
kscott

Nested Class Summary
 
Nested classes inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
protected RubyStringScanner(Ruby runtime, RubyClass type)
           
 
Method Summary
 RubyBoolean bol_p()
           
 IRubyObject check_until(RubyRegexp rx)
           
 IRubyObject check(RubyRegexp rx)
           
 IRubyObject concat(IRubyObject obj)
           
static RubyClass createScannerClass(Ruby runtime)
           
 RubyBoolean eos_p()
           
 IRubyObject exist_p(RubyRegexp rx)
           
 IRubyObject getch()
           
 IRubyObject group(RubyFixnum num)
           
 IRubyObject initialize(IRubyObject[] args, Block unusedBlock)
           
 IRubyObject inspect()
          rb_obj_inspect
 IRubyObject match_p(RubyRegexp rx)
           
 RubyBoolean matched_p()
           
 IRubyObject matched_size()
           
 IRubyObject matched()
           
 IRubyObject peek(RubyFixnum length)
           
 RubyFixnum pos()
           
 IRubyObject post_match()
           
 IRubyObject pre_match()
           
 IRubyObject reset()
           
 RubyBoolean rest_p()
           
 RubyFixnum rest_size()
           
 RubyString rest()
           
 IRubyObject scan_full(RubyRegexp rx, RubyBoolean adv_ptr, RubyBoolean ret_str)
           
 IRubyObject scan_until(RubyRegexp rx)
           
 IRubyObject scan(RubyRegexp rx)
           
 IRubyObject search_full(RubyRegexp rx, RubyBoolean adv_ptr, RubyBoolean ret_str)
           
 RubyFixnum set_pos(RubyFixnum pos)
           
 RubyString set_string(RubyString str)
           
 IRubyObject skip_until(RubyRegexp rx)
           
 IRubyObject skip(RubyRegexp rx)
           
 RubyString string()
           
 IRubyObject terminate()
           
 IRubyObject unscan()
           
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyStringScanner

protected RubyStringScanner(Ruby runtime,
                            RubyClass type)
Method Detail

createScannerClass

public static RubyClass createScannerClass(Ruby runtime)

initialize

public IRubyObject initialize(IRubyObject[] args,
                              Block unusedBlock)
Overrides:
initialize in class RubyObject

concat

public IRubyObject concat(IRubyObject obj)

group

public IRubyObject group(RubyFixnum num)

bol_p

public RubyBoolean bol_p()

check

public IRubyObject check(RubyRegexp rx)

check_until

public IRubyObject check_until(RubyRegexp rx)

terminate

public IRubyObject terminate()

eos_p

public RubyBoolean eos_p()

exist_p

public IRubyObject exist_p(RubyRegexp rx)

getch

public IRubyObject getch()

inspect

public IRubyObject inspect()
Description copied from class: RubyObject
rb_obj_inspect

Specified by:
inspect in interface IRubyObject
Overrides:
inspect in class RubyObject

match_p

public IRubyObject match_p(RubyRegexp rx)

matched

public IRubyObject matched()

matched_p

public RubyBoolean matched_p()

matched_size

public IRubyObject matched_size()

peek

public IRubyObject peek(RubyFixnum length)

pos

public RubyFixnum pos()

set_pos

public RubyFixnum set_pos(RubyFixnum pos)

post_match

public IRubyObject post_match()

pre_match

public IRubyObject pre_match()

reset

public IRubyObject reset()

rest

public RubyString rest()

rest_p

public RubyBoolean rest_p()

rest_size

public RubyFixnum rest_size()

scan

public IRubyObject scan(RubyRegexp rx)

scan_full

public IRubyObject scan_full(RubyRegexp rx,
                             RubyBoolean adv_ptr,
                             RubyBoolean ret_str)

scan_until

public IRubyObject scan_until(RubyRegexp rx)

search_full

public IRubyObject search_full(RubyRegexp rx,
                               RubyBoolean adv_ptr,
                               RubyBoolean ret_str)

skip

public IRubyObject skip(RubyRegexp rx)

skip_until

public IRubyObject skip_until(RubyRegexp rx)

string

public RubyString string()

set_string

public RubyString set_string(RubyString str)

unscan

public IRubyObject unscan()


Copyright © 2002-2007 JRuby Team. All Rights Reserved.