public class ExpressionJ
extends java.lang.Object
Constructor and Description |
---|
ExpressionJ() |
Modifier and Type | Method and Description |
---|---|
static void |
acceptUndefinedVariables(boolean accept)
Set if undefined variables are allowed by the parser.
|
static boolean |
isAcceptingUndefinedVariables()
Return true if undefined variables are allowed by the parser.
|
static Equation |
parse(java.io.File file)
Parse an equation.
|
static Equation |
parse(java.io.File file,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
parse(java.lang.String text)
Parse an equation.
|
static Equation |
parse(java.lang.String text,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
parse(java.net.URL url)
Parse an equation.
|
static Equation |
parse(java.net.URL url,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
public static Equation parse(java.net.URL url) throws ParseException, java.io.IOException
url
- the URL containing the equationParseException
- if there is an exception while parsing the equationjava.io.IOException
- if there is an IO exception while reading the URLpublic static Equation parse(java.net.URL url, java.util.List<Variable> vars) throws ParseException, java.io.IOException
url
- the URL containing the equationvars
- the list of global variablesParseException
- if there is an exception while parsing the equationjava.io.IOException
- if there is an IO exception while reading the URLpublic static Equation parse(java.io.File file) throws ParseException, java.io.IOException
file
- the File containing the equationParseException
- if there is an exception while parsing the equationjava.io.IOException
- if there is an IO exception while reading the URLpublic static Equation parse(java.io.File file, java.util.List<Variable> vars) throws ParseException, java.io.IOException
file
- the File containing the equationvars
- the list of global variablesParseException
- if there is an exception while parsing the equationjava.io.IOException
- if there is an IO exception while reading the URLpublic static Equation parse(java.lang.String text) throws ParseException
text
- the equationParseException
- if there is an exception while parsing the equationpublic static Equation parse(java.lang.String text, java.util.List<Variable> vars) throws ParseException
text
- the equationvars
- the list of global variablesParseException
- if there is an exception while parsing the equationpublic static void acceptUndefinedVariables(boolean accept)
accept
- true if undefined variables are allowed by the parserpublic static boolean isAcceptingUndefinedVariables()
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence