Examples of Return


Examples of org.hibernate.result.Return

    return ( (UpdateCountReturn) nextReturn ).getUpdateCount();
  }

  @Override
  public List getResultList() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getResultList();
  }
View Full Code Here

Examples of org.hibernate.result.Return

    return ( (ResultSetReturn) nextReturn ).getResultList();
  }

  @Override
  public Object getSingleResult() {
    final Return nextReturn = outputs().getNextReturn();
    if ( ! nextReturn.isResultSet() ) {
      return null; // todo : what should be thrown/returned here?
    }
    return ( (ResultSetReturn) nextReturn ).getSingleResult();
  }
View Full Code Here

Examples of org.python.antlr.ast.Return

    }

    @Override
    public Object visitExpression(Expression node) throws Exception {
        beginScope("<eval-top>", TOPSCOPE, node, null);
        visit(new Return(node,node.getInternalBody()));
        endScope();
        return null;
    }
View Full Code Here

Examples of org.python.parser.ast.Return

    public Object visitExpression(Expression node) throws Exception {
        if (my_scope.generator && node.body != null) {
            module.error("'return' with argument inside generator", true, node);
        }
        return visitReturn(new Return(node.body, node), true);
    }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Return

                body.clear();
            }
        }

        if (returnValue != null) {
            body.add(new Return(returnValue));
        }
    }
View Full Code Here

Examples of railo.transformer.bytecode.statement.Return

   */
  private final Return returnStatement(ExprData data) throws TemplateException {
      if(!data.cfml.forwardIfCurrentAndNoVarExt("return")) return null;
     
      Position line = data.cfml.getPosition();
      Return rtn;
     
      comments(data);
      if(checkSemiColonLineFeed(data, false,false)) rtn=new Return(line,data.cfml.getPosition());
      else {
        Expression expr = expression(data);
        checkSemiColonLineFeed(data, true,true);
        rtn=new Return(expr,line,data.cfml.getPosition());
      }
    comments(data);

    return rtn;
  }
View Full Code Here

Examples of tree.statement.Return


                    RETURN134=(Token)match(input,RETURN,FOLLOW_RETURN_in_statementLast2406); if (state.failed) return retval;
                    if ( state.backtracking==0 ) {
                    RETURN134_tree =
                    new Return(RETURN134)
                    ;
                    root_0 = (Object)adaptor.becomeRoot(RETURN134_tree, root_0);
                    }

                    // Haxe.g:243:35: ( expr )?
View Full Code Here

Examples of tree.statement.Return

            {
                return (Return)i;
            }
            else if (i.getChildCount() > 0)
            {
                Return result = getReturnNode(i);
                if (result != null)
                {
                    return result;
                }
            }
View Full Code Here

Examples of tree.statement.Return

    public void testIntToFloatInReturnNode() throws RecognitionException
    {
        HaxeTree tree = parseModule("class A { function main():Int { return 123.1;}}");
        linker.visit(tree, new Environment());
       
        Return returnNode = getReturnNode(tree);
        HaxeType type = returnNode.getHaxeType();
        Function function = returnNode.getFunction();   
        HaxeType funType = function.getHaxeType();
       
        assertTrue(!TypeUtils.isAvailableAssignement(funType, type));
    }
View Full Code Here

Examples of tree.statement.Return

    public void testFloatToIntInReturnNode() throws RecognitionException
    {
        HaxeTree tree = parseModule("class A { function main():Float { return 123;}}");
        linker.visit(tree, new Environment());
       
        Return returnNode = getReturnNode(tree);
        HaxeType type = returnNode.getHaxeType();
        Function function = returnNode.getFunction();
        HaxeType funType = function.getHaxeType();
       
        assertTrue(TypeUtils.isAvailableAssignement(funType, type));
    }
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.