com.sun.source.doctree.EndElementTree Java Examples

The following examples show how to use com.sun.source.doctree.EndElementTree. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: HtmlDocletWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
boolean ignoreNonInlineTag(DocTree dtree) {
    Name name = null;
    if (dtree.getKind() == Kind.START_ELEMENT) {
        StartElementTree setree = (StartElementTree)dtree;
        name = setree.getName();
    } else if (dtree.getKind() == Kind.END_ELEMENT) {
        EndElementTree eetree = (EndElementTree)dtree;
        name = eetree.getName();
    }

    if (name != null) {
        com.sun.tools.doclint.HtmlTag htmlTag = com.sun.tools.doclint.HtmlTag.get(name);
        if (htmlTag != null &&
                htmlTag.blockType != com.sun.tools.doclint.HtmlTag.BlockType.INLINE) {
            return true;
        }
    }
    return false;
}
 
Example #2
Source Project: lua-for-android   Author: qtiuto   File: DocTreeMaker.java    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
private boolean isSentenceBreak(DocTree dt, boolean isFirstDocTree) {
    switch (dt.getKind()) {
        case START_ELEMENT:
                StartElementTree set = (StartElementTree)dt;
                return !isFirstDocTree && ((DCTree) dt).pos > 1 && isSentenceBreak(set.getName());
        case END_ELEMENT:
                EndElementTree eet = (EndElementTree)dt;
                return !isFirstDocTree && ((DCTree) dt).pos > 1 && isSentenceBreak(eet.getName());
        default:
            return false;
    }
}
 
Example #3
Source Project: netbeans   Author: apache   File: VeryPretty.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree node, Void p) {
    print("</");
    print(node.getName());
    print(">");
    return null;
}
 
Example #4
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: DocTreeMaker.java    License: GNU General Public License v2.0 5 votes vote down vote up
private boolean isSentenceBreak(DocTree dt, boolean isFirstDocTree) {
    switch (dt.getKind()) {
        case START_ELEMENT:
                StartElementTree set = (StartElementTree)dt;
                return !isFirstDocTree && ((DCTree) dt).pos > 1 && isSentenceBreak(set.getName());
        case END_ELEMENT:
                EndElementTree eet = (EndElementTree)dt;
                return !isFirstDocTree && ((DCTree) dt).pos > 1 && isSentenceBreak(eet.getName());
        default:
            return false;
    }
}
 
Example #5
Source Project: j2objc   Author: google   File: JavadocConverter.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree node, TagElement tag) {
  String text = String.format("</%s>", node.getName().toString());
  int pos = pos(node);
  tag.addFragment(setPos(new TextElement().setText(text), pos, pos + text.length()));
  return null;
}
 
Example #6
Source Project: TencentKona-8   Author: Tencent   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #7
Source Project: jdk8u60   Author: chenghanpeng   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #8
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #9
Source Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: Apache License 2.0 4 votes vote down vote up
protected final EndElementTree rewriteChildren(EndElementTree tree) {
    return tree; // Nothing to do for a string
}
 
