|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.gjsa.Str2ObjParamParser
Parameter parser. Parses parameters which are separated through whitespaces Methods are separated in two halfs: Those beginning with "parse" work directly on Str2ObjParamParser's "line" and actualize "i" so that it points behind the parsed part of the String, those called "getXXX" expect a String parameter which is parsed completely.
Str2ObjParamParser is an instancizable helper class for Str2ObjParser. Itself and its methods are declared public because external parsers for other objects (which may be declared in other packages) must know about them.
Str2ObjParamParser knows itself about the following object types which it can parse:
Str2ObjParser
,
Obj2StrParser
Field Summary | |
private int |
i
|
private java.lang.String |
line
|
private java.lang.String |
modifier
|
private static java.lang.Class[] |
onestringclassarray
|
Constructor Summary | |
Str2ObjParamParser()
|
|
Str2ObjParamParser(java.lang.String s)
|
|
Str2ObjParamParser(java.lang.String m,
java.lang.String s)
|
Method Summary | |
boolean |
findConstant(java.lang.String linerest,
java.lang.String identifier)
|
boolean |
findIdentifier(java.lang.String linerest,
java.lang.String identifier)
|
java.lang.String |
getLine()
|
java.util.List |
getList(java.lang.String s)
get a vector |
java.util.List |
getList(java.lang.String s,
java.util.List l)
|
java.util.Map |
getMap(boolean stringkey,
java.lang.String s)
returns a Map |
java.util.Map |
getMap(boolean stringkey,
java.lang.String s,
java.util.Map m)
|
java.lang.Object |
getObject(java.lang.String s)
|
boolean |
parsedCompletely()
|
java.lang.String |
parseEnclosed()
parses parenthensis. |
java.util.List |
parseList()
|
java.util.List |
parseList(java.util.List l)
|
java.util.Map |
parseMap(boolean stringkey)
|
java.util.Map |
parseMap(boolean stringkey,
java.util.Map m)
|
java.lang.String |
parseModifier(java.lang.String defaultvalue)
Parses modifier. |
java.lang.Number |
parseNumber()
parses numbers. |
java.lang.Object |
parseObject()
parses a complete Object, e.g. one parameter of a List. |
java.lang.Object |
parseOldstyleHashkey()
parses a hash key. |
java.util.ResourceBundle |
parseResourceBundle()
|
java.util.Set |
parseSet()
|
java.util.Set |
parseSet(java.util.Set s)
|
java.lang.String |
parseString()
parse a String. |
java.lang.Throwable |
parseThrowable()
Parse the string representation of a Throwable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.Class[] onestringclassarray
private java.lang.String line
private java.lang.String modifier
private int i
Constructor Detail |
public Str2ObjParamParser(java.lang.String m, java.lang.String s)
public Str2ObjParamParser(java.lang.String s)
public Str2ObjParamParser()
Method Detail |
public java.lang.String getLine()
public boolean parsedCompletely()
public java.lang.String parseModifier(java.lang.String defaultvalue)
Starts one char before the "[", finds the belonging "]", delivers everything between and sets "i" on the "]". The content is trimmed.
If no modifier is found, the given default value is returned.
public java.lang.String parseEnclosed()
public java.lang.Number parseNumber()
public java.lang.String parseString()
public boolean findIdentifier(java.lang.String linerest, java.lang.String identifier)
public boolean findConstant(java.lang.String linerest, java.lang.String identifier)
public java.lang.Object parseObject()
public java.lang.Throwable parseThrowable()
public java.lang.Object parseOldstyleHashkey()
public java.lang.Object getObject(java.lang.String s)
public java.util.Map parseMap(boolean stringkey)
public java.util.Map parseMap(boolean stringkey, java.util.Map m)
public java.util.ResourceBundle parseResourceBundle()
public java.util.Map getMap(boolean stringkey, java.lang.String s)
public java.util.Map getMap(boolean stringkey, java.lang.String s, java.util.Map m)
public java.util.List parseList()
public java.util.List parseList(java.util.List l)
public java.util.Set parseSet()
public java.util.Set parseSet(java.util.Set s)
public java.util.List getList(java.lang.String s)
public java.util.List getList(java.lang.String s, java.util.List l)
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |