Example #1
0
 public static AnnotationData GetPropertyIntDef(this AndroidAnnotationsSupport api, string managedTypeName, string managedPropertyName)
 {
     if (managedPropertyName == null)
     {
         throw new ArgumentNullException(nameof(managedPropertyName));
     }
     return(api.GetAnnotations(managedTypeName, managedPropertyName).Data().FirstOrDefault(is_intdef));
 }
Example #2
0
 public static AnnotationData GetMethodParameterIntDef(this AndroidAnnotationsSupport api, string managedTypeName, string managedMethodName, string [] managedParameterTypes, int parameterIndex)
 {
     if (managedMethodName == null)
     {
         throw new ArgumentNullException(nameof(managedMethodName));
     }
     if (managedParameterTypes == null)
     {
         throw new ArgumentNullException(nameof(managedParameterTypes));
     }
     return(api.GetAnnotations(managedTypeName, managedMethodName, managedParameterTypes, parameterIndex).Data().FirstOrDefault(is_intdef));
 }
Example #3
0
 public static IEnumerable <AnnotatedItem> GetAnnotations(this AndroidAnnotationsSupport api, string managedTypeName, string managedMethodName, string [] parameterTypes, int parameterIndex)
 {
     return(api.GetAnnotations(new ManagedApiQuery {
         TypeName = managedTypeName, MemberName = managedMethodName, Arguments = parameterTypes, ParameterIndex = parameterIndex
     }));
 }
Example #4
0
 public static IEnumerable <AnnotatedItem> GetAnnotations(this AndroidAnnotationsSupport api, string managedTypeName, string managedMemberName)
 {
     return(api.GetAnnotations(new ManagedApiQuery {
         TypeName = managedTypeName, MemberName = managedMemberName
     }));
 }
Example #5
0
 public static AnnotationData GetIntDef(this AndroidAnnotationsSupport api, ManagedApiQuery query)
 {
     return(api.GetAnnotations(query).Data().FirstOrDefault(is_intdef));
 }