public class ElizaParse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
exit |
java.util.Vector |
msg
Vector holding strings that have been added using PRINT.
|
Constructor and Description |
---|
ElizaParse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getIntroMsg() |
void |
handleLine(java.lang.String I) |
void |
PRINT(java.lang.String s)
Cute hack to make it look like BASIC.
|
static java.lang.String |
removeChar(java.lang.String s,
char c)
Utility function that removes a char from a String.
|
static java.lang.String |
replaceString(java.lang.String s,
java.lang.String oldstring,
java.lang.String newstring)
Utility function that replaces all occurences of a specific string with
another string.
|
public java.util.Vector msg
public boolean exit
public java.lang.String[] getIntroMsg()
public void PRINT(java.lang.String s)
public void handleLine(java.lang.String I)
public static java.lang.String removeChar(java.lang.String s, char c)
public static java.lang.String replaceString(java.lang.String s, java.lang.String oldstring, java.lang.String newstring)