Example #10
Source Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitEndElement(EndElementTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #11
Source Project: netbeans   Author: apache   File: TreeFactory.java    License: Apache License 2.0 4 votes vote down vote up
public EndElementTree EndElement(CharSequence name) {
    return docMake.at(NOPOS).newEndElementTree(names.fromString(name.toString()));
}
 
Example #12
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * @since 1.47
 */
@Override
public DocTree visitEndElement(EndElementTree node, Element p) {
    return docScanner.visitEndElement(node, p, null);
}
 
Example #13
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitEndElement(EndElementTree node, Element p) {
    return instance.visitEndElement(node, p);
}
 
Example #14
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
public DocTree visitEndElement(EndElementTree node, Element p, Void ignore) {
    return super.visitEndElement(node, p);
}
 
Example #15
Source Project: netbeans   Author: apache   File: Analyzer.java    License: Apache License 2.0 4 votes vote down vote up
@Override
    @Messages({"# {0} - Tag Name", "TAG_END_NOT_PERMITTED=Invalid End Tag: </{0}>",
               "# {0} - Tag Name", "TAG_END_UNEXPECTED=Unexpected End Tag: </{0}>",
               "# {0} - Tag Name", "TAG_START_UNMATCHED=End Tag Missing: </{0}>"})
    public Void visitEndElement(EndElementTree node, List<ErrorDescription> errors) {
        DocTreePath currentDocPath = getCurrentPath();
        DocTreePathHandle dtph = DocTreePathHandle.create(currentDocPath, javac);
        if(dtph == null) {
            return null;
        }
        DocSourcePositions sp = (DocSourcePositions) javac.getTrees().getSourcePositions();
        int start = (int) sp.getStartPosition(javac.getCompilationUnit(), currentDocPath.getDocComment(), node);
        int end = (int) sp.getEndPosition(javac.getCompilationUnit(), currentDocPath.getDocComment(), node);

        final Name treeName = node.getName();
        final HtmlTag t = HtmlTag.get(treeName);
        if (t == null) {
             errors.add(ErrorDescriptionFactory.forSpan(ctx, start, end, TAG_END_UNKNOWN(treeName)));
        } else if (t.endKind == HtmlTag.EndKind.NONE) {
//            env.messages.error(HTML, node, "dc.tag.end.not.permitted", treeName);
            errors.add(ErrorDescriptionFactory.forSpan(ctx, start, end, TAG_END_NOT_PERMITTED(treeName)));
        } else {
            boolean done = false;
            while (!tagStack.isEmpty()) {
                StartElementTree startTree = tagStack.peek();
                Name tagName = startTree.getName();
                HtmlTag tag = HtmlTag.get(tagName);
                if (t == tag) {
                    tagStack.pop();
                    done = true;
                    break;
                } else if (tag.endKind != HtmlTag.EndKind.REQUIRED) {
                    tagStack.pop();
                } else {
                    boolean found = false;
                    for (StartElementTree set : tagStack) {
                        HtmlTag si = HtmlTag.get(set.getName());
                        if (si == t) {
                            found = true;
                            break;
                        }
                    }
                    if (found) {
                        int s = (int) sp.getStartPosition(javac.getCompilationUnit(), currentDocPath.getDocComment(), startTree);
                        int e = (int) sp.getEndPosition(javac.getCompilationUnit(), currentDocPath.getDocComment(), startTree);
                        errors.add(ErrorDescriptionFactory.forSpan(ctx, s, e, TAG_START_UNMATCHED(tagName)));
                        tagStack.pop();
                    } else {
                        errors.add(ErrorDescriptionFactory.forSpan(ctx, start, end, TAG_END_UNEXPECTED(treeName)));
                        done = true;
                        break;
                    }
                }
            }
            if (!done && tagStack.isEmpty()) {
                errors.add(ErrorDescriptionFactory.forSpan(ctx, start, end, TAG_END_UNEXPECTED(treeName)));
            }
        }
        return super.visitEndElement(node, errors);
    }
 
Example #16
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #17
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: JavadocFormatter.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override @DefinedBy(Api.COMPILER_TREE)
public Object visitEndElement(EndElementTree node, Object p) {
    handleEndElement(node.getName());
    return super.visitEndElement(node, p);
}
 
Example #18
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override @DefinedBy(Api.COMPILER_TREE)
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                        break;

                    case SECTION:
                    case ARTICLE:
                        if (env.htmlVersion == HtmlVersion.HTML5 && !top.flags.contains(Flag.HAS_HEADING)) {
                            env.messages.error(HTML, tree, "dc.tag.requires.heading", treeName);
                        }
                        break;
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #19
Source Project: hottub   Author: dsrg-uoft   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #20
Source Project: openjdk-8-source   Author: keerath   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #21
Source Project: openjdk-8   Author: bpupadhyaya   File: Checker.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitEndElement(EndElementTree tree, Void ignore) {
    final Name treeName = tree.getName();
    final HtmlTag t = HtmlTag.get(treeName);
    if (t == null) {
        env.messages.error(HTML, tree, "dc.tag.unknown", treeName);
    } else if (t.endKind == HtmlTag.EndKind.NONE) {
        env.messages.error(HTML, tree, "dc.tag.end.not.permitted", treeName);
    } else {
        boolean done = false;
        while (!tagStack.isEmpty()) {
            TagStackItem top = tagStack.peek();
            if (t == top.tag) {
                switch (t) {
                    case TABLE:
                        if (!top.attrs.contains(HtmlTag.Attr.SUMMARY)
                                && !top.flags.contains(Flag.TABLE_HAS_CAPTION)) {
                            env.messages.error(ACCESSIBILITY, tree,
                                    "dc.no.summary.or.caption.for.table");
                        }
                }
                warnIfEmpty(top, tree);
                tagStack.pop();
                done = true;
                break;
            } else if (top.tag == null || top.tag.endKind != HtmlTag.EndKind.REQUIRED) {
                tagStack.pop();
            } else {
                boolean found = false;
                for (TagStackItem si: tagStack) {
                    if (si.tag == t) {
                        found = true;
                        break;
                    }
                }
                if (found && top.tree.getKind() == DocTree.Kind.START_ELEMENT) {
                    env.messages.error(HTML, top.tree, "dc.tag.start.unmatched",
                            ((StartElementTree) top.tree).getName());
                    tagStack.pop();
                } else {
                    env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
                    done = true;
                    break;
                }
            }
        }

        if (!done && tagStack.isEmpty()) {
            env.messages.error(HTML, tree, "dc.tag.end.unexpected", treeName);
        }
    }

    return super.visitEndElement(tree, ignore);
}
 
Example #22
Source Project: lua-for-android   Author: qtiuto   File: DocTreeFactory.java    License: BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Create a new {@code EndElement} object, to represent the end of an HTML element.
 * @param name the name of the HTML element
 * @return an {@code EndElementTree} object
 */
EndElementTree newEndElementTree(Name name);
 
Example #23
Source Project: netbeans   Author: apache   File: TreeMaker.java    License: Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's HTML EndElementTree.
 * 
 * @param name name of the element to be closed
 * @return newly created EndElementTree
 * @since 0.124
 */
public EndElementTree EndElement(CharSequence name) {
    return delegate.EndElement(name);
}
 
Example #24
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: DocTreeFactory.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code EndElement} object, to represent the end of an HTML element.
 * @param name the name of the HTML element
 * @return an {@code EndElementTree} object
 */
EndElementTree newEndElementTree(Name name);