jbil.sequence
Class HighOrderCharSymbol

java.lang.Object
  extended by jbil.sequence.CharSymbol
      extended by 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.
 
Method Summary
 void addMatch(AtomicSymbol match)
          Adds an atomic symbol to the alphabet of symbols matched by this symbol.
 void addMatches(java.util.List<AtomicSymbol> matches)
          Adds a list of atomic symbols to the alphabet of symbols matched by this symbol.
 char charValue()
           
 Alphabet getMatches()
           
 boolean isAtomic()
           
 
Methods inherited from class jbil.sequence.CharSymbol
arity, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jbil.sequence.Symbol
arity, toString
 

Constructor Detail

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.
Method Detail

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.