public static ClassNode pickGenericType ( MethodNode node , int parameterIndex , int gtIndex ) { final Parameter [ ] parameters = node . getParameters ( ) ; final ClassNode type = parameters [ parameterIndex ] . getOriginType ( ) ; return pickGenericType ( type , gtIndex ) ; }
A helper method which will extract the n - th generic type from the n - th parameter of a method node .