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

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

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

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

相关文章