Exemplo n.º 1
0
 private void addDOMField(ClassGenerator classGen) {
   final FieldGen fgen =
       new FieldGen(
           ACC_PUBLIC, Util.getJCRefType(DOM_INTF_SIG), DOM_FIELD, classGen.getConstantPool());
   classGen.addField(fgen.getField());
 }
Exemplo n.º 2
0
 /** Add a static field */
 private void addStaticField(ClassGenerator classGen, String type, String name) {
   final FieldGen fgen =
       new FieldGen(
           ACC_PROTECTED | ACC_STATIC, Util.getJCRefType(type), name, classGen.getConstantPool());
   classGen.addField(fgen.getField());
 }
Exemplo n.º 3
0
  /** @return deep copy of this field */
  public FieldGen copy(ConstantPoolGen cp) {
    FieldGen fg = (FieldGen) clone();

    fg.setConstantPool(cp);
    return fg;
  }