|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.content.lang.sl.SimpleSLTokenizer
public class SimpleSLTokenizer
Simple utility class for hand-made SL parsing
| Constructor Summary | |
|---|---|
SimpleSLTokenizer(java.lang.String s)
Construct a SimpleSLTokenizer that will act on the given String |
|
| Method Summary | |
|---|---|
void |
consumeChar(char c)
Check that the next character (after eventual spaces) is 'c' and advance the pointer to the character just after |
java.lang.String |
getElement()
Return the next SL element (i.e. a word or a generic sequence of char enclosed into "") and advance the pointer to the character just after. |
static boolean |
isAWord(java.lang.String s)
Test if the given string is a legal SL word using the FIPA XC00008D spec. |
boolean |
isClosedBracket()
|
boolean |
isOpenBracket()
|
java.lang.String |
nextToken()
Return the next SL token (i.e. '(', ')' or a generic element) without advancing the pointer |
static java.lang.String |
quoteString(java.lang.String s)
Take a java String and quote it to form a legal FIPA SL0 string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSLTokenizer(java.lang.String s)
| Method Detail |
|---|
public java.lang.String nextToken()
throws Codec.CodecException
Codec.CodecException
public boolean isOpenBracket()
throws Codec.CodecException
Codec.CodecException
public boolean isClosedBracket()
throws Codec.CodecException
Codec.CodecException
public void consumeChar(char c)
throws Codec.CodecException
Codec.CodecException
public java.lang.String getElement()
throws Codec.CodecException
Codec.CodecExceptionpublic static final boolean isAWord(java.lang.String s)
public static java.lang.String quoteString(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||