private boolean isProxyType( String fullyQualifiedName, ITypeLoader loader ) { if( (loader == _defaultTypeLoader || loader.getClass() == GosuClassTypeLoader.class) && IGosuClass.ProxyUtil.isProxyClass( fullyQualifiedName ) ) { String minusProxy = fullyQualifiedName.substring( IGosuClass.PROXY_PREFIX.length()+1 ); if( loader.hasNamespace(minusProxy) ) { return true; } } return false; }
private boolean isProxyType( String fullyQualifiedName, ITypeLoader loader ) { if( (loader == _defaultTypeLoader || loader.getClass() == GosuClassTypeLoader.class) && IGosuClass.ProxyUtil.isProxyClass( fullyQualifiedName ) ) { String minusProxy = fullyQualifiedName.substring( IGosuClass.PROXY_PREFIX.length()+1 ); if( loader.hasNamespace(minusProxy) ) { return true; } } return false; }
private IType loadNamespaceType(String namespace) { for (int i = 0; i < _globalStack.size(); i++) { ITypeLoader loader = _globalStack.get( i ); if(loader instanceof IGosuObject) { if(GosuClassCompilingStack.getCompilingType(((IGosuObject)loader).getIntrinsicType().getName()) != null) { continue; } } //noinspection SuspiciousMethodCalls if ( loader.hasNamespace( namespace ) || isProxyType( namespace, loader ) ) { return new NamespaceType( namespace, getModule() ); } } return null; }
private IType loadNamespaceType(String namespace) { for (int i = 0; i < _globalStack.size(); i++) { ITypeLoader loader = _globalStack.get( i ); if(loader instanceof IGosuObject) { if(GosuClassCompilingStack.getCompilingType(((IGosuObject)loader).getIntrinsicType().getName()) != null) { continue; } } //noinspection SuspiciousMethodCalls if ( loader.hasNamespace( namespace ) || isProxyType( namespace, loader ) ) { return new NamespaceType( namespace, getModule() ); } } return null; }