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

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

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

origin: org.hibernate/com.springsource.org.hibernate.core

private AnnotationInstance parserSqlResultSetMappings(Collection<JaxbSqlResultSetMapping> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbSqlResultSetMapping> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserSqlResultSetMapping( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      SQL_RESULT_SET_MAPPINGS, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate

private AnnotationInstance parserSqlResultSetMappings(Collection<JaxbSqlResultSetMapping> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbSqlResultSetMapping> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserSqlResultSetMapping( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      SQL_RESULT_SET_MAPPINGS, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private AnnotationInstance parserNamedNativeQueries(Collection<JaxbNamedNativeQuery> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbNamedNativeQuery> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserNamedNativeQuery( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      NAMED_NATIVE_QUERIES, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate

private AnnotationInstance parserNamedNativeQueries(Collection<JaxbNamedNativeQuery> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbNamedNativeQuery> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserNamedNativeQuery( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      NAMED_NATIVE_QUERIES, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate

private AnnotationInstance parserNamedQueries(Collection<JaxbNamedQuery> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbNamedQuery> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserNamedQuery( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      NAMED_QUERIES, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private AnnotationInstance parserNamedQueries(Collection<JaxbNamedQuery> namedQueries) {
  AnnotationValue[] values = new AnnotationValue[namedQueries.size()];
  int i = 0;
  for ( Iterator<JaxbNamedQuery> iterator = namedQueries.iterator(); iterator.hasNext(); ) {
    AnnotationInstance annotationInstance = parserNamedQuery( iterator.next() );
    values[i++] = MockHelper.nestedAnnotationValue(
        "", annotationInstance
    );
  }
  return create(
      NAMED_QUERIES, null,
      new AnnotationValue[] { AnnotationValue.createArrayValue( "values", values ) }
  );
}
origin: org.hibernate/com.springsource.org.hibernate

static void classArrayValue(String name, List<String> classNameList, List<AnnotationValue> list, ServiceRegistry serviceRegistry) {
  if ( isNotEmpty( classNameList ) ) {
    List<AnnotationValue> clazzValueList = new ArrayList<AnnotationValue>( classNameList.size() );
    for ( String clazz : classNameList ) {
      addToCollectionIfNotNull( clazzValueList, classValue( "", clazz, serviceRegistry ) );
    }
    list.add(
        AnnotationValue.createArrayValue(
            name, toArray( clazzValueList )
        )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

static void enumArrayValue(String name, DotName typeName, List<Enum> valueList, List<AnnotationValue> list) {
  if ( isNotEmpty( valueList ) ) {
    List<AnnotationValue> enumValueList = new ArrayList<AnnotationValue>( valueList.size() );
    for ( Enum e : valueList ) {
      addToCollectionIfNotNull( enumValueList, enumValue( "", typeName, e ) );
    }
    list.add(
        AnnotationValue.createArrayValue(
            name, toArray( enumValueList )
        )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

static void classArrayValue(String name, List<String> classNameList, List<AnnotationValue> list, ServiceRegistry serviceRegistry) {
  if ( isNotEmpty( classNameList ) ) {
    List<AnnotationValue> clazzValueList = new ArrayList<AnnotationValue>( classNameList.size() );
    for ( String clazz : classNameList ) {
      addToCollectionIfNotNull( clazzValueList, classValue( "", clazz, serviceRegistry ) );
    }
    list.add(
        AnnotationValue.createArrayValue(
            name, toArray( clazzValueList )
        )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

static void enumArrayValue(String name, DotName typeName, List<Enum> valueList, List<AnnotationValue> list) {
  if ( isNotEmpty( valueList ) ) {
    List<AnnotationValue> enumValueList = new ArrayList<AnnotationValue>( valueList.size() );
    for ( Enum e : valueList ) {
      addToCollectionIfNotNull( enumValueList, enumValue( "", typeName, e ) );
    }
    list.add(
        AnnotationValue.createArrayValue(
            name, toArray( enumValueList )
        )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void nestedEntityResultList(String name, List<JaxbEntityResult> entityResults, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( entityResults ) ) {
    AnnotationValue[] values = new AnnotationValue[entityResults.size()];
    for ( int i = 0; i < entityResults.size(); i++ ) {
      AnnotationInstance annotationInstance = parserEntityResult( entityResults.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void nestedQueryHintList(String name, List<JaxbQueryHint> constraints, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( constraints ) ) {
    AnnotationValue[] values = new AnnotationValue[constraints.size()];
    for ( int i = 0; i < constraints.size(); i++ ) {
      AnnotationInstance annotationInstance = parserQueryHint( constraints.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void nestedColumnResultList(String name, List<JaxbColumnResult> columnResults, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( columnResults ) ) {
    AnnotationValue[] values = new AnnotationValue[columnResults.size()];
    for ( int i = 0; i < columnResults.size(); i++ ) {
      AnnotationInstance annotationInstance = parserColumnResult( columnResults.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

protected void nestedUniqueConstraintList(String name, List<JaxbUniqueConstraint> constraints, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( constraints ) ) {
    AnnotationValue[] values = new AnnotationValue[constraints.size()];
    for ( int i = 0; i < constraints.size(); i++ ) {
      AnnotationInstance annotationInstance = parserUniqueConstraint( constraints.get( i ), null );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void nestedEntityResultList(String name, List<JaxbEntityResult> entityResults, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( entityResults ) ) {
    AnnotationValue[] values = new AnnotationValue[entityResults.size()];
    for ( int i = 0; i < entityResults.size(); i++ ) {
      AnnotationInstance annotationInstance = parserEntityResult( entityResults.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void nestedFieldResultList(String name, List<JaxbFieldResult> fieldResultList, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( fieldResultList ) ) {
    AnnotationValue[] values = new AnnotationValue[fieldResultList.size()];
    for ( int i = 0; i < fieldResultList.size(); i++ ) {
      AnnotationInstance annotationInstance = parserFieldResult( fieldResultList.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected void nestedUniqueConstraintList(String name, List<JaxbUniqueConstraint> constraints, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( constraints ) ) {
    AnnotationValue[] values = new AnnotationValue[constraints.size()];
    for ( int i = 0; i < constraints.size(); i++ ) {
      AnnotationInstance annotationInstance = parserUniqueConstraint( constraints.get( i ), null );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void nestedColumnResultList(String name, List<JaxbColumnResult> columnResults, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( columnResults ) ) {
    AnnotationValue[] values = new AnnotationValue[columnResults.size()];
    for ( int i = 0; i < columnResults.size(); i++ ) {
      AnnotationInstance annotationInstance = parserColumnResult( columnResults.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void nestedFieldResultList(String name, List<JaxbFieldResult> fieldResultList, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( fieldResultList ) ) {
    AnnotationValue[] values = new AnnotationValue[fieldResultList.size()];
    for ( int i = 0; i < fieldResultList.size(); i++ ) {
      AnnotationInstance annotationInstance = parserFieldResult( fieldResultList.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void nestedQueryHintList(String name, List<JaxbQueryHint> constraints, List<AnnotationValue> annotationValueList) {
  if ( MockHelper.isNotEmpty( constraints ) ) {
    AnnotationValue[] values = new AnnotationValue[constraints.size()];
    for ( int i = 0; i < constraints.size(); i++ ) {
      AnnotationInstance annotationInstance = parserQueryHint( constraints.get( i ) );
      values[i] = MockHelper.nestedAnnotationValue(
          "", annotationInstance
      );
    }
    MockHelper.addToCollectionIfNotNull(
        annotationValueList, AnnotationValue.createArrayValue( name, values )
    );
  }
}
org.jboss.jandexAnnotationValuecreateArrayValue

Popular methods of AnnotationValue

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

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
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