Package edu.wisc.game.parser
Class Token
java.lang.Object
edu.wisc.game.parser.Token
public class Token extends Object
A token represents an element of the input text. Used in parsing rules.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToken.Type -
Field Summary
-
Method Summary
Modifier and Type Method Description StringasId()booleanequals(Object o)booleanisOpenParen()static voidmain(String[] argv)StringtoArgv()Re-imagines the token as an element of a command line.static Vector<Token>tokenize(String x)StringtoSrc()StringtoString()static StringtoString(Vector<Token> tokens)
-
Field Details
-
Method Details
-
asId
- Returns:
- The string value if it is an ID, or null otherwise
-
equals
-
toString
-
toSrc
-
toArgv
Re-imagines the token as an element of a command line. Used for compatibility purposes in the Captive Game Server. -
tokenize
- Throws:
RuleParseException
-
toString
-
isOpenParen
public boolean isOpenParen() -
main
- Throws:
IOExceptionRuleParseException
-