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, java.io.IOException
AbstractParser
doParse
in class AbstractParser
ParseException
java.io.IOException
protected void parsem() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseM() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parsel() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void _parsel(boolean expectNumber) throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseL() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void _parseL(boolean expectNumber) throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseh() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseH() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parsev() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseV() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parsec() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseC() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseq() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseQ() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parses() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseS() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parset() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseT() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parsea() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void parseA() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void skipSubPath() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected void reportUnexpected(int ch) throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected boolean skipCommaSpaces2() throws java.io.IOException
java.io.IOException
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.