Class StringSuffix

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

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.847Z")
    @Stability(Stable)
    public class StringSuffix
    extends AnyMatcher
    Matches any string that begins with a matchable prefix, and ends with a constant suffix.

    At match time, the actual string is checked for the expected constant suffix, and then the beginning of the string is passed to the prefix matcher. The prefix matcher must be expecting a string. See also StringPrefix

    • Nested Class Summary

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

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

      Constructors 
      Modifier Constructor Description
        StringSuffix​(Object prefix, String suffix)  
      protected StringSuffix​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected StringSuffix​(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

      • StringSuffix

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

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

        @Stability(Stable)
        public StringSuffix​(@NotNull
                            Object prefix,
                            @NotNull
                            String suffix)
        Parameters:
        prefix -
        • A string or matcher to match against the prefix.
        This parameter is required.
        suffix -
        • The suffix for the matched string.
        This parameter is required.
    • Method Detail

      • toJSON

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