Tabnine Logo
MethodInfo.hasAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
hasAnnotation
method
in
org.jboss.jandex.MethodInfo

Best Java code snippets using org.jboss.jandex.MethodInfo.hasAnnotation (Showing top 17 results out of 315)

origin: io.thorntail/config-api-runtime

private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException {
  ArrayList methods = new ArrayList();
  ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName()));
  for (MethodInfo method : clazzInfo.methods()) {
    if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) {
      methods.add(clazz.getMethod(method.name()));
    }
  }
  if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) {
    index = IndexFactory.createIndex(clazz.getSuperclass());
    return __invoke(clazz.getSuperclass(), index, comparator);
  }
  Collections.sort(methods, comparator);
  return methods;
}
origin: org.wildfly.swarm/config-api-runtime

private static List<Method> __invoke(Class<?> clazz, Index index, Comparator<Method> comparator) throws NoSuchMethodException {
  ArrayList methods = new ArrayList();
  ClassInfo clazzInfo = index.getClassByName(DotName.createSimple(clazz.getName()));
  for (MethodInfo method : clazzInfo.methods()) {
    if (method.hasAnnotation(IndexFactory.SUBRESOURCE_META)) {
      methods.add(clazz.getMethod(method.name()));
    }
  }
  if (clazzInfo.superName() != null && clazz.getSuperclass() != java.lang.Object.class) {
    index = IndexFactory.createIndex(clazz.getSuperclass());
    return __invoke(clazz.getSuperclass(), index, comparator);
  }
  Collections.sort(methods, comparator);
  return methods;
}
origin: io.thorntail/config-api-runtime

if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: org.wildfly.swarm/config-api-runtime

if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: io.thorntail/config-api-runtime

for (MethodInfo method : clazz.methods()) {
  if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: org.wildfly.swarm/config-api-runtime

for (MethodInfo method : clazz.methods()) {
  if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: io.thorntail/microprofile-health

if (methodInfo.hasAnnotation(HEALTH) || methodInfo.hasAnnotation(MP_HEALTH)) {
  StringBuilder sb = new StringBuilder();
  boolean isSecure = false;
  if (methodInfo.hasAnnotation(PATH)) {
origin: io.thorntail/monitor

if (methodInfo.hasAnnotation(HEALTH)) {
  StringBuilder sb = new StringBuilder();
  boolean isSecure = false;
  if (methodInfo.hasAnnotation(PATH)) {
origin: org.wildfly.swarm/config-api-runtime

if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: io.thorntail/config-api-runtime

if (method.hasAnnotation(IndexFactory.BINDING_META)) {
origin: weld/core

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: org.jboss.weld.servlet/weld-servlet-shaded

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: org.jboss.weld.se/weld-se-shaded

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: org.jboss.weld.environment/weld-environment-common

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: weld/core

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: weld/core

if (method.hasAnnotation(requiredAnnotationName)) {
  return true;
origin: org.wildfly.swarm/container-runtime

if (each.hasAnnotation(defaultAnno)) {
  if (!each.parameters().isEmpty()) {
    throw new RuntimeException("Method marked @Default must require zero parameters");
org.jboss.jandexMethodInfohasAnnotation

Javadoc

Returns whether or not the annotation instance with the given name occurs on this method, its parameters or its signature

Popular methods of MethodInfo

  • name
  • declaringClass
  • args
  • flags
  • returnType
  • annotation
  • annotations
  • create
  • parameters
  • <init>
  • copyExceptions
  • copyParameters
  • copyExceptions,
  • copyParameters,
  • defaultValue,
  • exceptions,
  • methodInternal,
  • parameterName,
  • receiverType,
  • setAnnotations,
  • setClassInfo

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ImageIO (javax.imageio)
  • JComboBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now