com.sun.codemodel.JFormatter.spaceIfNeeded()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中com.sun.codemodel.JFormatter.spaceIfNeeded()方法的一些代码示例,展示了JFormatter.spaceIfNeeded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFormatter.spaceIfNeeded()方法的具体详情如下:
包路径:com.sun.codemodel.JFormatter
类名称:JFormatter
方法名:spaceIfNeeded

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;
}

相关文章