Tabnine Logo
Reflections.buildTypeMap
Code IndexAdd Tabnine to your IDE (free)

How to use
buildTypeMap
method
in
org.jboss.weld.util.reflection.Reflections

Best Java code snippets using org.jboss.weld.util.reflection.Reflections.buildTypeMap (Showing top 6 results out of 315)

origin: weld/core

/**
 * Illegal bean types are ignored except for array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
origin: org.jboss.weld.se/weld-se

/**
 * Illegal bean types are ignored except fo array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
origin: weld/core

/**
 * Illegal bean types are ignored except for array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
origin: weld/core

/**
 * Illegal bean types are ignored except for array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Illegal bean types are ignored except for array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Illegal bean types are ignored except for array and primitive types and unless {@link Typed} is used.
 *
 * @return the set of bean types from an annotated element
 */
public static Set<Type> getTypes(EnhancedAnnotated<?, ?> annotated) {
  // array and primitive types require special treatment
  if (annotated.getJavaClass().isArray() || annotated.getJavaClass().isPrimitive()) {
    return ImmutableSet.<Type>builder().addAll(annotated.getBaseType(), Object.class).build();
  } else {
    if (annotated.isAnnotationPresent(Typed.class)) {
      return ImmutableSet.<Type>builder().addAll(getTypedTypes(Reflections.buildTypeMap(annotated.getTypeClosure()),
          annotated.getJavaClass(), annotated.getAnnotation(Typed.class))).build();
    } else {
      if (annotated.getJavaClass().isInterface()) {
        return getLegalBeanTypes(annotated.getTypeClosure(), annotated, Object.class);
      }
      return getLegalBeanTypes(annotated.getTypeClosure(), annotated);
    }
  }
}
org.jboss.weld.util.reflectionReflectionsbuildTypeMap

Popular methods of Reflections

  • cast
  • getRawType
  • loadClass
    Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.
  • getInterfaceClosure
  • invokeAndUnwrap
    Invokes the method on a given instance passing in given parameters. If the invocation yields Invocat
  • isClassLoadable
  • isTopLevelOrStaticNestedClass
  • isUnboundedTypeVariable
  • isUnboundedWildcard
  • addInterfaces
  • containsWildcards
  • getActualTypeArguments
    Gets the actual type arguments of a Type
  • containsWildcards,
  • getActualTypeArguments,
  • getBound,
  • getNesting,
  • getNonPrivateNonStaticFinalMethod,
  • getPropertyName,
  • isAbstract,
  • isArrayType,
  • isCacheable

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • BoxLayout (javax.swing)
  • Top Vim plugins
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