Interface ScriptScopeResolver
- All Known Implementing Classes:
DefaultScopeResolver
public interface ScriptScopeResolver
An interface for structures that map string keys to
ScriptVariableResolvers. As a strict policy, all scope names are CASE-INSENSITIVE.- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScriptScopeResolverA scope resolver with no scopes. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsScope(String name) Checks if this contains a scope by its scope name.Gets the corresponding scope for a scope name.
-
Field Details
-
EMPTY
A scope resolver with no scopes.- Since:
- 1.8.0
-
-
Method Details
-
getScope
Gets the corresponding scope for a scope name.- Parameters:
name- the scope name.- Returns:
- the corresponding scope, or
nullif no corresponding scope.
-
containsScope
Checks if this contains a scope by its scope name.- Parameters:
name- the scope name.- Returns:
- true if so, false if not.
-