Package httl.ast

Examples of httl.ast.EndDirective


          directives.add(new MacroDirective(macroName, offset));
          if (StringUtils.isNotEmpty(macroParams)) {
            defineVariableTypes(macroParams, exprOffset, directives);
          }
        } else if (StringUtils.inArray(name, endDirective)) {
          directives.add(new EndDirective(offset));
        }
      } else if (message.endsWith("}") && (message.startsWith("${") || message.startsWith("$!{")
          || message.startsWith("#{") || message.startsWith("#!{"))) {
        int i = message.indexOf('{');
        directives.add(new ValueDirective((Expression) expressionParser.parse(message.substring(i + 1, message.length() - 1),
View Full Code Here


        if (directiveStack.isEmpty())
          throw new ParseException("Miss #end directive.", directive.getOffset());
        BlockDirective blockDirective = ((BlockDirectiveEntry) directiveStack.pop()).popDirective();
        if (blockDirective == rootDirective)
          throw new ParseException("Miss #end directive.", directive.getOffset());
        EndDirective endDirective;
        if (directiveClass == ElseDirective.class) {
          endDirective = new EndDirective(directive.getOffset());
        } else {
          endDirective = (EndDirective) directive;
        }
        blockDirective.setEnd(endDirective);
      }
View Full Code Here

TOP

Related Classes of httl.ast.EndDirective

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.