Package com.avoka.core.groovy.runtime
Class ScriptValidator
- java.lang.Object
-
- com.avoka.core.groovy.runtime.ScriptValidator
-
public final class ScriptValidator extends Object
Provides Groovy Script validation functions.- Since:
- 4.3.4
-
-
Constructor Summary
Constructors Constructor Description ScriptValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
validateLegacyScript(String script, boolean checkAllLegacyTokens)
Validates the provided Groovy script using Legacy mode rules.
-
-
-
Method Detail
-
validateLegacyScript
public static final String validateLegacyScript(String script, boolean checkAllLegacyTokens)
Validates the provided Groovy script using Legacy mode rules.- Parameters:
script
- the Groovy script (required)checkAllLegacyTokens
- if set to true, it will check for all legacy tokens. otherwise, it will skip some tokens that overrides existing APIs.- Returns:
- null if the script validated successfully, an error message otherwise
-
-