本文整理汇总了Java中com.sun.codemodel.internal.CodeWriter类的典型用法代码示例。如果您正苦于以下问题:Java CodeWriter类的具体用法?Java CodeWriter怎么用?Java CodeWriter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeWriter类属于com.sun.codemodel.internal包,在下文中一共展示了CodeWriter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ProgressCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
public ProgressCodeWriter( CodeWriter output, XJCListener progress, int totalFileCount ) {
super(output);
this.progress = progress;
this.totalFileCount = totalFileCount;
if(progress==null)
throw new IllegalArgumentException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ProgressCodeWriter.java
示例2: createCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
/**
* Creates a configured CodeWriter that produces files into the specified directory.
*/
public CodeWriter createCodeWriter( CodeWriter core ) {
if(noFileHeader)
return core;
return new PrologCodeWriter( core,getPrologComment() );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Options.java
示例3: createCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
/**
* Creates a configured CodeWriter that produces files into the specified directory.
*
* @param core
* @return
*/
public CodeWriter createCodeWriter(CodeWriter core) {
if (noFileHeader)
return core;
return new PrologCodeWriter(core, getPrologComment());
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:Options.java
示例4: ProgressCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
public ProgressCodeWriter( CodeWriter output, PrintStream progress ) {
super(output);
this.progress = progress;
if(progress==null)
throw new IllegalArgumentException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:ProgressCodeWriter.java
示例5: FilterCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
public FilterCodeWriter(CodeWriter core) {
this.core = core;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:FilterCodeWriter.java
示例6: PrologCodeWriter
import com.sun.codemodel.internal.CodeWriter; //导入依赖的package包/类
/**
* @param core
* This CodeWriter will be used to actually create a storage for files.
* PrologCodeWriter simply decorates this underlying CodeWriter by
* adding prolog comments.
* @param prolog
* Strings that will be added as comments.
* This string may contain newlines to produce multi-line comments.
* '//' will be inserted at the beginning of each line to make it
* a valid Java comment, so the caller can just pass strings like
* "abc\ndef"
*/
public PrologCodeWriter( CodeWriter core, String prolog ) {
super(core);
this.prolog = prolog;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:PrologCodeWriter.java
注:本文中的com.sun.codemodel.internal.CodeWriter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论