Tabnine Logo
EnhancedAnnotatedType.getEnhancedFields
Code IndexAdd Tabnine to your IDE (free)

How to use
getEnhancedFields
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType.getEnhancedFields (Showing top 20 results out of 315)

origin: org.jboss.weld.se/weld-se

public Collection<EnhancedAnnotatedField<?, ? super T>> getEnhancedFields() {
  return delegate().getEnhancedFields();
}
origin: weld/core

public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  return delegate().getEnhancedFields(annotationType);
}
origin: weld/core

public Collection<EnhancedAnnotatedField<?, ? super T>> getEnhancedFields() {
  return delegate().getEnhancedFields();
}
origin: org.jboss.weld.se/weld-se

public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  return delegate().getEnhancedFields(annotationType);
}
origin: weld/core

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: weld/core

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: weld/core

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: org.jboss.weld.se/weld-se

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Gets the abstracted field annotated with a specific annotation type
 * <p/>
 * If the fields map is null, initialize it first
 *
 * @param annotationType The annotation type to match
 * @return A set of matching abstracted fields, null if none are found.
 */
@Override
public Collection<EnhancedAnnotatedField<?, ?>> getEnhancedFields(Class<? extends Annotation> annotationType) {
  if (annotatedFields == null) {
    // Build collection from class hierarchy
    ArrayList<EnhancedAnnotatedField<?, ?>> aggregatedFields = new ArrayList<EnhancedAnnotatedField<?, ?>>(this.declaredAnnotatedFields.get(annotationType));
    if ((superclass != null) && (superclass.getJavaClass() != Object.class)) {
      aggregatedFields.addAll(superclass.getEnhancedFields(annotationType));
    }
    return Collections.unmodifiableCollection(aggregatedFields);
  } else {
    // Return results collected directly from AnnotatedType
    return annotatedFields.get(annotationType);
  }
}
origin: org.jboss.weld.se/weld-se

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: weld/core

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: weld/core

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: weld/core

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void checkBeanImplementation() {
  super.checkBeanImplementation();
  if (isNormalScoped()) {
    for (EnhancedAnnotatedField<?, ?> field : getEnhancedAnnotated().getEnhancedFields()) {
      if (field.isPublic() && !field.isStatic()) {
        throw BeanLogger.LOG.publicFieldOnNormalScopedBeanNotAllowed(field);
      }
    }
  }
}
origin: weld/core

