Examples of MacroDirective


Examples of httl.ast.MacroDirective

          }
          if (out) {
            directives.add(new ValueDirective((Expression) expressionParser.parse(expr, exprOffset), true, offset));
          }
          macroName = macroName.trim();
          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));
View Full Code Here

Examples of org.jboss.ide.eclipse.freemarker.model.MacroDirective

          }
          escape = doEscape;
        }
        if (endIndex > 0) {
          String sub = content.substring(startIndex, endIndex);
          MacroDirective macroDirective = new LibraryMacroDirective(
              null, namespace, sub, startIndex - 1, endIndex
                  - index + 2);
          macroDirectives.add(macroDirective);
          index = content.indexOf(startChar + HASH_MACRO_SPACE, endIndex);
          if (index >= 0)
View Full Code Here

Examples of org.jboss.ide.eclipse.freemarker.model.MacroDirective

          return new IHyperlink[]{new MacroHyperlink(instance, macroLibrary.getFile(), -1, -1)};
      }
      else {
        List<MacroDirective> macroDefinitions = instance.getItemSet().getMacroDefinitions();
        for (Iterator<MacroDirective> i=macroDefinitions.iterator(); i.hasNext(); ) {
          MacroDirective macroDefinition = i.next();
          if (macroDefinition.getName().equals(instance.getName())) {
            return new IHyperlink[]{new MacroHyperlink(
                instance, editor.getFile(),
                macroDefinition.getOffset(), macroDefinition.getLength())};
          }
        }
      }
    }
    return null;
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.