|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.wiki.template.expr.util.Console
public class Console
A java console program to run the evaluator interactively. Utility for
testing the {{ #expr: ... }}
and
{{ #ifexpr: ... }}
expression evaluator.
Constructor Summary | |
---|---|
Console()
|
Method Summary | |
---|---|
java.io.File |
getFile()
|
java.lang.String |
interpreter(java.lang.String strEval)
Evaluates the given string-expression and returns the result in OutputForm |
static void |
main(java.lang.String[] args)
|
void |
printPrompt(java.io.PrintStream out,
java.lang.String prompt)
prints a prompt on the console but doesn't print a newline |
java.lang.String |
readString(java.io.PrintStream out)
read a string from the console. |
java.lang.String |
readString(java.io.PrintStream out,
java.lang.String prompt)
read a string from the console. |
void |
setFile(java.io.File file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Console() throws SyntaxError
SyntaxError
Method Detail |
---|
public static void main(java.lang.String[] args)
public java.lang.String interpreter(java.lang.String strEval)
OutputForm
strEval
- public void printPrompt(java.io.PrintStream out, java.lang.String prompt)
out
- prompt
- the prompt string to displaypublic java.lang.String readString(java.io.PrintStream out)
out
- Description of Parameter
public java.lang.String readString(java.io.PrintStream out, java.lang.String prompt)
prompt
- the prompt string to displayout
- Description of Parameter
public void setFile(java.io.File file)
file
- public java.io.File getFile()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |