jbil.sequence
Class CharSymbol

java.lang.Object
  extended by jbil.sequence.CharSymbol
All Implemented Interfaces:
Symbol
Direct Known Subclasses:
AtomicCharSymbol, HighOrderCharSymbol

public abstract class CharSymbol
extends java.lang.Object
implements Symbol

Abstract class for symbols associated to a character (either atomic or higher order).

Author:
Paulo G. S. da Fonseca

Constructor Summary
CharSymbol()
           
 
Method Summary
 int arity()
          The arity of a Symbols corresponds to the number of symbols matching it.
abstract  char charValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jbil.sequence.Symbol
getMatches, isAtomic
 

Constructor Detail

CharSymbol

public CharSymbol()
Method Detail

charValue

public abstract char charValue()
Returns:
The character image of the symbol.

arity

public int arity()
Description copied from interface: Symbol
The arity of a Symbols corresponds to the number of symbols matching it.

Specified by:
arity in interface Symbol
Returns:
The number of (atomic) symbols matching this symbol.

toString

public java.lang.String toString()
Specified by:
toString in interface Symbol
Overrides:
toString in class java.lang.Object
Returns:
The String representation of the Symbol.