Package org.jboss.jandex

Examples of org.jboss.jandex.AnnotationInstance


  private AnnotationValue[] nestedMapKeyJoinColumnList(String name, List<JaxbMapKeyJoinColumn> columns, List<AnnotationValue> annotationValueList) {
    if ( MockHelper.isNotEmpty( columns ) ) {
      AnnotationValue[] values = new AnnotationValue[columns.size()];
      for ( int i = 0; i < columns.size(); i++ ) {
        AnnotationInstance annotationInstance = parserMapKeyJoinColumn( columns.get( i ), null );
        values[i] = MockHelper.nestedAnnotationValue(
            "", annotationInstance
        );
      }
      MockHelper.addToCollectionIfNotNull(
View Full Code Here


  protected AnnotationInstance create(DotName name, AnnotationTarget target, List<AnnotationValue> annotationValueList) {
    return create( name, target, MockHelper.toArray( annotationValueList ) );
  }

  protected AnnotationInstance create(DotName name, AnnotationTarget target, AnnotationValue[] annotationValues) {
    AnnotationInstance annotationInstance = MockHelper.create( name, target, annotationValues );
    push( annotationInstance );
    return annotationInstance;

  }
View Full Code Here

  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(
View Full Code Here

  private AnnotationValue[] nestedJoinColumnList(String name, List<JaxbJoinColumn> columns, List<AnnotationValue> annotationValueList) {
    if ( MockHelper.isNotEmpty( columns ) ) {
      AnnotationValue[] values = new AnnotationValue[columns.size()];
      for ( int i = 0; i < columns.size(); i++ ) {
        AnnotationInstance annotationInstance = parserJoinColumn( columns.get( i ), null );
        values[i] = MockHelper.nestedAnnotationValue(
            "", annotationInstance
        );
      }
      MockHelper.addToCollectionIfNotNull(
View Full Code Here

  protected AnnotationValue[] nestedPrimaryKeyJoinColumnList(String name, List<JaxbPrimaryKeyJoinColumn> constraints, List<AnnotationValue> annotationValueList) {
    if ( MockHelper.isNotEmpty( constraints ) ) {
      AnnotationValue[] values = new AnnotationValue[constraints.size()];
      for ( int i = 0; i < constraints.size(); i++ ) {
        AnnotationInstance annotationInstance = parserPrimaryKeyJoinColumn( constraints.get( i ), null );
        values[i] = MockHelper.nestedAnnotationValue(
            "", annotationInstance
        );
      }
      MockHelper.addToCollectionIfNotNull(
View Full Code Here

  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(
View Full Code Here

  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(
View Full Code Here

  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(
View Full Code Here

  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(
View Full Code Here

  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(
View Full Code Here

TOP

Related Classes of org.jboss.jandex.AnnotationInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.