Interface ScriptScopeResolver
- All Known Implementing Classes:
DefaultScopeResolver
public interface ScriptScopeResolver
An interface for structures that map string keys to
ScriptVariableResolver
s. As a strict policy, all scope names are CASE-INSENSITIVE.- Author:
- Matthew Tropiano
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ScriptScopeResolver
A scope resolver with no scopes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsScope
(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
null
if 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.
-