Package li.selman.jpbe.dsl.token
Class Token
java.lang.Object
li.selman.jpbe.dsl.token.Token
Restrictions on Regular Expressions:
- Kleene star is restricted to one or more occurrences (instead of zero or more)
- No disjunction operator allowed (or-operator)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
static final Token
-
Constructor Summary
-
Method Summary
-
Field Details
-
START
-
END
-
ALPHA
-
LOWER_ALPHA
-
UPPER_ALPHA
-
LEADING_ZERO
-
NUM
-
NUM_NO_LEADING_ZEROS
-
ALPHA_NUM
-
ALPHA_NUM_NO_LEADING_ZEROS
-
SPACE
-
COLON
-
SEMI_COLON
-
DOT
-
COMMA
-
HYPHEN
-
UNDERSCORE
-
BACK_SLASH
-
FORWARD_SLASH
-
-
Constructor Details
-
Token
-
-
Method Details
-
getPattern
-
getRegexPattern
-
matches
Check whether a string matches the pattern.- Parameters:
s
- to match- Returns:
true
if the s matches the Regex
-
matches
public boolean matches(char c) Checks whether a single character matches the token.- Parameters:
c
- to match- Returns:
true
if the c matches the Regex
-
matches
-
matches
-
toString
-
equals
-
hashCode
public int hashCode()
-