Пример #1
0
 private DeclaredType getDeclaredTypeForTypeVariable(TypeVariable typeVariable) {
   Name name = typeVariable.asElement().getSimpleName();
   if (!_typeArguments.containsKey(name)) {
     throw new UnsupportedOperationException(
         String.format(
             "Unknown parameterized type: %s. Available types in this context: %s",
             typeVariable.toString(), _typeArguments));
   } else {
     return _typeArguments.get(name);
   }
 }
 @Override
 public ASTType visitTypeVariable(TypeVariable typeVariable, Void v) {
   // throw new TransfuseAnalysisException("Encountered TypeVariable, unable to recover");
   return new ASTEmptyType(typeVariable.toString());
 }