diff options
Diffstat (limited to 'json/src/com/intellij/json/codeinsight/JsonLiteralChecker.java')
-rw-r--r-- | json/src/com/intellij/json/codeinsight/JsonLiteralChecker.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/json/src/com/intellij/json/codeinsight/JsonLiteralChecker.java b/json/src/com/intellij/json/codeinsight/JsonLiteralChecker.java new file mode 100644 index 00000000..6b8fe130 --- /dev/null +++ b/json/src/com/intellij/json/codeinsight/JsonLiteralChecker.java @@ -0,0 +1,21 @@ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package com.intellij.json.codeinsight; + +import com.intellij.json.psi.JsonStringLiteral; +import com.intellij.openapi.extensions.ExtensionPointName; +import com.intellij.openapi.util.Pair; +import com.intellij.openapi.util.TextRange; +import com.intellij.psi.PsiElement; +import org.jetbrains.annotations.Nullable; + +public interface JsonLiteralChecker { + ExtensionPointName<JsonLiteralChecker> EP_NAME = ExtensionPointName.create("com.intellij.json.jsonLiteralChecker"); + + @Nullable + String getErrorForNumericLiteral(String literalText); + + @Nullable + Pair<TextRange, String> getErrorForStringFragment(Pair<TextRange, String> fragmentText, JsonStringLiteral stringLiteral); + + boolean isApplicable(PsiElement element); +} |