本文整理了Java中com.sun.codemodel.JFormatter.id()
方法的一些代码示例,展示了JFormatter.id()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFormatter.id()
方法的具体详情如下:
包路径:com.sun.codemodel.JFormatter
类名称:JFormatter
方法名:id
[英]Print an identifier
[中]打印标识符
代码示例来源:origin: org.glassfish.metro/webservices-tools
public void generate(JFormatter f) {
f.id(name);
}
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
public void generate(JFormatter f) {
f.id(name);
}
}
代码示例来源:origin: javaee/jaxb-v2
public void generate(JFormatter f) {
f.id(name);
}
}
代码示例来源:origin: com.sun.codemodel/codemodel
/**
* Prints out the declaration of the variable.
*/
public void declare(JFormatter f) {
f.id(name);
if(bound!=null)
f.p("extends").g(bound);
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
/**
* Prints out the declaration of the variable.
*/
public void declare(JFormatter f) {
f.id(name);
if(bound!=null)
f.p("extends").g(bound);
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
/**
* Prints out the declaration of the variable.
*/
public void declare(JFormatter f) {
f.id(name);
if(bound!=null)
f.p("extends").g(bound);
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* Prints out the declaration of the variable.
*/
public void declare(JFormatter f) {
f.id(name);
if(bound!=null)
f.p("extends").g(bound);
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
public void bind(JFormatter f) {
if (annotations != null){
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.g(mods).g(type).id(name);
if (init != null)
f.p('=').g(init);
}
代码示例来源:origin: com.sun.codemodel/codemodel
public void bind(JFormatter f) {
if (annotations != null){
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.g(mods).g(type).id(name);
if (init != null)
f.p('=').g(init);
}
代码示例来源:origin: javaee/jaxb-v2
public void bind(JFormatter f) {
if (annotations != null){
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.g(mods).g(type).id(name);
if (init != null)
f.p('=').g(init);
}
代码示例来源:origin: com.sun.codemodel/codemodel
public void declare(JFormatter f) {
if( jdoc != null )
f.nl().g( jdoc );
if (annotations != null) {
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.id(name);
if(args!=null) {
f.p('(').g(args).p(')');
}
}
代码示例来源:origin: javaee/jaxb-v2
public void declare(JFormatter f) {
if( jdoc != null )
f.nl().g( jdoc );
if (annotations != null) {
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.id(name);
if(args!=null) {
f.p('(').g(args).p(')');
}
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
public void declare(JFormatter f) {
if( jdoc != null )
f.nl().g( jdoc );
if (annotations != null) {
for( int i=0; i<annotations.size(); i++ )
f.g(annotations.get(i)).nl();
}
f.id(name);
if(args!=null) {
f.p('(').g(args).p(')');
}
}
代码示例来源:origin: com.sun.codemodel/codemodel
public void generate(JFormatter f) {
String name = this.name;
if(name==null) name=var.name();
if (object != null) {
f.g(object).p('.').p(name);
} else {
if (explicitThis) {
f.p("this.").p(name);
} else {
f.id(name);
}
}
}
代码示例来源:origin: javaee/jaxb-v2
public void generate(JFormatter f) {
String name = this.name;
if(name==null) name=var.name();
if (object != null) {
f.g(object).p('.').p(name);
} else {
if (explicitThis) {
f.p("this.").p(name);
} else {
f.id(name);
}
}
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
public void state(JFormatter f) {
f.p("for (");
f.g(type).id(var).p(": ").g(collection);
f.p(')');
if (body != null)
f.g(body).nl();
else
f.p(';').nl();
}
代码示例来源:origin: javaee/jaxb-v2
public void state(JFormatter f) {
f.p("for (");
f.g(type).id(var).p(": ").g(collection);
f.p(')');
if (body != null)
f.g(body).nl();
else
f.p(';').nl();
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
public void state(JFormatter f) {
f.p("for (");
f.g(type).id(var).p(": ").g(collection);
f.p(')');
if (body != null)
f.g(body).nl();
else
f.p(';').nl();
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
public void state(JFormatter f) {
f.p("for (");
f.g(type).id(var).p(": ").g(collection);
f.p(')');
if (body != null)
f.g(body).nl();
else
f.p(';').nl();
}
代码示例来源:origin: com.sun.codemodel/codemodel
public void state(JFormatter f) {
f.p("for (");
f.g(type).id(var).p(": ").g(collection);
f.p(')');
if (body != null)
f.g(body).nl();
else
f.p(';').nl();
}
内容来源于网络,如有侵权,请联系作者删除!