jbil.sequence
Class HighOrderCharSymbol
java.lang.Object
jbil.sequence.CharSymbol
jbil.sequence.HighOrderCharSymbol
- All Implemented Interfaces:
- HighOrderSymbol, Symbol
public class HighOrderCharSymbol
- extends CharSymbol
- implements HighOrderSymbol
A high order symbol that is associated to a character 'image'.
- Author:
- Paulo G. S. da Fonseca
Constructor Summary |
HighOrderCharSymbol(char c)
Creates a high order char symbol with an empty list of matches. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HighOrderCharSymbol
public HighOrderCharSymbol(char c)
- Creates a high order char symbol with an empty list of matches.
- Parameters:
c
- The charcater image of this symbol.
charValue
public char charValue()
- Specified by:
charValue
in class CharSymbol
- Returns:
- The character image of the symbol.
getMatches
public Alphabet getMatches()
- Specified by:
getMatches
in interface Symbol
- Returns:
- The alphabet of symbols matching this symbol.
addMatch
public void addMatch(AtomicSymbol match)
- Description copied from interface:
HighOrderSymbol
- Adds an atomic symbol to the alphabet of symbols matched by this symbol.
- Specified by:
addMatch
in interface HighOrderSymbol
addMatches
public void addMatches(java.util.List<AtomicSymbol> matches)
- Description copied from interface:
HighOrderSymbol
- Adds a list of atomic symbols to the alphabet of symbols matched by this symbol.
- Specified by:
addMatches
in interface HighOrderSymbol
isAtomic
public boolean isAtomic()
- Specified by:
isAtomic
in interface Symbol
- Returns:
- True if the symbol is atomic, or false, otherwise.