Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.NonAbstractJavaFunction


    throw new JavaMethodLink(className, "class not found", func, null);
  }

  public Method lookupJavaMethod(IEvaluator<Result<IValue>> eval, FunctionDeclaration func, Environment env, boolean hasReflectiveAccess){
    if(!func.isAbstract()){
      throw new NonAbstractJavaFunction(func);
    }
   
    String className = getClassName(func);
    String name = Names.name(func.getSignature().getName());
   
View Full Code Here


    public Result<IValue> interpret(IEvaluator<Result<IValue>> __eval) {
      AbstractFunction lambda;
      boolean varArgs = this.getSignature().getParameters().isVarArgs();

      if (hasJavaModifier(this)) {
        throw new NonAbstractJavaFunction(this);
      }

      if (!this.getBody().isDefault()) {
        throw new MissingModifier("java", this);
      }
View Full Code Here

     
      AbstractFunction lambda;
      boolean varArgs = this.getSignature().getParameters().isVarArgs();

      if (hasJavaModifier(this)) {
        throw new NonAbstractJavaFunction(this);
      }

      lambda = new RascalFunction(__eval, this, varArgs, __eval
          .getCurrentEnvt(), __eval.__getAccumulators());
     
View Full Code Here

     
      AbstractFunction lambda;
      boolean varArgs = this.getSignature().getParameters().isVarArgs();

      if (hasJavaModifier(this)) {
        throw new NonAbstractJavaFunction(this);
      }

      ISourceLocation src = this.getLocation();
      AbstractAST ret = ASTBuilder.makeStat("Return", src, ASTBuilder.makeStat("Expression", src, getExpression()));
      AbstractAST fail = ASTBuilder.makeStat("Fail", src, ASTBuilder.make("Target", "Labeled", src, getSignature().getName()));
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.NonAbstractJavaFunction

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.