예제 #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();
 }