public class AST2Expr
extends java.lang.Object
org.matheclipse.parser.client.ast.ASTNode
expression into an IExpr expressionModifier and Type | Field and Description |
---|---|
static AST2Expr |
CONST
Typical instance of an ASTNode to IExpr converter
|
static AST2Expr |
CONST_LC |
static java.lang.String[] |
FUNCTION_STRINGS |
static java.util.Map<java.lang.String,java.lang.String> |
PREDEFINED_ALIASES_MAP
Aliases which are mapped to the standard function symbols.
|
static java.util.Map<java.lang.String,java.lang.String> |
PREDEFINED_SYMBOLS_MAP |
static java.util.Map<java.lang.String,java.lang.Integer> |
RUBI_STATISTICS_MAP |
static java.lang.String[] |
SYMBOL_STRINGS |
static java.lang.String |
TIMES_STRING |
static java.lang.String |
TRUE_STRING |
static java.lang.String[] |
UPPERCASE_SYMBOL_STRINGS |
Constructor and Description |
---|
AST2Expr() |
AST2Expr(boolean lowercaseEnabled) |
AST2Expr(java.lang.Class<ASTNode> sType,
java.lang.Class<IExpr> tType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IExpr |
convert(ASTNode node)
Deprecated.
use
convert(ASTNode node, EvalEngine engine)
instead |
IExpr |
convert(ASTNode node,
EvalEngine engine) |
IAST |
convert(IAST ast,
FunctionNode functionNode)
Converts a parsed FunctionNode expression into an IAST expression
|
IExpr |
convertSymbol(java.lang.String nodeStr) |
static SuggestTree |
getSuggestTree() |
public static final java.lang.String[] UPPERCASE_SYMBOL_STRINGS
public static final java.lang.String[] SYMBOL_STRINGS
public static final java.lang.String[] FUNCTION_STRINGS
public static java.util.Map<java.lang.String,java.lang.Integer> RUBI_STATISTICS_MAP
public static final java.util.Map<java.lang.String,java.lang.String> PREDEFINED_SYMBOLS_MAP
public static final java.util.Map<java.lang.String,java.lang.String> PREDEFINED_ALIASES_MAP
public static final java.lang.String TIMES_STRING
public static final java.lang.String TRUE_STRING
public static final AST2Expr CONST
public static final AST2Expr CONST_LC
public AST2Expr(java.lang.Class<ASTNode> sType, java.lang.Class<IExpr> tType)
sType
- tType
- public AST2Expr()
public AST2Expr(boolean lowercaseEnabled)
public static SuggestTree getSuggestTree()
public IAST convert(IAST ast, FunctionNode functionNode) throws ConversionException
ConversionException
public IExpr convert(ASTNode node, EvalEngine engine) throws ConversionException
ConversionException
public IExpr convert(ASTNode node) throws ConversionException
convert(ASTNode node, EvalEngine engine)
insteadnode
- ConversionException
public IExpr convertSymbol(java.lang.String nodeStr)