Package org.jruby.lexer
Class StrftimeLexer
java.lang.Object
org.jruby.lexer.StrftimeLexer
-
Field Summary
FieldsModifier and TypeFieldDescriptioncharprivate ByteListprivate intprivate intprivate RubyDateFormatter.Token(package private) static RubyDateFormatter.Token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanconsume(char c) private charcurrent()directive(char c) private static booleanisDecimalDigit(int character) private RubyDateFormatter.Tokenprivate RubyDateFormatter.Tokenprivate booleanprivate ByteListprivate RubyDateFormatter.Tokenprivate RubyDateFormatter.Tokenprivate RubyDateFormatter.Tokenprivate Integerprivate charpeek()voidyylex()
-
Field Details
-
SIX
-
EOF
public char EOF -
input
-
length
private int length -
n
private int n -
next
-
-
Constructor Details
-
StrftimeLexer
public StrftimeLexer()
-
-
Method Details
-
reset
-
directive
-
formatter
-
current
private char current() -
peek
private char peek() -
consume
private boolean consume(char c) -
yylex
-
parseLiteralPercent
-
parseSimpleDirective
-
parseComplexDirective
-
parseFlags
-
parseFlag
private boolean parseFlag() -
parseWidth
-
parseUnknown
-
parseConversion
-
isDecimalDigit
private static boolean isDecimalDigit(int character)
-