Class AnyNull

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.846Z")
    @Stability(Stable)
    public class AnyNull
    extends AnyMatcherWithExample
    Matches null (useful for languages like Java where body: null means no body, but you want to match a eg a json document that has the body "null").
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        AnyNull()
      Matches null (useful for languages like Java where body: null means no body, but you want to match a eg a json document that has the body "null").
      protected AnyNull​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected AnyNull​(software.amazon.jsii.JsiiObjectRef objRef)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object toJSON()
      For non-TypeScript implementations (see AnyMatcher.toJSON).
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
      • Methods inherited from interface software.amazon.jsii.JsiiSerializable

        $jsii$toJson
    • Constructor Detail

      • AnyNull

        protected AnyNull​(software.amazon.jsii.JsiiObjectRef objRef)
      • AnyNull

        protected AnyNull​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • AnyNull

        @Stability(Stable)
        public AnyNull()
        Matches null (useful for languages like Java where body: null means no body, but you want to match a eg a json document that has the body "null").
    • Method Detail

      • toJSON

        @Stability(Stable)
        @NotNull
        public Object toJSON()
        For non-TypeScript implementations (see AnyMatcher.toJSON).
        Overrides:
        toJSON in class AnyMatcherWithExample
        Returns:
        An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}