本文整理汇总了Java中com.sun.tools.javac.tree.JCTree.JCSkip类的典型用法代码示例。如果您正苦于以下问题:Java JCSkip类的具体用法?Java JCSkip怎么用?Java JCSkip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JCSkip类属于com.sun.tools.javac.tree.JCTree包,在下文中一共展示了JCSkip类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitLabelled
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitLabelled(JCLabeledStatement tree) {
try {
print(tree.label + ":");
if (isEmptyStat(tree.body) || tree.body instanceof JCSkip) {
print(" ;");
} else if (tree.body instanceof JCBlock) {
print(" ");
printStat(tree.body);
} else {
println();
align();
printStat(tree.body);
}
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
示例2: visitLabelled
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitLabelled(JCLabeledStatement tree) {
aPrint(tree.label);
print(":");
if (tree.body instanceof JCSkip || suppress(tree)) {
println(" ;", tree);
} else if (tree.body instanceof JCBlock) {
print(" ");
print(tree.body);
} else {
println(tree);
print(tree.body);
}
}
示例3: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitSkip(JCSkip that) {
try {
print("JCSkip:");
} catch (Exception e) {
}
super.visitSkip(that);
}
示例4: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitSkip(JCSkip tree) {
try {
print(";");
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
示例5: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitSkip(JCSkip node) {
if (hasFlag(FlagKey.SKIP_IS_DECL)) {
set(node, new EmptyDeclaration());
} else {
set(node, new EmptyStatement());
}
}
示例6: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitSkip(JCSkip tree) {
try {
print(";");
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
示例7: Skip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public JCSkip Skip() {
return invoke(Skip);
}
示例8: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitSkip(JCSkip that) {
if (onNewLine && !aligned) {
align();
}
println(";");
}
示例9: inline
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override
public JCSkip inline(Inliner inliner) {
return inliner.maker().Skip();
}
示例10: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitSkip(JCSkip tree) {
printNode(tree);
indent--;
}
示例11: visitSkip
import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitSkip(JCSkip tree) {
result = null;
}