public enum ScopeResolverConstants extends Enum<ScopeResolverConstants>
Enum Constant and Description |
---|
BLOCK_STMT_SCOPE |
INVOCATION_SCOPE |
MATCH_EXPR_NODE_SCOPE |
MATCH_NODE_SCOPE |
OBJECT_TYPE_SCOPE |
PACKAGE_NODE_SCOPE |
RECORD_NODE_SCOPE |
RESOURCE_PARAM_SCOPE |
SERVICE_SCOPE |
TOP_LEVEL_SCOPE |
Modifier and Type | Method and Description |
---|---|
static CursorPositionResolver |
getResolverByClass(Class context)
Get the resolver by the class.
|
static ScopeResolverConstants |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScopeResolverConstants[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopeResolverConstants BLOCK_STMT_SCOPE
public static final ScopeResolverConstants INVOCATION_SCOPE
public static final ScopeResolverConstants PACKAGE_NODE_SCOPE
public static final ScopeResolverConstants RESOURCE_PARAM_SCOPE
public static final ScopeResolverConstants SERVICE_SCOPE
public static final ScopeResolverConstants TOP_LEVEL_SCOPE
public static final ScopeResolverConstants MATCH_NODE_SCOPE
public static final ScopeResolverConstants MATCH_EXPR_NODE_SCOPE
public static final ScopeResolverConstants RECORD_NODE_SCOPE
public static final ScopeResolverConstants OBJECT_TYPE_SCOPE
public static ScopeResolverConstants[] values()
for (ScopeResolverConstants c : ScopeResolverConstants.values()) System.out.println(c);
public static ScopeResolverConstants valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CursorPositionResolver getResolverByClass(Class context)
context
- - context class to extract the relevant resolverCursorPositionResolver
- Item resolver for the given contextCopyright © 2018 WSO2. All rights reserved.