public List<Set<FieldInjectionPoint<?, ?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type,
    BeanManagerImpl manager) {
  List<Set<FieldInjectionPoint<?, ?>>> injectableFieldsList = new ArrayList<Set<FieldInjectionPoint<?, ?>>>();
  if (type.slim() instanceof UnbackedAnnotatedType<?>) {
    // external AnnotatedTypes require special treatment
    Collection<EnhancedAnnotatedField<?, ?>> allFields = type.getEnhancedFields(Inject.class);
    for (Class<?> clazz = type.getJavaClass(); clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> field : allFields) {
        if (!field.isStatic() && field.getJavaMember().getDeclaringClass().equals(clazz)) {
          addFieldInjectionPoint(field, fields, declaringBean, type.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  } else {
    for (EnhancedAnnotatedType<?> t = type; t != null && !t.getJavaClass().equals(Object.class); t = t
        .getEnhancedSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> annotatedField : t.getDeclaredEnhancedFields(Inject.class)) {
        if (!annotatedField.isStatic()) {
          addFieldInjectionPoint(annotatedField, fields, declaringBean, t.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  }
  return ImmutableList.copyOf(injectableFieldsList);
}
origin: weld/core

public List<Set<FieldInjectionPoint<?, ?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type,
    BeanManagerImpl manager) {
  List<Set<FieldInjectionPoint<?, ?>>> injectableFieldsList = new ArrayList<Set<FieldInjectionPoint<?, ?>>>();
  if (type.slim() instanceof UnbackedAnnotatedType<?>) {
    // external AnnotatedTypes require special treatment
    Collection<EnhancedAnnotatedField<?, ?>> allFields = type.getEnhancedFields(Inject.class);
    for (Class<?> clazz = type.getJavaClass(); clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> field : allFields) {
        if (!field.isStatic() && field.getJavaMember().getDeclaringClass().equals(clazz)) {
          addFieldInjectionPoint(field, fields, declaringBean, type.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  } else {
    for (EnhancedAnnotatedType<?> t = type; t != null && !t.getJavaClass().equals(Object.class); t = t
        .getEnhancedSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> annotatedField : t.getDeclaredEnhancedFields(Inject.class)) {
        if (!annotatedField.isStatic()) {
          addFieldInjectionPoint(annotatedField, fields, declaringBean, t.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  }
  return ImmutableList.copyOf(injectableFieldsList);
}
origin: org.jboss.weld.se/weld-se

public List<Set<FieldInjectionPoint<?, ?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type,
    BeanManagerImpl manager) {
  List<Set<FieldInjectionPoint<?, ?>>> injectableFieldsList = new ArrayList<Set<FieldInjectionPoint<?, ?>>>();
  if (type.slim() instanceof UnbackedAnnotatedType<?>) {
    // external AnnotatedTypes require special treatment
    Collection<EnhancedAnnotatedField<?, ?>> allFields = type.getEnhancedFields(Inject.class);
    for (Class<?> clazz = type.getJavaClass(); clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> field : allFields) {
        if (!field.isStatic() && field.getJavaMember().getDeclaringClass().equals(clazz)) {
          addFieldInjectionPoint(field, fields, declaringBean, type.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  } else {
    for (EnhancedAnnotatedType<?> t = type; t != null && !t.getJavaClass().equals(Object.class); t = t
        .getEnhancedSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> annotatedField : t.getDeclaredEnhancedFields(Inject.class)) {
        if (!annotatedField.isStatic()) {
          addFieldInjectionPoint(annotatedField, fields, declaringBean, t.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  }
  return immutableListView(injectableFieldsList);
}
origin: weld/core

public List<Set<FieldInjectionPoint<?, ?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type,
    BeanManagerImpl manager) {
  List<Set<FieldInjectionPoint<?, ?>>> injectableFieldsList = new ArrayList<Set<FieldInjectionPoint<?, ?>>>();
  if (type.slim() instanceof UnbackedAnnotatedType<?>) {
    // external AnnotatedTypes require special treatment
    Collection<EnhancedAnnotatedField<?, ?>> allFields = type.getEnhancedFields(Inject.class);
    for (Class<?> clazz = type.getJavaClass(); clazz != null && clazz != Object.class; clazz = clazz.getSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> field : allFields) {
        if (!field.isStatic() && field.getJavaMember().getDeclaringClass().equals(clazz)) {
          addFieldInjectionPoint(field, fields, declaringBean, type.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  } else {
    for (EnhancedAnnotatedType<?> t = type; t != null && !t.getJavaClass().equals(Object.class); t = t
        .getEnhancedSuperclass()) {
      ImmutableSet.Builder<FieldInjectionPoint<?, ?>> fields = ImmutableSet.builder();
      for (EnhancedAnnotatedField<?, ?> annotatedField : t.getDeclaredEnhancedFields(Inject.class)) {
        if (!annotatedField.isStatic()) {
          addFieldInjectionPoint(annotatedField, fields, declaringBean, t.getJavaClass(), manager);
        }
      }
      injectableFieldsList.add(0, fields.build());
    }
  }
  return ImmutableList.copyOf(injectableFieldsList);
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedTypegetEnhancedFields

Javadoc

Gets all fields on the type

Popular methods of EnhancedAnnotatedType

  • getDeclaredEnhancedConstructor
    Get the constructor which matches the argument list provided
  • getJavaClass
  • getEnhancedMethod
    Get a method by name
  • getEnhancedMethods
    Gets all methods annotated with annotationType including those declared on a superclass of #getJavaC
  • getNoArgsEnhancedConstructor
    Gets the no-args constructor
  • isAbstract
  • isDiscovered
  • slim
    Returns a lightweight implementation of AnnotatedType with minimal memory footprint.
  • getConstructors
  • getDeclaredEnhancedFields
    Gets all fields which are annotated with the given annotation type on this class only.
  • getDeclaredEnhancedMethods
    Gets all methods annotated with annotationType
  • getDeclaredEnhancedMethodsWithAnnotatedParameters
    Gets declared with parameters annotated with annotationType
  • getDeclaredEnhancedMethods,
  • getDeclaredEnhancedMethodsWithAnnotatedParameters,
  • getDeclaredMetaAnnotations,
  • getEnhancedConstructors,
  • getEnhancedMethodsWithAnnotatedParameters,
  • getEnhancedSuperclass,
  • getFields,
  • getMethods,
  • getSimpleName

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Option (scala)
  • 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