本文整理汇总了Java中com.sun.tools.javac.tree.DCTree.DCEndElement类的典型用法代码示例。如果您正苦于以下问题:Java DCEndElement类的具体用法?Java DCEndElement怎么用?Java DCEndElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DCEndElement类属于com.sun.tools.javac.tree.DCTree包,在下文中一共展示了DCEndElement类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: diffEndElement
import com.sun.tools.javac.tree.DCTree.DCEndElement; //导入依赖的package包/类
private int diffEndElement(DCDocComment doc, DCEndElement oldT, DCEndElement newT, int[] elementBounds) {
if(oldT.name.equals(newT.name)) {
copyTo(elementBounds[0], elementBounds[1]);
} else {
printer.print(newT);
}
return elementBounds[1];
}
示例2: isSentenceBreak
import com.sun.tools.javac.tree.DCTree.DCEndElement; //导入依赖的package包/类
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;
}
示例3: newEndElementTree
import com.sun.tools.javac.tree.DCTree.DCEndElement; //导入依赖的package包/类
@Override @DefinedBy(Api.COMPILER_TREE)
public DCEndElement newEndElementTree(Name name) {
DCEndElement tree = new DCEndElement(name);
tree.pos = pos;
return tree;
}