public abstract class RegexSymbol extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ANY_CODE |
protected static int |
CHAR_CODE |
protected static int |
CHARACTER_CLASS_CODE |
protected static int |
EPSILON_CODE |
protected static int |
HASH_ANY |
protected static int |
HASH_EPSILON |
| Constructor and Description |
|---|
RegexSymbol() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
canonical()
A string representation of this symbol
|
abstract int |
code()
When written to the output stream, each symbol has a separate code
|
abstract int[] |
getCodeArray() |
abstract boolean |
isEpsilon()
Is the symbol an ε symbol?
|
abstract boolean |
matches(char c)
Does a character matches a symbol?
|
abstract int |
sizeof()
What is the size of this object in the edge table?
|
abstract String |
toHtmlString() |
protected static final int HASH_EPSILON
protected static final int HASH_ANY
protected static final int ANY_CODE
protected static final int CHAR_CODE
protected static final int CHARACTER_CLASS_CODE
protected static final int EPSILON_CODE
public abstract boolean isEpsilon()
public abstract String canonical()
public abstract boolean matches(char c)
c - the characterpublic abstract int code()
public abstract int sizeof()
public abstract int[] getCodeArray()
public abstract String toHtmlString()
Copyright © 2017. All rights reserved.