Пример #1
0
 @Override
 public String getReturnTypeName() {
   IJavaClassType type = getGenericReturnType();
   if (type instanceof JavaArrayClassInfo) {
     return "[" + ((JavaArrayClassInfo) type).getComponentType().getNameSignature();
   } else {
     return type.getName();
   }
 }
Пример #2
0
 @Override
 public String getName() {
   String name = _rawType.getName() + "<";
   for (int i = 0; i < _args.length; i++) {
     IJavaClassType type = _args[i];
     name += type.getName();
     if (i < _args.length - 1) {
       name += ",";
     }
   }
   name += ">";
   return name;
 }
Пример #3
0
 public String toString() {
   String s = _rawType.getName() + "<";
   for (int i = 0; i < _args.length; i++) {
     s += _args[i].getName();
     if (i != _args.length - 1) {
       s += ", ";
     }
   }
   return s + ">";
 }
Пример #4
0
 @Override
 public IType getActualType(TypeVarToTypeMap typeMap, boolean bKeepTypeVars) {
   IType[] args = new IType[_args.length];
   for (int i = 0; i < _args.length; i++) {
     if (_args[i] != null) {
       //        TypeSystem.pushModule(_args[i].getModule());
       //        try {
       args[i] = _args[i].getActualType(typeMap, bKeepTypeVars);
       //        } finally {
       //          TypeSystem.popModule(_args[i].getModule());
       //        }
     } else {
       args[i] = TypeSystem.getErrorType();
     }
   }
   IType actualType = _rawType.getActualType(typeMap);
   return actualType instanceof IErrorType ? actualType : actualType.getParameterizedType(args);
 }
Пример #5
0
 @Override
 public String getNamespace() {
   return _rawType.getNamespace();
 }
Пример #6
0
 @Override
 public IModule getModule() {
   return _rawType.getModule();
 }