Package com.intellij.coldFusion.model.info

Examples of com.intellij.coldFusion.model.info.CfmlFunctionDescription$CfmlParameterDescription


    Collection<LookupElement> result = new LinkedList<LookupElement>();
    Object[] superResult = ArrayUtil.EMPTY_OBJECT_ARRAY;

    String functionName = getFunctionName();
    if (CfmlUtil.isPredefinedFunction(functionName, getProject())) {
      CfmlFunctionDescription cfmlFunctionDescription =
        CfmlLangInfo.getInstance(getProject()).getFunctionParameters().get(functionName.toLowerCase());
      for (CfmlFunctionDescription.CfmlParameterDescription param : cfmlFunctionDescription.getParameters()) {
        result.add(TailTypeDecorator.withTail(
          LookupElementBuilder.create(param.getName()).withCaseSensitivity(false),
          TailType.createSimpleTailType('=')));
      }
    }
View Full Code Here


    return null;
  }

  public static CfmlFunctionDescription getFunctionDescription(CfmlFunction function) {
    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

                  return function.getFunctionInfo();
                }
              }
              else if (element1 instanceof PsiMethod) {
                PsiMethod function = (PsiMethod)element1;
                CfmlFunctionDescription javaMethodDescr =
                  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

Related Classes of com.intellij.coldFusion.model.info.CfmlFunctionDescription$CfmlParameterDescription

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.