Class NSTextCheckingResult

    • Constructor Detail

      • NSTextCheckingResult

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addressCheckingResultWithRangeComponents

        @NotNull
        public static @NotNull NSTextCheckingResult addressCheckingResultWithRangeComponents​(NSRange range,
                                                                                             @NotNull
                                                                                             @NotNull NSDictionary<java.lang.String,​java.lang.String> components)
      • allocWithZone

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

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • correctionCheckingResultWithRangeReplacementString

        @NotNull
        public static @NotNull NSTextCheckingResult correctionCheckingResultWithRangeReplacementString​(NSRange range,
                                                                                                       @NotNull
                                                                                                       @NotNull java.lang.String replacementString)
      • correctionCheckingResultWithRangeReplacementStringAlternativeStrings

        @NotNull
        public static @NotNull NSTextCheckingResult correctionCheckingResultWithRangeReplacementStringAlternativeStrings​(NSRange range,
                                                                                                                         @NotNull
                                                                                                                         @NotNull java.lang.String replacementString,
                                                                                                                         @NotNull
                                                                                                                         @NotNull NSArray<java.lang.String> alternativeStrings)
        API-Since: 7.0
      • dashCheckingResultWithRangeReplacementString

        @NotNull
        public static @NotNull NSTextCheckingResult dashCheckingResultWithRangeReplacementString​(NSRange range,
                                                                                                 @NotNull
                                                                                                 @NotNull java.lang.String replacementString)
      • dateCheckingResultWithRangeDate

        @NotNull
        public static @NotNull NSTextCheckingResult dateCheckingResultWithRangeDate​(NSRange range,
                                                                                    @NotNull
                                                                                    @NotNull NSDate date)
      • dateCheckingResultWithRangeDateTimeZoneDuration

        @NotNull
        public static @NotNull NSTextCheckingResult dateCheckingResultWithRangeDateTimeZoneDuration​(NSRange range,
                                                                                                    @NotNull
                                                                                                    @NotNull NSDate date,
                                                                                                    @NotNull
                                                                                                    @NotNull NSTimeZone timeZone,
                                                                                                    double duration)
      • debugDescription_static

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

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

        @NotNull
        public static @NotNull NSTextCheckingResult grammarCheckingResultWithRangeDetails​(NSRange range,
                                                                                          @NotNull
                                                                                          @NotNull NSArray<? extends NSDictionary<java.lang.String,​?>> details)
      • 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)
      • linkCheckingResultWithRangeURL

        @NotNull
        public static @NotNull NSTextCheckingResult linkCheckingResultWithRangeURL​(NSRange range,
                                                                                   @NotNull
                                                                                   @NotNull NSURL url)
      • orthographyCheckingResultWithRangeOrthography

        @NotNull
        public static @NotNull NSTextCheckingResult orthographyCheckingResultWithRangeOrthography​(NSRange range,
                                                                                                  @NotNull
                                                                                                  @NotNull NSOrthography orthography)
        Methods for creating instances of the various types of results.
      • phoneNumberCheckingResultWithRangePhoneNumber

        @NotNull
        public static @NotNull NSTextCheckingResult phoneNumberCheckingResultWithRangePhoneNumber​(NSRange range,
                                                                                                  @NotNull
                                                                                                  @NotNull java.lang.String phoneNumber)
        API-Since: 4.0
      • quoteCheckingResultWithRangeReplacementString

        @NotNull
        public static @NotNull NSTextCheckingResult quoteCheckingResultWithRangeReplacementString​(NSRange range,
                                                                                                  @NotNull
                                                                                                  @NotNull java.lang.String replacementString)
      • regularExpressionCheckingResultWithRangesCountRegularExpression

        @NotNull
        public static @NotNull NSTextCheckingResult regularExpressionCheckingResultWithRangesCountRegularExpression​(@NotNull
                                                                                                                    @NotNull org.moe.natj.general.ptr.Ptr<NSRange> ranges,
                                                                                                                    long count,
                                                                                                                    @NotNull
                                                                                                                    @NotNull NSRegularExpression regularExpression)
        API-Since: 4.0
      • replacementCheckingResultWithRangeReplacementString

        @NotNull
        public static @NotNull NSTextCheckingResult replacementCheckingResultWithRangeReplacementString​(NSRange range,
                                                                                                        @NotNull
                                                                                                        @NotNull java.lang.String replacementString)
      • 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)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • transitInformationCheckingResultWithRangeComponents

        @NotNull
        public static @NotNull NSTextCheckingResult transitInformationCheckingResultWithRangeComponents​(NSRange range,
                                                                                                        @NotNull
                                                                                                        @NotNull NSDictionary<java.lang.String,​java.lang.String> components)
        API-Since: 4.0
      • version_static

        public static long version_static()
      • URL

        @Nullable
        public @Nullable NSURL URL()
      • addressComponents

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​java.lang.String> addressComponents()
        Deprecated in favor of components
      • alternativeStrings

        @Nullable
        public @Nullable NSArray<java.lang.String> alternativeStrings()
        API-Since: 7.0
      • components

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​java.lang.String> components()
        API-Since: 4.0
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • date

        @Nullable
        public @Nullable NSDate date()
      • duration

        public double duration()
      • grammarDetails

        @Nullable
        public @Nullable NSArray<? extends NSDictionary<java.lang.String,​?>> grammarDetails()
      • numberOfRanges

        public long numberOfRanges()
        A result must have at least one range, but may optionally have more (for example, to represent regular expression capture groups). The range at index 0 always matches the range property. Additional ranges, if any, will have indexes from 1 to numberOfRanges-1. rangeWithName: can be used with named regular expression capture groups. API-Since: 4.0
      • orthography

        @Nullable
        public @Nullable NSOrthography orthography()
        Optional properties, used with certain types of results.
      • phoneNumber

        @Nullable
        public @Nullable java.lang.String phoneNumber()
        API-Since: 4.0
      • rangeAtIndex

        public NSRange rangeAtIndex​(long idx)
        API-Since: 4.0
      • regularExpression

        @Nullable
        public @Nullable NSRegularExpression regularExpression()
        API-Since: 4.0
      • replacementString

        @Nullable
        public @Nullable java.lang.String replacementString()
      • resultByAdjustingRangesWithOffset

        @NotNull
        public @NotNull NSTextCheckingResult resultByAdjustingRangesWithOffset​(long offset)
        API-Since: 5.0
      • resultType

        public long resultType()
        Mandatory properties, used with all types of results.
      • _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
      • timeZone

        @Nullable
        public @Nullable NSTimeZone timeZone()
      • rangeWithName

        public NSRange rangeWithName​(@NotNull
                                     @NotNull java.lang.String name)
        API-Since: 11.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.