public class Console extends Object
{{ #expr: ... }} and
{{ #ifexpr: ... }} expression evaluator.| Constructor and Description |
|---|
Console() |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
String |
interpreter(String strEval)
Evaluates the given string-expression and returns the result in
OutputForm |
static void |
main(String[] args) |
void |
printPrompt(PrintStream out,
String prompt)
prints a prompt on the console but doesn't print a newline
|
String |
readString(PrintStream out)
read a string from the console.
|
String |
readString(PrintStream out,
String prompt)
read a string from the console.
|
void |
setFile(File file) |
public Console()
throws SyntaxError
SyntaxErrorpublic static void main(String[] args)
public String interpreter(String strEval)
OutputFormstrEval - public void printPrompt(PrintStream out, String prompt)
out - prompt - the prompt string to displaypublic String readString(PrintStream out)
out - Description of Parameterpublic String readString(PrintStream out, String prompt)
prompt - the prompt string to displayout - Description of Parameterpublic void setFile(File file)
file - public File getFile()
nullCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.