Class Type.Option
java.lang.Object
software.amazon.smithy.rulesengine.language.eval.Type.Option
- All Implemented Interfaces:
Type
- Enclosing interface:
- Type
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.rulesengine.language.eval.Type
Type.Any, Type.Array, Type.Bool, Type.Empty, Type.Endpoint, Type.Integer, Type.Option, Type.Record, Type.String, Type.Tuple
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.rulesengine.language.eval.Type
expectArray, expectInt, expectObject
-
Constructor Details
-
Option
-
-
Method Details
-
expectString
- Specified by:
expectString
in interfaceType
- Throws:
InnerParseError
-
expectBool
- Specified by:
expectBool
in interfaceType
- Throws:
InnerParseError
-
expectOptional
- Specified by:
expectOptional
in interfaceType
- Throws:
InnerParseError
-
isA
-
provenTruthy
Description copied from interface:Type
When used in the context of a condition, the condition can only match if the value was truthful. This means that a certain expression can be a different type, for example,Option<T>
will becomeT
.- Specified by:
provenTruthy
in interfaceType
- Returns:
- The type, given that it has been proven truthy
-
inner
-
hashCode
public int hashCode() -
equals
-
toString
-