Tabnine Logo
AnnotationValue.asNestedArray
Code IndexAdd Tabnine to your IDE (free)

How to use
asNestedArray
method
in
org.jboss.jandex.AnnotationValue

Best Java code snippets using org.jboss.jandex.AnnotationValue.asNestedArray (Showing top 20 results out of 315)

origin: wildfly/wildfly

protected List<TargetAnnotation> fromMultiAnnotation(AnnotationInstance multiAnnotationInstance) {
  List<TargetAnnotation> instances = new ArrayList<TargetAnnotation>();
  final AnnotationInstance[] values = multiAnnotationInstance.value().asNestedArray();
  for(AnnotationInstance value : values) {
    instances.add(new TargetAnnotation(value, multiAnnotationInstance.target()));
  }
  return instances;
}
origin: wildfly/wildfly

private Properties getActivationConfigProperties(final AnnotationInstance messageBeanAnnotation, PropertyReplacer propertyReplacer) {
  final Properties props = new Properties();
  final AnnotationValue activationConfig = messageBeanAnnotation.value("activationConfig");
  if (activationConfig == null)
    return props;
  for (final AnnotationInstance propAnnotation : activationConfig.asNestedArray()) {
    String propertyName = propAnnotation.value("propertyName").asString();
    String propertyValue = propAnnotation.value("propertyValue").asString();
    props.put(propertyReplacer.replaceProperties(propertyName), propertyReplacer.replaceProperties(propertyValue));
  }
  return props;
}
origin: wildfly/wildfly

