Examples of TagToken


Examples of info.bliki.htmlcleaner.TagToken

  }

  private void reduceTokenStackBoldItalic() {
    boolean found = false;
    while (fWikiModel.stackSize() > 0) {
      TagToken token = fWikiModel.peekNode();//
      if (token.equals(BOLD) || token.equals(ITALIC) || token.equals(BOLDITALIC)) {
        if (fWhiteStart) {
          found = true;
          createContentToken(fWhiteStart, fWhiteStartPosition, 1);
        }
        fWikiModel.popNode();
View Full Code Here

Examples of info.bliki.htmlcleaner.TagToken

   * stack
   */
  private void reduceTokenStack(TagToken node) {
    String allowedParents = node.getParents();
    if (allowedParents != null) {
      TagToken tag;
      int index = -1;

      while (fWikiModel.stackSize() > 0) {
        tag = fWikiModel.peekNode();
        index = allowedParents.indexOf("|" + tag.getName() + "|");
        if (index < 0) {
          fWikiModel.popNode();
          if (tag.getName().equals(node.getName())) {
            // for wrong nested HTML tags like <table> <tr><td>number
            // 1<tr><td>number 2</table>
            break;
          }
        } else {
View Full Code Here

Examples of net.asfun.jangod.parse.TagToken

    return root;
  }
 
  static void tree(Node node, TokenParser parser, String endName) {
    Token token;
    TagToken tag;
    MacroToken macro;
    while( parser.hasNext() ) {
      token = parser.next();
      switch(token.getType()) {
        case TOKEN_FIXED :
          TextNode tn = new TextNode((FixedToken)token);
          node.add(tn);
          break;
        case TOKEN_NOTE :
          break;
        case TOKEN_MACRO :
          macro = (MacroToken) token;
          if ( macro.getMacroName().equalsIgnoreCase(endName) ) {
            return;
          }
          try {
            MacroNode mn = new MacroNode((MacroToken) token);
            node.add(mn);
            if ( mn.endName != null ) {
              tree(mn, parser, mn.endName);
            }
          } catch (ParseException e) {
            JangodLogger.log(Level.WARNING, "can't create node with token >>> " + token, e.getCause());
         
          break;
        case TOKEN_ECHO :
          VariableNode vn = new VariableNode((EchoToken) token);
          node.add(vn);
          break;
        case TOKEN_TAG :
          tag = (TagToken) token;
          if ( tag.getTagName().equalsIgnoreCase(endName) ) {
            return;
          }
          try {
            TagNode tg = new TagNode((TagToken) token);
            node.add(tg);
View Full Code Here

Examples of org.yaml.snakeyaml.tokens.TagToken

        } else if (value.charAt(0) == '<' && value.charAt(value.length() - 1) == '>') {
            value = value.substring(1, value.length() - 1);
        } else {
            value = "!" + value;
        }
        return new TagToken(new TagTuple("", value), mark, mark);
    }
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.