Beispiel #1
0
 public NSObject getAttribute(
     CMTextMarkupAttribute attribute, @MachineSizedUInt long location, NSRange range) {
   if (attribute == null) {
     throw new NullPointerException("attribute");
   }
   return getAttribute(attribute.value().as(NSString.class), location, range);
 }
Beispiel #2
0
 /** @since Available in iOS 4.0 and later. */
 public void enumerateAttribute(
     CMTextMarkupAttribute attribute,
     @ByVal NSRange enumerationRange,
     NSAttributedStringEnumerationOptions opts,
     final VoidBlock3<NSObject, NSRange, BooleanPtr> block) {
   if (attribute == null) {
     throw new NullPointerException("attribute");
   }
   enumerateAttribute(attribute.value().as(NSString.class), enumerationRange, opts, block);
 }