if (collectionAnnotationName != null) {
  for (AnnotationInstance annotationInstance : index.getAnnotations(collectionAnnotationName)) {
    final AnnotationInstance[] nestedAnnotationInstances = annotationInstance.value().asNestedArray();
    if (nestedAnnotationInstances != null && nestedAnnotationInstances.length > 0) {
      final List<BindingConfiguration> bindingConfigurations = getAnnotatedClassBindingConfigurations(moduleDescription, annotationInstance);
origin: wildfly/wildfly

if (annotationTarget instanceof ClassInfo) {
  final AnnotationValue annotationValue = annotation.value();
  final AnnotationInstance[] ejbAnnotations = annotationValue.asNestedArray();
  for (AnnotationInstance ejbAnnotation : ejbAnnotations) {
    final EJBResourceWrapper annotationWrapper = new EJBResourceWrapper(ejbAnnotation, propertyReplacer);
origin: wildfly/wildfly

  AnnotationInstance[] initParamsAnnotations = initParamsValue.asNestedArray();
  if (initParamsAnnotations != null && initParamsAnnotations.length > 0) {
    List<ParamValueMetaData> initParams = new ArrayList<ParamValueMetaData>();
  AnnotationInstance[] initParamsAnnotations = initParamsValue.asNestedArray();
  if (initParamsAnnotations != null && initParamsAnnotations.length > 0) {
    List<ParamValueMetaData> initParams = new ArrayList<ParamValueMetaData>();
AnnotationValue httpMethodConstraintsValue = annotation.value("httpMethodConstraints");
if (httpMethodConstraintsValue != null) {
  AnnotationInstance[] httpMethodConstraints = httpMethodConstraintsValue.asNestedArray();
  if (httpMethodConstraints.length > 0) {
    List<HttpMethodConstraintMetaData> methodConstraints = new ArrayList<HttpMethodConstraintMetaData>();
origin: wildfly/wildfly

if (annotationTarget instanceof ClassInfo) {
  final ClassInfo classInfo = (ClassInfo) annotationTarget;
  final AnnotationInstance[] values = outerAnnotation.value("value").asNestedArray();
  for (AnnotationInstance annotation : values) {
    final AnnotationValue nameValue = annotation.value("name");
origin: org.jboss.as/jboss-as-connector

/**
 * Returns the nested {@link DataSourceDefinition} annotations out of the outer {@link DataSourceDefinitions} annotation
 *
 * @param datasourceDefinitions The outer {@link DataSourceDefinitions} annotation
 * @return
 */
private List<AnnotationInstance> getNestedDataSourceAnnotations(AnnotationInstance datasourceDefinitions) {
  if (datasourceDefinitions == null) {
    return Collections.emptyList();
  }
  AnnotationInstance[] nested = datasourceDefinitions.value().asNestedArray();
  return Arrays.asList(nested);
}
origin: org.wildfly/wildfly-ee

protected List<TargetAnnotation> fromMultiAnnotation(AnnotationInstance multiAnnotationInstance) {
  List<TargetAnnotation> instances = new ArrayList<TargetAnnotation>();
  final AnnotationInstance[] values = multiAnnotationInstance.value().asNestedArray();
  for(AnnotationInstance value : values) {
    instances.add(new TargetAnnotation(value, multiAnnotationInstance.target()));
  }
  return instances;
}
origin: org.jboss.eap/wildfly-ee

protected List<TargetAnnotation> fromMultiAnnotation(AnnotationInstance multiAnnotationInstance) {
  List<TargetAnnotation> instances = new ArrayList<TargetAnnotation>();
  final AnnotationInstance[] values = multiAnnotationInstance.value().asNestedArray();
  for(AnnotationInstance value : values) {
    instances.add(new TargetAnnotation(value, multiAnnotationInstance.target()));
  }
  return instances;
}
origin: org.hibernate/com.springsource.org.hibernate

  @Override
  public boolean process(AnnotationInstance annotationInstance) {
    AnnotationValue value = annotationInstance.value();
    AnnotationInstance[] indexedAttributeOverridesValues = value.asNestedArray();
    for ( AnnotationInstance ai : indexedAttributeOverridesValues ) {
      child.process( ai );
    }
    return true;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  @Override
  public boolean process(AnnotationInstance annotationInstance) {
    AnnotationValue value = annotationInstance.value();
    AnnotationInstance[] indexedAttributeOverridesValues = value.asNestedArray();
    for ( AnnotationInstance ai : indexedAttributeOverridesValues ) {
      child.process( ai );
    }
    return true;
  }
}
origin: org.jboss.as/jboss-as-ee

protected List<TargetAnnotation> fromMultiAnnotation(AnnotationInstance multiAnnotationInstance) {
  List<TargetAnnotation> instances = new ArrayList<TargetAnnotation>();
  final AnnotationInstance[] values = multiAnnotationInstance.value().asNestedArray();
  for(AnnotationInstance value : values) {
    instances.add(new TargetAnnotation(value, multiAnnotationInstance.target()));
  }
  return instances;
}
origin: io.thorntail/topology

@Override
public void process() {
  Collection<AnnotationInstance> annos = index.getAnnotations(DotName.createSimple(Advertise.class.getName()));
  Collection<AnnotationInstance> repeatingAnnos = index.getAnnotations(DotName.createSimple(Advertises.class.getName()));
  Stream.concat(annos.stream(),
         repeatingAnnos
             .stream()
             .flatMap(anno -> Stream.of(anno.value().asNestedArray())))
      .forEach(anno -> advertise(archive, anno));
}
origin: org.hibernate/com.springsource.org.hibernate.core

private List<AnnotationInstance> findAssociationOverrides() {
  List<AnnotationInstance> associationOverrideList = new ArrayList<AnnotationInstance>();
  AnnotationInstance associationOverrideAnnotation = JandexHelper.getSingleAnnotation(
      classInfo,
      JPADotNames.ASSOCIATION_OVERRIDE
  );
  if ( associationOverrideAnnotation != null ) {
    associationOverrideList.add( associationOverrideAnnotation );
  }
  AnnotationInstance associationOverridesAnnotation = JandexHelper.getSingleAnnotation(
      classInfo,
      JPADotNames.ASSOCIATION_OVERRIDES
  );
  if ( associationOverrideAnnotation != null ) {
    AnnotationInstance[] attributeOverride = associationOverridesAnnotation.value().asNestedArray();
    Collections.addAll( associationOverrideList, attributeOverride );
  }
  return associationOverrideList;
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
protected Map<String, String> resolveHibernateTypeParameters(AnnotationInstance typeAnnotation) {
  HashMap<String, String> typeParameters = new HashMap<String, String>();
  AnnotationValue parameterAnnotationValue = typeAnnotation.value( "parameters" );
  if ( parameterAnnotationValue != null ) {
    AnnotationInstance[] parameterAnnotations = parameterAnnotationValue.asNestedArray();
    for ( AnnotationInstance parameterAnnotationInstance : parameterAnnotations ) {
      typeParameters.put(
          JandexHelper.getValue( parameterAnnotationInstance, "name", String.class ),
          JandexHelper.getValue( parameterAnnotationInstance, "value", String.class )
      );
    }
  }
  return typeParameters;
}
origin: org.hibernate/com.springsource.org.hibernate

@Override
protected Map<String, String> resolveHibernateTypeParameters(AnnotationInstance typeAnnotation) {
  HashMap<String, String> typeParameters = new HashMap<String, String>();
  AnnotationValue parameterAnnotationValue = typeAnnotation.value( "parameters" );
  if ( parameterAnnotationValue != null ) {
    AnnotationInstance[] parameterAnnotations = parameterAnnotationValue.asNestedArray();
    for ( AnnotationInstance parameterAnnotationInstance : parameterAnnotations ) {
      typeParameters.put(
          JandexHelper.getValue( parameterAnnotationInstance, "name", String.class ),
          JandexHelper.getValue( parameterAnnotationInstance, "value", String.class )
      );
    }
  }
  return typeParameters;
}
origin: org.hibernate/com.springsource.org.hibernate

private List<AnnotationInstance> findAssociationOverrides() {
  List<AnnotationInstance> associationOverrideList = new ArrayList<AnnotationInstance>();
  AnnotationInstance associationOverrideAnnotation = JandexHelper.getSingleAnnotation(
      classInfo,
      JPADotNames.ASSOCIATION_OVERRIDE
  );
  if ( associationOverrideAnnotation != null ) {
    associationOverrideList.add( associationOverrideAnnotation );
  }
  AnnotationInstance associationOverridesAnnotation = JandexHelper.getSingleAnnotation(
      classInfo,
      JPADotNames.ASSOCIATION_OVERRIDES
  );
  if ( associationOverrideAnnotation != null ) {
    AnnotationInstance[] attributeOverride = associationOverridesAnnotation.value().asNestedArray();
    Collections.addAll( associationOverrideList, attributeOverride );
  }
  return associationOverrideList;
}
origin: org.jboss.as/jboss-as-ejb3

private Properties getActivationConfigProperties(final AnnotationInstance messageBeanAnnotation) {
  final Properties props = new Properties();
  final AnnotationValue activationConfig = messageBeanAnnotation.value("activationConfig");
  if (activationConfig == null)
    return props;
  for (final AnnotationInstance propAnnotation : activationConfig.asNestedArray()) {
    props.put(propAnnotation.value("propertyName").asString(), propAnnotation.value("propertyValue").asString());
  }
  return props;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void createUniqueConstraints(AnnotationInstance tableAnnotation, String tableName) {
  AnnotationValue value = tableAnnotation.value( "uniqueConstraints" );
  if ( value == null ) {
    return;
  }
  AnnotationInstance[] uniqueConstraints = value.asNestedArray();
  for ( AnnotationInstance unique : uniqueConstraints ) {
    String name = unique.value( "name" ) == null ? null : unique.value( "name" ).asString();
    String[] columnNames = unique.value( "columnNames" ).asStringArray();
    UniqueConstraintSourceImpl uniqueConstraintSource =
        new UniqueConstraintSourceImpl(
            name, tableName, Arrays.asList( columnNames )
        );
    constraintSources.add( uniqueConstraintSource );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void createUniqueConstraints(AnnotationInstance tableAnnotation, String tableName) {
  AnnotationValue value = tableAnnotation.value( "uniqueConstraints" );
  if ( value == null ) {
    return;
  }
  AnnotationInstance[] uniqueConstraints = value.asNestedArray();
  for ( AnnotationInstance unique : uniqueConstraints ) {
    String name = unique.value( "name" ) == null ? null : unique.value( "name" ).asString();
    String[] columnNames = unique.value( "columnNames" ).asStringArray();
    UniqueConstraintSourceImpl uniqueConstraintSource =
        new UniqueConstraintSourceImpl(
            name, tableName, Arrays.asList( columnNames )
        );
    constraintSources.add( uniqueConstraintSource );
  }
}
org.jboss.jandexAnnotationValueasNestedArray

Javadoc

Returns an array of nested annotations representing the underlying annotation array value. Each element has the same behavior as @{link #asNested()

Popular methods of AnnotationValue

  • asString
  • asBoolean
  • asStringArray
  • asClass
  • asInt
  • value
  • asEnum
  • asClassArray
  • asLong
  • asEnumArray
  • asNested
  • toString
  • asNested,
  • toString,
  • createArrayValue,
  • createBooleanValue,
  • createClassValue,
  • createEnumValue,
  • createIntegerValue,
  • createNestedAnnotationValue,
  • createStringValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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