|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Symbol
The unit component of sequences.
Every symbol has a String representation (glyph) which not necessarily has one single character, although within a sequence a symbol is considered as a unit component. That is the String 101112 may be the visual representation of a sequence composed of three symbols whose glyphs are '10', '11', and '12'.
A symbol can 'match' zero, one or more symbols. The number of symbols a particular symbol matches is called its arity. A symbol is said to be atomic it matches itself only (arity=1).
Method Summary | |
---|---|
int |
arity()
The arity of a Symbols corresponds to the number of symbols matching it. |
Alphabet |
getMatches()
|
boolean |
isAtomic()
|
java.lang.String |
toString()
|
Method Detail |
---|
java.lang.String toString()
toString
in class java.lang.Object
Alphabet getMatches()
int arity()
boolean isAtomic()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |