public class ParserException extends OWLParserException
Constructor and Description |
---|
ParserException(List<String> tokenSequence,
int lineNumber,
int columnNumber,
boolean integerExpected,
int startPos)
Instantiates a new parser exception.
|
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.
|
ParserException(List<String> tokenSequence,
int startPos,
int lineNumber,
int columnNumber,
boolean classNameExpected,
boolean objectPropertyNameExpected,
boolean dataPropertyNameExpected,
boolean individualNameExpected,
boolean datatypeNameExpected,
boolean annotationPropertyExpected,
Set<String> expectedKeywords)
Instantiates a new parser exception.
|
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.
|
ParserException(List<String> tokenSequence,
int startPos,
int lineNumber,
int columnNumber,
String... keywords)
Instantiates a new parser exception.
|
ParserException(ParserException delegate) |
ParserException(String message,
List<String> tokenSequence,
int lineNumber,
int columnNumber,
boolean integerExpected,
int startPos)
Instantiates a new parser exception.
|
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.
|
ParserException(String message,
List<String> tokenSequence,
int startPos,
int lineNumber,
int columnNumber,
boolean classNameExpected,
boolean objectPropertyNameExpected,
boolean dataPropertyNameExpected,
boolean individualNameExpected,
boolean datatypeNameExpected,
boolean annotationPropertyExpected,
Set<String> expectedKeywords)
Instantiates a new parser exception.
|
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.
|
ParserException(String message,
List<String> tokenSequence,
int startPos,
int lineNumber,
int columnNumber,
String... keywords)
Instantiates a new parser exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber() |
String |
getCurrentToken()
Gets the current token.
|
Set<String> |
getExpectedKeywords()
Gets the expected keywords.
|
int |
getLineNumber()
Gets the line number of the line that the parser was parsing when the
error occurred.
|
String |
getMessage() |
int |
getStartPos()
Gets the start position.
|
List<String> |
getTokenSequence()
Gets the token sequence.
|
boolean |
isAnnotationPropertyNameExpected()
Checks if is annotation property name expected.
|
boolean |
isClassNameExpected()
Checks if is class name expected.
|
boolean |
isDataPropertyNameExpected()
Checks if is data property name expected.
|
boolean |
isDatatypeNameExpected()
Checks if is datatype name expected.
|
boolean |
isIndividualNameExpected()
Checks if is individual name expected.
|
boolean |
isIntegerExpected()
Checks if is integer expected.
|
boolean |
isObjectPropertyNameExpected()
Checks if is object property name expected.
|
boolean |
isOntologyNameExpected()
Checks if is ontology name expected.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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)
message
- the messagetokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberontologyNameExpected
- the ontology name expectedclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedintegerExpected
- the integer expectedexpectedKeywords
- the expected keywordspublic 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)
tokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberontologyNameExpected
- the ontology name expectedclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedintegerExpected
- the integer expectedexpectedKeywords
- the expected keywordspublic 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)
message
- the messagetokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedexpectedKeywords
- the expected keywordspublic 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)
tokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedexpectedKeywords
- the expected keywordspublic ParserException(String message, List<String> tokenSeqence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, @Nonnull String... keywords)
message
- the messagetokenSeqence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedkeywords
- the keywordspublic ParserException(List<String> tokenSeqence, int startPos, int lineNumber, int columnNumber, boolean classNameExpected, boolean objectPropertyNameExpected, boolean dataPropertyNameExpected, boolean individualNameExpected, boolean datatypeNameExpected, boolean annotationPropertyExpected, @Nonnull String... keywords)
tokenSeqence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberclassNameExpected
- the class name expectedobjectPropertyNameExpected
- the object property name expecteddataPropertyNameExpected
- the data property name expectedindividualNameExpected
- the individual name expecteddatatypeNameExpected
- the datatype name expectedannotationPropertyExpected
- the annotation property expectedkeywords
- the keywordspublic ParserException(String message, List<String> tokenSequence, int lineNumber, int columnNumber, boolean integerExpected, int startPos)
message
- the messagetokenSequence
- the token sequencelineNumber
- the line numbercolumnNumber
- the column numberintegerExpected
- the integer expectedstartPos
- the start positionpublic ParserException(List<String> tokenSequence, int lineNumber, int columnNumber, boolean integerExpected, int startPos)
tokenSequence
- the token sequencelineNumber
- the line numbercolumnNumber
- the column numberintegerExpected
- the integer expectedstartPos
- the start positionpublic ParserException(String message, List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, @Nonnull String... keywords)
message
- the messagetokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberkeywords
- the keywordspublic ParserException(List<String> tokenSequence, int startPos, int lineNumber, int columnNumber, @Nonnull String... keywords)
tokenSequence
- the token sequencestartPos
- the start positionlineNumber
- the line numbercolumnNumber
- the column numberkeywords
- the keywordspublic ParserException(ParserException delegate)
delegate
- delegatepublic List<String> getTokenSequence()
public int getStartPos()
public boolean isClassNameExpected()
public boolean isObjectPropertyNameExpected()
public boolean isDataPropertyNameExpected()
public boolean isIndividualNameExpected()
public boolean isDatatypeNameExpected()
public boolean isAnnotationPropertyNameExpected()
public boolean isOntologyNameExpected()
public Set<String> getExpectedKeywords()
public String getCurrentToken()
public int getLineNumber()
OWLParserException
getLineNumber
in class OWLParserException
public int getColumnNumber()
getColumnNumber
in class OWLParserException
public boolean isIntegerExpected()
public String getMessage()
getMessage
in class OWLParserException
Copyright © 2020 The University of Manchester. All rights reserved.