@Override public String getReturnTypeName() { IJavaClassType type = getGenericReturnType(); if (type instanceof JavaArrayClassInfo) { return "[" + ((JavaArrayClassInfo) type).getComponentType().getNameSignature(); } else { return type.getName(); } }
@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; }
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 + ">"; }
@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); }
@Override public String getNamespace() { return _rawType.getNamespace(); }
@Override public IModule getModule() { return _rawType.getModule(); }