コード例 #1
0
 public Type getBoundGenericType(String parameterName) {
   Binding binding = getBinding(parameterName);
   Type genericType;
   if (binding instanceof Binding2) {
     genericType = ((Binding2) binding).getBindingGenericType();
   } else {
     genericType = binding.getBindingType();
   }
   return genericType;
 }
コード例 #2
0
  public Class getBoundType(String parameterName) {
    Binding binding = getBinding(parameterName);

    return binding == null ? null : binding.getBindingType();
  }