Examples of typeOf()


Examples of juzu.impl.fs.spi.ReadFileSystem.typeOf()

      // Load children
      for (int i = 0;i < paths.length;i++) {
        Object path = paths[i];
        if (path != null) {
          ReadFileSystem compound = fs.compounds[i];
          if (compound.typeOf(path) == PathType.DIR) {
            Iterator children = compound.getChildren(path);
            while (children.hasNext()) {
              Object child = children.next();
              String name = compound.getName(child);
              add(name).paths[i] = child;
View Full Code Here

Examples of org.rascalmpl.ast.Parameters.typeOf()

      if (parameters.hasKeywordFormals() && parameters.getKeywordFormals().hasKeywordFormalList()) {
        List<KeywordFormal> kwd = parameters.getKeywordFormals().getKeywordFormalList();
        kwParams = TypeDeclarationEvaluator.computeKeywordParametersType(kwd, eval);
      }

      return RTF.functionType(getType().typeOf(env, instantiateTypeParameters, eval), parameters.typeOf(env, instantiateTypeParameters, eval), kwParams);
    }
  }

  static public class WithThrows extends org.rascalmpl.ast.Signature.WithThrows {
    public WithThrows(IConstructor __param1, FunctionModifiers __param3, org.rascalmpl.ast.Type __param2,
View Full Code Here

Examples of org.rascalmpl.ast.Parameters.typeOf()

      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();
     
View Full Code Here

Examples of org.rascalmpl.ast.Parameters.typeOf()

      __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();
View Full Code Here

Examples of r.data.RAny.typeOf()

            }
            // selection at the last level
            int indexv = index.getInt(i);
            if (!(b instanceof RArray)) {
                // TODO: support language objects
                if (indexv == 1) { throw RError.getInvalidTypeLength(ast, b.typeOf(), 1); // FIXME: a very obscure error message but what GNU-R returns
                }
                if (indexv > 1) { throw RError.getSubscriptBounds(ast); }
                throw RError.getSelectLessThanOne(ast);
            }
            RArray a = (RArray) b;
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.