|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pobs.utility.POBS
Contains a number of convenient factories for commonly used parsers.
Field Summary | |
static PParser |
ANY
Matches any single character. |
static PParser |
SIGNED_FLOAT
Matches a signed floating decimal of any length. |
static PParser |
SIGNED_INT
Matches a signed decimal integer of any length. |
static PParser |
UNSIGNED_FLOAT
Matches an unsigned floating decimal of any length. |
static PParser |
UNSIGNED_INT
Matches an unsigned decimal integer of any length. |
Method Summary | |
static PParser |
alpha()
Matches all ASCII alphabetical characters, both lower- and uppercase. |
static PParser |
alphaAlphaNums()
Creates a parser who parses a sequence starting with a letter followed by zero or more alpha-numerical characters. |
static PParser |
alphaNum()
Matches all ASCII alphabetical characters and digits, both lower- and uppercase. |
static PParser |
alphaNums()
Creates a parser who parses one or more alpha-numerical characters with skipping disabled. |
static PParser |
binaryDigit()
Matches all valid ASCII characters for the binary system, both lower- and uppercase. |
static PParser |
digit()
Matches a single ASCII digits 0 to 9. |
static PParser |
digits()
Matches a series ASCII digits 0 to 9. |
static PParser |
floatNumber()
Creates a new instance of a parser for floating point numbers with optional exponent. |
static PParser |
hexDigit()
Matches all valid ASCII characters for the hexadecimal system, both lower- and uppercase. |
static PParser |
lowerCase()
Matches all ASCII lowercase alphabetical characthers. |
static PParser |
octalDigit()
Matches all valid ASCII characters for the octal system, both lower- and uppercase. |
static PParser |
sign()
Matches all the ASCII characters for the positive and negative signs. |
static PParser |
signedInt()
Creates a new instance of a parser for optionally signed integer numbers. |
static PParser |
unsignedInt()
Creates a new instance of a parser for an unsigned integer. |
static PParser |
upperCase()
Matches all ASCII uppercase alphabetical characters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final PParser ANY
public static final PParser UNSIGNED_INT
public static final PParser SIGNED_INT
public static final PParser UNSIGNED_FLOAT
public static final PParser SIGNED_FLOAT
Method Detail |
public static PParser alphaNum()
public static PParser alphaNums()
new PMultiple(POBS.alphaNum()).addControl(new PDisableSkip()
public static PParser alpha()
public static PParser alphaAlphaNums()
new PSequence(POBS.alpha(), new PKleene(POBS.alphaNum())).addControl(new PDisableSkip())
public static PParser lowerCase()
public static PParser upperCase()
public static PParser digit()
public static PParser digits()
public static PParser binaryDigit()
public static PParser octalDigit()
public static PParser hexDigit()
public static PParser sign()
public static PParser unsignedInt()
public static PParser signedInt()
BigInteger
without throwing a NumberFormatException
.
public static PParser floatNumber()
NumberFormatException
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |