本文整理了Java中org.pegdown.ast.Node.accept()
方法的一些代码示例,展示了Node.accept()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.accept()
方法的具体详情如下:
包路径:org.pegdown.ast.Node
类名称:Node
方法名:accept
暂无
代码示例来源:origin: org.pegdown/pegdown
protected void visitChildren(SuperNode node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: org.pegdown/pegdown
protected void visitChildrenSkipFirst(SuperNode node) {
boolean first = true;
for (Node child : node.getChildren()) {
if (!first) child.accept(this);
first = false;
}
}
代码示例来源:origin: org.pegdown/pegdown
public void visit(RootNode node) {
for (ReferenceNode refNode : node.getReferences()) {
visitChildren(refNode);
references.put(normalize(printer.getString()), refNode);
printer.clear();
}
for (AbbreviationNode abbrNode : node.getAbbreviations()) {
visitChildren(abbrNode);
String abbr = printer.getString();
printer.clear();
abbrNode.getExpansion().accept(this);
String expansion = printer.getString();
abbreviations.put(abbr, expansion);
printer.clear();
}
visitChildren(node);
}
代码示例来源:origin: gradle.plugin.com.github.qwazer/markdown-confluence-gradle-plugin
protected <T extends Node> void visitChildren(T node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: redpen-cc/redpen
protected void visitChildren(SuperNode node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: bsorrentino/maven-confluence-plugin
protected <T extends Node> void visitChildren(T node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: bodiam/markdown-to-asciidoc
protected void visitChildren(AbstractNode node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: nl.jworks.markdown_to_asciidoc/markdown_to_asciidoc
protected void visitChildren(AbstractNode node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: org.bsc.maven/maven-confluence-core
protected <T extends Node> void visitChildren(T node) {
for (Node child : node.getChildren()) {
child.accept(this);
}
}
代码示例来源:origin: bsorrentino/maven-confluence-plugin
@Override
public void visit(BulletListNode bln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : bln.getChildren()) {
_buffer.append( StringUtils.repeat('*', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: org.bsc.maven/maven-confluence-core
@Override
public void visit(BulletListNode bln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : bln.getChildren()) {
_buffer.append( StringUtils.repeat('*', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: gradle.plugin.com.github.qwazer/markdown-confluence-gradle-plugin
@Override
public void visit(BulletListNode bln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : bln.getChildren()) {
_buffer.append( StringUtils.repeat('*', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: gradle.plugin.com.github.qwazer/markdown-confluence-gradle-plugin
@Override
public void visit(OrderedListNode oln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : oln.getChildren()) {
_buffer.append( StringUtils.repeat('#', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: bsorrentino/maven-confluence-plugin
@Override
public void visit(OrderedListNode oln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : oln.getChildren()) {
_buffer.append( StringUtils.repeat('#', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: org.bsc.maven/maven-confluence-core
@Override
public void visit(OrderedListNode oln) {
++listLevel;
try {
_buffer.append('\n');
for (Node child : oln.getChildren()) {
_buffer.append( StringUtils.repeat('#', listLevel) ).append(' ');
child.accept(this);
_buffer.append('\n');
}
_buffer.append('\n');
}finally {
--listLevel;
}
}
代码示例来源:origin: nl.jworks.markdown_to_asciidoc/markdown_to_asciidoc
public void visit(RootNode node) {
for (ReferenceNode refNode : node.getReferences()) {
visitChildren(refNode);
references.put(normalize(printer.getString()), refNode);
printer.clear();
}
for (AbbreviationNode abbrNode : node.getAbbreviations()) {
visitChildren(abbrNode);
String abbr = printer.getString();
printer.clear();
abbrNode.getExpansion().accept(this);
String expansion = printer.getString();
abbreviations.put(abbr, expansion);
printer.clear();
}
visitChildren(node);
}
代码示例来源:origin: bodiam/markdown-to-asciidoc
public void visit(RootNode node) {
for (ReferenceNode refNode : node.getReferences()) {
visitChildren(refNode);
references.put(normalize(printer.getString()), refNode);
printer.clear();
}
for (AbbreviationNode abbrNode : node.getAbbreviations()) {
visitChildren(abbrNode);
String abbr = printer.getString();
printer.clear();
abbrNode.getExpansion().accept(this);
String expansion = printer.getString();
abbreviations.put(abbr, expansion);
printer.clear();
}
visitChildren(node);
}
内容来源于网络,如有侵权,请联系作者删除!