java.lang.Object
java.lang.Throwable
java.lang.Exception
antlr.ANTLRException
antlr.RecognitionException
de.grogra.grammar.RecognitionException
de.grogra.grammar.SemanticException
de.grogra.xl.compiler.diagnostics.XLDiagnostic
- All Implemented Interfaces:
DetailedException,Disposable,UserException,Serializable,Comparable<RecognitionException>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsFields inherited from class de.grogra.grammar.RecognitionException
IS_ERROR, MIN_UNUSED, warningBitsFields inherited from class antlr.RecognitionException
column, fileName, line -
Constructor Summary
ConstructorsConstructorDescriptionXLDiagnostic(XLDiagnosticSeverity severity, String ruleId, String categoryId, String explanation, String hint, String normalizedDetails) XLDiagnostic(XLDiagnosticSeverity severity, String ruleId, String diagnosticCode, String categoryId, String explanation, String hint, String normalizedDetails, XLDiagnostic.SourceRange primaryRange, List<XLDiagnostic.RelatedRange> relatedRanges, String provenance) -
Method Summary
Modifier and TypeMethodDescriptiongetDetailedMessage(boolean html) getHint()booleanbooleanbooleanbooleanbooleanstatic XLDiagnostic.RelatedRangerelatedRange(String label, int start, int end) static XLDiagnostic.SourceRangesourceRange(int start, int end) Methods inherited from class de.grogra.grammar.RecognitionException
compareTo, complete, convert, dispose, getColumn, getDetailedMessage, getLine, isError, set, set, set, set, setMethods inherited from class antlr.RecognitionException
getErrorMessage, getFilename, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
XL16U_WARNING
public static final long XL16U_WARNING- See Also:
-
-
Constructor Details
-
XLDiagnostic
-
XLDiagnostic
public XLDiagnostic(XLDiagnosticSeverity severity, String ruleId, String diagnosticCode, String categoryId, String explanation, String hint, String normalizedDetails, XLDiagnostic.SourceRange primaryRange, List<XLDiagnostic.RelatedRange> relatedRanges, String provenance)
-
-
Method Details
-
getSeverity
-
getRuleId
-
getDiagnosticCode
-
getCategoryId
-
getExplanation
-
hasExplanation
public boolean hasExplanation() -
getHint
-
getNormalizedDetails
-
hasNormalizedDetails
public boolean hasNormalizedDetails() -
getPrimaryRange
-
hasPrimaryRange
public boolean hasPrimaryRange() -
getRelatedRanges
-
hasRelatedRanges
public boolean hasRelatedRanges() -
getProvenance
-
hasProvenance
public boolean hasProvenance() -
getCategoryDescription
- Overrides:
getCategoryDescriptionin classSemanticException
-
getDetailedMessage
- Specified by:
getDetailedMessagein interfaceDetailedException- Overrides:
getDetailedMessagein classRecognitionException
-
sourceRange
-