Returns the value of a predeclared (not universal) binding in this module. In the case that the predeclared is a GuardedValue: If it is enabled, the underlying value is returned, otherwise the GuardedValue itself is returned for error reporting.
(String name)
| 183 | * value is returned, otherwise the {@code GuardedValue} itself is returned for error reporting. |
| 184 | */ |
| 185 | @Nullable |
| 186 | public Object getPredeclared(String name) { |
| 187 | Object value = predeclared.get(name); |
| 188 | if (value == null) { |
| 189 | return null; |
| 190 | } |
| 191 | return filterGuardedValue(value); |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Returns this module's additional predeclared bindings. (Excludes {@link Starlark#UNIVERSE}.) |
no test coverage detected