jbil.sequence
Class AtomicCharSymbol
java.lang.Object
jbil.sequence.CharSymbol
jbil.sequence.AtomicCharSymbol
- All Implemented Interfaces:
- AtomicSymbol, Symbol
public class AtomicCharSymbol
- extends CharSymbol
- implements AtomicSymbol
An atomic char symbol is an atomic symbol associated to a character 'image'.
This is the basic kind of symbol that will be used for most sequences.
- Author:
- Paulo G. S. da Fonseca
Constructor Summary |
AtomicCharSymbol(char c)
Creates an atomic character symbol associated to a given char. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AtomicCharSymbol
public AtomicCharSymbol(char c)
- Creates an atomic character symbol associated to a given char.
- Parameters:
c
- The image of the 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.
isAtomic
public boolean isAtomic()
- Specified by:
isAtomic
in interface Symbol
- Returns:
- True if the symbol is atomic, or false, otherwise.