public List<IExceptionInfo> getExceptions() { return _mi.getExceptions(); }
public List<IExceptionInfo> getExceptions() { return _delegate.getExceptions(); }
public List<IExceptionInfo> getExceptions() { return _mi.getExceptions(); }
public List<IExceptionInfo> getExceptions() { return _delegate.getExceptions(); }
public WsiServiceInfo( Definitions wsdl, Schema schema, String xsdRootURL, IType webserviceType, Set<IType> exposeEnumAsStringTypes ) { _wsdl = wsdl; _schema = schema; _xsdRootURL = xsdRootURL; _schemas = new ArrayList<XmlSchemaIndex>(); _webserviceType = webserviceType; _exposeEnumAsStringTypes = exposeEnumAsStringTypes; for (IMethodInfo m : _webserviceType.getTypeInfo().getMethods()) { if (m.isPublic() && !m.isStatic()) { for ( IExceptionInfo exceptionInfo : m.getExceptions() ) { _thrownExceptions.add( exceptionInfo.getExceptionType() ); } for ( IType exceptionType : WsiUtilities.EXCEPTIONS_THROWN_BY_INFRASTRUCTURE.get() ) { _thrownExceptions.add( exceptionType ); } } } }
public MethodInfoBuilder like(IMethodInfo method) { withName(method.getDisplayName()); withReturnType(method.getReturnType()); withCallHandler(method.getCallHandler()); withStatic(method.isStatic()); withDeprecated(method.getDeprecatedReason()); withDescription(method.getDescription()); withReturnDescription(method.getReturnDescription()); IParameterInfo[] delegateParams = method.getParameters(); ParameterInfoBuilder[] params = new ParameterInfoBuilder[delegateParams.length]; for (int i = 0; i < params.length; i++) { params[i] = new ParameterInfoBuilder().like(delegateParams[i]); } withParameters(params); List<IExceptionInfo> delegateExceptions = method.getExceptions(); ExceptionInfoBuilder[] exceptions = new ExceptionInfoBuilder[delegateExceptions.size()]; int idx = 0; for (IExceptionInfo info : delegateExceptions) { exceptions[idx++] = new ExceptionInfoBuilder().like(info); } withExceptions(exceptions); _locationInfo = method.getLocationInfo(); return this; }
public MethodInfoBuilder like(IMethodInfo method) { withName(method.getDisplayName()); withReturnType(method.getReturnType()); withCallHandler(method.getCallHandler()); withStatic(method.isStatic()); withDeprecated(method.getDeprecatedReason()); withDescription(method.getDescription()); withReturnDescription(method.getReturnDescription()); IParameterInfo[] delegateParams = method.getParameters(); ParameterInfoBuilder[] params = new ParameterInfoBuilder[delegateParams.length]; for (int i = 0; i < params.length; i++) { params[i] = new ParameterInfoBuilder().like(delegateParams[i]); } withParameters(params); List<IExceptionInfo> delegateExceptions = method.getExceptions(); ExceptionInfoBuilder[] exceptions = new ExceptionInfoBuilder[delegateExceptions.size()]; int idx = 0; for (IExceptionInfo info : delegateExceptions) { exceptions[idx++] = new ExceptionInfoBuilder().like(info); } withExceptions(exceptions); if ( method instanceof ILocationAwareFeature ) { ILocationAwareFeature locationAwareFeature = (ILocationAwareFeature) method; _locationInfo = locationAwareFeature.getLocationInfo(); } return this; }
expected.addAll( EXCEPTIONS_THROWN_BY_INFRASTRUCTURE.get()); for ( IExceptionInfo exceptionInfo : m.getExceptions() ) { IType exceptionType = exceptionInfo.getExceptionType(); expected.remove(exceptionType);