public class NSRegularExpression extends NSObject implements NSCopying, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSRegularExpression.Block_enumerateMatchesInStringOptionsRangeUsingBlock |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSRegularExpression(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static NSRegularExpression |
alloc() |
static NSRegularExpression |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
void |
enumerateMatchesInStringOptionsRangeUsingBlock(java.lang.String string,
long options,
NSRange range,
NSRegularExpression.Block_enumerateMatchesInStringOptionsRangeUsingBlock block)
The fundamental matching method on NSRegularExpression is a block iterator.
|
static java.lang.String |
escapedPatternForString(java.lang.String string)
This class method will produce a string by adding backslash escapes as necessary to the given string, to escape any characters that would otherwise be treated as pattern metacharacters.
|
static java.lang.String |
escapedTemplateForString(java.lang.String string)
This class method will produce a string by adding backslash escapes as necessary to the given string, to escape any characters that would otherwise be treated as template metacharacters.
|
NSTextCheckingResult |
firstMatchInStringOptionsRange(java.lang.String string,
long options,
NSRange range) |
static long |
hash_static() |
NSRegularExpression |
init() |
NSRegularExpression |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSRegularExpression |
initWithPatternOptionsError(java.lang.String pattern,
long options,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSArray<? extends NSTextCheckingResult> |
matchesInStringOptionsRange(java.lang.String string,
long options,
NSRange range) |
static NSRegularExpression |
new_objc() |
long |
numberOfCaptureGroups() |
long |
numberOfMatchesInStringOptionsRange(java.lang.String string,
long options,
NSRange range) |
long |
options() |
java.lang.String |
pattern() |
NSRange |
rangeOfFirstMatchInStringOptionsRange(java.lang.String string,
long options,
NSRange range) |
static NSRegularExpression |
regularExpressionWithPatternOptionsError(java.lang.String pattern,
long options,
org.moe.natj.general.ptr.Ptr<NSError> error)
An instance of NSRegularExpression is created from a regular expression pattern and a set of options.
|
long |
replaceMatchesInStringOptionsRangeWithTemplate(NSMutableString string,
long options,
NSRange range,
java.lang.String templ) |
java.lang.String |
replacementStringForResultInStringOffsetTemplate(NSTextCheckingResult result,
java.lang.String string,
long offset,
java.lang.String templ)
For clients implementing their own replace functionality, this is a method to perform the template substitution for a single result, given the string from which the result was matched, an offset to be added to the location of the result in the string (for example, in case modifications to the string moved the result since it was matched), and a replacement template.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
java.lang.String |
stringByReplacingMatchesInStringOptionsRangeWithTemplate(java.lang.String string,
long options,
NSRange range,
java.lang.String templ)
NSRegularExpression also provides find-and-replace methods for both immutable and mutable strings.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected NSRegularExpression(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static NSRegularExpression alloc()
public static NSRegularExpression allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static java.lang.String escapedPatternForString(java.lang.String string)
public static java.lang.String escapedTemplateForString(java.lang.String string)
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSRegularExpression new_objc()
public static NSRegularExpression regularExpressionWithPatternOptionsError(java.lang.String pattern, long options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void enumerateMatchesInStringOptionsRangeUsingBlock(java.lang.String string,
long options,
NSRange range,
NSRegularExpression.Block_enumerateMatchesInStringOptionsRangeUsingBlock block)
public NSTextCheckingResult firstMatchInStringOptionsRange(java.lang.String string, long options, NSRange range)
public NSRegularExpression init()
public NSRegularExpression initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSRegularExpression initWithPatternOptionsError(java.lang.String pattern, long options, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSArray<? extends NSTextCheckingResult> matchesInStringOptionsRange(java.lang.String string, long options, NSRange range)
public long numberOfCaptureGroups()
public long numberOfMatchesInStringOptionsRange(java.lang.String string,
long options,
NSRange range)
public long options()
public java.lang.String pattern()
public NSRange rangeOfFirstMatchInStringOptionsRange(java.lang.String string, long options, NSRange range)
public long replaceMatchesInStringOptionsRangeWithTemplate(NSMutableString string, long options, NSRange range, java.lang.String templ)
public java.lang.String replacementStringForResultInStringOffsetTemplate(NSTextCheckingResult result, java.lang.String string, long offset, java.lang.String templ)
public java.lang.String stringByReplacingMatchesInStringOptionsRangeWithTemplate(java.lang.String string,
long options,
NSRange range,
java.lang.String templ)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding