Package no.hal.jex

Examples of no.hal.jex.JavaField


            return method;
          }
        }
      }
    } else if (jexElement instanceof JavaField) {
      JavaField jexField = (JavaField) jexElement;
      Class<?> javaClass = (Class<?>) getReflectiveElement(jexField.getOwner());
      if (javaClass != null) {
        try {
          Field javaField = javaClass.getField(jexField.getSimpleName());
          if (ReflectiveRequirementChecker.testTypeString(jexField.getType(), javaField.getType()) == Boolean.TRUE) {
            return javaField;
          }
        } catch (SecurityException e) {
        } catch (NoSuchFieldException e) {
        }
View Full Code Here


    return super.getImage(object);
  }

  @Override
  public String getImageName(Object object) {
    JavaField javaField = (JavaField)object;
    return JDT_UI_IMAGE_PREFIX + "field_" + getAccessModifierString(javaField, -1, null) + "_obj.gif";
  }
View Full Code Here

      javaMethod.getThrowables().addAll(Arrays.asList(method.getExceptionTypes()));
    } else if (jexMember instanceof JavaField) {
      if (! (jdtMember instanceof IField)) {
        throw new IllegalArgumentException("Cannot init JavaField from " + jdtMember);
      }
      JavaField javaField = (JavaField) jexMember;
      javaField.setType(Signature.toString(((IField) jdtMember).getTypeSignature()));
    }
  }
View Full Code Here

          returnType = "void";
        }
        JavaMethod javaMethod = (JavaMethod) ensureJavaMethod(testedElementName, returnType, params, exceptions, methodParent.getMembers());
        testedElement = javaMethod;
      } else {
        JavaField javaField = (JavaField) ensureJavaElement(testedElementName, methodParent.getMembers(), JexPackage.eINSTANCE.getJavaField());
        javaField.setType(returnType);
        testedElement = javaField;
      }
      javaMethodTester.getTestedElements().add(testedElement);
      JavaRequirement javaReq = JexFactory.eINSTANCE.createJavaRequirement();
      javaReq.setText("Requires " + testedElements[i].trim());
View Full Code Here

TOP

Related Classes of no.hal.jex.JavaField

Copyright © 2018 www.massapicom. 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.