Top Fields Constructors Methods
org.jruby.util

public Class RubyTimeParser

extends Object
Class Inheritance
Imports
org.jruby.RubyFixnum, .RubyInteger, .RubyRational, .RubyString, .RubyTime, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private int
private byte[]
private int
private int
private int
public static final long
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
private int
expectTwoDigits(ThreadContext context, String label, int max)

private boolean
isDigit(int offset)

private boolean
private boolean
private void
needColon(ThreadContext context, String label, int start)

private void
noFraction(ThreadContext context, String label, int start)

public IRubyObject
parse(ThreadContext context, RubyTime self, RubyString str, IRubyObject zone, IRubyObject precision)

private IRubyObject
parseInt(ThreadContext context, boolean parseSign)

private byte
peek()

private byte
peek(int offset)

private IRubyObject
substr(ThreadContext context, int from)

private int
twoDigits(ThreadContext context, String label)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

begback to summary
private int beg
bytesback to summary
private byte[] bytes
endback to summary
private int end
ndigitsback to summary
private int ndigits
ptrback to summary
private int ptr
SIZE_MAXback to summary
public static final long SIZE_MAX
TIME_SCALE_NUMDIGITSback to summary
public static final int TIME_SCALE_NUMDIGITS

Constructor Detail

RubyTimeParserback to summary
public RubyTimeParser()

Method Detail

advanceback to summary
private void advance()
eatSpaceback to summary
private void eatSpace()
expectTwoDigitsback to summary
private int expectTwoDigits(ThreadContext context, String label, int max)
isDigitback to summary
private boolean isDigit(int offset)
isEOSback to summary
private boolean isEOS()
isSpaceback to summary
private boolean isSpace()
needColonback to summary
private void needColon(ThreadContext context, String label, int start)
noFractionback to summary
private void noFraction(ThreadContext context, String label, int start)
parseback to summary
public IRubyObject parse(ThreadContext context, RubyTime self, RubyString str, IRubyObject zone, IRubyObject precision)
parseIntback to summary
private IRubyObject parseInt(ThreadContext context, boolean parseSign)
peekback to summary
private byte peek()
peekback to summary
private byte peek(int offset)
substrback to summary
private IRubyObject substr(ThreadContext context, int from)
twoDigitsback to summary
private int twoDigits(ThreadContext context, String label)