public abstract class CharacterClass extends Object
| Constructor and Description |
|---|
CharacterClass() |
| Modifier and Type | Method and Description |
|---|---|
de.unkrig.lfr.core.Sequence |
concat(de.unkrig.lfr.core.Sequence that) |
boolean |
find(de.unkrig.lfr.core.MatcherImpl matcher,
int start)
Searches for the next occurrence, and, iff it finds one, updates
groups[0] and groups[1],
and returns true. |
int |
lowerBound()
|
abstract boolean |
matches(int c) |
int |
matches(de.unkrig.lfr.core.MatcherImpl matcher,
int offset) |
de.unkrig.lfr.core.Sequence |
reverse() |
int |
sizeBound() |
String |
toString()
Returns an unambiguous string form of
this sequence; practical for verifying a compiled sequence e.g. |
protected abstract String |
toStringWithoutNext() |
int |
upperBound()
|
public final int matches(de.unkrig.lfr.core.MatcherImpl matcher,
int offset)
public abstract boolean matches(int c)
public int lowerBound()
public int upperBound()
public int sizeBound()
matches(int) returns true, or morepublic de.unkrig.lfr.core.Sequence concat(de.unkrig.lfr.core.Sequence that)
public de.unkrig.lfr.core.Sequence reverse()
protected abstract String toStringWithoutNext()
this sequence, but without the next sequencepublic String toString()
this sequence; practical for verifying a compiled sequence e.g.
for correctness, efficiency, etc. The syntax resembles Java.public boolean find(de.unkrig.lfr.core.MatcherImpl matcher,
int start)
groups[0] and groups[1],
and returns true.Copyright © 2017 Arno Unkrig. All rights reserved.