diff options
Diffstat (limited to 'src/syntaxParser/ScalarLitList.java')
| -rw-r--r-- | src/syntaxParser/ScalarLitList.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/syntaxParser/ScalarLitList.java b/src/syntaxParser/ScalarLitList.java new file mode 100644 index 0000000..49e187b --- /dev/null +++ b/src/syntaxParser/ScalarLitList.java @@ -0,0 +1,52 @@ +package syntaxParser; +/** + * ScalarLitList class represents a CoverageList. + * Creation date: (3/3/2003 2:52:55 AM) + * @author: mattia parigiani + */ +import java.util.*; +public class ScalarLitList { + private Vector scalarLits; + + + /** + * CoverageList constructor comment. + */ + public ScalarLitList() { + super(); + } + public ScalarLitList(ScalarLit sl) { + scalarLits = new Vector(); + scalarLits.add(sl); + } + + public ScalarLitList(ScalarLit sl, ScalarLitList l) { + scalarLits = l.getScalarLits(); + scalarLits.add(sl); + } + + + public Vector getScalarLits(){ + return scalarLits; + } + + String toXML(){ + String result="" ; + + + for (Enumeration e=scalarLits.elements(); e.hasMoreElements(); ){ + /*String s= (String)e.nextElement(); + result += "\n<coverageOrSetName>"; + result += (s instanceof String)? s: " "; + result += "</coverageOrSetName>\n"; + */ + } + + + result += "just parsing"; + return result; + } + + + +} |
