org.matheclipse.core.convert
Class Object2Expr
- java.lang.Object
-
- org.matheclipse.core.convert.Object2Expr
-
public class Object2Expr extends java.lang.ObjectConverts objects into an IExpr expression
-
-
Field Summary
Fields Modifier and Type Field and Description static Object2ExprCONSTTypical instance of anjava.lang.ObjecttoIExprconverter
-
Constructor Summary
Constructors Constructor and Description Object2Expr(java.lang.Class sType, java.lang.Class tType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprconvert(java.lang.Object obj)Converts the following Jstatic IExprconvertComplex(Complex[] array)
-
-
-
Field Detail
-
CONST
public static final Object2Expr CONST
Typical instance of anjava.lang.ObjecttoIExprconverter
-
-
Method Detail
-
convert
public IExpr convert(java.lang.Object obj) throws ConversionException
Converts the following JJava Object -> MathEclipse object ------------------------------------- null object Null symbol IExpr IExpr type Boolean True or False symbol BigInteger Integer value java.math.BigInteger Integer value BigDecimal Double with doubleValue() value Double Double with doubleValue() value Float Double with doubleValue() value Number Integer with longValue() value java.util.List 0-th element of the list gives the head of the function 1..nth element of the list give the arguments of the function Object[] a list of converted objects int[] a list of IntegerSymInteger values double[] a list ofNumvalues double[][] a matrix (i.e. nested lists) of Double values Complex[] a list ofComplexNumvalues boolean[] a list of True or False symbols- Throws:
ConversionException
-
convertComplex
public static IExpr convertComplex(Complex[] array) throws ConversionException
- Throws:
ConversionException
-
-
DMelt 3.0 © DataMelt by jWork.ORG