Package railo.transformer.util

Examples of railo.transformer.util.CFMLString.forwardIfCurrent()


  public List getURLS(String html, URL url) {
   
      ArrayList urls=new ArrayList();
    CFMLString cfml=new CFMLString(html,"UTF-8");
    while(!cfml.isAfterLast()) {
      if(cfml.forwardIfCurrent('<')) {
        for(int i=0;i<tags.length;i++) {
          if(cfml.forwardIfCurrent(tags[i].tag+" ")) {
            getSingleUrl(urls,cfml,tags[i],url);
          }
        }
View Full Code Here


      ArrayList urls=new ArrayList();
    CFMLString cfml=new CFMLString(html,"UTF-8");
    while(!cfml.isAfterLast()) {
      if(cfml.forwardIfCurrent('<')) {
        for(int i=0;i<tags.length;i++) {
          if(cfml.forwardIfCurrent(tags[i].tag+" ")) {
            getSingleUrl(urls,cfml,tags[i],url);
          }
        }
      }
      else {
View Full Code Here

     * @return bool Wurde ein Kommentar entfernt?
     * @throws TemplateException
     */
    private boolean multiLineComment(ExprData data) throws TemplateException {
       CFMLString cfml = data.cfml;
      if(!cfml.forwardIfCurrent("/*")) return false;
        int pos=cfml.getPos();
        boolean isDocComment=cfml.isCurrent('*');
        while(cfml.isValidIndex()) {
            if(cfml.isCurrent("*/")) break;
            cfml.next();
View Full Code Here

        boolean isDocComment=cfml.isCurrent('*');
        while(cfml.isValidIndex()) {
            if(cfml.isCurrent("*/")) break;
            cfml.next();
        }
        if(!cfml.forwardIfCurrent("*/")){
            cfml.setPos(pos);
            throw new TemplateException(cfml,"comment is not closed");
        }
        if(isDocComment) {
          String comment = cfml.substring(pos-2,cfml.getPos()-pos);
View Full Code Here

   */
  public String transform(String html, URL url, boolean setBaseTag) throws PageException {
    StringBuffer target=new StringBuffer();
    CFMLString cfml=new CFMLString(html,"UTF-8");
    while(!cfml.isAfterLast()) {
      if(cfml.forwardIfCurrent('<')) {
        target.append('<');
        try {
          for(int i=0;i<tags.length;i++) {
            if(cfml.forwardIfCurrent(tags[i].tag+" ")) {
              target.append(tags[i].tag+" ");
View Full Code Here

    while(!cfml.isAfterLast()) {
      if(cfml.forwardIfCurrent('<')) {
        target.append('<');
        try {
          for(int i=0;i<tags.length;i++) {
            if(cfml.forwardIfCurrent(tags[i].tag+" ")) {
              target.append(tags[i].tag+" ");
              transformTag(target,cfml,tags[i],url);
            }
          }
        }
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.