Examples of addField()


Examples of edu.umd.cs.findbugs.BugInstance.addField()

                    priority--;
                }
                BugInstance bug = new BugInstance(this, "SA_FIELD_DOUBLE_ASSIGNMENT", priority).addClassAndMethod(this)
                        .addReferencedField(this);
                if (intendedTarget != null) {
                    bug.addField(intendedTarget).describe(FieldAnnotation.DID_YOU_MEAN_ROLE);
                }

                bugAccumulator.accumulateBug(bug, this);
            }
            putFieldPC = getPC();
View Full Code Here

Examples of gc.solr.publish.DocBuilder.addField()

    if (!this.approvedOnly) {
      builder.setField(doc,"gpt.doc.approvalstatus_s",resource.approvalstatus);
    }
        if (collections!=null) {
          for (String shortName: collections.getShortNames()) {
            builder.addField(doc,FieldConstants.Sys_Src_Collections,shortName);
            builder.addField(doc,FieldConstants.Sys_Src_Collections_ss,shortName);
          }
        }
    //System.err.println(doc);
   
View Full Code Here

Examples of gr.ekt.bte.core.MutableRecord.addField()

            List<Value> values = new LinkedList<Value>();
            for (String[] sArray : authors)
            {
                values.add(new StringValue(sArray[1] + ", " + sArray[0]));
            }
            record.addField("authors", values);
        }

        if (editors.size() > 0)
        {
            List<Value> values = new LinkedList<Value>();
View Full Code Here

Examples of javassist.CtClass.addField()

        String pattern2 = "org.slf4j.LoggerFactory.getLogger({}.class);";
        String replace = name.replace('/', '.');
        String getLogger = format(pattern2, replace).getMessage();

        cl.addField(field, getLogger);

        // then check every behaviour (which includes methods). We are
        // only
        // interested in non-empty ones, as they have code.
        // NOTE: This will be changed, as empty methods should be
View Full Code Here

Examples of javassist.bytecode.ClassFile.addField()

        cf.setAccessFlags(AccessFlag.PUBLIC);
        setInterfaces(cf, interfaces);
        ConstPool pool = cf.getConstPool();
        FieldInfo finfo = new FieldInfo(pool, DEFAULT_INTERCEPTOR, HANDLER_TYPE);
        finfo.setAccessFlags(AccessFlag.PUBLIC | AccessFlag.STATIC);
        cf.addField(finfo);

        FieldInfo finfo2 = new FieldInfo(pool, HANDLER, HANDLER_TYPE);
        finfo2.setAccessFlags(AccessFlag.PRIVATE);
        cf.addField(finfo2);
View Full Code Here

Examples of jimm.datavision.gui.SectionWidget.addField()

    // Create the widget and add it to the proper section widget.
    SectionWidget sectionWidget =
  Designer.findWindowFor(report).findSectionWidgetFor(s);

    aggregateWidget = new FieldWidget(null, aggregate);
    sectionWidget.addField(aggregateWidget);

    // For some reason we need to force a repaint of the section. Can't
    // just call invalidate.
    sectionWidget.repaint();
}
View Full Code Here

Examples of jp.co.smg.endosnipe.javassist.CtClass.addField()

        List<CtBehavior> behaviorList = getMatcheDeclaredBehavior();
        CtClass ctClass = getCtClass();
        if (behaviorList.size() > 0)
        {
            CtField field = CtField.make("private long createTimeJvn;", ctClass);
            ctClass.addField(field);

            CtMethod getServerInfoMethod = CtMethod.make("" + //
                    "public long getCreateTimeJvn(){ " + //
                    "        return this.createTimeJvn;" + //
                    "}", ctClass);
View Full Code Here

Examples of net.pterodactylus.sone.data.Profile.addField()

        webInterface.getCore().touchConfiguration();
        throw new RedirectException("editProfile.html");
      } else if (request.getHttpRequest().getPartAsStringFailsafe("add-field", 4).equals("true")) {
        String fieldName = request.getHttpRequest().getPartAsStringFailsafe("field-name", 256).trim();
        try {
          profile.addField(fieldName);
          currentSone.setProfile(profile);
          fields = profile.getFields();
          webInterface.getCore().touchConfiguration();
          throw new RedirectException("editProfile.html#profile-fields");
        } catch (IllegalArgumentException iae1) {
View Full Code Here

Examples of net.sf.clairv.index.document.Document.addField()

          }
          Pair type = (Pair) fieldTypeMappings.get(name);
          log.debug("Adding a field of name \"" + name
              + "\" with content: " + content);
          if (type != null) {
            doc.addField(name, content, (StoreOption)(type.t), (IndexOption)(type.v));
          } else {
            log.warn("Type of filed " + name + " is not mapped; "
                + "regarding as stored and untokenized");
            doc.addField(name, content, StoreOption.YES, IndexOption.UN_TOKENIZED);
          }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignDataset.addField()

      DJCrosstabRow crosstabRow = rows[i];
      JRDesignField field = new JRDesignField();
      field.setName(crosstabRow.getProperty().getProperty());
      field.setValueClassName(crosstabRow.getProperty().getValueClassName());
      try {
        jrDataset.addField(field);
      } catch (JRException e) {
        log.error(e.getMessage(),e);
      }
    }
    for (int i = cols.length-1; i >= 0; i--) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.