Package com.intellij.coldFusion.model.info

Examples of com.intellij.coldFusion.model.info.CfmlFunctionDescription.addParameter()


    PsiType returnType = function.getReturnType();
    CfmlFunctionDescription functionInfo = new CfmlFunctionDescription(function.getName(),
                                                                       returnType != null ? returnType.getCanonicalText() : null);
    CfmlParameter[] params = function.getParameters();
    for (CfmlParameter param : params) {
      functionInfo.addParameter(new CfmlFunctionDescription.CfmlParameterDescription(param.getName(), param.getType(), param.isRequired()));
    }
    return functionInfo;
  }
}
View Full Code Here


                  new CfmlFunctionDescription(function.getName(), function.getReturnType().getPresentableText());
                final PsiParameter[] psiParameters = function.getParameterList().getParameters();
                final int paramsNum = psiParameters.length;
                for (int i = 0; i < paramsNum; i++) {
                  PsiParameter psiParameter = psiParameters[i];
                  javaMethodDescr.addParameter(new CfmlFunctionDescription.CfmlParameterDescription(psiParameter.getName(),
                                                                                                    psiParameter.getType()
                                                                                                      .getPresentableText(), true));
                }
                return javaMethodDescr;
              }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.