Class AnyType
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.evaluation.type.AnyType
-
- All Implemented Interfaces:
Type
public final class AnyType extends java.lang.ObjectThe "any" type, which matches all other types.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AnyTypeexpectAnyType()inthashCode()booleanisA(Type type)Returns true if this type matches the target type.java.lang.StringtoString()-
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:TypeReturns 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-