Codota Logo
AnnotatedTypeValidator.checkMembersBelongToHierarchy
Code IndexAdd Codota to your IDE (free)

How to use
checkMembersBelongToHierarchy
method
in
org.jboss.weld.annotated.AnnotatedTypeValidator

Best Java code snippets using org.jboss.weld.annotated.AnnotatedTypeValidator.checkMembersBelongToHierarchy (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.se/weld-se

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
origin: weld/core

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
origin: weld/core

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
origin: weld/core

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Checks if the given AnnotatedType is sensible, otherwise provides warnings.
 */
private static void checkSensibility(AnnotatedType<?> type) {
  // check if it has a constructor
  if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) {
    MetadataLogger.LOG.noConstructor(type);
  }
  Set<Class<?>> hierarchy = new HashSet<Class<?>>();
  for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) {
    hierarchy.add(clazz);
    hierarchy.addAll(Reflections.getInterfaceClosure(clazz));
  }
  checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type);
  checkMembersBelongToHierarchy(type.getFields(), hierarchy, type);
}
org.jboss.weld.annotatedAnnotatedTypeValidatorcheckMembersBelongToHierarchy

Popular methods of AnnotatedTypeValidator

  • checkNotNull
  • checkSensibility
    Checks if the given AnnotatedType is sensible, otherwise provides warnings.
  • validateAnnotated
  • validateAnnotatedMember
  • validateAnnotatedParameter
  • validateAnnotatedType

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now