Examples of type()


Examples of ast.Parameter.type()

    // create identity statements
    int nparm = fn.getNumParameter();
    for(int i=0;i<nparm;++i) {
      Parameter parm = fn.getParameter(i);
      Local sootLocal = getSootLocal(parm);
      Type parmType = SootTypeUtil.getSootType(parm.type());
      ParameterRef soot_parm = Jimple.v().newParameterRef(parmType, i);
      body.getUnits().add(Jimple.v().newIdentityStmt(sootLocal, soot_parm));
    }   
   
    // generate code for statements
View Full Code Here

Examples of br.com.caelum.seleniumdsl.Field.type()

  @Test
  public void fillFormField() {
    String testContent = "test content";
    String idField = "textinput";
    Field field = form.field(idField);
    field.type(testContent);
    String value = getSelenium().getValue(idField);
    Assert.assertEquals(value, testContent);
    Assert.assertEquals(value, field.content());
    Assert.assertTrue(field.contains(testContent));
  }
View Full Code Here

Examples of br.gov.frameworkdemoiselle.annotation.ManagedOperation.type()

          // operação.

          Class<?>[] parameterTypes = method.getParameterTypes();
          Annotation[][] parameterAnnotations = method.getParameterAnnotations();
          ParameterDetail[] parameterDetails = new ParameterDetail[parameterTypes.length];
          OperationType operationType = opAnnotation.type();

          for (int i = 0; i < parameterTypes.length; i++) {
            OperationParameter paramAnnotation = null;
            for (Annotation annotation : parameterAnnotations[i]) {
              if (annotation.annotationType() == OperationParameter.class) {
View Full Code Here

Examples of ca.uhn.fhir.model.api.CodeableConceptElement.type()

        CodeableConceptElement concept = next.getAnnotation(CodeableConceptElement.class);
        if (concept != null) {
          if (!ICodedDatatype.class.isAssignableFrom(nextDatatype)) {
            throw new ConfigurationException("Field '" + elementName + "' in type '" + theClass.getCanonicalName() + "' is marked as @" + CodeableConceptElement.class.getCanonicalName() + " but type is not a subtype of " + ICodedDatatype.class.getName());
          } else {
            Class<? extends ICodeEnum> type = concept.type();
            myScanAlsoCodeTable.add(type);
            def.setCodeType(type);
          }
        }
View Full Code Here

Examples of ca.uhn.fhir.model.api.annotation.Child.type()

      while (order == Child.ORDER_UNKNOWN && orderMap.containsKey(order)) {
        order--;
      }

      List<Class<? extends IElement>> choiceTypes = new ArrayList<Class<? extends IElement>>();
      for (Class<? extends IElement> nextChoiceType : childAnnotation.type()) {
        choiceTypes.add(nextChoiceType);
      }

      if (orderMap.containsKey(order)) {
        throw new ConfigurationException("Detected duplicate field order '" + childAnnotation.order() + "' for element named '" + elementName + "' in type '" + theClass.getCanonicalName() + "'");
View Full Code Here

Examples of ca.uhn.fhir.model.api.annotation.SearchParamDefinition.type()

  private void scanResourceForSearchParams(Class<? extends IResource> theClass, RuntimeResourceDefinition theResourceDef) {

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.AddTags.type()

    } else if (validate != null) {
      returnTypeFromAnnotation = validate.type();
    } else if (getTags != null) {
      returnTypeFromAnnotation = getTags.type();
    } else if (addTags != null) {
      returnTypeFromAnnotation = addTags.type();
    } else if (deleteTags != null) {
      returnTypeFromAnnotation = deleteTags.type();
    }

    if (returnTypeFromRp != null) {
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.Create.type()

    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != null) {
      returnTypeFromAnnotation = update.type();
    }

    if (returnTypeFromRp != null) {
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.Delete.type()

  public DeleteMethodBinding(Method theMethod, FhirContext theContext, Object theProvider) {
    super(theMethod, theContext, Delete.class,
        theProvider);

    Delete deleteAnnotation = theMethod.getAnnotation(Delete.class);
    Class<? extends IResource> resourceType = deleteAnnotation.type();
    if (resourceType != IResource.class) {
      RuntimeResourceDefinition def = theContext.getResourceDefinition(resourceType);
      myResourceName = def.getName();
    } else {
      if (theProvider != null && theProvider instanceof IResourceProvider) {
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.DeleteTags.type()

    } else if (getTags != null) {
      returnTypeFromAnnotation = getTags.type();
    } else if (addTags != null) {
      returnTypeFromAnnotation = addTags.type();
    } else if (deleteTags != null) {
      returnTypeFromAnnotation = deleteTags.type();
    }

    if (returnTypeFromRp != null) {
      if (returnTypeFromAnnotation != null && returnTypeFromAnnotation != IResource.class) {
        if (!returnTypeFromRp.isAssignableFrom(returnTypeFromAnnotation)) {
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.