public interface Scope
| Modifier and Type | Method and Description |
|---|---|
Module |
getModule() |
Scope |
getParentScope() |
<T> T |
getScopeOption(String key) |
Type |
getTypeOrDie() |
Ref<Type> |
getTypeRef(String ref,
String module)
Get or create reference by name
|
Value |
getValueLevel() |
org.apache.commons.lang3.tuple.Pair<Type[],Value[]> |
getValueLevels() |
Ref<Value> |
getValueRef(String ref,
String module)
Get or create reference by name
|
DefinedType |
resolveBuiltinTypeOrNull(TypeName name) |
Type |
resolveType(TypeName typeName)
Resolves type in this module
|
Value |
resolveValue(ValueName valueName)
Resolves value in this module
|
void |
setScopeOption(String key,
Object value) |
void |
setValueLevel(Value value) |
Scope |
templateInstanceScope(Template<?> template,
List<Ref<?>> arguments) |
Scope |
templateScope(Template<?> template) |
Scope |
typedScope(Type type) |
Type getTypeOrDie()
@NotNull Module getModule()
Scope getParentScope()
@NotNull Ref<Type> getTypeRef(@NotNull String ref, @Nullable String module)
ref - type reference namemodule - referenced module name@NotNull Ref<Value> getValueRef(@NotNull String ref, @Nullable String module)
ref - value reference namemodule - referenced module name@Nullable DefinedType resolveBuiltinTypeOrNull(@NotNull TypeName name)
Type resolveType(@NotNull TypeName typeName) throws ResolutionException
typeName - type nameTypeResolutionException - if type not foundValue resolveValue(@NotNull ValueName valueName) throws ResolutionException
valueName - value nameValueResolutionException - if value not foundvoid setValueLevel(Value value)
Value getValueLevel()
Scope templateInstanceScope(@NotNull Template<?> template, @NotNull List<Ref<?>> arguments)
@Nullable <T> T getScopeOption(String key)
Copyright © 2017. All rights reserved.