Class NSConstantString

    • Constructor Detail

      • NSConstantString

        protected NSConstantString​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSConstantString allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • availableStringEncodings

        @NotNull
        public static @NotNull org.moe.natj.general.ptr.ConstNUIntPtr availableStringEncodings()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultCStringEncoding

        public static long defaultCStringEncoding()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • localizedNameOfStringEncoding

        @NotNull
        public static @NotNull java.lang.String localizedNameOfStringEncoding​(long encoding)
      • localizedStringWithFormat

        @NotNull
        public static @NotNull NSConstantString localizedStringWithFormat​(@NotNull
                                                                          @NotNull java.lang.String format,
                                                                          java.lang.Object... varargs)
      • localizedUserNotificationStringForKeyArguments

        @NotNull
        public static @NotNull java.lang.String localizedUserNotificationStringForKeyArguments​(@NotNull
                                                                                               @NotNull java.lang.String key,
                                                                                               @Nullable
                                                                                               @Nullable NSArray<?> arguments)
      • pathWithComponents

        @NotNull
        public static @NotNull java.lang.String pathWithComponents​(@NotNull
                                                                   @NotNull NSArray<java.lang.String> components)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion

        public static long stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion​(@NotNull
                                                                                                  @NotNull NSData data,
                                                                                                  @Nullable
                                                                                                  @Nullable NSDictionary<java.lang.String,​?> opts,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSString> string,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.BoolPtr usedLossyConversion)
      • stringWithCString

        @Deprecated
        public static NSConstantString stringWithCString​(@NotNull
                                                         @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes)
        Deprecated.
      • stringWithCStringEncoding

        public static NSConstantString stringWithCStringEncoding​(@NotNull
                                                                 @NotNull org.moe.natj.general.ptr.ConstBytePtr cString,
                                                                 long enc)
      • stringWithCStringLength

        @Deprecated
        public static NSConstantString stringWithCStringLength​(@NotNull
                                                               @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes,
                                                               long length)
        Deprecated.
      • stringWithCharactersLength

        public static NSConstantString stringWithCharactersLength​(@NotNull
                                                                  @NotNull org.moe.natj.general.ptr.ConstCharPtr characters,
                                                                  long length)
      • stringWithContentsOfFile

        @Deprecated
        public static NSConstantString stringWithContentsOfFile​(@NotNull
                                                                @NotNull java.lang.String path)
        Deprecated.
      • stringWithContentsOfFileEncodingError

        public static NSConstantString stringWithContentsOfFileEncodingError​(@NotNull
                                                                             @NotNull java.lang.String path,
                                                                             long enc,
                                                                             @Nullable
                                                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfFileUsedEncodingError

        public static NSConstantString stringWithContentsOfFileUsedEncodingError​(@NotNull
                                                                                 @NotNull java.lang.String path,
                                                                                 @Nullable
                                                                                 @Nullable org.moe.natj.general.ptr.NUIntPtr enc,
                                                                                 @Nullable
                                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfURL

        @Deprecated
        public static NSConstantString stringWithContentsOfURL​(@NotNull
                                                               @NotNull NSURL url)
        Deprecated.
      • stringWithContentsOfURLEncodingError

        public static NSConstantString stringWithContentsOfURLEncodingError​(@NotNull
                                                                            @NotNull NSURL url,
                                                                            long enc,
                                                                            @Nullable
                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfURLUsedEncodingError

        public static NSConstantString stringWithContentsOfURLUsedEncodingError​(@NotNull
                                                                                @NotNull NSURL url,
                                                                                @Nullable
                                                                                @Nullable org.moe.natj.general.ptr.NUIntPtr enc,
                                                                                @Nullable
                                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithFormat

        public static NSConstantString stringWithFormat​(@NotNull
                                                        @NotNull java.lang.String format,
                                                        java.lang.Object... varargs)
      • stringWithString

        public static NSConstantString stringWithString​(@NotNull
                                                        @NotNull java.lang.String string)
      • stringWithUTF8String

        public static NSConstantString stringWithUTF8String​(@NotNull
                                                            @NotNull org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • initWithCString

        @Deprecated
        public NSConstantString initWithCString​(@NotNull
                                                @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCString in class NSSimpleCString
      • initWithCStringLength

        @Deprecated
        public NSConstantString initWithCStringLength​(@NotNull
                                                      @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes,
                                                      long length)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCStringLength in class NSSimpleCString
      • initWithCStringNoCopyLengthFreeWhenDone

        @Deprecated
        public NSConstantString initWithCStringNoCopyLengthFreeWhenDone​(@NotNull
                                                                        @NotNull org.moe.natj.general.ptr.BytePtr bytes,
                                                                        long length,
                                                                        boolean freeBuffer)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCStringNoCopyLengthFreeWhenDone in class NSSimpleCString
      • initWithContentsOfFile

        @Deprecated
        public NSConstantString initWithContentsOfFile​(@NotNull
                                                       @NotNull java.lang.String path)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithContentsOfFile:encoding:error: instead
        Overrides:
        initWithContentsOfFile in class NSSimpleCString
      • initWithContentsOfURL

        @Deprecated
        public NSConstantString initWithContentsOfURL​(@NotNull
                                                      @NotNull NSURL url)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithContentsOfURL:encoding:error: instead
        Overrides:
        initWithContentsOfURL in class NSSimpleCString
      • initWithContentsOfURLEncodingError

        public NSConstantString initWithContentsOfURLEncodingError​(@NotNull
                                                                   @NotNull NSURL url,
                                                                   long enc,
                                                                   @Nullable
                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        These use the specified encoding. If nil is returned, the optional error return indicates problem that was encountered (for instance, file system or encoding errors).
        Overrides:
        initWithContentsOfURLEncodingError in class NSSimpleCString
      • initWithContentsOfURLUsedEncodingError

        public NSConstantString initWithContentsOfURLUsedEncodingError​(@NotNull
                                                                       @NotNull NSURL url,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.NUIntPtr enc,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        These try to determine the encoding, and return the encoding which was used. Note that these methods might get "smarter" in subsequent releases of the system, and use additional techniques for recognizing encodings. If nil is returned, the optional error return indicates problem that was encountered (for instance, file system or encoding errors).
        Overrides:
        initWithContentsOfURLUsedEncodingError in class NSSimpleCString
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class NSSimpleCString
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(@NotNull
                                                                                            @NotNull java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        @Nullable
        public static @Nullable NSConstantString objectWithItemProviderDataTypeIdentifierError​(@NotNull
                                                                                               @NotNull NSData data,
                                                                                               @NotNull
                                                                                               @NotNull java.lang.String typeIdentifier,
                                                                                               @Nullable
                                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        @NotNull
        public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        @NotNull
        public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • deferredLocalizedIntentsStringWithFormat

        @NotNull
        public static @NotNull java.lang.String deferredLocalizedIntentsStringWithFormat​(@NotNull
                                                                                         @NotNull java.lang.String format,
                                                                                         java.lang.Object... varargs)
      • deferredLocalizedIntentsStringWithFormatFromTable

        @NotNull
        public static @NotNull java.lang.String deferredLocalizedIntentsStringWithFormatFromTable​(@NotNull
                                                                                                  @NotNull java.lang.String format,
                                                                                                  @Nullable
                                                                                                  @Nullable java.lang.String table,
                                                                                                  java.lang.Object... varargs)
      • deferredLocalizedIntentsStringWithFormatFromTableArguments

        @NotNull
        public static @NotNull java.lang.String deferredLocalizedIntentsStringWithFormatFromTableArguments​(@NotNull
                                                                                                           @NotNull java.lang.String format,
                                                                                                           @Nullable
                                                                                                           @Nullable java.lang.String table,
                                                                                                           org.moe.natj.general.ptr.BytePtr arguments)
      • initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError

        public NSConstantString initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError​(@NotNull
                                                                                                 @NotNull java.lang.String format,
                                                                                                 @NotNull
                                                                                                 @NotNull java.lang.String validFormatSpecifiers,
                                                                                                 @Nullable
                                                                                                 @Nullable java.lang.Object locale,
                                                                                                 org.moe.natj.general.ptr.BytePtr argList,
                                                                                                 @Nullable
                                                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        API-Since: 11.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError in class NSSimpleCString
      • initWithValidatedFormatValidFormatSpecifiersLocaleError

        public NSConstantString initWithValidatedFormatValidFormatSpecifiersLocaleError​(@NotNull
                                                                                        @NotNull java.lang.String format,
                                                                                        @NotNull
                                                                                        @NotNull java.lang.String validFormatSpecifiers,
                                                                                        @Nullable
                                                                                        @Nullable java.lang.Object locale,
                                                                                        @Nullable
                                                                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                        java.lang.Object... varargs)
        Description copied from class: NSString
        API-Since: 16.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersLocaleError in class NSSimpleCString
      • localizedStringWithValidatedFormatValidFormatSpecifiersError

        @Nullable
        public static @Nullable NSConstantString localizedStringWithValidatedFormatValidFormatSpecifiersError​(@NotNull
                                                                                                              @NotNull java.lang.String format,
                                                                                                              @NotNull
                                                                                                              @NotNull java.lang.String validFormatSpecifiers,
                                                                                                              @Nullable
                                                                                                              @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                                              java.lang.Object... varargs)
      • stringWithValidatedFormatValidFormatSpecifiersError

        public static NSConstantString stringWithValidatedFormatValidFormatSpecifiersError​(@NotNull
                                                                                           @NotNull java.lang.String format,
                                                                                           @NotNull
                                                                                           @NotNull java.lang.String validFormatSpecifiers,
                                                                                           @Nullable
                                                                                           @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                           java.lang.Object... varargs)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.