@ Override public ResolvedType transformTypeParameters ( ResolvedTypeTransformer transformer ) { ResolvedType result = this ; int i = 0 ; for ( ResolvedType tp : this . typeParametersValues ( ) ) { ResolvedType transformedTp = transformer . transform ( tp ) ; // Identity comparison on purpose if ( transformedTp != tp ) { List < ResolvedType > typeParametersCorrected = result . asReferenceType ( ) . typeParametersValues ( ) ; typeParametersCorrected . set ( i , transformedTp ) ; result = create ( typeDeclaration , typeParametersCorrected ) ; } i ++ ; } return result ; }
Execute a transformation on all the type parameters of this element .