Package org.openhab.core.scriptengine.action

Examples of org.openhab.core.scriptengine.action.ParamDoc


      sb.append("<p>&nbsp;&nbsp;&nbsp;" + actionDoc.text() + "</p>");
      if(m.getParameterTypes().length > 0) {
        sb.append("<p><b>Parameters:</b><br>");
        List<String> params = new ArrayList<String>();
        for(int i = 0; i< m.getParameterTypes().length; i++) {
          ParamDoc paramDoc = getParamDoc(m, i);
          String paramName = paramDoc!=null ? paramDoc.name() : "p" + i;
          params.add("&nbsp;&nbsp;&nbsp;" + paramName + (StringUtils.isEmpty(paramDoc.text()) ? "" : ": " + paramDoc.text()));
        }
        sb.append(StringUtils.join(params, "<br/>"));
        sb.append("</p>");
      }
      if(!StringUtils.isEmpty(actionDoc.returns())) {
View Full Code Here


    sb.append(m.getName());
    sb.append("(");
    List<String> params = new ArrayList<String>();
    int i = 0;
    for(Class<?> paramType : m.getParameterTypes()) {
      ParamDoc paramDoc = getParamDoc(m, i);
      String paramName = paramDoc!=null ? paramDoc.name() : "p" + i;
      params.add(paramType.getSimpleName() + " " + paramName);
      i++;
    }
    sb.append(StringUtils.join(params, ", "));
    sb.append(") : ");
View Full Code Here

TOP

Related Classes of org.openhab.core.scriptengine.action.ParamDoc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.