| Package | Description |
|---|---|
| com.google.gdata.util.parser |
A framework for creating recursive descent parsers.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Action<T,U extends T>
Actions are fired when their
subject parser matches. |
class |
Alternative<T>
The
Alternative parser parses either the left or
right sub-parsers. |
class |
Chset
The
Chset (character set) parser matches the current character
in the parse buffer against an arbitrary character set. |
class |
Difference<T>
The
Difference parser matches the prefix of the parse buffer if
the left parser matches and the right parser does
not. |
class |
Intersection<T>
The
Intersection parser provides one of the more powerful
pieces of functionality in the parser framework. |
class |
Repeat<T>
The
Repeat parser returns a successful match if its
subject parser matches at least min times, but not
more than max times. |
class |
Rule<T>
The
Rule parser has a very simple reason for existence: in
order to construct recursive grammars, a parser needs to reference
itself. |
class |
Sequence<T>
The
Sequence parser matches if its left parser
matches the prefix of the parse buffer and then its right
parser matches (in sequence) the prefix of whatever remains in the parse
buffer. |
class |
Strcaselit
The
Strlit parser performs a case-insensitive string comparison
of its str against the prefix parse buffer. |
class |
Strlit
The
Strlit parser performs a case-sensitive string comparison
of its str against the prefix of the parse buffer. |
| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
Parser.action(Callback<U> callback)
Creates a
Action that will fire and call
Callback.handle whenever this matches. |
static <T> Parser<T> |
Parser.alternative(Parser<? super T> left,
Parser<? super T> right)
Creates an
Alternative parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.difference(Parser<? super T> left,
Parser<? super T> right)
Creates a
Difference parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.intersection(Parser<? super T> left,
Parser<? super T> right)
Creates an
Intersection parser from the left and
right sub-parsers. |
Parser<T> |
Parser.list(Parser<? super T> sep)
Creates a
Parser that matches a sequence of this
parsers separated by sep parsers. |
Parser<T> |
Parser.optional()
Creates a
Repeat parser that matches this either
0 or 1 times. |
Parser<T> |
Parser.plus()
Creates a
Repeat parser that matches this 1 or
more times. |
Parser<T> |
Parser.repeat(int count)
Creates a
Repeat parser that matches this
exactly count times. |
Parser<T> |
Parser.repeat(int min,
int max)
Creates a
Repeat parser that matches this at
least min times and not mroe than max times. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> left,
Parser<? super T> right)
Creates a
Sequence parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three)
Creates a
Sequence parser from parsers one,
two and three sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four)
Creates a sequence of four parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
Parser<T> |
Parser.star()
Creates a
Repeat parser that matches this 0 or
more times. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Parser<T> |
Parser.alternative(Parser<? super T> left,
Parser<? super T> right)
Creates an
Alternative parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.alternative(Parser<? super T> left,
Parser<? super T> right)
Creates an
Alternative parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.difference(Parser<? super T> left,
Parser<? super T> right)
Creates a
Difference parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.difference(Parser<? super T> left,
Parser<? super T> right)
Creates a
Difference parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.intersection(Parser<? super T> left,
Parser<? super T> right)
Creates an
Intersection parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.intersection(Parser<? super T> left,
Parser<? super T> right)
Creates an
Intersection parser from the left and
right sub-parsers. |
Parser<T> |
Parser.list(Parser<? super T> sep)
Creates a
Parser that matches a sequence of this
parsers separated by sep parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> left,
Parser<? super T> right)
Creates a
Sequence parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> left,
Parser<? super T> right)
Creates a
Sequence parser from the left and
right sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three)
Creates a
Sequence parser from parsers one,
two and three sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three)
Creates a
Sequence parser from parsers one,
two and three sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three)
Creates a
Sequence parser from parsers one,
two and three sub-parsers. |
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four)
Creates a sequence of four parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four)
Creates a sequence of four parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four)
Creates a sequence of four parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four)
Creates a sequence of four parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
static <T> Parser<T> |
Parser.sequence(Parser<? super T> one,
Parser<? super T> two,
Parser<? super T> three,
Parser<? super T> four,
Parser<? super T> five)
Creates a sequence of five parsers.
|
void |
Rule.set(Parser<T> subject)
Sets the
subject member. |
| Constructor and Description |
|---|
Action(Parser<T> subject,
Callback<U> callback)
Class constructor.
|
Alternative(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Alternative(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Difference(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Difference(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Intersection(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Intersection(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Repeat(Parser<T> subject,
int min)
Class constructor that is used for creating a
Repeat object
that will match its subject min or more times. |
Repeat(Parser<T> subject,
int min,
int max)
Class constructor that is used for creating a
Repeat object
that will match its subject at least min times
but not more than max times. |
Rule(Parser<T> subject)
Class constructor.
|
Sequence(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Sequence(Parser<? super T> left,
Parser<? super T> right)
Class constructor.
|
Copyright © 2012. All Rights Reserved.