IterableMethodReflectionExtension<O, R> extension

MethodReflection extension.

on

Methods

toNames() Iterable<String>
Maps to MethodReflection.name.
toReturnTypeReflections() Iterable<TypeReflection?>
Maps to returned TypeReflection.
toReturnTypes() Iterable<Type?>
Maps to returned Type.
whereAnnotated([bool test(List<Object> annotations)?]) Iterable<FunctionReflection<O, R>>
Returns the MethodReflection that matches annotations test. If test is null, will match methods with any annotation.
whereAnnotatedWith(List<Object> annotations) Iterable<FunctionReflection<O, R>>
Returns the MethodReflection that matches annotations.
whereAnnotatedWithAnyOf(List<Object> annotations) Iterable<FunctionReflection<O, R>>
Returns the MethodReflection that matches any annotations.
whereAnnotatedWithType<T>() Iterable<FunctionReflection<O, R>>
Returns the MethodReflection that has an annotation of type T.
whereNoParameters() Iterable<FunctionReflection<O, R>>
Returns the MethodReflection without parameters.
whereNotAnnotated() Iterable<FunctionReflection<O, R>>
Returns the MethodReflection without annotations.
whereNotStatic() Iterable<MethodReflection<O, R>>
Filter by MethodReflection.isStatic.
whereParametersTypes({List<Type>? normalParameters, List<Type>? optionalParameters, Map<String, Type>? namedParameters}) Iterable<FunctionReflection<O, R>>
Returns the MethodReflection that matches the parameters: normalParameters, optionalParameters and namedParameters.
whereStatic() Iterable<StaticMethodReflection<O, R>>
Filter by MethodReflection.isStatic.