Class ParserException

All Implemented Interfaces:
Serializable

public class ParserException extends OWLParserException
The Class ParserException.
Since:
2.2.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
See Also:
  • Constructor Details

    • ParserException

      public ParserException(String message, List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, boolean ontologyNameExpected, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, boolean integerExpected, Set<String> expectedKeywords)
      Instantiates a new parser exception.
      Parameters:
      message - the message
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      ontologyNameExpected - the ontology name expected
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      integerExpected - the integer expected
      expectedKeywords - the expected keywords
    • ParserException

      public ParserException(List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, boolean ontologyNameExpected, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, boolean integerExpected, Set<String> expectedKeywords)
      Instantiates a new parser exception.
      Parameters:
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      ontologyNameExpected - the ontology name expected
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      integerExpected - the integer expected
      expectedKeywords - the expected keywords
    • ParserException

      public ParserException(String message, List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, @Nullable Set<String> expectedKeywords)
      Instantiates a new parser exception.
      Parameters:
      message - the message
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      expectedKeywords - the expected keywords
    • ParserException

      public ParserException(String message, List<String> tokenSeqence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, String... keywords)
      Instantiates a new parser exception.
      Parameters:
      message - the message
      tokenSeqence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      keywords - the keywords
    • ParserException

      public ParserException(List<String> tokenSeqence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, String... keywords)
      Instantiates a new parser exception.
      Parameters:
      tokenSeqence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      keywords - the keywords
    • ParserException

      public ParserException(String message, List<String> tokenSequence, int lineNumber, int columnNumber, boolean integerExpected, int startPos)
      Instantiates a new parser exception.
      Parameters:
      message - the message
      tokenSequence - the token sequence
      lineNumber - the line number
      columnNumber - the column number
      integerExpected - the integer expected
      startPos - the start position
    • ParserException

      public ParserException(List<String> tokenSequence, int lineNumber, int columnNumber, boolean integerExpected, int startPos)
      Instantiates a new parser exception.
      Parameters:
      tokenSequence - the token sequence
      lineNumber - the line number
      columnNumber - the column number
      integerExpected - the integer expected
      startPos - the start position
    • ParserException

      public ParserException(String message, List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, String... keywords)
      Instantiates a new parser exception.
      Parameters:
      message - the message
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      keywords - the keywords
    • ParserException

      public ParserException(List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, String... keywords)
      Instantiates a new parser exception.
      Parameters:
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      keywords - the keywords
    • ParserException

      public ParserException(ParserException delegate)
      Parameters:
      delegate - delegate
    • ParserException

      public ParserException(List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, @Nullable Set<String> expectedKeywords)
      Instantiates a new parser exception.
      Parameters:
      tokenSequence - the token sequence
      startPos - the start position
      lineNumber - the line number
      columnNumber - the column number
      classNameExpected - the class name expected
      objectPropertyNameExpected - the object property name expected
      dataPropertyNameExpected - the data property name expected
      individualNameExpected - the individual name expected
      datatypeNameExpected - the datatype name expected
      annotationPropertyExpected - the annotation property expected
      expectedKeywords - the expected keywords
  • Method Details

    • getTokenSequence

      public List<String> getTokenSequence()
      Gets the token sequence.
      Returns:
      the token sequence
    • getStartPos

      public int getStartPos()
      Returns:
      the start position
    • isClassNameExpected

      public boolean isClassNameExpected()
      Checks if is class name expected.
      Returns:
      true, if is class name expected
    • isObjectPropertyNameExpected

      public boolean isObjectPropertyNameExpected()
      Checks if is object property name expected.
      Returns:
      true, if is object property name expected
    • isDataPropertyNameExpected

      public boolean isDataPropertyNameExpected()
      Checks if is data property name expected.
      Returns:
      true, if is data property name expected
    • isIndividualNameExpected

      public boolean isIndividualNameExpected()
      Checks if is individual name expected.
      Returns:
      true, if is individual name expected
    • isDatatypeNameExpected

      public boolean isDatatypeNameExpected()
      Checks if is datatype name expected.
      Returns:
      true, if is datatype name expected
    • isAnnotationPropertyNameExpected

      public boolean isAnnotationPropertyNameExpected()
      Checks if is annotation property name expected.
      Returns:
      true, if is annotation property name expected
    • isOntologyNameExpected

      public boolean isOntologyNameExpected()
      Checks if is ontology name expected.
      Returns:
      true, if is ontology name expected
    • getExpectedKeywords

      public Set<String> getExpectedKeywords()
      Gets the expected keywords.
      Returns:
      the expected keywords
    • getCurrentToken

      public String getCurrentToken()
      Gets the current token.
      Returns:
      the current token
    • getLineNumber

      public int getLineNumber()
      Overrides:
      getLineNumber in class OWLParserException
    • getColumnNumber

      public int getColumnNumber()
      Overrides:
      getColumnNumber in class OWLParserException
    • isIntegerExpected

      public boolean isIntegerExpected()
      Checks if is integer expected.
      Returns:
      true, if is integer expected
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class OWLParserException