org.matheclipse.parser.server.util
Class Console
- java.lang.Object
-
- org.matheclipse.parser.server.util.Console
-
public class Console extends java.lang.ObjectA java console program to run the evaluator interactivly
-
-
Constructor Summary
Constructors Constructor and Description Console()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.FilegetFile()java.lang.Stringinterpreter(java.lang.String strEval)Evaluates the given string-expression and returns the result inOutputFormstatic voidmain(java.lang.String[] args)voidprintPrompt(java.io.PrintStream out, java.lang.String prompt)prints a prompt on the console but doesn't print a newlinejava.lang.StringreadString(java.io.PrintStream out)read a string from the console.java.lang.StringreadString(java.io.PrintStream out, java.lang.String prompt)read a string from the console.voidsetFile(java.io.File file)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
interpreter
public java.lang.String interpreter(java.lang.String strEval)
Evaluates the given string-expression and returns the result inOutputForm- Parameters:
strEval-
-
printPrompt
public void printPrompt(java.io.PrintStream out, java.lang.String prompt)prints a prompt on the console but doesn't print a newline- Parameters:
out-prompt- the prompt string to display
-
readString
public java.lang.String readString(java.io.PrintStream out)
read a string from the console. The string is terminated by a newline- Parameters:
out- Description of Parameter- Returns:
- the input string (without the newline)
-
readString
public java.lang.String readString(java.io.PrintStream out, java.lang.String prompt)read a string from the console. The string is terminated by a newline- Parameters:
prompt- the prompt string to displayout- Description of Parameter- Returns:
- the input string (without the newline)
-
setFile
public void setFile(java.io.File file)
- Parameters:
file-
-
getFile
public java.io.File getFile()
- Returns:
- the file with which the program was started or
null
-
-
DMelt 3.0 © DataMelt by jWork.ORG