Class Scope<T>
java.lang.Object
software.amazon.smithy.rulesengine.language.eval.Scope<T>
- Type Parameters:
T
- The type of values in scope.
Scope is a stack for tracking facts for named values of type T.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexpectValue
(Identifier name) getDeclaration
(Identifier name) getValue
(Identifier name) <U> U
void
void
insert
(Identifier name, T value) boolean
void
pop()
void
push()
void
setNonNull
(Reference name) toString()
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
fromNode
-
push
public void push() -
pop
public void pop() -
insert
-
insert
-
setNonNull
-
inScope
-
toString
-
isNonNull
-
expectValue
- Throws:
InnerParseError
-
getDeclaration
-
getValue
-