public abstract class AbstractExpRegularExpression extends Expansion
| Modifier and Type | Field and Description |
|---|---|
boolean |
m_private_rexp
This flag is set if the regular expression has a label prefixed with the #
symbol - this indicates that the purpose of the regular expression is
solely for defining other regular expressions.
|
TokenProduction |
m_tpContext
If this is a top-level regular expression (nested directly within a
TokenProduction), then this field point to that TokenProduction object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExpRegularExpression() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMatchAnyChar() |
StringBuilder |
dump(int nIndent,
Set<? super Expansion> aAlreadyDumped) |
abstract Nfa |
generateNfa(boolean ignoreCase) |
String |
getLabel() |
List<Token> |
getLhsTokens() |
int |
getOrdinal() |
Token |
getRhsToken() |
int |
getWalkStatus() |
boolean |
hasLabel() |
void |
setLabel(String s) |
void |
setLhsTokens(List<Token> lhsTokens) |
void |
setOrdinal(int n) |
void |
setRhsToken(Token rhsToken) |
void |
setWalkStatus(int n) |
dumpPrefix, getColumn, getInternalIndex, getInternalName, getLine, getMyGeneration, getNextGenerationIndex, getOrdinalBase, getParent, hashCode, hasNoInternalName, isInMinimumSize, reInit, setColumn, setInMinimumSize, setInternalName, setInternalNameOnly, setLine, setMyGeneration, setOrdinalBase, setParent, toStringpublic boolean m_private_rexp
public TokenProduction m_tpContext
public final String getLabel()
public final boolean hasLabel()
public final void setLabel(String s)
public final int getOrdinal()
public final void setOrdinal(int n)
public final void setLhsTokens(@Nonnull List<Token> lhsTokens)
lhsTokens - the lhsTokens to setpublic final int getWalkStatus()
public final void setWalkStatus(int n)
public abstract Nfa generateNfa(boolean ignoreCase)
public boolean canMatchAnyChar()
@OverridingMethodsMustInvokeSuper public StringBuilder dump(int nIndent, Set<? super Expansion> aAlreadyDumped)
Copyright © 2017–2022 Philip Helger. All rights reserved.