Examples of forwardIfCurrent()


Examples of railo.commons.lang.ParserString.forwardIfCurrent()

             
    // order by
    if(raw.forwardIfCurrentAndNoWordNumberAfter("order by")) orderByExpressions(raw,selects);
    raw.removeSpace();
   
    if(raw.forwardIfCurrent(';'))raw.removeSpace();
   
    if(!raw.isAfterLast()) throw new SQLParserException("can not read the full sql statement (stop at:"+raw.getCurrent()+")");
    return selects;
  }
View Full Code Here

Examples of railo.commons.lang.ParserString.forwardIfCurrent()

        String id=readIdentifier(ps,doLowerCase);
        if(id==null)return null;
        StringList list=new StringList(id);
       
        while(true) {
            if(ps.forwardIfCurrent('.')) {
              id=readIdentifier(ps,doLowerCase);
              if(id==null)return null;
              list.add(id);
            }
            else break;
View Full Code Here

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

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

      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

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

     * @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

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

        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

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

   */
  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

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

    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.