public String getReturnDescription() { return _delegate.getReturnDescription(); }
public String getReturnDescription() { return _mi.getReturnDescription(); }
public String getReturnDescription() { return _delegate.getReturnDescription(); }
public String getReturnDescription() { return _mi.getReturnDescription(); }
public static String evalReturnDescription( IMethodInfo method ) { if( method instanceof IGosuMethodInfo ) { List<IAnnotationInfo> annotation = method.getAnnotationsOfType( JavaTypes.getGosuType( gw.lang.Returns.class ) ); if( annotation.size() > 0 ) { return (String)annotation.get( 0 ).getFieldValue("value"); } } else { return method.getReturnDescription(); } return ""; }
public static String evalReturnDescription( IMethodInfo method ) { if( method instanceof IGosuMethodInfo ) { List<IAnnotationInfo> annotation = method.getAnnotationsOfType( JavaTypes.getGosuType( gw.lang.Returns.class ) ); if( annotation.size() > 0 ) { return (String)annotation.get( 0 ).getFieldValue("value"); } } else { return method.getReturnDescription(); } return ""; }
String returnDescription = methodInfo.getReturnDescription();
String returnDescription = methodInfo.getReturnDescription();
@Override public String getDescription() { String description = null; IMethodInfo method = getReadMethodInfo(); if (method != null) { description = method.getDescription(); if ( GosuStringUtil.isEmpty(description)) { description = method.getReturnDescription(); } } if ( GosuStringUtil.isEmpty(description)) { method = getWriteMethodInfo(); if (method != null) { description = method.getDescription(); } } return description; }
@Override public String getDescription() { String description = null; IMethodInfo method = getReadMethodInfo(); if (method != null) { description = method.getDescription(); if ( GosuStringUtil.isEmpty(description)) { description = method.getReturnDescription(); } } if ( GosuStringUtil.isEmpty(description)) { method = getWriteMethodInfo(); if (method != null) { description = method.getDescription(); } } return description; }
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; }