Examples of Parameters


Examples of org.rascalmpl.ast.Parameters

    public Result<IValue> interpret(IEvaluator<Result<IValue>> eval) {

      eval.setCurrentAST(this);
      eval.notifyAboutSuspension(this);     

      Parameters parameters = getParameters();
      Type formals = parameters.typeOf(eval.getCurrentEnvt(), true, eval);
      RascalTypeFactory RTF = RascalTypeFactory.getInstance();

      Type kwParams = TF.voidType();
      java.util.List<KeywordFormal> kws = parameters.getKeywordFormals().hasKeywordFormalList() ? parameters.getKeywordFormals().getKeywordFormalList() : Collections.<KeywordFormal>emptyList();
     
      if (parameters.hasKeywordFormals() && parameters.getKeywordFormals().hasKeywordFormalList()) {
        kwParams = TypeDeclarationEvaluator.computeKeywordParametersType(kws, eval);
      }

      return new RascalFunction(this, eval, null, (FunctionType) RTF
          .functionType(TF.voidType(), formals, kwParams), kws, this.getParameters()
View Full Code Here

Examples of org.rascalmpl.ast.Parameters

    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {
      __eval.setCurrentAST(this);
      __eval.notifyAboutSuspension(this);     

      Environment env = __eval.getCurrentEnvt();
      Parameters parameters = getParameters();
      Type formals = parameters.typeOf(env, true, __eval);
      Type returnType = typeOf(env, true, __eval);
      RascalTypeFactory RTF = RascalTypeFactory.getInstance();

      Type kwParams = TF.voidType();

      java.util.List<KeywordFormal> kwd = parameters.getKeywordFormals().hasKeywordFormalList() ? parameters.getKeywordFormals().getKeywordFormalList() : Collections.<KeywordFormal>emptyList();
     
      if (parameters.hasKeywordFormals() && parameters.getKeywordFormals().hasKeywordFormalList()) {
        kwParams = TypeDeclarationEvaluator.computeKeywordParametersType(kwd, __eval);
      }

      return new RascalFunction(this, __eval, null,
          (FunctionType) RTF.functionType(returnType, formals, kwParams),
View Full Code Here

Examples of org.springframework.data.repository.query.Parameters

        this.method = method;
        this.query = new StringQuery(queryString);
        this.countQuery = new StringQuery(method.getCountQuery() == null ? QueryUtils.createCountQueryFor(queryString)
                : method.getCountQuery());

        Parameters parameters = method.getParameters();
        boolean hasPagingOrSortingParameter = parameters.hasPageableParameter() || parameters.hasSortParameter();

        if (method.isNativeQuery() && hasPagingOrSortingParameter) {
            throw new IllegalStateException("Cannot use native queries with dynamic sorting and/or pagination!");
        }
View Full Code Here

Examples of org.testng.annotations.Parameters

    return result;
  }

  private IAnnotation createParametersTag(Annotation a) {
    ParametersAnnotation result = new ParametersAnnotation();
    Parameters c = (Parameters) a;
    result.setValue(c.value());
   
    return result;
  }
View Full Code Here

Examples of org.visitrend.ndvis.parameters.Parameters

    private void init(BufferedImage img) {
        saveLookup = new InstanceContent();
        associateLookup(new ProxyLookup(new AbstractLookup(content),
                new AbstractLookup(saveLookup), Lookups.singleton(this)));
        content.add(dataInfo);
        final Parameters params = new Parameters(dataInfo, this);
        content.add(params);
        final ColorMapper cm = new ColorMapper(params, this);
        content.add(cm);
       
        if(img==null){
            // it's important to call these ColorEngine method in this order
            cm.getEngine().updateOrder();
            cm.getEngine().updateBases();

            img = new BufferedImage(cm.getEngine().getUpperXbound(),
                    cm.getEngine().getUpperYbound(), BufferedImage.TYPE_INT_RGB);
        }
       
        image = new ImagePane();

        listeners = new EventListenerList();
        atx = new AffineTransform();
        resetImageManipulation();
        image.setDoubleBuffered(false);
        image.setBackground(Color.gray);
        image.setForeground(Color.white);
        image.setOpaque(true);
        // Let the user scroll by dragging to outside the window.
        image.setAutoscrolls(true);
        // this will set more stuff and possibly resize
        // this panel component
        setOffScreenImage(img);

        scrollPane = new JScrollPane(image);
        scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
        scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        setLayout(new BorderLayout());
        add(scrollPane, BorderLayout.CENTER);
        add(params, BorderLayout.NORTH);
        add(cm, BorderLayout.SOUTH);
       
        count++;
        setDisplayName("Image " + count);

        WindowManager.getDefault().invokeWhenUIReady(new Runnable() {

            @Override
            public void run() {
                params.setVisible(true);
                cm.setVisible(true);
                impl = Lookup.getDefault().lookup(SaveCookie.class);
            }
        });
    }
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.RandomDocOpGenerator.Parameters

  }

  public void testRandomDocOps() throws OperationException {
    OpEquator eq = OpComparators.SYNTACTIC_IDENTITY;

    Parameters p = new Parameters();
    for (int i = 0; i < 200; i++) {
      BootstrapDocument doc = new BootstrapDocument();
      for (int j = 0; j < 20; j++) {
        RandomProvider ra = RandomProviderImpl.ofSeed(i * 20 + j);
        RandomProvider rb = RandomProviderImpl.ofSeed(i * 20 + j + 1);
View Full Code Here

Examples of org.xrace.desjardins.reponse.Parameters

    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Parameters target = (Parameters) object;
        return target.getParameter();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target
              .addParameter((org.xrace.desjardins.reponse.Parameter) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public void resetValue(Object object) throws IllegalStateException,
          IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target.removeAllParameter();
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
View Full Code Here

Examples of org.xrace.desjardins.request.Parameters

    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Parameters target = (Parameters) object;
        return target.getParameter();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target
              .addParameter((org.xrace.desjardins.request.Parameter) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public void resetValue(Object object) throws IllegalStateException,
          IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target.removeAllParameter();
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
View Full Code Here

Examples of org.xrace.desjardins.trx.Parameters

    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Parameters target = (Parameters) object;
        return target.getParameter();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target
              .addParameter((org.xrace.desjardins.trx.Parameter) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public void resetValue(Object object) throws IllegalStateException,
          IllegalArgumentException
      {
        try
        {
          Parameters target = (Parameters) object;
          target.removeAllParameter();
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
View Full Code Here

Examples of simple.util.net.Parameters

   * @return The names of the given parameters.
   * @throws RegainException If getting the parameter names failed.
   */
  public Enumeration getParameterNames() throws RegainException {
    try {
      Parameters params = mRequest.getParameters();
      return params.getParameterNames();
    }
    catch (IOException exc) {
      throw new RegainException("Getting parameter names failed", exc);
    }
  }
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.