本文整理汇总了Java中org.commonmark.node.Node.getNext方法的典型用法代码示例。如果您正苦于以下问题:Java Node.getNext方法的具体用法?Java Node.getNext怎么用?Java Node.getNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.commonmark.node.Node
的用法示例。
在下文中一共展示了Node.getNext方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override
public void process(Text opener, Text closer, int delimiterUse) {
String singleDelimiter = String.valueOf(getOpeningCharacter());
Node emphasis = delimiterUse == 1
? new Emphasis(singleDelimiter)
: new StrongEmphasis(singleDelimiter + singleDelimiter);
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
emphasis.appendChild(tmp);
tmp = next;
}
opener.insertAfter(emphasis);
}
示例2: renderChildren
import org.commonmark.node.Node; //导入方法依赖的package包/类
private void renderChildren(Node parent) {
Node node = parent.getFirstChild();
while (node != null) {
Node next = node.getNext();
context.render(node);
node = next;
}
}
示例3: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override public void process(Text opener, Text closer, int delimiterCount) {
Node emoji = new Emoji();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
emoji.appendChild(tmp);
tmp = next;
}
opener.insertAfter(emoji);
}
示例4: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override public void process(Text opener, Text closer, int delimiterCount) {
Node mention = new Mention();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
mention.appendChild(tmp);
tmp = next;
}
opener.insertAfter(mention);
}
示例5: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override
public void process(Text opener, Text closer, int delimiterCount) {
// Wrap nodes between delimiters in marks.
Node marks = new Mark();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
marks.appendChild(tmp);
tmp = next;
}
opener.insertAfter(marks);
}
示例6: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override
public void process(Text opener, Text closer, int delimiterCount) {
// Wrap nodes between delimiters in strikethrough.
Node strikethrough = new Strikethrough();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
strikethrough.appendChild(tmp);
tmp = next;
}
opener.insertAfter(strikethrough);
}
示例7: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override
public void process(Text opener, Text closer, int delimiterCount) {
// Wrap nodes between delimiters in ins.
Node ins = new Ins();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
ins.appendChild(tmp);
tmp = next;
}
opener.insertAfter(ins);
}
示例8: process
import org.commonmark.node.Node; //导入方法依赖的package包/类
@Override
public void process(Text opener, Text closer, int delimiterUse) {
UpperCaseNode content = new UpperCaseNode();
Node tmp = opener.getNext();
while (tmp != null && tmp != closer) {
Node next = tmp.getNext();
content.appendChild(tmp);
tmp = next;
}
opener.insertAfter(content);
}
示例9: renderChildren
import org.commonmark.node.Node; //导入方法依赖的package包/类
private void renderChildren(Node parent) {
Node node = parent.getFirstChild();
while (node != null) {
Node next = node.getNext();
// For last cell in row, we dont render the delimiter.
if (node instanceof TableCell && next == null) {
renderLastCell((TableCell) node);
} else {
context.render(node);
}
node = next;
}
}