本文整理了Java中com.sun.codemodel.JFormatter.spaceIfNeeded()
方法的一些代码示例,展示了JFormatter.spaceIfNeeded()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFormatter.spaceIfNeeded()
方法的具体详情如下:
包路径:com.sun.codemodel.JFormatter
类名称:JFormatter
方法名:spaceIfNeeded
暂无
代码示例来源:origin: sun-jaxb/jaxb-xjc
/**
* Print a String into the stream
*
* @param s the String
*/
public JFormatter p(String s) {
if(mode==Mode.PRINTING) {
spaceIfNeeded(s.charAt(0));
pw.print(s);
lastChar = s.charAt(s.length() - 1);
}
return this;
}
代码示例来源:origin: com.sun.codemodel/codemodel
/**
* Print a String into the stream
*
* @param s the String
*/
public JFormatter p(String s) {
if(mode==Mode.PRINTING) {
spaceIfNeeded(s.charAt(0));
pw.print(s);
lastChar = s.charAt(s.length() - 1);
}
return this;
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* Print a String into the stream
*
* @param s the String
*/
public JFormatter p(String s) {
if(mode==Mode.PRINTING) {
spaceIfNeeded(s.charAt(0));
pw.print(s);
lastChar = s.charAt(s.length() - 1);
}
return this;
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
/**
* Print a String into the stream
*
* @param s the String
*/
public JFormatter p(String s) {
if(mode==Mode.PRINTING) {
spaceIfNeeded(s.charAt(0));
pw.print(s);
lastChar = s.charAt(s.length() - 1);
}
return this;
}
代码示例来源:origin: com.sun.codemodel/codemodel
/**
* Print a char into the stream
*
* @param c the char
*/
public JFormatter p(char c) {
if(mode==Mode.PRINTING) {
if(c==CLOSE_TYPE_ARGS) {
pw.print('>');
} else {
spaceIfNeeded(c);
pw.print(c);
}
lastChar = c;
}
return this;
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
/**
* Print a char into the stream
*
* @param c the char
*/
public JFormatter p(char c) {
if(mode==Mode.PRINTING) {
if(c==CLOSE_TYPE_ARGS) {
pw.print('>');
} else {
spaceIfNeeded(c);
pw.print(c);
}
lastChar = c;
}
return this;
}
代码示例来源:origin: javaee/jaxb-v2
/**
* Print a String into the stream
*
* @param s the String
*/
public JFormatter p(String s) {
if(mode==Mode.PRINTING) {
spaceIfNeeded(s.charAt(0));
pw.print(s);
lastChar = s.charAt(s.length() - 1);
}
return this;
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* Print a char into the stream
*
* @param c the char
*/
public JFormatter p(char c) {
if(mode==Mode.PRINTING) {
if(c==CLOSE_TYPE_ARGS) {
pw.print('>');
} else {
spaceIfNeeded(c);
pw.print(c);
}
lastChar = c;
}
return this;
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
/**
* Print a char into the stream
*
* @param c the char
*/
public JFormatter p(char c) {
if(mode==Mode.PRINTING) {
if(c==CLOSE_TYPE_ARGS) {
pw.print('>');
} else {
spaceIfNeeded(c);
pw.print(c);
}
lastChar = c;
}
return this;
}
代码示例来源:origin: javaee/jaxb-v2
/**
* Print a char into the stream
*
* @param c the char
*/
public JFormatter p(char c) {
if(mode==Mode.PRINTING) {
if(c==CLOSE_TYPE_ARGS) {
pw.print('>');
} else {
spaceIfNeeded(c);
pw.print(c);
}
lastChar = c;
}
return this;
}
内容来源于网络,如有侵权,请联系作者删除!