diff options
Diffstat (limited to 'java/com')
| -rw-r--r-- | java/com/xagasoft/gats/GatsList.java | 13 | ||||
| -rw-r--r-- | java/com/xagasoft/gats/GatsObject.java | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/java/com/xagasoft/gats/GatsList.java b/java/com/xagasoft/gats/GatsList.java index f58faa2..6f13ea7 100644 --- a/java/com/xagasoft/gats/GatsList.java +++ b/java/com/xagasoft/gats/GatsList.java | |||
| @@ -3,8 +3,19 @@ package com.xagasoft.gats; | |||
| 3 | import java.io.InputStream; | 3 | import java.io.InputStream; |
| 4 | import java.io.OutputStream; | 4 | import java.io.OutputStream; |
| 5 | 5 | ||
| 6 | public class GatsList extends GatsObject | 6 | import java.util.List; |
| 7 | import java.util.LinkedList; | ||
| 8 | |||
| 9 | public class GatsList extends GatsObject implements List<GatsObject> | ||
| 7 | { | 10 | { |
| 11 | private LinkedList<GatsObject> lValue = new LinkedList<GatsObject>(); | ||
| 12 | |||
| 13 | public GatsList() | ||
| 14 | { | ||
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | |||
| 8 | public int getType() | 19 | public int getType() |
| 9 | { | 20 | { |
| 10 | return GatsObject.LIST; | 21 | return GatsObject.LIST; |
diff --git a/java/com/xagasoft/gats/GatsObject.java b/java/com/xagasoft/gats/GatsObject.java index 97c9c12..cb97a43 100644 --- a/java/com/xagasoft/gats/GatsObject.java +++ b/java/com/xagasoft/gats/GatsObject.java | |||
| @@ -37,7 +37,7 @@ public abstract class GatsObject | |||
| 37 | break; | 37 | break; |
| 38 | 38 | ||
| 39 | case 'l': | 39 | case 'l': |
| 40 | // goRet = new GatsList(); | 40 | goRet = new GatsList(); |
| 41 | break; | 41 | break; |
| 42 | 42 | ||
| 43 | case 'd': | 43 | case 'd': |
