|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.Parser
public class Parser
Handles all the various parsing tasks. All public classes are static.
| Constructor Summary | |
|---|---|
Parser()
|
|
| Method Summary | |
|---|---|
static ParsedUnit |
getUnitValue(java.lang.String inputStr)
Parses a substring containing that *starts* with the definition of a quantity. |
static PlatyConst.unit |
parseUnitType(java.lang.String inputStr)
Gets the unit type. |
static PlatyConst.unit |
unitAbbrevToUnitType(java.lang.String unitStr)
Convert the abbreviation used for the unit into a unit-type (an enum in PlatyConst) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
| Method Detail |
|---|
public static ParsedUnit getUnitValue(java.lang.String inputStr)
inputStr - string containing quantity and unit abbreviation
public static PlatyConst.unit parseUnitType(java.lang.String inputStr)
inputStr - the string that starts with the unit type
public static PlatyConst.unit unitAbbrevToUnitType(java.lang.String unitStr)
unitStr - the string that begins with the unit abbreviation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||