Examples of FunctionType


Examples of org.rascalmpl.interpreter.types.FunctionType

    Type reified = Cobra.reifyType(type);
    generators.remove(reified);
  }

  public void setGenerator(IValue f) {
    FunctionType functionType = (FunctionType) f.getType();
    Type returnType = functionType.getReturnType();

    ICallableValue generator = (ICallableValue) f;

    generators.put(returnType, generator);
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.types.FunctionType

    Set<FunctionType> alternatives = new HashSet<FunctionType>();
    Iterator<AbstractFunction> iter = candidates.iterator();
    if(!iter.hasNext()) {
      return TF.voidType();
    }
    FunctionType first = iter.next().getFunctionType();
    Type returnType = first.getReturnType();
    alternatives.add(first);
   
    AbstractFunction l = null;
    while(iter.hasNext()) {
      l = iter.next();
View Full Code Here

Examples of ptolemy.data.type.FunctionType

     *  the type of the function parameter.
     */
    public void preinitialize() throws IllegalActionException {
        super.preinitialize();

        FunctionType type = (FunctionType) function.getType();
        output.setTypeEquals(type.getReturnType());
    }
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.