Examples of TldFunction


Examples of com.caucho.jsp.cfg.TldFunction

      return;

    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = prefix + ":" + function.getName();

      functionMap.put(name, function.getMethod());
    }
  }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldFunction

    taglib = addLibrary(taglib);
    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = taglib.getPrefixString() + ":" + function.getName();

      _elFunctionMap.put(name, function.getMethod());
    }

    return taglib;
  }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldFunction

    Taglib taglib = _tagManager.addTaglibDir(prefix, tagdir);

    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = taglib.getPrefixString() + ":" + function.getName();

      _elFunctionMap.put(name, function.getMethod());
    }
  }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldFunction

      return;
      
    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = prefix + ":" + function.getName();

      functionMap.put(name, function.getMethod());
    }
  }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldFunction

    taglib = addLibrary(taglib);
    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = taglib.getPrefixString() + ":" + function.getName();

      _elFunctionMap.put(name, function.getMethod());
    }

    return taglib;
  }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldFunction

    Taglib taglib = _tagManager.addTaglibDir(prefix, tagdir);

    ArrayList<TldFunction> functions = taglib.getFunctionList();

    for (int i = 0; i < functions.size(); i++) {
      TldFunction function = functions.get(i);

      String name = taglib.getPrefixString() + ":" + function.getName();

      _elFunctionMap.put(name, function.getMethod());
    }
  }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction

      if(tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl)tracker.getDocument();
       
        List functions = doc.getFunctions();
        for(Iterator it = functions.iterator(); it.hasNext(); ) {
          TLDFunction function = (TLDFunction)it.next();
          if(function.getName().equals(functionName)) {
            String javaFuncName = getFunctionNameFromSignature(function.getSignature());
            if (javaFuncName == null)
              javaFuncName = functionName;
            return function.getClassName() + "." + javaFuncName; //$NON-NLS-1$
          }
        }
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction

      // listener
      else if (nodeName.equals(JSP12TLDNames.LISTENER)) {
        document.getListeners().add(createListener(child));
      }
      else if (nodeName.equals(JSP20TLDNames.FUNCTION)) {
        TLDFunction function = createFunction(document, child);
        if (function != null) {
          document.getFunctions().add(function);
        }
      }
      else if (nodeName.equals(JSP20TLDNames.TAGLIB_EXTENSION)) {
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction

      if (tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl) tracker.getDocument();

        List functions = doc.getFunctions();
        for (Iterator it = functions.iterator(); it.hasNext();) {
          TLDFunction function = (TLDFunction) it.next();
          CustomCompletionProposal proposal = new CustomCompletionProposal(
              function.getName() + "()", //$NON-NLS-1$
              offset,
              0,
              function.getName().length() + 1,
              null,
              function.getName()
                  + " - " + function.getSignature(), null, null, 1); //$NON-NLS-1$

          completionList.add(proposal);
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction

      if (tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl) tracker.getDocument();

        List functions = doc.getFunctions();
        for (Iterator it = functions.iterator(); it.hasNext();) {
          TLDFunction function = (TLDFunction) it.next();
          CustomCompletionProposal proposal = new CustomCompletionProposal(function.getName() + "()", //$NON-NLS-1$
                offset, 0, function.getName().length() + 1, null, function.getName() + " - " + function.getSignature(), null, null, 1); //$NON-NLS-1$

          completionList.add(proposal);
        }
      }
    }
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.