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