Package org.apache.batik.bridge.svg12
Class XPathSubsetContentSelector.Scanner
- java.lang.Object
-
- org.apache.batik.parser.AbstractScanner
-
- org.apache.batik.bridge.svg12.XPathSubsetContentSelector.Scanner
-
- Enclosing class:
- XPathSubsetContentSelector
protected static class XPathSubsetContentSelector.Scanner extends AbstractScanner
A scanner for XPath subset selectors.
-
-
Field Summary
Fields Modifier and Type Field Description static intASTERISKstatic intCOLONstatic intEOFstatic intLEFT_PARENTHESISstatic intLEFT_SQUARE_BRACKETstatic intNAMEstatic intNUMBERstatic intRIGHT_PARENTHESISstatic intRIGHT_SQUARE_BRACKETstatic intSTRING-
Fields inherited from class org.apache.batik.parser.AbstractScanner
blankCharacters, buffer, current, end, position, previousType, reader, start, type
-
-
Constructor Summary
Constructors Constructor Description Scanner(java.lang.String s)Creates a new Scanner object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdotNumber()Scans the decimal part of a number.protected intendGap()Returns the end gap of the current lexical unit.protected voidnextToken()Returns the next token.protected intnumber()Scans a number.protected intstring1()Scans a single quoted string.protected intstring2()Scans a double quoted string.-
Methods inherited from class org.apache.batik.parser.AbstractScanner
clearBuffer, getBuffer, getColumn, getEnd, getLine, getStart, getStringValue, getType, isEqualIgnoreCase, next, nextChar
-
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
LEFT_SQUARE_BRACKET
public static final int LEFT_SQUARE_BRACKET
- See Also:
- Constant Field Values
-
RIGHT_SQUARE_BRACKET
public static final int RIGHT_SQUARE_BRACKET
- See Also:
- Constant Field Values
-
LEFT_PARENTHESIS
public static final int LEFT_PARENTHESIS
- See Also:
- Constant Field Values
-
RIGHT_PARENTHESIS
public static final int RIGHT_PARENTHESIS
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
-
ASTERISK
public static final int ASTERISK
- See Also:
- Constant Field Values
-
-
Method Detail
-
endGap
protected int endGap()
Returns the end gap of the current lexical unit.- Specified by:
endGapin classAbstractScanner
-
nextToken
protected void nextToken() throws ParseExceptionReturns the next token.- Specified by:
nextTokenin classAbstractScanner- Throws:
ParseException
-
string1
protected int string1() throws java.io.IOExceptionScans a single quoted string.- Throws:
java.io.IOException
-
string2
protected int string2() throws java.io.IOExceptionScans a double quoted string.- Throws:
java.io.IOException
-
number
protected int number() throws java.io.IOExceptionScans a number.- Throws:
java.io.IOException
-
dotNumber
protected int dotNumber() throws java.io.IOExceptionScans the decimal part of a number.- Throws:
java.io.IOException
-
-