Java Code Examples for com.sun.tools.javac.tree.DCTree#getKind()

The following examples show how to use com.sun.tools.javac.tree.DCTree#getKind() . 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 File: DocCommentParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 2
Source File: DocCommentParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 3
Source File: DocCommentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 4
Source File: VeryPretty.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * The following tags are block-tags
 * <ul>
 * <li>@author (classes and interfaces only, required)</li>
 * <li>@version (classes and interfaces only, required. See footnote 1)</li>
 * <li>@param (methods and constructors only)</li>
 * <li>@return (methods only)</li>
 * <li>@exception (</li>
 * <li>@throws is a synonym added in Javadoc 1.2)</li>
 * <li>@see</li>
 * <li>@since</li>
 * <li>@serial (or @serialField or @serialData)</li>
 * <li>@deprecated (see How and When To Deprecate APIs)</li>
 * </ul>
 */
private void blankLines(DCTree tree, boolean before, boolean suppressMarginAfter) {
    if (tree == null) {
        return;
    }
    switch (tree.getKind()) {
        case AUTHOR:
        case DEPRECATED:
        case EXCEPTION:
        case PARAM:
        case RETURN:
        case SEE:
        case SERIAL:
        case SERIAL_DATA:
        case SERIAL_FIELD:
        case SINCE:
        case THROWS:
        case UNKNOWN_BLOCK_TAG:
        case VERSION:
            if(before) {
                newline();
                toLeftMargin();
                print(" * ");
            }
            break;
        case DOC_COMMENT:
            if(before) {
                blankline();
            } else {
                newline();
            }
            if (!suppressMarginAfter) {
                toLeftMargin();
            }
            break;
        default:
            break;
    }
}
 
Example 5
Source File: DocCommentParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 6
Source File: DocCommentParser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 7
Source File: DocCommentParser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}
 
Example 8
Source File: DocCommentParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected boolean isSentenceBreak(DCTree t) {
    switch (t.getKind()) {
        case START_ELEMENT:
            return isSentenceBreak(((DCStartElement) t).getName());

        case END_ELEMENT:
            return isSentenceBreak(((DCEndElement) t).getName());
    }
    return false;
}