|
Generic Interpreter 0.9 Private API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gi.Lexicon.Expression | +--gi.Lexicon.Alphabet | +--gi.Lexicon.PosixClass
This class implements an
denoting the set of characters in a POSIX class.Expression
Field Summary | |
private int |
posixclass
The POSIX class whose set is denoted. |
Fields inherited from class gi.Lexicon.Expression |
accept, initial |
Constructor Summary | |
private |
Lexicon.PosixClass(int posixclass)
Constructs an Expression denoting the set of characters in a POSIX class. |
Method Summary | |
static Lexicon.Expression |
alnum()
Creates an Expression denoting the set of alphanumeric characters. |
static Lexicon.Expression |
alpha()
Creates an Expression denoting the set of alphabetic characters. |
static Lexicon.Expression |
blank()
Creates an Expression denoting the set of blank characters. |
static Lexicon.Expression |
cntrl()
Creates an Expression denoting the set of control characters. |
(package private) boolean |
contains(char c)
Indicates whether a character is in the set denoted by this Expression . |
(package private) Lexicon.Expression |
copy()
Creates a copy of this Expression . |
static Lexicon.Expression |
digit()
Creates an Expression denoting the set of decimal digit characters. |
static Lexicon.Expression |
graph()
Creates an Expression denoting the set of graphical characters. |
static Lexicon.Expression |
lower()
Creates an Expression denoting the set of lowercase alphabetic characters. |
static Lexicon.Expression |
print()
Creates an Expression denoting the set of printable characters. |
static Lexicon.Expression |
punct()
Creates an Expression denoting the set of punctuation characters. |
static Lexicon.Expression |
space()
Creates an Expression denoting the set of space characters. |
static Lexicon.Expression |
upper()
Creates an Expression denoting the set of uppercase alphabetic characters. |
static Lexicon.Expression |
xdigit()
Creates an Expression denoting the set of hexadecimal digit characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Field Detail |
private final int posixclass
The POSIX class whose set is denoted.
Constructor Detail |
private Lexicon.PosixClass(int posixclass)
Constructs an Expression
denoting the set of characters in a POSIX class. An NFA recognizing the language denoted by this Expression
is constructed.
class
- the POSIX class whose set is denoted.Method Detail |
public static Lexicon.Expression alnum()
Creates an Expression
denoting the set of alphanumeric characters.
public static Lexicon.Expression alpha()
Creates an Expression
denoting the set of alphabetic characters.
public static Lexicon.Expression blank()
Creates an Expression
denoting the set of blank characters.
public static Lexicon.Expression cntrl()
Creates an Expression
denoting the set of control characters.
boolean contains(char c)
Indicates whether a character is in the set denoted by this Expression
.
contains
in class Lexicon.Alphabet
c
- the character whose status is requested.true
if c
is in this PosixClass
; false
otherwise.Lexicon.Expression copy()
Creates a copy of this Expression
. The NFA recognizing the language denoted by this Expression
is replicated.
copy
in class Lexicon.Expression
Expression
.public static Lexicon.Expression digit()
Creates an Expression
denoting the set of decimal digit characters.
public static Lexicon.Expression graph()
Creates an Expression
denoting the set of graphical characters.
public static Lexicon.Expression lower()
Creates an Expression
denoting the set of lowercase alphabetic characters.
public static Lexicon.Expression print()
Creates an Expression
denoting the set of printable characters.
public static Lexicon.Expression punct()
Creates an Expression
denoting the set of punctuation characters.
public static Lexicon.Expression space()
Creates an Expression
denoting the set of space characters.
public static Lexicon.Expression upper()
Creates an Expression
denoting the set of uppercase alphabetic characters.
public static Lexicon.Expression xdigit()
Creates an Expression
denoting the set of hexadecimal digit characters.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |