Examples of FieldInfo


Examples of ariba.util.fieldtype.FieldInfo

                addSemanticRecordToNode(node, null, _thisField, null,
                                        Symbol.ThisField, null);
                return;
            }

            FieldInfo field = _rootType.getField(_env.getTypeRetriever(),
                                                 _thisField);
            if (field == null) {
                addError(node, Fmt.S("Field %s does not exist in class %s.",
                               _thisField, _rootType.getName()));
                return;
            }
            TypeInfo fieldType = field.getType(_env.getTypeRetriever());
            if (fieldType != null) {
                addSemanticRecordToNode(node, fieldType, _thisField, null,
                                        Symbol.ThisField, null);
            }
            else {
View Full Code Here

Examples of cli.System.Reflection.FieldInfo

        Type utsnameType = Type.GetType("Mono.Unix.Native.Utsname, Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756");
  if (syscallType != null && utsnameType != null)
  {
      Object[] arg = new Object[] { Activator.CreateInstance(utsnameType) };
      MethodInfo uname = syscallType.GetMethod("uname", new Type[] { utsnameType.MakeByRefType() });
      FieldInfo fi = utsnameType.GetField(field);
      if (uname != null && fi != null)
      {
    uname.Invoke(null, arg);
    return (String)fi.GetValue(arg[0]);
      }
  }
  return null;
    }
View Full Code Here

Examples of cn.wensiqun.info.FieldInfo

    }
  }

 
  public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {
    FieldInfo fieldInfo = new FieldInfo(info, name, desc);
    info.getFields().add(fieldInfo);
    return new FieldDefVisitor(grepClient, fieldInfo);
  }
View Full Code Here

Examples of com.alibaba.druid.support.monitor.dao.MonitorDaoJdbcImpl.FieldInfo

        buf.append(", host varchar(128)");
        buf.append(", pid int(10)  NOT NULL");
        buf.append(", collectTime datetime NOT NULL");
        List<FieldInfo> fields = beanInfo.getFields();
        for (int i = 0; i < fields.size(); ++i) {
            FieldInfo field = fields.get(i);
            buf.append(", ");
            buf.append(field.getColumnName());
            if (field.getFieldType().equals(int.class) || field.getFieldType().equals(Integer.class)) {
                buf.append(" int(10)");
            } else if (field.getFieldType().equals(long.class) || field.getFieldType().equals(Long.class)) {
                buf.append(" bigint(20)");
            } else if (field.getFieldType().equals(String.class)) {
                buf.append(" varchar(256)");
            } else if (field.getFieldType().equals(Date.class)) {
                buf.append(" datetime");
            } else if (field.getFieldType().equals(boolean.class) || field.getFieldType().equals(Boolean.class)) {
                buf.append(" int(1)");
            }
        }
        buf.append(", PRIMARY KEY(id)");
        buf.append(");");
View Full Code Here

Examples of com.alibaba.fastjson.util.FieldInfo

        mw.visitVarInsn(ISTORE, context.var("seperator"));
       
        _before(mw, context);

        for (int i = 0; i < size; ++i) {
            FieldInfo property = getters.get(i);
            Class<?> propertyClass = property.getFieldClass();

            mw.visitLdcInsn(property.getName());
            mw.visitVarInsn(ASTORE, context.fieldName());

            if (propertyClass == byte.class) {
                _byte(clazz, mw, property, context);
            } else if (propertyClass == short.class) {
View Full Code Here

Examples of com.google.api.client.util.FieldInfo

          "multiple headers of the same name (headers are case insensitive): %s", name);
      Object value = headerEntry.getValue();
      if (value != null) {
        // compute the display name from the declared field name to fix capitalization
        String displayName = name;
        FieldInfo fieldInfo = headers.getClassInfo().getFieldInfo(name);
        if (fieldInfo != null) {
          displayName = fieldInfo.getName();
        }
        Class<? extends Object> valueClass = value.getClass();
        if (value instanceof Iterable<?> || valueClass.isArray()) {
          for (Object repeatedValue : Types.iterableOf(value)) {
            addHeader(logger,
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.FieldInfo

    frame.refresh();
    // initial state
    EditorInfo editor = frame.getChildren(EditorInfo.class).get(0);
    assertThat(editor.getChildren(FieldInfo.class)).hasSize(1);
    // remove field
    FieldInfo field = editor.getChildren(FieldInfo.class).get(0);
    field.delete();
    frame.refresh();
    // in background default field was set to Editor
    assertEditor(
        "import com.gwtext.client.widgets.Editor;",
        "import com.gwtext.client.widgets.form.TextField;",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.FieldInfo

            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    //
    FieldInfo field = createJavaInfo("com.extjs.gxt.ui.client.widget.form.TextField");
    panel.getLayout().command_CREATE(field);
    assertEditor(
        "// filler filler filler",
        "public class Test extends FormPanel {",
        "  public Test() {",
View Full Code Here

Examples of com.google.test.metric.FieldInfo

      if (leftVar != null && rightVar != null) {
        Node leftParent = leftDeclaration.getParent();
        if (leftParent instanceof ClassDeclaration) {
          ClassInfo classInfo = repository.getClass(leftDeclaration.getName());
          Type fieldType = CppType.fromName(leftDeclaration.getType());
          FieldInfo fieldInfo = new FieldInfo(classInfo, leftDeclaration
              .getName(), fieldType, false, false, false);
          operations.add(new FieldAssignment(assignmentExpression
              .getLineNumber(), leftVar, fieldInfo, rightVar));
        } else {
          operations.add(new LocalAssignment(assignmentExpression
View Full Code Here

Examples of com.google.test.metric.FieldInfo

    Block main = new Block("main");
    Block sub = new Block("sub");

    main.addOp(new Load(0, new Variable("this", JavaType.OBJECT, false, false)));
    main.addOp(new JSR(0, sub));
    main.addOp(new PutField(0, new FieldInfo(null, "a", JavaType.INT, false, false,
        false)));

    sub.addOp(new Load(0, new Constant(1, JavaType.INT)));
    sub.addOp(new Return(0, JavaType.VOID));
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.