Examples of Local


Examples of net.sf.cglib.core.Local

/*    */   private void generateSwap(Object[] arrays) {
/* 70 */     CodeEmitter e = begin_method(1, SWAP, null, null);
/* 71 */     for (int i = 0; i < arrays.length; i++) {
/* 72 */       Type type = Type.getType(arrays[i].getClass());
/* 73 */       Type component = TypeUtils.getComponentType(type);
/* 74 */       Local T = e.make_local(type);
/*    */
/* 76 */       e.load_this();
/* 77 */       e.getfield(getFieldName(i));
/* 78 */       e.store_local(T);
/*    */
View Full Code Here

Examples of org.jvnet.hudson.test.HudsonHomeLoader.Local

@Target(METHOD)
@Retention(RUNTIME)
public @interface LocalData {
    class RunnerImpl extends Recipe.Runner<LocalData> {
        public void setup(HudsonTestCase testCase, LocalData recipe) throws Exception {
            testCase.with(new Local(testCase.getClass().getMethod(testCase.getName())));
        }
View Full Code Here

Examples of org.jvnet.hudson.test.HudsonHomeLoader.Local

        }
    }
    class RuleRunnerImpl extends JenkinsRecipe.Runner<LocalData> {
        public void setup(JenkinsRule jenkinsRule, LocalData recipe) throws Exception {
            Description desc = jenkinsRule.getTestDescription();
            jenkinsRule.with(new Local(desc.getTestClass().getMethod(desc.getMethodName())));
        }
View Full Code Here

Examples of railo.runtime.type.scope.Local

        newArgs.setFunctionArgumentNames(properties.argumentsSet);
        LocalImpl newLocal=pci.getScopeFactory().getLocalInstance();
       
    Undefined   undefined=pc.undefinedScope();
    Argument  oldArgs=pc.argumentsScope();
        Local    oldLocal=pc.localScope();
        Collection.Key oldCalledName=pci.getActiveUDFCalledName();
       
    pc.setFunctionScopes(newLocal,newArgs);
    pci.setActiveUDFCalledName(calledName);
   
View Full Code Here

Examples of soot.Local

        for (List<Unit> scc : sccAnalysis.getTrueComponents()) {
      for (Unit unit : scc) {
        for (ValueBox vb : unit.getDefBoxes()) {
          Value defValue = vb.getValue();
          if(defValue instanceof Local) {
            Local defLocal = (Local) defValue;
            if(defLocal.getType() instanceof RefLikeType) {
              Object instanceKey = getFlowBefore(unit).get(defLocal);
              //if key is not already UNKNOWN
              if(instanceKey instanceof Integer) {
                Integer intKey = (Integer) instanceKey;
                invalidInstanceKeys.add(intKey);
View Full Code Here

Examples of soot.Local

          Value className = ie.getArg(0);
          if( className instanceof StringConstant ) {
              String cls = ((StringConstant) className ).value;
              constantForName( cls, source, s );
          } else {
              Local constant = (Local) className;
              if( options.safe_forname() ) {
                  for (SootMethod tgt : EntryPoints.v().clinits()) {
                      addEdge( source, s, tgt, Kind.CLINIT );
                  }
              } else {
View Full Code Here

Examples of soot.Local

       
        //exc = new Error
        RefType runtimeExceptionType = RefType.v("java.lang.Error");
        NewExpr newExpr = Jimple.v().newNewExpr(runtimeExceptionType);
        LocalGenerator lg = new LocalGenerator(body);
        Local exceptionLocal = lg.generateLocal(runtimeExceptionType);
        AssignStmt assignStmt = Jimple.v().newAssignStmt(exceptionLocal, newExpr);
        body.getUnits().insertBefore(assignStmt, insertionPoint);
       
        //exc.<init>(message)
        SootMethodRef cref = runtimeExceptionType.getSootClass().getMethod("<init>", Collections.singletonList(RefType.v("java.lang.String"))).makeRef();
View Full Code Here

Examples of soot.Local

            if (s.containsInvokeExpr()) {
                InvokeExpr ie = s.getInvokeExpr();

                if (ie instanceof InstanceInvokeExpr) {
                    InstanceInvokeExpr iie = (InstanceInvokeExpr) ie;
                    Local receiver = (Local) iie.getBase();
                    NumberedString subSig =
                        iie.getMethodRef().getSubSignature();
                    addVirtualCallSite( s, m, receiver, iie, subSig,
                            Edge.ieToKind(iie) );
                    if( subSig == sigStart ) {
                        addVirtualCallSite( s, m, receiver, iie, sigRun,
                                Kind.THREAD );
                    }
                } else {
                  SootMethod tgt = ie.getMethod();
                  addEdge(m, s, tgt);
                  if( tgt.getSignature().equals( "<java.security.AccessController: java.lang.Object doPrivileged(java.security.PrivilegedAction)>" )
                      ||  tgt.getSignature().equals( "<java.security.AccessController: java.lang.Object doPrivileged(java.security.PrivilegedExceptionAction)>" )
                      ||  tgt.getSignature().equals( "<java.security.AccessController: java.lang.Object doPrivileged(java.security.PrivilegedAction,java.security.AccessControlContext)>" )
                      ||  tgt.getSignature().equals( "<java.security.AccessController: java.lang.Object doPrivileged(java.security.PrivilegedExceptionAction,java.security.AccessControlContext)>" ) ) {
                   
                    Local receiver = (Local) ie.getArg(0);
                    addVirtualCallSite( s, m, receiver, null, sigObjRun,
                        Kind.PRIVILEGED );
                  }                     
                }
            }
View Full Code Here

Examples of upc.iluminados.modelo.Local

    public List<HorarioCancha> listar(Integer idCancha, Integer distrito, String dia, String hora) throws BaseExcepcion {
        System.out.println("CanchaDAO: obtener(String nombre)");
        List<HorarioCancha> lista = new ArrayList<HorarioCancha>();
        HorarioCancha vo = null;
        Cancha cancha = null;
        Local local = null;
        Connection con = null;
        PreparedStatement stmt = null;
        ResultSet rs = null;
        try {
//            String query = "select b.idHorario, b.dia,b.hora,a.idCancha,a.nombre,a.tarifadiurna,a.tarifanocturna, exists ( select 1 from tb_alquilercancha ac where ac.idhorario = b.idhorario ) as alquilado "
//                    + " from tb_cancha a, tb_horariocancha b, tb_local c where a.idCancha = b.idCancha and a.idLocal = c.idLocal ";

            String query = "select b.idHorario, b.dia,b.hora,a.idCancha,a.nombre,a.tarifadiurna,a.tarifanocturna, exists ( select 1 from tb_alquilercancha ac where ac.idhorario = b.idhorario AND ac.fecha = '" + dia + " ') as alquilado, c.nombre as localNombre "
                    + " from tb_cancha a, tb_horariocancha b, tb_local c where a.idCancha = b.idCancha and a.idLocal = c.idLocal ";

            if (idCancha != null) {
                query = query + " and a.idCancha = " + idCancha;
            }
            if (distrito != null) {
                query = query + " and c.distrito = " + distrito;
            }
            //if (dia != null) {
            query = query + " and b.dia = DATE_FORMAT('" + dia + "','%w')";
            //}
            if (hora != null) {
                query = query + " and b.hora = '" + hora + "'";
            }
            System.out.println("CanchaDAO: query=" + query);
            con = ConexionBD.obtenerConexion();
            stmt = con.prepareStatement(query);
            rs = stmt.executeQuery();
            while (rs.next()) {
                vo = new HorarioCancha();
                vo.setId(rs.getInt(1));
                vo.setDia(rs.getString(2));
                vo.setHora(rs.getString(3));
                vo.setAlquilado(rs.getInt("alquilado") == 1 ? true : false);
                cancha = new Cancha();
                cancha.setId(rs.getInt(4));
                cancha.setNombre(rs.getString(5));
                cancha.setTarifaDiurna(rs.getDouble(6));
                cancha.setTarifaNocturna(rs.getDouble(7));
                local = new Local();
                local.setNombre(rs.getString("localNombre"));
                cancha.setLocal(local);
                vo.setCancha(cancha);

                lista.add(vo);
            }
View Full Code Here

Examples of upc.iluminados.ws.modelo.Local

        Usuario usuario = (Usuario) request.getSession().getAttribute(Constante.SESION_USUARIO);
   

        try {
            //Registrar Local
            Local local = new Local();

            local.setNombre(nombre);
            local.setDireccion(direccion);
            local.setDistritoId(Integer.valueOf(distrito));
            local.setTelefono(telefono);
            local.setDueno(usuario);

            service.registrarLocal(local);
            request.setAttribute("mensaje", "registro exitoso");
          return new ModelAndView("home");
        } catch (BaseExcepcion ex) {
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.