当前位置: 首页>>代码示例>>Java>>正文


Java JCSkip类代码示例

本文整理汇总了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);
	}
}
 
开发者ID:mobmead,项目名称:EasyMPermission,代码行数:18,代码来源:PrettyCommentsPrinter.java

示例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);
	}
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:14,代码来源:PrettyPrinter.java

示例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);
}
 
开发者ID:pcgomes,项目名称:javaparser2jctree,代码行数:8,代码来源:PrintAstVisitor.java

示例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);
	}
}
 
开发者ID:mobmead,项目名称:EasyMPermission,代码行数:8,代码来源:PrettyCommentsPrinter.java

示例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());
	}
}
 
开发者ID:evant,项目名称:android-retrolambda-lombok,代码行数:8,代码来源:JcTreeConverter.java

示例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);
    }
}
 
开发者ID:sebastianoe,项目名称:s4j,代码行数:8,代码来源:Pretty.java

示例7: Skip

import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public JCSkip Skip() {
	return invoke(Skip);
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:4,代码来源:JavacTreeMaker.java

示例8: visitSkip

import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitSkip(JCSkip that) {
	if (onNewLine && !aligned) {
		align();
	}
	println(";");
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:7,代码来源:PrettyPrinter.java

示例9: inline

import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override
public JCSkip inline(Inliner inliner) {
  return inliner.maker().Skip();
}
 
开发者ID:sivakumar-kailasam,项目名称:refactor-faster,代码行数:5,代码来源:USkip.java

示例10: visitSkip

import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
@Override public void visitSkip(JCSkip tree) {
	printNode(tree);
	indent--;
}
 
开发者ID:evant,项目名称:android-retrolambda-lombok,代码行数:5,代码来源:JcTreePrinter.java

示例11: visitSkip

import com.sun.tools.javac.tree.JCTree.JCSkip; //导入依赖的package包/类
public void visitSkip(JCSkip tree) {
    result = null;
}
 
开发者ID:sebastianoe,项目名称:s4j,代码行数:4,代码来源:Attr.java


注:本文中的com.sun.tools.javac.tree.JCTree.JCSkip类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。