public class NSCoder extends NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSCoder(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSCoder |
alloc() |
static NSCoder |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSSet<? extends org.moe.natj.objc.Class> |
allowedClasses()
Get the current set of allowed classes.
|
boolean |
allowsKeyedCoding() |
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() |
boolean |
containsValueForKey(java.lang.String key) |
static java.lang.String |
debugDescription_static() |
void |
decodeArrayOfObjCTypeCountAt(java.lang.String itemType,
long count,
org.moe.natj.general.ptr.VoidPtr array) |
NSArray<?> |
decodeArrayOfObjectsOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> classes,
java.lang.String key)
Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection classes (no nested arrays or arrays of dictionaries, etc) from the coder.
|
NSArray<?> |
decodeArrayOfObjectsOfClassForKey(org.moe.natj.objc.Class cls,
java.lang.String key)
Decodes the \c NSArray object for the given \c key, which should be an \c NSArray
|
boolean |
decodeBoolForKey(java.lang.String key) |
org.moe.natj.general.ptr.ConstBytePtr |
decodeBytesForKeyReturnedLength(java.lang.String key,
org.moe.natj.general.ptr.NUIntPtr lengthp)
returned bytes immutable!
|
org.moe.natj.general.ptr.VoidPtr |
decodeBytesWithReturnedLength(org.moe.natj.general.ptr.NUIntPtr lengthp) |
CGAffineTransform |
decodeCGAffineTransformForKey(java.lang.String key) |
CGPoint |
decodeCGPointForKey(java.lang.String key) |
CGRect |
decodeCGRectForKey(java.lang.String key) |
CGSize |
decodeCGSizeForKey(java.lang.String key) |
CGVector |
decodeCGVectorForKey(java.lang.String key) |
CMTime |
decodeCMTimeForKey(java.lang.String key) |
CMTimeMapping |
decodeCMTimeMappingForKey(java.lang.String key) |
CMTimeRange |
decodeCMTimeRangeForKey(java.lang.String key) |
NSData |
decodeDataObject() |
NSDictionary<?,?> |
decodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> keyClasses,
NSSet<? extends org.moe.natj.objc.Class> objectClasses,
java.lang.String key)
Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given coder.
|
NSDictionary<?,?> |
decodeDictionaryWithKeysOfClassObjectsOfClassForKey(org.moe.natj.objc.Class keyCls,
org.moe.natj.objc.Class objectCls,
java.lang.String key)
Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary
|
NSDirectionalEdgeInsets |
decodeDirectionalEdgeInsetsForKey(java.lang.String key) |
double |
decodeDoubleForKey(java.lang.String key) |
float |
decodeFloatForKey(java.lang.String key) |
int |
decodeInt32ForKey(java.lang.String key) |
long |
decodeInt64ForKey(java.lang.String key) |
long |
decodeIntegerForKey(java.lang.String key) |
int |
decodeIntForKey(java.lang.String key) |
java.lang.Object |
decodeObject() |
java.lang.Object |
decodeObjectForKey(java.lang.String key) |
java.lang.Object |
decodeObjectOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> classes,
java.lang.String key)
The class of the object may be any class in the provided NSSet, or a subclass of any class in the set.
|
java.lang.Object |
decodeObjectOfClassForKey(org.moe.natj.objc.Class aClass,
java.lang.String key)
Specify what the expected class of the allocated object is.
|
java.lang.Object |
decodePropertyListForKey(java.lang.String key)
Calls -decodeObjectOfClasses:forKey: with a set allowing only property list types.
|
java.lang.Object |
decodeTopLevelObjectAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> error) |
java.lang.Object |
decodeTopLevelObjectForKeyError(java.lang.String key,
org.moe.natj.general.ptr.Ptr<NSError> error) |
java.lang.Object |
decodeTopLevelObjectOfClassesForKeyError(NSSet<? extends org.moe.natj.objc.Class> classes,
java.lang.String key,
org.moe.natj.general.ptr.Ptr<NSError> error) |
java.lang.Object |
decodeTopLevelObjectOfClassForKeyError(org.moe.natj.objc.Class aClass,
java.lang.String key,
org.moe.natj.general.ptr.Ptr<NSError> error) |
UIEdgeInsets |
decodeUIEdgeInsetsForKey(java.lang.String key) |
UIOffset |
decodeUIOffsetForKey(java.lang.String key) |
void |
decodeValueOfObjCTypeAt(java.lang.String type,
org.moe.natj.general.ptr.VoidPtr data)
This method is unsafe because it could potentially cause buffer overruns.
|
void |
decodeValueOfObjCTypeAtSize(java.lang.String type,
org.moe.natj.general.ptr.VoidPtr data,
long size) |
void |
decodeValuesOfObjCTypes(java.lang.String types,
java.lang.Object... varargs) |
long |
decodingFailurePolicy()
Defines the behavior this NSCoder should take on decode failure (i.e.
|
static java.lang.String |
description_static() |
void |
encodeArrayOfObjCTypeCountAt(java.lang.String type,
long count,
org.moe.natj.general.ptr.ConstVoidPtr array) |
void |
encodeBoolForKey(boolean value,
java.lang.String key) |
void |
encodeBycopyObject(java.lang.Object anObject) |
void |
encodeByrefObject(java.lang.Object anObject) |
void |
encodeBytesLength(org.moe.natj.general.ptr.ConstVoidPtr byteaddr,
long length) |
void |
encodeBytesLengthForKey(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length,
java.lang.String key) |
void |
encodeCGAffineTransformForKey(CGAffineTransform transform,
java.lang.String key) |
void |
encodeCGPointForKey(CGPoint point,
java.lang.String key) |
void |
encodeCGRectForKey(CGRect rect,
java.lang.String key) |
void |
encodeCGSizeForKey(CGSize size,
java.lang.String key) |
void |
encodeCGVectorForKey(CGVector vector,
java.lang.String key) |
void |
encodeCMTimeForKey(CMTime time,
java.lang.String key) |
void |
encodeCMTimeMappingForKey(CMTimeMapping timeMapping,
java.lang.String key) |
void |
encodeCMTimeRangeForKey(CMTimeRange timeRange,
java.lang.String key) |
void |
encodeConditionalObject(java.lang.Object object) |
void |
encodeConditionalObjectForKey(java.lang.Object object,
java.lang.String key) |
void |
encodeDataObject(NSData data) |
void |
encodeDirectionalEdgeInsetsForKey(NSDirectionalEdgeInsets insets,
java.lang.String key) |
void |
encodeDoubleForKey(double value,
java.lang.String key) |
void |
encodeFloatForKey(float value,
java.lang.String key) |
void |
encodeInt32ForKey(int value,
java.lang.String key) |
void |
encodeInt64ForKey(long value,
java.lang.String key) |
void |
encodeIntegerForKey(long value,
java.lang.String key) |
void |
encodeIntForKey(int value,
java.lang.String key) |
void |
encodeObject(java.lang.Object object) |
void |
encodeObjectForKey(java.lang.Object object,
java.lang.String key) |
void |
encodeRootObject(java.lang.Object rootObject) |
void |
encodeUIEdgeInsetsForKey(UIEdgeInsets insets,
java.lang.String key) |
void |
encodeUIOffsetForKey(UIOffset offset,
java.lang.String key) |
void |
encodeValueOfObjCTypeAt(java.lang.String type,
org.moe.natj.general.ptr.ConstVoidPtr addr) |
void |
encodeValuesOfObjCTypes(java.lang.String types,
java.lang.Object... varargs) |
NSError |
error()
The current error (if there is one) for the current TopLevel decode.
|
void |
failWithError(NSError error)
Signals to this coder that the decode has failed.
|
static long |
hash_static() |
NSCoder |
init() |
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) |
static NSCoder |
new_objc() |
boolean |
requiresSecureCoding()
Returns YES if this coder requires secure coding.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
int |
systemVersion() |
static long |
version_static() |
long |
versionForClassName(java.lang.String className) |
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSCoder alloc()
public static NSCoder 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 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 NSCoder new_objc()
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 long version_static()
public NSSet<? extends org.moe.natj.objc.Class> allowedClasses()
public boolean allowsKeyedCoding()
public boolean containsValueForKey(java.lang.String key)
public void decodeArrayOfObjCTypeCountAt(java.lang.String itemType,
long count,
org.moe.natj.general.ptr.VoidPtr array)
public boolean decodeBoolForKey(java.lang.String key)
public org.moe.natj.general.ptr.ConstBytePtr decodeBytesForKeyReturnedLength(java.lang.String key,
org.moe.natj.general.ptr.NUIntPtr lengthp)
public org.moe.natj.general.ptr.VoidPtr decodeBytesWithReturnedLength(org.moe.natj.general.ptr.NUIntPtr lengthp)
public CGAffineTransform decodeCGAffineTransformForKey(java.lang.String key)
public CGPoint decodeCGPointForKey(java.lang.String key)
public CGRect decodeCGRectForKey(java.lang.String key)
public CGSize decodeCGSizeForKey(java.lang.String key)
public CGVector decodeCGVectorForKey(java.lang.String key)
public CMTime decodeCMTimeForKey(java.lang.String key)
public CMTimeMapping decodeCMTimeMappingForKey(java.lang.String key)
public CMTimeRange decodeCMTimeRangeForKey(java.lang.String key)
public NSData decodeDataObject()
public double decodeDoubleForKey(java.lang.String key)
public float decodeFloatForKey(java.lang.String key)
public int decodeInt32ForKey(java.lang.String key)
public long decodeInt64ForKey(java.lang.String key)
public int decodeIntForKey(java.lang.String key)
public long decodeIntegerForKey(java.lang.String key)
public java.lang.Object decodeObject()
public java.lang.Object decodeObjectForKey(java.lang.String key)
public java.lang.Object decodeObjectOfClassForKey(org.moe.natj.objc.Class aClass,
java.lang.String key)
public java.lang.Object decodeObjectOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> classes, java.lang.String key)
public java.lang.Object decodePropertyListForKey(java.lang.String key)
public java.lang.Object decodeTopLevelObjectAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.Object decodeTopLevelObjectForKeyError(java.lang.String key,
org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.Object decodeTopLevelObjectOfClassForKeyError(org.moe.natj.objc.Class aClass,
java.lang.String key,
org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.Object decodeTopLevelObjectOfClassesForKeyError(NSSet<? extends org.moe.natj.objc.Class> classes, java.lang.String key, org.moe.natj.general.ptr.Ptr<NSError> error)
public UIEdgeInsets decodeUIEdgeInsetsForKey(java.lang.String key)
public UIOffset decodeUIOffsetForKey(java.lang.String key)
public void decodeValueOfObjCTypeAt(java.lang.String type,
org.moe.natj.general.ptr.VoidPtr data)
public void decodeValuesOfObjCTypes(java.lang.String types,
java.lang.Object... varargs)
public long decodingFailurePolicy()
The default result of this property is NSDecodingFailurePolicyRaiseException, subclasses can change this to an alternative policy.
public void encodeArrayOfObjCTypeCountAt(java.lang.String type,
long count,
org.moe.natj.general.ptr.ConstVoidPtr array)
public void encodeBoolForKey(boolean value,
java.lang.String key)
public void encodeBycopyObject(java.lang.Object anObject)
public void encodeByrefObject(java.lang.Object anObject)
public void encodeBytesLength(org.moe.natj.general.ptr.ConstVoidPtr byteaddr,
long length)
public void encodeBytesLengthForKey(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length,
java.lang.String key)
public void encodeCGAffineTransformForKey(CGAffineTransform transform, java.lang.String key)
public void encodeCGPointForKey(CGPoint point, java.lang.String key)
public void encodeCGRectForKey(CGRect rect, java.lang.String key)
public void encodeCGSizeForKey(CGSize size, java.lang.String key)
public void encodeCGVectorForKey(CGVector vector, java.lang.String key)
public void encodeCMTimeForKey(CMTime time, java.lang.String key)
public void encodeCMTimeMappingForKey(CMTimeMapping timeMapping, java.lang.String key)
public void encodeCMTimeRangeForKey(CMTimeRange timeRange, java.lang.String key)
public void encodeConditionalObject(java.lang.Object object)
public void encodeConditionalObjectForKey(java.lang.Object object,
java.lang.String key)
public void encodeDataObject(NSData data)
public void encodeDoubleForKey(double value,
java.lang.String key)
public void encodeFloatForKey(float value,
java.lang.String key)
public void encodeInt32ForKey(int value,
java.lang.String key)
public void encodeInt64ForKey(long value,
java.lang.String key)
public void encodeIntForKey(int value,
java.lang.String key)
public void encodeIntegerForKey(long value,
java.lang.String key)
public void encodeObject(java.lang.Object object)
public void encodeObjectForKey(java.lang.Object object,
java.lang.String key)
public void encodeRootObject(java.lang.Object rootObject)
public void encodeUIEdgeInsetsForKey(UIEdgeInsets insets, java.lang.String key)
public void encodeUIOffsetForKey(UIOffset offset, java.lang.String key)
public void encodeValueOfObjCTypeAt(java.lang.String type,
org.moe.natj.general.ptr.ConstVoidPtr addr)
public void encodeValuesOfObjCTypes(java.lang.String types,
java.lang.Object... varargs)
public NSError error()
The meaning of this property changes based on the result of the decodingFailurePolicy property: For NSDecodingFailurePolicyRaiseException, this property will always be nil. For NSDecodingFailurePolicySetErrorAndReturn, this property can be non-nil, and if so, indicates that there was a failure while decoding the archive (specifically its the very first error encountered).
While .error is non-nil, all attempts to decode data from this coder will return a nil/zero-equivalent value.
This error is consumed by a TopLevel decode API (which resets this coder back to a being able to potentially decode data).
public void failWithError(NSError error)
Sets an error on this NSCoder once per TopLevel decode; calling it repeatedly will have no effect until the call stack unwinds to one of the TopLevel decode entry-points.
This method is only meaningful to call for decodes.
Typically, you would want to call this method in your -initWithCoder: implementation when you detect situations like: - lack of secure coding - corruption of your data - domain validation failures
After calling -failWithError: within your -initWithCoder: implementation, you should clean up and return nil as early as possible.
Once an error has been signaled to a decoder, it remains set until it has handed off to the first TopLevel decode invocation above it. For example, consider the following call graph: A -decodeTopLevelObjectForKey:error: B -initWithCoder: C -decodeObjectForKey: D -initWithCoder: E -decodeObjectForKey: F -failWithError:
In this case the error provided in stack-frame F will be returned via the outError in stack-frame A. Furthermore the result object from decodeTopLevelObjectForKey:error: will be nil, regardless of the result of stack-frame B.
NSCoder implementations support two mechanisms for the stack-unwinding from F to A: - forced (NSException based) - particpatory (error based)
The kind of unwinding you get is determined by the decodingFailurePolicy property of this NSCoder (which defaults to NSDecodingFailurePolicyRaiseException to match historical behavior).
public boolean requiresSecureCoding()
public int systemVersion()
public long versionForClassName(java.lang.String className)
public NSDirectionalEdgeInsets decodeDirectionalEdgeInsetsForKey(java.lang.String key)
public void decodeValueOfObjCTypeAtSize(java.lang.String type,
org.moe.natj.general.ptr.VoidPtr data,
long size)
public void encodeDirectionalEdgeInsetsForKey(NSDirectionalEdgeInsets insets, java.lang.String key)
public NSArray<?> decodeArrayOfObjectsOfClassForKey(org.moe.natj.objc.Class cls, java.lang.String key)
Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.
public NSArray<?> decodeArrayOfObjectsOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> classes, java.lang.String key)
Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.
public NSDictionary<?,?> decodeDictionaryWithKeysOfClassObjectsOfClassForKey(org.moe.natj.objc.Class keyCls, org.moe.natj.objc.Class objectCls, java.lang.String key)
Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.
public NSDictionary<?,?> decodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(NSSet<? extends org.moe.natj.objc.Class> keyClasses, NSSet<? extends org.moe.natj.objc.Class> objectClasses, java.lang.String key)
Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.