java.lang.Object
de.grogra.xl.compiler.xl16u.XL16UWrongCompilerPreflight
Lightweight detector for source that probably uses XL 1.6U syntax while the
old XL 1.2 compiler route is selected.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionanalyzeSource(String source, CompilerOptions options) analyzeXL16USignals(String source, CompilerOptions options) static RecognitionExceptioncreateDiagnosticAfterXL12Failure(String source, String systemId, CompilerOptions xl16uOptions) Returns a wrong-compiler hint only after XL 1.2 has failed and the source both contains an XL 1.6U signal and is accepted by the XL 1.6U parser.static XLDiagnosticcreateDiagnosticIfNeeded(String source, CompilerOptions options) static RecognitionExceptioncreateDiagnosticIfNeeded(String source, String systemId, CompilerOptions options)
-
Field Details
-
RULE_ID
- See Also:
-
CATEGORY_ID
- See Also:
-
MESSAGE
- See Also:
-
HINT
- See Also:
-
-
Method Details
-
analyzeSource
public static XL16UWrongCompilerPreflight.Result analyzeSource(String source, CompilerOptions options) -
analyzeXL16USignals
public static XL16UWrongCompilerPreflight.Result analyzeXL16USignals(String source, CompilerOptions options) -
createDiagnosticIfNeeded
-
createDiagnosticIfNeeded
public static RecognitionException createDiagnosticIfNeeded(String source, String systemId, CompilerOptions options) throws IOException - Throws:
IOException
-
createDiagnosticAfterXL12Failure
public static RecognitionException createDiagnosticAfterXL12Failure(String source, String systemId, CompilerOptions xl16uOptions) Returns a wrong-compiler hint only after XL 1.2 has failed and the source both contains an XL 1.6U signal and is accepted by the XL 1.6U parser. Semantic validity is deliberately not required: the source may need both a compiler-version correction and an independent semantic correction.
-