public class JSORestrictionsChecker extends Object
JavaScriptObject
(JSO)
restrictions. The restrictions are summarized in
jsoRestrictions.html
.
Any violations found are attached as errors on the
CompilationUnitDeclaration.jsoRestrictions.html
Modifier and Type | Class and Description |
---|---|
static class |
JSORestrictionsChecker.CheckerState
The order in which the checker will process types is undefined, so this
type accumulates the information necessary for sanity-checking the JSO
types.
|
Modifier and Type | Field and Description |
---|---|
static String |
ERR_CONSTRUCTOR_WITH_PARAMETERS |
static String |
ERR_INSTANCE_FIELD |
static String |
ERR_INSTANCE_METHOD_NONFINAL |
static String |
ERR_IS_NONSTATIC_NESTED |
static String |
ERR_JS_FUNCTION_ONLY_ALLOWED_ON_FUNCTIONAL_INTERFACE |
static String |
ERR_NEW_JSO |
static String |
ERR_NONEMPTY_CONSTRUCTOR |
static String |
ERR_NONPROTECTED_CONSTRUCTOR |
static String |
ERR_OVERRIDDEN_METHOD |
Modifier and Type | Method and Description |
---|---|
static void |
check(JSORestrictionsChecker.CheckerState state,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud)
Checks an entire
CompilationUnitDeclaration . |
public static final String ERR_CONSTRUCTOR_WITH_PARAMETERS
public static final String ERR_INSTANCE_FIELD
public static final String ERR_INSTANCE_METHOD_NONFINAL
public static final String ERR_IS_NONSTATIC_NESTED
public static final String ERR_NEW_JSO
public static final String ERR_NONEMPTY_CONSTRUCTOR
public static final String ERR_NONPROTECTED_CONSTRUCTOR
public static final String ERR_OVERRIDDEN_METHOD
public static final String ERR_JS_FUNCTION_ONLY_ALLOWED_ON_FUNCTIONAL_INTERFACE
public static void check(JSORestrictionsChecker.CheckerState state, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud)
CompilationUnitDeclaration
.Copyright © 2018. All rights reserved.