public boolean isInternalAPI() { if( _internalAPI == null ) { TypeSystem.lock(); try { if( _internalAPI == null ) { _internalAPI = !getAnnotationsOfType(JavaTypes.INTERNAL_API()).isEmpty(); } assert _internalAPI != null; } finally { TypeSystem.unlock(); } } return _internalAPI; }
public boolean isInternalAPI() { if( _internalAPI == null ) { if( ILanguageLevel.Util.STANDARD_GOSU() || Arrays.stream( notInternalNs ).noneMatch( ns -> getOwnersType() != null && getOwnersType().getNamespace() != null && getOwnersType().getNamespace().startsWith( ns ) ) && Arrays.stream( notInternalNs ).noneMatch( ns -> getOwnersType() != null && getOwnersType().getNamespace() != null && getOwnersType().getNamespace().startsWith( IGosuClass.PROXY_PREFIX + '.' + ns ) ) ) { return _internalAPI = false; } TypeSystem.lock(); try { if( _internalAPI == null ) { _internalAPI = !getAnnotationsOfType(JavaTypes.INTERNAL_API()).isEmpty(); } assert _internalAPI != null; } finally { TypeSystem.unlock(); } } return _internalAPI; }
private List<IAnnotationInfo> getDeprecatedAnnotation() { if (_deprecated == null) { TypeSystem.lock(); try { if (_deprecated == null) { IType container = _intrType == null ? getContainer().getOwnersType() : _intrType; if( container instanceof ITypeRef ) { _deprecated = getAnnotationsOfType( TypeSystem.getByFullName("gw.lang.Deprecated", container.getTypeLoader().getModule().getExecutionEnvironment().getGlobalModule())); } else { _deprecated = Collections.emptyList(); } } } finally { TypeSystem.unlock(); } } return _deprecated; }
private List<IAnnotationInfo> getDeprecatedAnnotation() { if (_deprecated == null) { TypeSystem.lock(); try { if (_deprecated == null) { IType container = _intrType == null ? getContainer().getOwnersType() : _intrType; if( container instanceof ITypeRef ) { _deprecated = getAnnotationsOfType( TypeSystem.getByFullName("gw.lang.Deprecated", container.getTypeLoader().getModule().getExecutionEnvironment().getGlobalModule())); } else { _deprecated = Collections.emptyList(); } } } finally { TypeSystem.unlock(); } } return _deprecated; }