private JvmAnnotationReference annotationClassRef ( Class < ? extends Annotation > type , List < ? extends JvmTypeReference > values ) { try { final JvmAnnotationReference annot = this . _annotationTypesBuilder . annotationRef ( type ) ; final JvmTypeAnnotationValue annotationValue = this . services . getTypesFactory ( ) . createJvmTypeAnnotationValue ( ) ; for ( final JvmTypeReference value : values ) { annotationValue . getValues ( ) . add ( this . typeBuilder . cloneWithProxies ( value ) ) ; } annot . getExplicitValues ( ) . add ( annotationValue ) ; return annot ; } catch ( IllegalArgumentException exception ) { // ignore } return null ; }
Create an annotation with classes as values .