Examples of IField


Examples of org.eclipse.jdt.core.IField

  @Override
  protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException {
    super.createTypeMembers(type, imports, monitor);
    String lineDelim = "\n";
    IField field = type.getField("serialVersionUID");
    if (!field.exists()) {
      String verfield = "private static final long serialVersionUID = 1L;";
      verfield += lineDelim;
      type.createField(verfield, null, false, monitor);
    }
    if (super.isCreateMain()) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

  @Override
  protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException {
    super.createTypeMembers(type, imports, monitor);
    String lineDelim = "\n";
    IField field = type.getField("serialVersionUID");
    if (!field.exists()) {
      String verfield = "private static final long serialVersionUID = 1L;";
      verfield += lineDelim;
      type.createField(verfield, null, false, monitor);
    }
    if (super.isCreateMain()) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

  @Override
  protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException {
    super.createTypeMembers(type, imports, monitor);
    String lineDelim = "\n";
    IField field = type.getField("serialVersionUID");
    if (!field.exists()) {
      String verfield = "private static final long serialVersionUID = 1L;";
      verfield += lineDelim;
      type.createField(verfield, null, false, monitor);
    }
    if (super.isCreateMain()) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

  @Override
  protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException {
    super.createTypeMembers(type, imports, monitor);
    String lineDelim = "\n";
    IField field = type.getField("serialVersionUID");
    if (!field.exists()) {
      String verfield = "private static final long serialVersionUID = 1L;";
      verfield += lineDelim;
      type.createField(verfield, null, false, monitor);
    }
    if (super.isCreateMain()) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

  @Override
  protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException {
    super.createTypeMembers(type, imports, monitor);
    String lineDelim = "\n";
    IField field = type.getField("serialVersionUID");
    if (!field.exists()) {
      String verfield = "private static final long serialVersionUID = 1L;";
      verfield += lineDelim;
      type.createField(verfield, null, false, monitor);
    }
    if (super.isCreateMain()) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

        IType r = i.next();
        IAnnotation ia = r.getAnnotation("Entity");
        if (ia != null && ia.exists()) {
          IField[] fields = r.getFields();
          for (IField f : fields) {
            IField sf = (IField) f;
            if (sf instanceof SourceField) {
              SourceField ssf = (SourceField) sf;
              String sigString = ssf.getTypeSignature();
              IAnnotation[] ias = sf.getAnnotations();
              if (ias == null || ias.length == 0 && true) {
                sigString = Signature.getTypeErasure(sigString);
                String simpleName = Signature
                    .toString(sigString);

                String name = sf.getElementName();
                if (isSupportedType(simpleName)) {
                  fieldss.put(name, getSupported(simpleName));
                } else {
                  fieldss.put(name, Blob.class);
                }

              }
            }
          }
        } else {
          IAnnotation ib = r.getAnnotation("PersistenceCapable");
          if (ib != null && ib.exists()) {
            IField[] fields = r.getFields();
            for (IField f : fields) {
              IField sf = (IField) f;
              if (sf instanceof SourceField) {
                SourceField ssf = (SourceField) sf;
                String sigString = ssf.getTypeSignature();
                IAnnotation iaf = sf
                    .getAnnotation("Persistent");
                IAnnotation iaPk = sf
                    .getAnnotation("PrimaryKey");
                if (iaf != null && iaf.exists()
                    && (iaPk == null || !iaPk.exists())) {
                  sigString = Signature
                      .getTypeErasure(sigString);
                  String simpleName = Signature
                      .toString(sigString);

                  String name = sf.getElementName();
                  boolean flg = containsSerializedFlag(iaf);
                  if ((isSupportedType(simpleName) || flg)
                      && !childs.contains(name)) {

                    if (!flg) {
View Full Code Here

Examples of org.eclipse.jdt.core.IField

            if ((iaJDO != null && iaJDO.exists())
                || (iaJPA != null && iaJPA.exists())) {

              if (f instanceof IField) {
                IField sf = (IField) f;
                String s = sf.getTypeSignature();
                String name = Signature.toString(s);
                String[] ss = Signature.getTypeArguments(s);
                if (ss.length == 1) {
                  name = Signature.toString(ss[0]);
                }
                String valName = sf.getElementName();
                ArrayList<String> pch = null;
                if (iaJDO != null && iaJDO.exists()) {
                  pch = getPossibleRelatedKinds(
                      name,
                      ijss,
View Full Code Here

Examples of org.eclipse.jdt.core.IField

          String key = isFieldsCompleted(embeddedTypes);
          while (key != null) {
            FieldInfo removed = embeddedTypes.remove(key);
            String name = removed.getFieldTypeName();
            String encType = removed.getEnclosingType();
            IField f = removed.getF();
            findAllRelatedFields(embeddedTypes, isjdo, f, name,
                encType);

            key = isFieldsCompleted(embeddedTypes);
          }
View Full Code Here

Examples of org.eclipse.jdt.core.IField

        private boolean hasField(final String fieldName)
        {
            final IType type = lazilyCalculateType();
            if (type != null)
            {
                final IField field = type.getField(fieldName);
                return field.exists();
            }
            return false;
        }
View Full Code Here

Examples of org.eclipse.jdt.core.IField

    IType Clazz = (IType) field.getParent();

      try
      {       
        IField fields[] = Clazz.getFields();

        for(int i=0; i<fields.length; i++)
        {
          IField item = fields[i];
         
          if (item.equals(field))
          {
            nextField = (IField)fields[i+1];
            // System.out.println("Next Field"+nextField);
          }
        }                       
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.