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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpectValue(Identifier name) getDeclaration(Identifier name) getValue(Identifier name) <U> Uvoidvoidinsert(Identifier name, T value) booleanvoidpop()voidpush()voidsetNonNull(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
-