public class Lexer extends Object
Constructor and Description |
---|
Lexer(Reader r,
String systemId)
Creates an unitialized lexer on top of the given reader.
|
Modifier and Type | Method and Description |
---|---|
void |
fail(String message)
Creates a failure exception including the current line number and systemid.
|
void |
fail(String message,
Throwable e)
Creates a failure exception including the current line number and systemid.
|
void |
fail(Throwable e)
Creates a failure exception including the current line number and systemid.
|
int |
getLineNumber() |
String |
getNextToken()
getNextToken
|
String |
getSystemId()
Returns the system id
|
public static final char SINGLE_QUOTE
public static final char DOUBLE_QUOTE
public static final char BEGIN_NODE_TYPE_NAME
public static final char END_NODE_TYPE_NAME
public static final char EXTENDS
public static final char LIST_DELIMITER
public static final char PROPERTY_DEFINITION
public static final char CHILD_NODE_DEFINITION
public static final char BEGIN_TYPE
public static final char END_TYPE
public static final char DEFAULT
public static final char CONSTRAINT
public static final String[] ORDERABLE
public static final String[] MIXIN
public static final String[] ABSTRACT
public static final String[] NOQUERY
public static final String[] QUERY
public static final String[] PRIMARYITEM
public static final String[] PRIMARY
public static final String[] AUTOCREATED
public static final String[] MANDATORY
public static final String[] PROTECTED
public static final String[] MULTIPLE
public static final String[] SNS
public static final String[] QUERYOPS
public static final String[] NOFULLTEXT
public static final String[] NOQUERYORDER
public static final String[] COPY
public static final String[] VERSION
public static final String[] INITIALIZE
public static final String[] COMPUTE
public static final String[] IGNORE
public static final String[] ABORT
public static final String[] PROP_ATTRIBUTE
public static final String[] NODE_ATTRIBUTE
public static final String QUEROPS_EQUAL
public static final String QUEROPS_NOTEQUAL
public static final String QUEROPS_LESSTHAN
public static final String QUEROPS_LESSTHANOREQUAL
public static final String QUEROPS_GREATERTHAN
public static final String QUEROPS_GREATERTHANOREQUAL
public static final String QUEROPS_LIKE
public static final String[] STRING
public static final String[] BINARY
public static final String[] LONG
public static final String[] DOUBLE
public static final String[] BOOLEAN
public static final String[] DATE
public static final String[] NAME
public static final String[] PATH
public static final String[] REFERENCE
public static final String[] WEAKREFERENCE
public static final String[] URI
public static final String[] DECIMAL
public static final String[] UNDEFINED
public static final String EOF
public String getNextToken() throws ParseException
ParseException
- if an error during parsing occurspublic String getSystemId()
public int getLineNumber()
public void fail(String message) throws ParseException
message
- messageParseException
- the created exceptionpublic void fail(String message, Throwable e) throws ParseException
message
- messagee
- root causeParseException
- the created exceptionpublic void fail(Throwable e) throws ParseException
e
- root causeParseException
- the created exceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.