- Common ways to obtain Executable
private void myMethod () {Executable e =
Parameter parameter;parameter.getDeclaringExecutable()
InjectionPoint injectionPoint;(Executable) injectionPoint.getMember()
ParameterContext parameterContext;parameterContext.getDeclaringExecutable()
- Smart code suggestions by Codota
}
if (constructorOrMethod.isAnnotationPresent(Default.class)) { throw new IllegalArgumentException( '@' + Default.class.getSimpleName() + " is not supported for: " +
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return executable.isAnnotationPresent(annotationType); }
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return executable.isAnnotationPresent(annotationType); }
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return executable.isAnnotationPresent(annotationType); }
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return executable.isAnnotationPresent(annotationType); }
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return executable.isAnnotationPresent(annotationType); }
private <T extends Annotation> Of<T> resolverOf(Class<?> bean, Executable executable, Class<T> metric) { if (executable.isAnnotationPresent(metric)) return elementResolverOf(executable, metric); else return beanResolverOf(executable, metric, bean); }
private <T extends Annotation> Of<T> resolverOf(Class<?> bean, Executable executable, Class<T> metric) { if (executable.isAnnotationPresent(metric)) return elementResolverOf(executable, metric); else return beanResolverOf(executable, metric, bean); }