* Java mapping of Scilab data has now a new method called getType() which
[scilab.git] / scilab / modules / types / src / java / org / scilab / modules / types / ScilabList.java
index 3ebb0ce..4f66b46 100644 (file)
@@ -29,6 +29,7 @@ import java.util.Collection;
 public class ScilabList extends ArrayList<ScilabType> implements ScilabType {
        
        private static final long serialVersionUID = 6884293176289980909L;
+       private ScilabTypeEnum type = ScilabTypeEnum.sci_list;
 
        /**
         * Construct an empty Scilab list.
@@ -60,6 +61,15 @@ public class ScilabList extends ArrayList<ScilabType> implements ScilabType {
                return 1;
        }
 
+    /** 
+     * Return the type of Scilab 
+     * @return the type of Scilab
+     * @since 5.4.0
+     */
+    public ScilabTypeEnum getType() {
+        return type;
+    }
+
        /**
         * @return 1 when there is data on the list, 0 otherwise.
         * @see org.scilab.modules.types.ScilabType#getWidth()