public class ParserException extends OWLParserException
Constructor and Description |
---|
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.
|
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 pos.
|
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(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 poslineNumber
- 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 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 © 2017 The University of Manchester. All Rights Reserved.