public class PathParser extends NumberParser
Modifier and Type | Field and Description |
---|---|
protected PathHandler |
pathHandler
The path handler used to report parse events.
|
BUNDLE_CLASSNAME, current, errorHandler, reader
Constructor and Description |
---|
PathParser(PathHandler handler)
Creates a new PathParser.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_parsel(boolean expectNumber) |
protected void |
_parseL(boolean expectNumber) |
protected void |
doParse()
Method responsible for actually parsing data after AbstractParser
has initialized itself.
|
PathHandler |
getPathHandler()
Returns the path handler in use.
|
protected void |
parsea()
Parses a 'a' command.
|
protected void |
parseA()
Parses a 'A' command.
|
protected void |
parsec()
Parses a 'c' command.
|
protected void |
parseC()
Parses a 'C' command.
|
protected void |
parseh()
Parses a 'h' command.
|
protected void |
parseH()
Parses a 'H' command.
|
protected void |
parsel()
Parses a 'l' command.
|
protected void |
parseL()
Parses a 'L' command.
|
protected void |
parsem()
Parses a 'm' command.
|
protected void |
parseM()
Parses a 'M' command.
|
protected void |
parseq()
Parses a 'q' command.
|
protected void |
parseQ()
Parses a 'Q' command.
|
protected void |
parses()
Parses a 's' command.
|
protected void |
parseS()
Parses a 'S' command.
|
protected void |
parset()
Parses a 't' command.
|
protected void |
parseT()
Parses a 'T' command.
|
protected void |
parsev()
Parses a 'v' command.
|
protected void |
parseV()
Parses a 'V' command.
|
protected void |
reportUnexpected(int ch) |
void |
setPathHandler(PathHandler handler)
Allows an application to register a path handler.
|
protected boolean |
skipCommaSpaces2()
Skips the whitespaces and an optional comma.
|
protected void |
skipSubPath()
Skips a sub-path.
|
buildFloat, parseFloat
createErrorMessage, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces
protected PathHandler pathHandler
public PathParser(PathHandler handler)
public void setPathHandler(PathHandler handler)
If the application does not register a handler, all events reported by the parser will be silently ignored.
Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.
handler
- The transform list handler.public PathHandler getPathHandler()
protected void doParse() throws ParseException, IOException
AbstractParser
doParse
in class AbstractParser
ParseException
IOException
protected void parsem() throws ParseException, IOException
ParseException
IOException
protected void parseM() throws ParseException, IOException
ParseException
IOException
protected void parsel() throws ParseException, IOException
ParseException
IOException
protected void _parsel(boolean expectNumber) throws ParseException, IOException
ParseException
IOException
protected void parseL() throws ParseException, IOException
ParseException
IOException
protected void _parseL(boolean expectNumber) throws ParseException, IOException
ParseException
IOException
protected void parseh() throws ParseException, IOException
ParseException
IOException
protected void parseH() throws ParseException, IOException
ParseException
IOException
protected void parsev() throws ParseException, IOException
ParseException
IOException
protected void parseV() throws ParseException, IOException
ParseException
IOException
protected void parsec() throws ParseException, IOException
ParseException
IOException
protected void parseC() throws ParseException, IOException
ParseException
IOException
protected void parseq() throws ParseException, IOException
ParseException
IOException
protected void parseQ() throws ParseException, IOException
ParseException
IOException
protected void parses() throws ParseException, IOException
ParseException
IOException
protected void parseS() throws ParseException, IOException
ParseException
IOException
protected void parset() throws ParseException, IOException
ParseException
IOException
protected void parseT() throws ParseException, IOException
ParseException
IOException
protected void parsea() throws ParseException, IOException
ParseException
IOException
protected void parseA() throws ParseException, IOException
ParseException
IOException
protected void skipSubPath() throws ParseException, IOException
ParseException
IOException
protected void reportUnexpected(int ch) throws ParseException, IOException
ParseException
IOException
protected boolean skipCommaSpaces2() throws IOException
IOException
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.