java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.type.AnyType
All Implemented Interfaces:
Type

public final class AnyType extends Object
The "any" type, which matches all other types.
  • Method Details

    • 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 String toString()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object