|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ls5.jlearn.util.WordUtil
public class WordUtil
| Constructor Summary | |
|---|---|
WordUtil()
|
|
| Method Summary | |
|---|---|
static Word |
canonicalNext(Word w,
Alphabet sigma)
|
static Word |
clone(Word w)
|
static Word |
concat(Word w1,
Symbol s)
returns a copy of the original Word with one Symbol attached |
static Word |
concat(Word w1,
Symbol s1,
Symbol s2)
retuerns a copy of the original Word with two Symbols attached |
static Word |
concat(Word w1,
Word w2)
concatenates two words and returns a corresponding NEW word |
static Word |
flattenTrace(Word trace)
Fold "virtual" letters (splitters) back to the normal alphabet |
static boolean |
isPrefixOf(Word w1,
Word w2)
Checks if the first given Word is a prefix of the second given Word |
static Symbol |
lastSymbol(Word w)
|
static Word |
prefix(Word w1,
int length)
|
static Word |
suffix(Word w1,
int length)
|
static Word |
toWord(Symbol s)
cast symbol to word |
static Symbol |
turnWordIntoSymbol(Word w)
Turn word into a symbol, which has a list of the symbols of the input word as user object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WordUtil()
| Method Detail |
|---|
public static Word toWord(Symbol s)
s -
public static Word concat(Word w1,
Word w2)
w1 - w2 -
public static Word concat(Word w1,
Symbol s)
w1 - s -
public static Word concat(Word w1,
Symbol s1,
Symbol s2)
w1 - s1 - s2 -
public static Word suffix(Word w1,
int length)
w1 - length -
public static Word prefix(Word w1,
int length)
w1 - length -
public static Symbol lastSymbol(Word w)
public static Word flattenTrace(Word trace)
public static Word clone(Word w)
public static Word canonicalNext(Word w,
Alphabet sigma)
public static Symbol turnWordIntoSymbol(Word w)
w - word to be turned into a symbol
public static boolean isPrefixOf(Word w1,
Word w2)
w1 - Word for which the prefix property is to be evaluatedw2 - Word against which w1 is checked against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||