Class Lexer


  • public class Lexer
    extends java.lang.Object
    Lexer of the CND definition.
    • Field Detail

      • ORDERABLE

        public static final java.lang.String[] ORDERABLE
      • MIXIN

        public static final java.lang.String[] MIXIN
      • ABSTRACT

        public static final java.lang.String[] ABSTRACT
      • NOQUERY

        public static final java.lang.String[] NOQUERY
      • QUERY

        public static final java.lang.String[] QUERY
      • PRIMARYITEM

        public static final java.lang.String[] PRIMARYITEM
      • PRIMARY

        public static final java.lang.String[] PRIMARY
      • AUTOCREATED

        public static final java.lang.String[] AUTOCREATED
      • MANDATORY

        public static final java.lang.String[] MANDATORY
      • PROTECTED

        public static final java.lang.String[] PROTECTED
      • MULTIPLE

        public static final java.lang.String[] MULTIPLE
      • SNS

        public static final java.lang.String[] SNS
      • QUERYOPS

        public static final java.lang.String[] QUERYOPS
      • NOFULLTEXT

        public static final java.lang.String[] NOFULLTEXT
      • NOQUERYORDER

        public static final java.lang.String[] NOQUERYORDER
      • COPY

        public static final java.lang.String[] COPY
      • VERSION

        public static final java.lang.String[] VERSION
      • INITIALIZE

        public static final java.lang.String[] INITIALIZE
      • COMPUTE

        public static final java.lang.String[] COMPUTE
      • IGNORE

        public static final java.lang.String[] IGNORE
      • ABORT

        public static final java.lang.String[] ABORT
      • PROP_ATTRIBUTE

        public static final java.lang.String[] PROP_ATTRIBUTE
      • NODE_ATTRIBUTE

        public static final java.lang.String[] NODE_ATTRIBUTE
      • QUEROPS_NOTEQUAL

        public static final java.lang.String QUEROPS_NOTEQUAL
        See Also:
        Constant Field Values
      • QUEROPS_LESSTHAN

        public static final java.lang.String QUEROPS_LESSTHAN
        See Also:
        Constant Field Values
      • QUEROPS_LESSTHANOREQUAL

        public static final java.lang.String QUEROPS_LESSTHANOREQUAL
        See Also:
        Constant Field Values
      • QUEROPS_GREATERTHAN

        public static final java.lang.String QUEROPS_GREATERTHAN
        See Also:
        Constant Field Values
      • QUEROPS_GREATERTHANOREQUAL

        public static final java.lang.String QUEROPS_GREATERTHANOREQUAL
        See Also:
        Constant Field Values
      • STRING

        public static final java.lang.String[] STRING
      • BINARY

        public static final java.lang.String[] BINARY
      • LONG

        public static final java.lang.String[] LONG
      • DOUBLE

        public static final java.lang.String[] DOUBLE
      • BOOLEAN

        public static final java.lang.String[] BOOLEAN
      • DATE

        public static final java.lang.String[] DATE
      • NAME

        public static final java.lang.String[] NAME
      • PATH

        public static final java.lang.String[] PATH
      • REFERENCE

        public static final java.lang.String[] REFERENCE
      • WEAKREFERENCE

        public static final java.lang.String[] WEAKREFERENCE
      • URI

        public static final java.lang.String[] URI
      • DECIMAL

        public static final java.lang.String[] DECIMAL
      • UNDEFINED

        public static final java.lang.String[] UNDEFINED
    • Constructor Detail

      • Lexer

        public Lexer​(java.io.Reader r,
                     java.lang.String systemId)
        Creates an unitialized lexer on top of the given reader.
        Parameters:
        r - the reader
        systemId - informational systemid of the given stream
    • Method Detail

      • getNextToken

        public java.lang.String getNextToken()
                                      throws ParseException
        getNextToken
        Returns:
        the next token
        Throws:
        ParseException - if an error during parsing occurs
      • getSystemId

        public java.lang.String getSystemId()
        Returns the system id
        Returns:
        the system id
      • getLineNumber

        public int getLineNumber()
      • fail

        public void fail​(java.lang.String message)
                  throws ParseException
        Creates a failure exception including the current line number and systemid.
        Parameters:
        message - message
        Throws:
        ParseException - the created exception
      • fail

        public void fail​(java.lang.String message,
                         java.lang.Throwable e)
                  throws ParseException
        Creates a failure exception including the current line number and systemid.
        Parameters:
        message - message
        e - root cause
        Throws:
        ParseException - the created exception
      • fail

        public void fail​(java.lang.Throwable e)
                  throws ParseException
        Creates a failure exception including the current line number and systemid.
        Parameters:
        e - root cause
        Throws:
        ParseException - the created exception