From 0f1055b8d7f97d86c66fa602c17666bc2ff9c437 Mon Sep 17 00:00:00 2001 From: Constantin Jucovschi Date: Tue, 31 Mar 2009 06:18:54 -0400 Subject: Initial commit --- src/syntaxParser/ScalarLitList.java | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/syntaxParser/ScalarLitList.java (limited to 'src/syntaxParser/ScalarLitList.java') 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"; + result += (s instanceof String)? s: " "; + result += "\n"; + */ + } + + + result += "just parsing"; + return result; + } + + + +} -- cgit