Class AnyType
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.evaluation.type.AnyType
-
- All Implemented Interfaces:
Type
public final class AnyType extends java.lang.Object
The "any" type, which matches all other types.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
AnyType
expectAnyType()
int
hashCode()
boolean
isA(Type type)
Returns true if this type matches the target type.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.rulesengine.language.evaluation.type.Type
expectArrayType, expectBooleanType, expectEmptyType, expectEndpointType, expectIntegerType, expectOptionalType, expectRecordType, expectStringType, expectTupleType, provenTruthy
-
-
-
-
Method Detail
-
isA
public boolean isA(Type type)
Description copied from interface:Type
Returns true if this type matches the target type.- Parameters:
type
- the target type to match.- Returns:
- true if the types match, false otherwise.
-
expectAnyType
public AnyType expectAnyType() throws InnerParseError
- Throws:
InnerParseError
-
toString
public java.lang.String toString()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-