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 | Method and Description |
---|---|
static void |
check(JSORestrictionsChecker.CheckerState state,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud)
Checks an entire
CompilationUnitDeclaration . |
static boolean |
isJso(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding)
Returns
true if typeBinding is JavaScriptObject or
any subtype. |
static boolean |
isJsoSubclass(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding)
Returns
true if typeBinding is a subtype of
JavaScriptObject , but not JavaScriptObject itself. |
public static void check(JSORestrictionsChecker.CheckerState state, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud)
CompilationUnitDeclaration
.public static boolean isJso(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding)
true
if typeBinding
is JavaScriptObject
or
any subtype.public static boolean isJsoSubclass(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding)
true
if typeBinding
is a subtype of
JavaScriptObject
, but not JavaScriptObject
itself.Copyright © 2018. All rights reserved.