org.matheclipse.core.convert
Class AST2Expr
- java.lang.Object
-
- org.matheclipse.core.convert.AST2Expr
-
public class AST2Expr extends java.lang.ObjectConverts a parsedorg.matheclipse.parser.client.ast.ASTNodeexpression into an IExpr expression
-
-
Field Summary
Fields Modifier and Type Field and Description static AST2ExprCONSTTypical instance of an ASTNode to IExpr converterstatic AST2ExprCONST_LCstatic java.lang.StringFALSE_STRINGstatic java.lang.StringLIST_STRINGstatic java.lang.StringPLUS_STRINGstatic java.lang.StringPOWER_STRINGstatic java.util.Map<java.lang.String,java.lang.String>PREDEFINED_SYMBOLS_MAPstatic java.lang.StringTIMES_STRINGstatic java.lang.StringTRUE_STRING
-
Constructor Summary
Constructors Constructor and Description AST2Expr()AST2Expr(boolean lowercaseEnabled)AST2Expr(java.lang.Class<ASTNode> sType, java.lang.Class<IExpr> tType)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprconvert(ASTNode node)Converts a parsed ASTNode expression into an IExpr expressionIASTconvert(IAST ast, FunctionNode functionNode)Converts a parsed FunctionNode expression into an IAST expression
-
-
-
Field Detail
-
PREDEFINED_SYMBOLS_MAP
public static final java.util.Map<java.lang.String,java.lang.String> PREDEFINED_SYMBOLS_MAP
-
LIST_STRING
public static final java.lang.String LIST_STRING
-
POWER_STRING
public static final java.lang.String POWER_STRING
-
PLUS_STRING
public static final java.lang.String PLUS_STRING
-
TIMES_STRING
public static final java.lang.String TIMES_STRING
-
FALSE_STRING
public static final java.lang.String FALSE_STRING
-
TRUE_STRING
public static final java.lang.String TRUE_STRING
-
CONST
public static final AST2Expr CONST
Typical instance of an ASTNode to IExpr converter
-
CONST_LC
public static final AST2Expr CONST_LC
-
-
Constructor Detail
-
AST2Expr
public AST2Expr(java.lang.Class<ASTNode> sType, java.lang.Class<IExpr> tType)
Deprecated.- Parameters:
sType-tType-
-
AST2Expr
public AST2Expr()
-
AST2Expr
public AST2Expr(boolean lowercaseEnabled)
-
-
Method Detail
-
convert
public IAST convert(IAST ast, FunctionNode functionNode) throws ConversionException
Converts a parsed FunctionNode expression into an IAST expression- Throws:
ConversionException
-
convert
public IExpr convert(ASTNode node) throws ConversionException
Converts a parsed ASTNode expression into an IExpr expression- Throws:
ConversionException
-
-
DMelt 3.0 © DataMelt by jWork.ORG