* Java mapping of Scilab data has now a new method called getType() which
[scilab.git] / scilab / modules / types / src / java / org / scilab / modules / types / ScilabDouble.java
index 1013eae..0e155ce 100644 (file)
@@ -39,6 +39,7 @@ public class ScilabDouble implements ScilabType {
        private static final long serialVersionUID = 879624048944109684L;
        private double[][] realPart;
        private double[][] imaginaryPart;
+       private ScilabTypeEnum type = ScilabTypeEnum.sci_matrix;
 
        /**
         * Default constructor
@@ -92,6 +93,15 @@ public class ScilabDouble implements ScilabType {
                imaginaryPart = imagData;
        }
 
+    /** 
+     * Return the type of Scilab 
+     * @return the type of Scilab
+     * @since 5.4.0
+     */
+    public ScilabTypeEnum getType() {
+        return type;
+    }
+
        /**
         * Check the emptiness of the associated data.
         * @return true, if the associated data array is empty.