Package jasima.core.util.converter
Class ArgListParser
- java.lang.Object
-
- jasima.core.util.converter.ArgListParser
-
public class ArgListParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArgListParser.ParseTree
-
Constructor Summary
Constructors Constructor Description ArgListParser(ArgListTokenizer tk)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgListParser.ParseTreeparseClassAndPropDef()Parses class/property definitions in a form similar to:"a.b.c.ATC(prop1=abc;prop2=1.23;prop3=Test(abc=xyz;def=123))"All names and values are returned as Strings.static ArgListParser.ParseTreeparseClassAndPropDef(String input)Constructs a new ListTokenizer aroundinputand then callsparseClassAndPropDef().
-
-
-
Constructor Detail
-
ArgListParser
public ArgListParser(ArgListTokenizer tk)
-
-
Method Detail
-
parseClassAndPropDef
public ArgListParser.ParseTree parseClassAndPropDef()
Parses class/property definitions in a form similar to:"a.b.c.ATC(prop1=abc;prop2=1.23;prop3=Test(abc=xyz;def=123))"All names and values are returned as Strings.
-
parseClassAndPropDef
public static ArgListParser.ParseTree parseClassAndPropDef(String input) throws ArgListTokenizer.ParseException
Constructs a new ListTokenizer aroundinputand then callsparseClassAndPropDef(). This class assumes it can read and parse the whole string, otherwise it throws aArgListTokenizer.ParseException.- Parameters:
input- The input string to parse.- Returns:
- The
- Throws:
ArgListTokenizer.ParseException
-
-