query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
deklaasi arraylist buat tampung data kelas | public ArrayList<KelasDicoding> getListKelas(){ return listKelas; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<Entidad> GetArrayItems(){\n // ArrayList<Entidad> listItems = new ArrayList<>();\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n\n return listItems;\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }",
"public void addDatatoArrayList(ArrayList<Object> ar1) {\n\t\tar1.add(1);\n\t\tar1.add(\"anu\");\n\t\tar1.add(1.3);\n\t\tar1.add(true);\n\t\tar1.add('&');\n\t\tar1.add(false);\n\t\tSystem.out.println(\"Data aaded to ArrayList\");\n\t}",
"public List<Empresa> getData() {\n lista = new ArrayList<Empresa>();\n aux = new ArrayList<Empresa>();\n Empresa emp = new Empresa(1, \"restaurantes\", \"KFC\", \"Av. Canada 312\", \"tel:5050505\", \"[email protected]\", \"www.kfc.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/KFC_logo.svg/1024px-KFC_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(2, \"restaurantes\", \"Pizza Hut\", \"Av. Aviación 352\", \"tel:1111111\", \"[email protected]\", \"www.pizzahut.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Pizza_Hut_logo.svg/1088px-Pizza_Hut_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(3, \"restaurantes\", \"Chifa XUNFAN\", \"Av. del Aire 122\", \"tel:1233121\", \"[email protected]\", \"www.chifaxunfan.com\", \"https://www.piscotrail.com/sf/media/2011/01/chifa.png\", \"Restaurante de comida oriental.exe\");\n lista.add(emp);\n emp = new Empresa(4, \"Restaurantes\", \"El buen sabor\", \"Av. Benavides 522\", \"tel:5366564\", \"[email protected]\", \"www.elbuensabor.com\", \"http://www.elbuensaborperu.com/images/imagen1.jpg\", \"Restaurante de comida peruana\");\n lista.add(emp);\n emp = new Empresa(5, \"Restaurantes\", \"La Romana\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.laromana.com\", \"https://3.bp.blogspot.com/-rAxbci6-cM4/WE7ZppGVe4I/AAAAAAAA3fY/TkiySUlQJTgR7xkOXViJ1IjFRjOulFWnwCLcB/s1600/pizzeria-la-romana2.jpg\", \"Restaurante de comida italiana\");\n lista.add(emp);\n emp = new Empresa(6, \"Ocio\", \"Cinemark\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.cinemark.com.pe\", \"https://s3.amazonaws.com/moviefone/images/theaters/icons/cienmark-logo.png\", \"El mejor cine XD\");\n lista.add(emp);\n emp = new Empresa(7, \"Educación\", \"TECSUP\", \"Av. cascanueces 233\", \"tel:6462453\", \"[email protected]\", \"www.tecsup.edu.pe\", \"http://www.miningpress.com/media/img/empresas/tecsup_1783.jpg\", \"Instituto tecnologico del Perú\");\n lista.add(emp);\n emp = new Empresa(8, \"Ocio\", \"CC. Arenales\", \"Av. arenales 233\", \"tel:6462453\", \"[email protected]\", \"www.arenales.com.pe\", \"http://4.bp.blogspot.com/-jzojuNRfh_s/UbYXFUsN9wI/AAAAAAAAFjU/ExT_GmT8kDc/s1600/35366235.jpg\", \"Centro comercial arenales ubicado en la avenida Arenales al costado del Metro Arenales\");\n lista.add(emp);\n emp = new Empresa(9, \"Ocio\", \"Jockey Plaza\", \"Av. Javier Prado 233\", \"tel:6462453\", \"[email protected]\", \"www.jockeyplaza.com.pe\", \"http://3.bp.blogspot.com/-a2DHRxS7R8k/T-m6gs9Zn7I/AAAAAAAAAFA/z_KeH2QTu18/s1600/logo+del+jockey.png\", \"Un Centro Comercial con los diversos mercados centrados en la moda y tendencia del mundo moderno\");\n lista.add(emp);\n emp = new Empresa(10, \"Educación\", \"UPC\", \"Av. Monterrico 233\", \"tel:6462453\", \"[email protected]\", \"www.upc.edu.pe\", \"https://upload.wikimedia.org/wikipedia/commons/f/fc/UPC_logo_transparente.png\", \"Universidad Peruana de Ciencias Aplicadas conocida como UPC se centra en la calidad de enseñanza a sus estudiantes\");\n lista.add(emp);\n int contador=0;\n String key = Busqueda.getInstance().getKey();\n for (int i = 0; i < lista.size(); i++) {\n if (lista.get(i).getRubro().equalsIgnoreCase(key)||lista.get(i).getRubro().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n }else {\n if (lista.get(i).getNombre().equalsIgnoreCase(key)||lista.get(i).getNombre().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n break;\n }else {\n\n }\n }\n\n }\n return aux;\n }",
"public static List<Kontak> getKontakData() {\n // Mendeklarasikan varibel ArrayList berjenis Kontak\n ArrayList<Kontak> listKontak = new ArrayList<>();\n // Melakukan perulangan sebanyak jumlah data(10 kali)\n for (int i = 0; i < nama.length; i++) {\n // Membuat objek Kontak\n Kontak kontak = new Kontak();\n // Mengisi data setiap atribut menggunakan setter()\n kontak.setFoto(foto[i]);\n kontak.setNama(nama[i]);\n kontak.setNoTelepon(noTelepon[i]);\n kontak.setEmail(email[i]);\n\n // Menambahkan objek kontak ke dalam ArrayList Kontak\n listKontak.add(kontak);\n }\n // Mengembalikan nilai ArrayList Kontak\n return listKontak;\n }",
"private void getArbeitspaketArray(ObservableList<ArbeitspaketTableData> paketList) {\r\n\t\t// Initialisieren des Arrays\r\n\t\tpakete = new Arbeitspaket[paketList.size()];\r\n\r\n\t\tfor (int i = 0; i < paketList.size(); i++) {\r\n\t\t\t// herauslesen der externen ID, damit diese nicht verloren geht (Konstruktor\r\n\t\t\t// nimmt nur einen Parameter für die ID entgegen und setzt die interne und\r\n\t\t\t// externe ID auf diesen Wert)\r\n\t\t\tString idExtern = paketList.get(i).getIdExtern();\r\n\r\n\t\t\t// automatisches Setzen der Vorgangsdauer, da diese in der Tabelle nicht\r\n\t\t\t// angegeben wird\r\n\t\t\tint vorgangsdauer = paketList.get(i).getFez() - paketList.get(i).getFaz() + 1;\r\n\r\n\t\t\t// setzen der einzelnen Werte der Arbeitspakte\r\n\t\t\tpakete[i] = new Arbeitspaket(paketList.get(i).getIdIntern(), paketList.get(i).getFaz(),\r\n\t\t\t\t\tpaketList.get(i).getFez(), paketList.get(i).getSaz(), paketList.get(i).getSez(), vorgangsdauer,\r\n\t\t\t\t\tpaketList.get(i).getMitarbeiteranzahl(), paketList.get(i).getAufwand());\r\n\r\n\t\t\t// Da die externe ID auf die interne ID gesetzt wurde, wird diese nun wieder auf\r\n\t\t\t// die vorher herausgelesene externe ID gesetzt\r\n\t\t\tpakete[i].setIdExtern(idExtern);\r\n\t\t}\r\n\t}",
"private List<Arbeitspaket> retrieveData() {\r\n\t\treturn Arrays.asList(new Arbeitspaket(\"A\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"B\", 0, 0, 0, 0, 0, 0, 0),\r\n\t\t\t\tnew Arbeitspaket(\"C\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"D\", 0, 0, 0, 0, 0, 0, 0));\r\n\t}",
"public ArrayList<ArrayList<String>> listeProjet() throws RemoteException{\r\n\t\t\tArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();\r\n\t\t\t\r\n\t\t String requete=\"Select p_id, p_titre, t_debprojet, t_finprojet From projet, association, groupeassoc,\" +\r\n\t\t \t\t\t\t\" typeprojet Where ga_idetudiant =\" + _etudiant.getId() + \" AND ga_idgroupe = a_idgroupe \" +\r\n\t\t \t\t\t\t\" AND a_idprojet = p_id AND p_idtype = t_id\";\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t ArrayList <String> projet = new ArrayList<String>();\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tArrayList<String> tmp = new ArrayList<String>();\r\n\t\t \tline = data.nextElement();\r\n\t\t \tprojet.add(data.getColumnValue(\"p_id\"));\r\n\t\t \ttmp.add(data.getColumnValue(\"p_titre\"));\r\n\t\t \ttmp.add(data.getColumnValue(\"t_debprojet\"));\r\n\t\t \ttmp.add(data.getColumnValue(\"t_finprojet\"));\r\n\t\t \tlist.add(tmp);\r\n\t\t }\r\n\t\t \r\n\t\t int cpt = 0;\r\n\t\t for (String i : projet){\r\n\t\t \tString note = null;\r\n\t\t \tString requete2 = \"select n_note from note where n_idprojet = \" + i + \" and n_idetudiant = \" +\r\n\t\t \t_etudiant.getId();\r\n\t\t \t\r\n\t\t \tSystem.out.println(\"requete : \" + requete2);\r\n\t\t\t DataSet data2 = database.executeQuery(requete2);\r\n\t\t\t if (!data2.hasMoreElements()) {\r\n\t\t\t \tnote = \"non noté\";\r\n\t\t\t }\r\n\t\t\t else{\r\n\t\t\t \t System.out.println(\"note\");\r\n\t\t\t\t\t note = data2.getColumnValue(\"n_note\");\r\n\t\t\t }\r\n\t\t\t list.get(cpt).add(note);\r\n\t\t\t ++cpt;\r\n\t\t }\r\n\t\t \r\n\t\t for (int i = 0 ; i < list.size() ; ++i)\r\n\t\t {\r\n\t\t \tSystem.out.println(list.get(i));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}",
"public void setListData() {\n \n for (int i = 0; i < 11; i++) {\n \n final NotificationLogMessage alert = new NotificationLogMessage();\n \n /******* Firstly take data in model object ******/\n alert.setMessageTitle(\"Message Title \"+i);\n alert.setDateAndTime(i+\":00am \"+i+\"/\"+i+\"/\"+\"2014\");\n alert.setMessageBody(\"There are now \" + i + \" messages\");\n \n /******** Take Model Object in ArrayList **********/\n testArr.add( alert );\n }\n \n }",
"private void cargarLista(ArrayList<CarritoDTO> arrayList)\n {\n DefaultListModel modelo = new DefaultListModel();\n //Recorrer el contenido del ArrayList\n for(int i=0; i<arrayList.size(); i++) \n {\n CarritoDTO item =(CarritoDTO) arrayList.get(i);\n //Añadir cada elemento del ArrayList en el modelo de la lista\n modelo.add(i, item.toString());\n }\n //Asociar el modelo de lista al JList\n jList1.setModel(modelo);\n }",
"public void readdata(ArrayList<AddData> daftar){\n Cursor crsr = this.getReadableDatabase().rawQuery(\"select todo, description, priority from \"+nama_tabel, null);\n while (crsr.moveToNext()){\n daftar.add(new AddData(crsr.getString(0), crsr.getString(1), crsr.getString(2)));\n }\n }",
"private ArrayList<ItemData> GetDataForList(Context context) {\n Log.i(TAG, \"Get kuv list in Offer\");\n\n // get offer list from database\n // ArrayList<EkData> kuvList = EkDatabaseHelper.getCategoryHelper(\n //getApplicationContext()).getKuvList();\n ArrayList<EkData> kuvList = new ArrayList<EkData>();\n //Collections.reverse(kuvList);\n\n // map offer list to list view\n ArrayList<ItemData> arrayList = new ArrayList<ItemData>();\n for (EkData kuv : kuvList) {\n ItemData item = new ItemData(kuv.getMessage(), \"\");\n item.setId(\"\");\n arrayList.add(item);\n }\n\n arrayList.add(new ItemData(\"City\",\"\"));\n arrayList.add(new ItemData(\"District\",\"\"));\n arrayList.add(new ItemData(\"Street\",\"\"));\n\n return arrayList;\n }",
"public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }",
"List<ParqueaderoEntidad> listar();",
"int getListData(int list) {\n\t\treturn m_lists.getField(list, 5);\n\t}",
"public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }",
"public ArrayList<RealmCobaModels> setSemuaDataNama() {\n // mendapatkan data realm berbentuk realmresults\n RealmResults<RealmCobaModels> realmCobaModels = realm.where(RealmCobaModels.class).findAll();\n // mendeklarasi arraylist\n ArrayList<RealmCobaModels> arrayListModels = new ArrayList<>();\n\n // validasi\n if (realmCobaModels.size() > 0) { // jika realmresult lebih dari 0\n // membuat looping data\n for (int i = 0; i < realmCobaModels.size(); i++) {\n RealmCobaModels rcm1 = new RealmCobaModels();\n rcm1.setId(realmCobaModels.get(i).getId());\n rcm1.setNama(realmCobaModels.get(i).getNama());\n rcm1.setUmur(realmCobaModels.get(i).getUmur());\n arrayListModels.add(rcm1); // memasukkan ke array list\n }\n\n // tampil log\n Log.e(TAG, arrayListModels.toString());\n } else { // jika realmresult tidak lebih dari 0, maka kosong!\n // tampil log\n Log.e(TAG, \"Tidak Ada Data!\");\n }\n\n return arrayListModels;\n }",
"public ArrayList<Invitato> getArraylistInvitati(){\n\n\n return AssegnamentiTavolo;\n }",
"public JSONArray transforme(ArrayList<String> liste){\n\n JSONArray jliste = new JSONArray();\n for (int i = 0; i < liste.size(); i++) {\n Log.i(\"QUESTION \"+i,liste.get(i));\n jliste.put(liste.get(i));\n }\n Log.i(\"JLISTE\",jliste.toString());\n return jliste;\n }",
"public ArrayList<DataUsuario> listarUsaurios();",
"java.util.List<com.sanqing.sca.message.ProtocolDecode.DataObject> \n getDataObjectList();",
"public ArrayList<DataRestaurante> listarRestaurantes();",
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }",
"public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }",
"private void LoopData() {\n\t\tfor (int i = 0; i < drawable.length; i++) {\n\t\t\titems_list items_list = new items_list();\n\t\t\titems_list.setDrawable(getResources().getDrawable(drawable[i]));\n\t\t\titems_list.setLek(string[i]);\n\t\t\tlists.add(items_list);\n\t\t}\n\n\t}",
"private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }",
"public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }",
"@Override\n public ArrayList<Asesor> getListaAsesores() {\n ArrayList<Asesor> listaAsesores = new ArrayList();\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor\");\n ResultSet resultadoConsulta = orden.executeQuery();\n String numeroPersonal;\n String nombre;\n String idioma;\n String telefono;\n String correo;\n Asesor asesor;\n while(resultadoConsulta.next()){\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n listaAsesores.add(asesor);\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return listaAsesores;\n }",
"public ArrayList<DataCliente> listarClientes();",
"private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"public ArrayList<DanhMuc> getListDanhMucCha();",
"public void tacoArray() {\n\n\n ArrayList<String> tacos = new ArrayList<>();\n tacos.add(\"blah\");\n tacos.add(\"blah2\");\n tacos.add(\"blah3\");\n tacos.add(\"blah4\");\n tacos.add(\"blah5\");\n }",
"public void getAllItem (ArrayList<itemTodo> list){\n Cursor cursor = this.getReadableDatabase().rawQuery(\"select judul, deskripsi, priority from \"+nama_table,null);\n while (cursor.moveToNext()){\n list.add(new itemTodo(cursor.getString(0), cursor.getString(1), cursor.getString(2)));\n }\n }",
"@Override\n\tpublic List<Baidu> savaList(List<Baidu> bl) {\n\t\tbaiduDao.save(bl);\n\t\treturn bl;\n\t}",
"public List<String> Mutfakkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(\"mutfak kullanici girdi\");\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Mutfak kullanicisini alirken hata olustu\");\r\n return null;\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n boolean durum = false;\r\n String deger = \"\";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='MUTFAK';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs1 = ps.executeQuery(sorgu2);\r\n while (rs1.next()) {\r\n deger = rs1.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n System.out.println(\"null\");\r\n System.out.println(deger);\r\n }\r\n System.out.println(kullad);\r\n durum = true;\r\n }\r\n } catch (Exception e) {\r\n durum = false;\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"public List<Marka> markaFullList() {\n\n String sql = \"SELECT id, ad, aciklama, resimyolu FROM eticaretio.marka;\";\n List<Marka> markaArrayList = new ArrayList<>();\n\n try {\n // SELECT id, sirket_ad, adres, telefon, website, email FROM eticaretio.kargo;\n\n Connection connection = DatabaseConnection.getConnection();\n\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\n ResultSet resultSet = preparedStatement.executeQuery();\n\n while (resultSet.next()) {\n\n Marka marka = new Marka();\n\n marka.setId(resultSet.getInt(\"id\"));\n marka.setAd(resultSet.getString(\"ad\"));\n marka.setAciklama(resultSet.getString(\"aciklama\"));\n marka.setResimYol(resultSet.getString(\"resimyolu\"));\n\n markaArrayList.add(marka);\n\n }\n\n } catch (SQLException ex) {\n System.out.println(\"markadao sinifi markaifulllistmetodu : \" + ex.toString());\n return null;\n }\n return markaArrayList;\n }",
"private static String[] getNewArray(HashMap listas){\n ArrayList<String> result = new ArrayList<String>();\n for (int i = 0; i< listas.size(); i++ ){\n String key = \"L\" + i;\n ArrayList<String> itemsList = (ArrayList<String>) listas.get(key);\n result.addAll(itemsList);\n }\n return result.toArray(new String[0]);\n }",
"private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}",
"public ArrayList DataPost() {\r\n query = \"SELECT * from tbl_postingan_user\";\r\n hasil = dbConn.executeQuery(query, true);\r\n \r\n if (hasil){\r\n rsData = dbConn.getRs();\r\n listdata = new ArrayList <DataPosting>();\r\n try{ \r\n while(rsData.next()){\r\n DataPosting datapost=new DataPosting();\r\n datapost.setDataid_posting(rsData.getInt(1));\r\n datapost.setDataid_admin(rsData.getInt(2));\r\n datapost.setDataJudulPosting(rsData.getString(3));\r\n datapost.setDatadeskripsi(rsData.getString(4));\r\n datapost.setDatapays(rsData.getString(5));\r\n datapost.setDatacilent(rsData.getString(6));\r\n datapost.setDatanamaperusahaan(rsData.getString(7));\r\n datapost.setDatalocation(rsData.getString(8));\r\n datapost.setDataemail(rsData.getString(9));\r\n datapost.setDatacontact(rsData.getString(10));\r\n datapost.setDatadeadline(rsData.getString(11));\r\n datapost.setDatagambar(rsData.getString(12));\r\n// datapost.setDatadeskripsi(rsData.getString(\"deadline\"));\r\n \r\n listdata.add(datapost);\r\n }\r\n rsData.close();\r\n return listdata;\r\n }\r\n catch(SQLException ex){\r\n System.out.println(\"Terjadi Kesalahan Saat menampilkan Post User\");\r\n return null;\r\n }\r\n \r\n } \r\n return null;\r\n}",
"public void definirObjetos(ObservableList<ListaCompras> lista){\n this.data=lista;\n }",
"public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }",
"private void filllist() {\n mAlLocationBox.clear();\n DatabaseHandler databaseHandler=new DatabaseHandler(this);\n ArrayList<ArrayList<Object>> data = databaseHandler.listIitems();\n\n for (int p = 0; p < data.size(); p++) {\n mLocationBox = new LocationBox();\n ArrayList<Object> temp = data.get(p);\n Log.e(\"List\", temp.get(0).toString());\n Log.e(\"List\", temp.get(1).toString());\n Log.e(\"List\", temp.get(2).toString());\n Log.e(\"List\", temp.get(3).toString());\n mLocationBox.setId(Integer.valueOf(temp.get(0).toString()));\n mLocationBox.setName(temp.get(1).toString());\n mLocationBox.setMode(temp.get(2).toString());\n mLocationBox.setStatus(temp.get(3).toString());\n mAlLocationBox.add(mLocationBox);\n }\n LocationBoxAdapter locationBoxAdapter = new LocationBoxAdapter(LocationBoxListActivity.this,mAlLocationBox);\n listcontent.setAdapter(locationBoxAdapter);\n }",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }",
"private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }",
"public ArrayList < Dataclass > getData() {\n ArrayList < Dataclass > dataList = new ArrayList < Dataclass > ();\n Connection connection = getConnection();\n String query = \"SELECT * FROM `przychodnia` \";\n if (option == 1) query = \"SELECT * FROM `lekarz` \";\n if (option == 2) query = \"SELECT * FROM `wizyta` \";\n if (option == 3) query = \"SELECT * FROM `badanie` \";\n Statement st;\n ResultSet rs;\n\n try {\n st = connection.createStatement();\n rs = st.executeQuery(query);\n Dataclass dc;\n while (rs.next()) {\n if (option == 1) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Imię\"), rs.getString(\"Nazwisko\"), rs.getString(\"Specjalizacja\"), rs.getInt(\"ID_Przychodni\"));\n else if (option == 2) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getString(\"Opis Badania\"), rs.getString(\"Imię i nazwisko pacjenta\"), rs.getInt(\"ID_Lekarza\"));\n else if (option == 3) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getBlob(\"Załącznik\"));\n else dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Nazwa\"), rs.getString(\"Adres\"), rs.getString(\"Miasto\"));\n dataList.add(dc);\n }\n } catch (Exception e) {\n System.err.print(e);\n }\n return dataList;\n }",
"public ArrayList<Paises> obtenerPaises();",
"public JList getJListCamaras() {\r\n\t\t\r\n\t\tcamaras = xmlParser.getCamaras(fileXmlCamaras);\r\n\t//\tString data[] = new String[camaras.size()];\r\n\t\tIterator iterator = camaras.iterator();\r\n\t\tString cam = null;\r\n\t\tString user = null;\r\n\t\tString domain = null;\r\n\t\tint sipCon = 0;\r\n\t\tDefaultListModel model = new DefaultListModel();\r\n\t\tListItem li = null;\r\n\t\t\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tcam = (String)iterator.next();\r\n\t\t\tuser = cam.substring(0, cam.indexOf('@'));\r\n\t\t\tdomain = cam.substring(cam.indexOf('@') + 1);\r\n\t\t \r\n\t\t\ttry {\r\n\t\t\t\t sipCon = getSipManager().createMessageSipConexion(user,domain);\r\n\t\t\t} catch (ExcGeneric e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tgetSipManager().sendMessageRequest(sipCon);\r\n\t\t\t\tli = new ListItem(Color.white, cam);\r\n\t\t\t\tli.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"connected.gif\")));\r\n \r\n\t\t \t\t\t\r\n\t\t\t} catch (ExcGeneric e) {\r\n\t\t\t\tli = new ListItem(Color.LIGHT_GRAY, cam);\r\n\t\t\t\tli.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"delete.gif\")));\r\n\t\t }\r\n\t\t\tmodel.addElement(li);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tif (jListCamaras == null) {\r\n\t\t\tjListCamaras = new JList(model);\r\n\t\t\tjListCamaras.setCellRenderer(new MyCellRenderer());\r\n\t\t\tjListCamaras.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r\n\t\t\tjListCamaras.addMouseListener(this);\r\n\t\t\r\n\t\t}else{\r\n\t\t\tjListCamaras.clearSelection();\r\n\t\t jListCamaras.setModel(model);\r\n\t\t\tjListCamaras.setEnabled(true);\r\n\t\t\tjListCamaras.repaint();\r\n\t\t}\r\n\t\treturn jListCamaras;\r\n\t}",
"public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\tObject[][] data = new Object[][] { \n\t\t\t{null, null, null, null, null},\n\t\t\t{null, \"\", null, null, null},\n\t\t\t{null, troppoLunga, null, null, null},\n\t\t};\n\t\treturn Arrays.asList(data);\n\t}",
"void listarDadosNaTelaColaborador(ArrayList<Colaborador> lista,DefaultTableModel model ) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[9];\n Colaborador aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+aux.getMatricula();\n linha[2] = aux.getNome();\n linha[3] = \"\"+aux.getNumeroOAB();\n linha[4] = \"\"+aux.getCpf();\n linha[5] = aux.getEmail();\n linha[6] = \"\"+aux.getTelefone();\n linha[7] = aux.getTipo().toString();\n linha[8] = aux.getStatus().toString();\n model.addRow(linha);\n }\n }",
"public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}",
"private ArrayList<SearchModel> initData() {\n // items in the arraylist\n ArrayList<SearchModel> foodList = new ArrayList<>();\n List<FoodModel> foods = foodModelList;\n for(int i=0; i< foods.size(); i++)\n {\n foodList.add(new SearchModel(foods.get(i).getName()));\n }\n return foodList;\n }",
"@Parameters\n // Método public static que devuelve un elemento iterable de array de objetos\n public static Iterable<Object[]> getData() {\n return Arrays.asList(new Object[][] {\n // Indicamos todas las pruebas {a, b, esperado}\n { 3, 1, 4 }, { 2, 3, 5 }, { 3, 3, 6 } });\n }",
"private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }",
"public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }",
"public void arrayList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of ArrayList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }",
"@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public ArrayList<Viaje> listar(){\n\t\tArrayList<Viaje> lista=new ArrayList<Viaje>();\n\t\t\n\t\tString sql=\"select * from viaje\";\n\t\t\n\t\ttry(Connection con=DB.getConexion();\n\t\t\tStatement stm=con.createStatement();){\n\t\t\t\tResultSet rs=stm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tViaje v=new Viaje(rs.getInt(\"id\"),rs.getString(\"destino\"),rs.getInt(\"duracion\"),rs.getFloat(\"precio\"));\n\t\t\t\tlista.add(v);\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\treturn lista;\n\t}",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"Object getTolist();",
"List<Vehiculo>listar();",
"private void setdatalistthongbao()\n {\n // showing refresh animation before making http call\n swipeRefreshLayout.setRefreshing(true);\n\n for (int i = 0 ; i < 5 ; i++)\n {\n Arr_listthongbao.add(new listthongbao(\"Lịch khám\" , \"Còn 10p nữa đến giờ khám bệnh nhân Nguyễn Văn A, tại P. 306\"));\n\n }\n\n\n // count noti\n countnoti = Arr_listthongbao.size();\n thongbaoadapter.notifyDataSetChanged();\n\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n\n\n\n\n\n }",
"private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }",
"public ArrayList convertDataStructure(Iterator iterator) {\r\n ArrayList list = new ArrayList();\r\n int i = 0;\r\n while (iterator.hasNext()) {\r\n AgrupamentoBean bean = (AgrupamentoBean) iterator.next();\r\n bean.setRegistro(new Long(i));\r\n list.add(bean);\r\n i++;\r\n }\r\n return list;\r\n }",
"public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }",
"private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }",
"public void setMakul(ArrayList makulData){\n this.makul = makulData;\n }",
"public void setData(List<Business> list) {\n }",
"void listarDadosNaTelaLivro(ArrayList<Livro> lista,DefaultTableModel model ) throws Exception {\n \n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[7];\n Livro aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+editora.recuperar(aux.getIdEditora());\n linha[2] = \"\"+autor.recuperar(aux.getIdAutor());\n linha[3] = \"\"+areaDeConhecimento.recuperar(aux.getIdAreaDeConhecimento());\n linha[4] = aux.getTituloDoLivro();\n linha[5] = \"\"+aux.getIsbn();\n model.addRow(linha);\n }\n }",
"public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}",
"List<String> data();",
"public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}",
"public void setData(java.util.List data) {\r\n this.data = data;\r\n }",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"public void listar() {\n\t\t\n\t}",
"void setListData(int list, int data) {\n\t\tm_lists.setField(list, 5, data);\n\t}",
"void listarDadosNaTelaAutor(ArrayList<Autor> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Autor aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n model.addRow(linha);\n }\n }",
"private static List<Etudiant> creationListeEtudiants(List<String> datas,boolean modele){\n\t\tList<String> dataEtudiant = new ArrayList<String>();\n\t\tList<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\tIterator<String> it = datas.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutEtudiant(data)){\t//si on change d'etudiant on reset les donnees concernant l'ancien etudiant\n\t\t\t\treset();\n\t\t\t\tdataEtudiant = new ArrayList<String>();//on reset les donnees\n\t\t\t\tsetNbEtudiant(getNbEtudiant() + 1);\n\t\t\t}\n\t\t\telse{//si on a pas changer d'etudiant on stocke ces donnees\n\t\t\t\tif(RecherchePattern.rechercheFinEtudiant(data)){//si on est a la fin des donnees on creer l'etudiant\n\t\t\t\t\tdataEtudiant.add(data); //on ajoute le dernier element au donnee\n\t\t\t\t\tif(!modele)\n\t\t\t\t\t\tetudiants.add(ajoutEtudiant(dataEtudiant));\n\t\t\t\t\telse\n\t\t\t\t\t\tetudiants.add(ajoutEtudiantModele(dataEtudiant));\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdataEtudiant.add(data);//on est pas a la fin on attend\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tetudiants = suppressionDoublons(etudiants); //on supprime les\n\t\treturn etudiants;\n\t}",
"private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }",
"public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }",
"public void mo31844bP(List<C7301c> list) {\n this.dAK.clear();\n this.dAK.addAll(list);\n notifyDataSetChanged();\n }",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"private void getDatas(JSONArray j){\n for(int i=0;i<j.length();i++){\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the data to array list\n mNames.add(json.getString(\"name\"));\n mIds.add(json.getString(\"exhibition_id\"));\n\n String r = json.getString(\"rate\");\n if(r.equals(\"-1\"))\n mRates.add(\"目前還沒有評分\");\n else\n mRates.add(r);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }",
"private JList getAnalyzaList() {\n\t\tif (analyzaList == null) {\n\t\t\tanalyzaList = new JList();\n\t\t\tanalyzaList.setBounds(new Rectangle(400, 100, 39, 27));\n\t\t}\n\t\treturn analyzaList;\n\t}",
"public void setArrayList(ArrayList<Chalet> arrayList) {\n this.arrayList.addAll(arrayList);\n notifyDataSetChanged();// to update the sutats\n }",
"private void prepareListData() {\n mCategoryList = new ArrayList<>();\n mFullList = new ArrayList<>();\n for (Category cat : fileSystem.getLocalInformationList())\n {\n List<Object> phraseList = cat.phraseList;\n mCategoryList.add(new Category(phraseList, cat.name));\n }\n mFullList.addAll(mCategoryList);\n\n }",
"private void displayArrays(ArrayList list){}",
"RecyclerViewAdapter(ArrayList namaList, ArrayList jurusanList, ArrayList nimList){\n this.namaList = namaList;\n this.jurusanList = jurusanList;\n this.nimList = nimList;\n }",
"private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }",
"public ArrayList<GamesItemHome> getSliderData() {\n\n ArrayList<GamesItemHome> data = new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + DATABASE_TABLE_SLIDER + \" ;\", null);\n StringBuffer stringBuffer = new StringBuffer();\n GamesItemHome gamesItem = null;\n while (cursor.moveToNext()) {\n gamesItem = new GamesItemHome();\n String id =cursor.getString(cursor.getColumnIndexOrThrow(\"_id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title\"));\n String category = cursor.getString(cursor.getColumnIndexOrThrow(\"category\"));\n String image = cursor.getString(cursor.getColumnIndexOrThrow(\"image\"));\n String featured_image = cursor.getString(cursor.getColumnIndexOrThrow(\"featured_image\"));\n gamesItem.setID(id);\n gamesItem.setTitle(title);\n gamesItem.setCategory(category);\n gamesItem.setImage(image);\n gamesItem.setFeautred_image(featured_image);\n\n stringBuffer.append(gamesItem);\n data.add(gamesItem);\n }\n\n for (GamesItemHome gi:data ) {\n\n\n }\n\n\n return data;\n }",
"public java.util.List getData() {\r\n return data;\r\n }",
"public listAdapter(List<Genres> myDataset,List<Anime> anime) {\n values = myDataset;\n animevalues = anime;\n }",
"public ArrayList<String> getData() {\n\t\treturn null;\r\n\t}"
]
| [
"0.6849132",
"0.6829528",
"0.6806235",
"0.67855036",
"0.6743271",
"0.67236793",
"0.66261804",
"0.65860534",
"0.65663123",
"0.6554254",
"0.6482524",
"0.6479383",
"0.64352864",
"0.64178133",
"0.6417472",
"0.64082223",
"0.63971674",
"0.63812214",
"0.6356374",
"0.63318694",
"0.63305837",
"0.6300066",
"0.6293892",
"0.62781465",
"0.6275907",
"0.6264558",
"0.62607884",
"0.62599623",
"0.6249681",
"0.62479484",
"0.622509",
"0.62230533",
"0.61977035",
"0.6184743",
"0.6181479",
"0.6169226",
"0.6158178",
"0.61544544",
"0.61540425",
"0.61464936",
"0.6145717",
"0.61280245",
"0.61272395",
"0.61269385",
"0.610769",
"0.6104507",
"0.6101302",
"0.609852",
"0.60962194",
"0.6085241",
"0.6078703",
"0.60757154",
"0.60741264",
"0.6062805",
"0.60561645",
"0.60514194",
"0.6051055",
"0.60488814",
"0.604417",
"0.60425544",
"0.60381943",
"0.60367054",
"0.6025797",
"0.6025679",
"0.6024859",
"0.6022264",
"0.60190773",
"0.6017722",
"0.6013095",
"0.6007526",
"0.6004151",
"0.6002516",
"0.60007346",
"0.5996539",
"0.59954536",
"0.59942186",
"0.5985713",
"0.5978877",
"0.5963418",
"0.5962155",
"0.59587985",
"0.59453815",
"0.5944835",
"0.5940888",
"0.59405845",
"0.59384567",
"0.59369683",
"0.59349614",
"0.5934466",
"0.5931969",
"0.5926151",
"0.5924686",
"0.59220684",
"0.59185743",
"0.5914902",
"0.5914425",
"0.59134555",
"0.5910268",
"0.5904459",
"0.5895435"
]
| 0.64353853 | 12 |
buat fungsi holder yg dimasukan ke layout xml | @Override
public CardViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.list_kelas,viewGroup, false);
return new CardViewHolder(view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void iniciarLayout();",
"private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}",
"private void intviews() {\n\t\tyanzhengmall=(LinearLayout) findViewById(R.id.yanzhengma);\r\n\t\tphonell=(LinearLayout) findViewById(R.id.phone);\r\n\t\tzhucell=(LinearLayout) findViewById(R.id.zhuce);\r\n\t\tbtn=(Button) findViewById(R.id.button1);\r\n\t\tbtn1=(Button) findViewById(R.id.yanzhengmabutton);\r\n\t\tgetcodebtn=(Button) findViewById(R.id.getcodebtn);\r\n\t\tphoneet=(EditText) findViewById(R.id.phoneet);\r\n\t\tphonetv=(TextView) findViewById(R.id.phonetv);\r\n\t\tyanzhengmatv=(TextView) findViewById(R.id.yanzhengmatv);\r\n\t\tpasswordtv=(TextView) findViewById(R.id.passwordtv);\r\n\t\tbackimageview=(ImageView) findViewById(R.id.backimageview);\r\n\t\tcodeedittext=(EditText) findViewById(R.id.yanzhengmaEditText);\r\n\t\tpasswordet=(EditText) findViewById(R.id.passwordEditText);\r\n\t\tquerenpasswordet=(EditText) findViewById(R.id.passwordquerenEditText);\r\n\t\tregisterbtn=(Button) findViewById(R.id.zhucebutton);\r\n\t}",
"@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}",
"@Override\n\tprotected void findViewById() {\n\n\t}",
"private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }",
"@Override\r\n\tprotected void findViewById() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void findViewById() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void findViewById() {\n\t\t\r\n\t}",
"private void castLayoutElements() {\n edtTaxName = (AppCompatEditText) findViewById(R.id.edtTaxName);\n edtTaxPercentage = (AppCompatEditText) findViewById(R.id.edtTaxPercentage);\n edtTaxRegistration = (AppCompatEditText) findViewById(R.id.edtTaxRegistration);\n rdgrpPercentOfAmount = (RadioGroup) findViewById(R.id.rdgrpPercentOfAmount);\n rdbtnYes = (RadioButton) findViewById(R.id.rdbtnYes);\n rdbtnNo = (RadioButton) findViewById(R.id.rdbtnNo);\n linlaPercentageOfAmount = (LinearLayout) findViewById(R.id.linlaPercentageOfAmount);\n edtTaxPercentageOfAmount = (AppCompatEditText) findViewById(R.id.edtTaxPercentageOfAmount);\n imgvwWhatIsThis = (ImageView) findViewById(R.id.imgvwWhatIsThis);\n\n /** CHECK PERCENTAGE OF AMOUNT RADIOBUTTON CLICK **/\n rdgrpPercentOfAmount.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int position = rdgrpPercentOfAmount.indexOfChild(findViewById(checkedId));\n switch (position) {\n case 0:\n /** SET ENTIRE AMOUNT TAXABLE **/\n TAX_COMPLETE_AMOUNT = true;\n\n /** HIDE THE PERCENTAGE OF AMOUNT AppCompatEditText **/\n linlaPercentageOfAmount.setVisibility(View.GONE);\n break;\n case 1:\n /** SET PART OF AMOUNT TAXABLE **/\n TAX_COMPLETE_AMOUNT = false;\n\n /** SHOW THE PERCENTAGE OF AMOUNT AppCompatEditText **/\n linlaPercentageOfAmount.setVisibility(View.VISIBLE);\n break;\n default:\n break;\n }\n }\n });\n\n /** SHOW THE NOTICE (WHAT IS THIS) **/\n imgvwWhatIsThis.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n MaterialDialog dialog = new MaterialDialog.Builder(TaxModifier.this)\n .title(R.string.tax_creator_popup_title)\n .content(R.string.tax_creator_what_is_this)\n .positiveText(R.string.tax_creator_popup_title_dismiss)\n .theme(Theme.LIGHT)\n .icon(ContextCompat.getDrawable(TaxModifier.this, R.drawable.ic_info_outline_white_24dp))\n .typeface(\"HelveticaNeueLTW1G-MdCn.otf\", \"HelveticaNeueLTW1G-Cn.otf\")\n .show();\n }\n });\n }",
"protected void onLoadLayout(View view) {\n }",
"@Override\n public void setContentView(int layoutResID){\n }",
"private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}",
"@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}",
"public abstract int presentViewLayout();",
"@Override\r\n\tprotected void findViewById() {\n\r\n\t}",
"@Override\n\tpublic void onFinishLayout(View lay) {\n\t}",
"@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }",
"@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }",
"public void PlaceHolders(){\n TextHolder holderUsuario = new TextHolder(\"Ingrese un usuario\", txtUsuario);\n TextHolder holderCorreo = new TextHolder(\"Ingrese su correo\",txtCorreo); \n }",
"private void initViews() {\n\n //O metodo findViewById() recupera a referencia do EditText que se encontra no XML.\n editTextQuantidade = (EditText) findViewById(R.id.edittext_quantidade);\n imageViewOvos = (ImageView) findViewById(R.id.imageview_ovos);\n textViewTotal = (TextView) findViewById(R.id.textview_total);\n }",
"public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }",
"@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}",
"private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }",
"public void initUI() {\n\t\t\n\t\tTextView mitaxiregistermanually_tv_label= (TextView)findViewById(R.id.mitaxiregistermanually_tv_label);\n\t\t mitaxiregistermanually_tv_label.setTypeface(new fonts(this).getTypeFace(fonts.FLAG_MAMEY));\n\t\t mitaxiregistermanually_tv_label.setTextColor(getResources().getColor(R.color.color_vivos));\n\t\t \n\t\t TextView mitaxiregistermanually_tv_paranoico_texto= (TextView)findViewById(R.id.mitaxiregistermanually_tv_paranoico_texto);\n\t\t mitaxiregistermanually_tv_paranoico_texto.setTypeface(new fonts(this).getTypeFace(fonts.FLAG_ROJO));\n\t\t mitaxiregistermanually_tv_paranoico_texto.setTextColor(getResources().getColor(R.color.color_vivos));\n\t\t \n\t\t mitaxiregistermanually_ll_contactos =(LinearLayout)findViewById(R.id.mitaxiregistermanually_ll_contactos);\n\t\t\n\t\t mitaxiregistermanually_tv_agregar=(TextView) findViewById(R.id.mitaxiregistermanually_tv_agregar);\n\t\t mitaxiregistermanually_tv_agregar.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(!emergencia_esta_Ocupado[0]||!emergencia_esta_Ocupado[1]){\n\t\t\t\t\taddContact(null,null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t \n\t\n\n\t\t \n\t\t ImageView mitaxiregistermanually_iv_ayuda=(ImageView)findViewById(R.id.mitaxiregistermanually_iv_ayuda);\n\t\t mitaxiregistermanually_iv_ayuda.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\tnew\tDialogos().mostrarParaQue(RegistroContactosEmergenciaActivity.this).show();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t \n\t\t \n\t\t mitaxiregistermanually_cv_paranoico = (CheckBox) findViewById(R.id.mitaxiregistermanually_cv_paranoico); \n\t\t SharedPreferences prefs = getSharedPreferences(\"MisPreferenciasTrackxi\",Context.MODE_PRIVATE);\n boolean panic = prefs.getBoolean(\"panico\", false);\n mitaxiregistermanually_cv_paranoico.setChecked(panic); \n \t \n \n\t\t mitaxiregistermanually_cv_paranoico.setOnCheckedChangeListener(new OnCheckedChangeListener() { \n\n\t\t @Override \n\t\t public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { \n\n\t\t\t if (buttonView.isChecked()){ \n\t\t\t\t if(validaEditText(R.string.Registro_manual_datos_paranoico_sin_contac)){\n\t\t\t\t\t if((!emergencia_esta_Ocupado[0]&&!emergencia_esta_Ocupado[1])){\n\t\t\t\t\t\t buttonView.setChecked(false);\n\t\t\t\t\t\t Dialogos.Toast(RegistroContactosEmergenciaActivity.this,getResources().getString(R.string.Registro_manual_datos_paranoico_sin_contac) , Toast.LENGTH_LONG);\n\t\t\t\t \t}\n\t\t\t\t }else{\n\t\t\t\t\t buttonView.setChecked(false);\n\t\t\t\t }\n\t\t\t }\n\n\t\t }\n\t\t });\n\t\t \n\t\t Button mitaxiregistermanually_btn_guardar =(Button)findViewById(R.id.mitaxiregistermanually_btn_guardar);\n\t\t mitaxiregistermanually_btn_guardar.setTypeface(new fonts(this).getTypeFace(fonts.FLAG_ROJO));\n\t\t mitaxiregistermanually_btn_guardar.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tback();\n\t\t\t}\n\t\t});\n\t\t \n\t\t \n\t\tllenarContactos();\n\t\t\n\t}",
"private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"@Override // com.zhihu.android.topic.widget.dialog.BaseCenterDialogFragment\n /* renamed from: a */\n public int mo110846a() {\n return R.layout.z1;\n }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"public static String _but_cerrar_mosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 458;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 459;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"@Override\n\tprotected void initView() {\n\t\tsetContentView(R.layout.activity_money_manage);\n\t\t\n\t\tfindViewById(R.id.bt_title_left).setOnClickListener(this);\n\t\tfindViewById(R.id.bt_ok).setOnClickListener(this);\n\t}",
"public static String _but_cerrar_ciclo_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 454;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 455;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"@Override\n\tpublic int bindLayout() {\n\t\treturn R.layout.activity_init;\n\t}",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n mTitleContent = (TextView) findViewById(R.id.title_content);\n mLeftTv = (TextView) findViewById(R.id.title_left_tv);\n mRightTv = (TextView) findViewById(R.id.title_right_tv);\n mRightImg = (ImageView) findViewById(R.id.title_right_img);\n mMessageView = (RelativeLayout) findViewById(R.id.toolbar_message_view);\n mUnReadImg = (ImageView) findViewById(R.id.toolbar_message_unread_img);\n }",
"private void loadLayout(final Context context, AttributeSet attrs, int defStyle)\n\t{\n\t\t\n\t\tLayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView view = inflater.inflate(R.layout.reinstallstart, null);\n\t\tTextView l_infoTxtVw = (TextView)view.findViewById(R.id.startBody);\n\t\taddView(view);\n\t\tl_infoTxtVw.setText(context.getString(org.droidtv.ui.strings.R.string.MAIN_WI_SAT_UPDATE_CHANNELS));\n\t\tOnClickListener buttonCancel_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tmSatelliteWizard.launchPreviousScren();\n\t\t\t}\n\t\t};\n\n\t\tOnClickListener buttonSettings_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tLog.i(TAG, \"buttonSettings:onClick called\");\n\t\t\t\tmSatelliteWizard.launchScreen(ScreenRequest.SATELLITESELECTION, getScreenName());\n\t\t\t}\n\t\t};\n\n\t\tOnClickListener buttonUpdate_Listener = new OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tLog.i(TAG, \"buttonUpdate:onClick called\");\n\t\t\t\tmSatelliteWizard.launchScreen(ScreenRequest.UPDATESCAN, getScreenName());\n\t\t\t}\n\t\t};\n\n\t\tsetButton1(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_CANCEL), buttonCancel_Listener, View.VISIBLE);\n\t\tsetButton2(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_SETTINGS), buttonSettings_Listener, View.VISIBLE);\n\t\tsetButton3(context.getString(org.droidtv.ui.strings.R.string.MAIN_BUTTON_UPDATE), buttonUpdate_Listener, View.VISIBLE);\n\t\thideHint();\n\t}",
"private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n\tprotected void loadXml() {\n\t\tsetContentView(R.layout.activity_my_message);\n\t}",
"@LayoutRes\n protected abstract int getLayoutId();",
"private void prepareView(){\n mAvatar = (ImageButton)findViewById(R.id.btnAvatar);\n mAvatar.setOnClickListener(this);\n\n mName = (TextView)findViewById(R.id.tvName);\n mEmail = (TextView)findViewById(R.id.tvEmail);\n mWelcome = (TextView)findViewById(R.id.tvSelectionTitle);\n\n mDesigner = (ImageButton)findViewById(R.id.btnDesigner);\n mDesigner.setOnClickListener(this);\n\n mDeveloper = (ImageButton)findViewById(R.id.btnDeveloper);\n mDeveloper.setOnClickListener(this);\n }",
"private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}",
"private void setViews() {\n\n }",
"@Override\n\tprotected void onFinishInflate() {\n\t\tsuper.onFinishInflate();\n\t\tSehenswuerdigkeit ziel = Spiel.getInstance().getSpielerAnDerReihe().getZiel();\n\t\tthis.setImageResource(getResources().getIdentifier(ziel.getMotivURL(), \"drawable\", \"com.dhbw.dvst\"));\n\t\t\n\t}",
"private void initUI(){\n\t\tfooterView = getLayoutInflater().inflate(R.layout.ent_refresh_footer,null);\n\t\tlistView = (ListView) findViewById(R.id.check_list);\n\t\tlistView.addFooterView(footerView);\n\t\tfooterView.setVisibility(View.GONE);\n\t\tlistView.setOnScrollListener(new ScrollListener());\n\t\tlistView.setOnItemClickListener(this);\n\t\tbtn_cricle_edit = (ImageButton) findViewById(R.id.btn_cricle_edit);\n\t\tbtn_cricle_option = (ImageButton) findViewById(R.id.btn_cricle_option);\n\t\tbtn_cricle_edit.setVisibility(View.INVISIBLE);\n\t\tbtn_cricle_option.setVisibility(View.GONE);\n\t\tactivity_bar_title = (TextView) findViewById(R.id.activity_bar_title);\n\t\tactivity_bar_title.setText(\"我的申请记录\");\n\t\tpbHelper = new ProgressBarHelper(this, findViewById(R.id.ll_data_loading));\n\t}",
"@Override\n public void prepareView() {\n }",
"private void InitView() {\n\n\t\tframe_element = new Frame_element();// 初始化保存框架元素的类\n\n\t\tframe_element\n\t\t\t\t.setRel_body_content((RelativeLayout) findViewById(R.id.rel_body_content));// 保存中间内容框架\n\t\tframe_element\n\t\t\t\t.setRel_top_bar((RelativeLayout) findViewById(R.id.rel_top_bar));// 保存顶部BAR框架\n\n\t\tframe_element\n\t\t\t\t.setRel_frist_bar((RelativeLayout) findViewById(R.id.rel_frist_bar));// 保存顶部首页BAR\n\t\t// 顶部右侧‘更多’按钮点击事件\n\t\timagebtn_more = (ImageButton) findViewById(R.id.imagebtn_more);\n\t\timagebtn_userhead_icon = (ImageButton) findViewById(R.id.imagebtn_userhead_icon);\n\t\timagebtn_more.setOnClickListener(this);\n\t\timagebtn_userhead_icon.setOnClickListener(this);\n\n\t}",
"public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\n }",
"public void initView(){}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\n protected void findView() {\n title = (TextView) findViewById(R.id.title_text);\n title.setText(\"消息\");\n alert = (TextView) findViewById(R.id.alert);\n next_button = (Button) findViewById(R.id.next_button);\n next_button.setVisibility(View.GONE);\n layout = (XtomRefreshLoadmoreLayout) findViewById(R.id.refreshLoadmoreLayout);\n left = (ImageButton) findViewById(R.id.back_button);\n mListView = (SwipeMenuListView) findViewById(R.id.listView);\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }",
"@Override\r\n\tprotected void initViews() {\n\t\tsetTitle(\"银行卡号\");\r\n\t\tet_bankid_banknum = (EditText)findViewById(R.id.et_bankid_banknum);\r\n\t\tfindViewAddListener(R.id.bt_bankid_confirm);\r\n\t\t\r\n\t}",
"@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflater);\n\n }",
"private void initViews() {\n View view = getView();\n if (view != null) {\n edtConfirmPassword = view.findViewById(R.id.edt_reg_confim_password);\n edtConfirmPassword.setTag(\"Confirm Password\");\n edtEmail = view.findViewById(R.id.edt_reg_email);\n edtEmail.setTag(\"Email\");\n edtPhone = view.findViewById(R.id.edt_reg_phone);\n edtPhone.setTag(\"Phone\");\n edtPassword = view.findViewById(R.id.edt_reg_password);\n edtPassword.setTag(\"Password\");\n tv_RegisterSignIn = view.findViewById(R.id.tv_register_sign_in);\n btn_reg_signup = view.findViewById(R.id.btn_reg_signup);\n edtUserName = view.findViewById(R.id.edt_reg_name);\n edtUserName.setTag(\"Name\");\n }\n }",
"public void initViews(){\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"public LayoutCampo() {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}",
"void afficherClassement() {\n classement.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"Classement\");\n }",
"public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }",
"public void initView() {\n this.f4854a = (ValueSettingItemView) findViewById(R.id.performanceEnhanceSettingItem);\n this.f4854a.setOnClickListener(this);\n this.f4855b = (CheckBoxSettingItemView) findViewById(R.id.performanceOptimizationSettingItem);\n this.f4855b.setOnCheckedChangeListener(this);\n this.f4856c = (CheckBoxSettingItemView) findViewById(R.id.networkSettingItem);\n this.f4856c.setOnCheckedChangeListener(this);\n this.f4857d = (ValueSettingItemView) findViewById(R.id.memorySettingItem);\n this.f4857d.setOnClickListener(this);\n this.e = findViewById(R.id.xunyouSettingCategory);\n this.f = (CheckBoxSettingItemView) findViewById(R.id.xunyouSettingItem);\n this.f.setOnCheckedChangeListener(this);\n this.g = (CheckBoxSettingItemView) findViewById(R.id.xyWifiSettingItem);\n this.g.setOnCheckedChangeListener(this);\n com.miui.gamebooster.c.a.a((Context) this.mActivity);\n this.h = ((SettingsActivity) this.mActivity).n();\n if (this.h == 0) {\n this.f4855b.setVisibility(8);\n }\n (C0388t.n() ? this.f4856c : this.f4854a).setVisibility(8);\n g();\n }",
"private void findViews() {\n jurgen = (ImageView) findViewById(R.id.jurgen_view);\n jurgen.setTag(JURGEN_VIEW_TAG);\n joost = (ImageView) findViewById(R.id.joost_view);\n joost.setTag(JOOST_VIEW_TAG);\n nick = (ImageView) findViewById(R.id.nick_view);\n nick.setTag(NICK_VIEW_TAG);\n stijn = (ImageView) findViewById(R.id.stijn_view);\n stijn.setTag(STIJN_VIEW_TAG);\n }",
"private void initView() {\n\t\timg_back = (ImageView) findViewById(R.id.img_back_updatejob);\n\t\tedt_content = (EditText) findViewById(R.id.edt_content_updatejob);\n\t\tedt_course = (EditText) findViewById(R.id.edt_course_updatejob);\n\t\tbtn_delete = (Button) findViewById(R.id.btn_delete_updatejob);\n\t\tbtn_update = (Button) findViewById(R.id.btn_update_updatejob);\n\t}",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"private void setContent(){\n nama.setText(Prefs.getString(PrefsClass.NAMA, \"\"));\n// txt_msg_nama.setText(Prefs.getString(PrefsClass.NAMA,\"\"));\n\n //set foto di header navbar\n Utils.LoadImage(MainActivity.this, pb, Prefs.getString(PrefsClass.FOTO,\"\"),foto);\n addItemSpinner();\n\n setActionBarTitle(\"\");\n\n }",
"@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n mLnSelectLanguage = (LinearLayout) findViewById(R.id.lnSelectLanguage);\n mBtnContinue = (Button) findViewById(R.id.btnContinue);\n mEdtPhoneNumber = (EditText) findViewById(R.id.edtPhoneNumber);\n mTvNationNameView = (TextView) findViewById(R.id.tvNationNameView);\n mChkAccept = (CheckBox) findViewById(R.id.chkAccept);\n mTvDieuKhoan = (TextView) findViewById(R.id.tvDieuKhoan);\n mTvNotifi1 = (TextView) findViewById(R.id.tvNotifi1);\n Utils.setTextViewHtml(mTvDieuKhoan,getString(R.string.dieukhoan));\n mLnSelectLanguage.setOnClickListener(this);\n mBtnContinue.setOnClickListener(this);\n mTvDieuKhoan.setOnClickListener(this);\n\n\t}",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"@OnClick(R.id.tv_guankan)\n public void guankan() {\n\n }",
"private void inizialiteViews() {\n tvDirectionStore = findViewById(R.id.tvDirectionStore);\n tvNameOwner = findViewById(R.id.tvNameOwnerView);\n tvNameStore = findViewById(R.id.tvNameStoreView);\n tvPhonestore = findViewById(R.id.tvPhoneNumberOwner);\n editStore = findViewById(R.id.btnEditStore);\n imageViewStore = findViewById(R.id.imageStore);\n }",
"private void emptyLayout() {\n mTvEmpty.setText(R.string.text_receive_list_empty);\n mIvEmpty.setImageResource(R.drawable.ic_money_payment);\n mIvEmpty.setContentDescription(getString(R.string.descr_hand_money_empty));\n mListView.setEmptyView(mEmptyView);\n }",
"private void setupGUI() {\n\t\tcollapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout);\n\t\tlogo = (SmartImageView) findViewById(R.id.logoo);\n\t\tnomePosto = (TextView) findViewById(R.id.nomeposto);\n\t\tdescrizione = (TextView) findViewById(R.id.descrizioneposto);\n\t\twebsite = (TextView) findViewById(R.id.websiteposto);\n\t\tnumtelefono = (TextView) findViewById(R.id.telefonoposto);\n\t\tcitta = (TextView) findViewById(R.id.cittaposto);\n\t\tbtnMappa = (FloatingActionButton) findViewById(R.id.fabbuttonmappa);\n\t\tgallery = (LinearLayout) findViewById(R.id.gallery);\n\t\tgalleryContainer = (CardView) findViewById(R.id.cv1);\n\t\t// rvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t// LinearLayoutManager llm = new\n\t\t// LinearLayoutManager(DetPlaActivity.this);\n\t\t// rvofferte.setLayoutManager(llm);\n\t\t// rvofferte.setSaveEnabled(false);\n\t}",
"private void initViews() {\n\n }",
"@Override\n public void onClick(View v) {\n empty_layout.setVisibility(View.GONE);\n getInterlData();\n }",
"private void initView() {\n\t\trl_edit = (RelativeLayout) findViewById(R.id.rl_edit);\n\t\ttv_all=(TextView) findViewById(R.id.tv_all);\n\t\ttv_dle=(TextView) findViewById(R.id.tv_dle);\n\t\ttv_all.setOnClickListener(this);\n\t\ttv_dle.setOnClickListener(this);\n\t\trl_wd = (RelativeLayout) findViewById(R.id.main_rl_my);\n\t\trl_wd.setOnClickListener(this);\n\t\tmain_rl_gwc = (RelativeLayout) findViewById(R.id.main_rl_gwc);\n\t\tmain_rl_gwc.setOnClickListener(this);\n\t\trl_sy = (RelativeLayout) findViewById(R.id.main_rl_sy);\n\t\trl_sy.setOnClickListener(this);\n\n\t\tnext_sure = (TextView) findViewById(R.id.next_sure);\n\t\tnext_sure.setVisibility(View.VISIBLE);\n\t\tnext_sure.setText(\"确认\");\n\t\tnew TitleMenuUtil(MyMessage.this, \"我的消息\").show();\n\t\tmyAdapter = new MessageAdapter(MyMessage.this, myList);\n\t\teva_nodata = (LinearLayout) findViewById(R.id.eva_nodata);\n\t\tXlistview = (XListView) findViewById(R.id.x_listview);\n\t\t// refund_listview.getmFooterView().getmHintView().setText(\"�Ѿ�û�������\");\n\t\tXlistview.setPullLoadEnable(true);\n\t\tXlistview.setXListViewListener(this);\n\t\tXlistview.setDivider(null);\n\n\t\tXlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}\n\t\t});\n\t\tXlistview.setAdapter(myAdapter);\n\n\t\tnext_sure.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (MyApplication.getIsSelect()) {\n\t\t\t\t\t// ��������ɾ�����\n\t\t\t\t\tnext_sure.setText(\"取消\");\n\t\t\t\t\tMyApplication.setIsSelect(false);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\trl_editno.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_edit.setVisibility(View.GONE);\n\t\t \n\t\t\t\t} else {\n\t\t\t\t\tnext_sure.setText(\"删除\");\n\t\t\t\t\tMyApplication.setIsSelect(true);\n\t\t\t\t\trl_edit.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_editno.setVisibility(View.GONE);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_satu, container, false);\n\n etPanjang = v.findViewById(R.id.panjang);\n etLebar = v.findViewById(R.id.lebar);\n tvHasil = v.findViewById(R.id.hasil);\n btnHitung = v.findViewById(R.id.btnHitung);\n btnHitung.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (etPanjang.getText().toString().isEmpty() || etLebar.getText().toString().isEmpty()){\n Toast.makeText(getContext(), \"Isi dulu nilainya bro bro gore!!\", Toast.LENGTH_SHORT).show();\n }else {\n panjang = Double.valueOf(etPanjang.getText().toString());\n lebar = Double.valueOf(etLebar.getText().toString());\n hasil = panjang * lebar;\n tvHasil.setText(String.valueOf(hasil));\n }\n }\n });\n return v;\n }",
"@Override\n public void postHideEt() {\n }",
"@Override\n protected void iniView()\n {\n txtHead = (TextView) findViewById(R.id.txtHead);\n imgBack = (ImageView) findViewById(R.id.img_left);\n\n txtHead.setText(\"回复列表\");\n\n TopicID = this.getIntent().getExtras().getString(\"TopicID\").toString();\n LeftID = this.getIntent().getExtras().getString(\"LeftID\").toString();\n listview = (ListView) findViewById(R.id.listview_postlist);\n TopicType = this.getIntent().getExtras().getString(\"TopicType\").toString();\n }",
"private void initView() {\n btnLoginFacebook = (RelativeLayout) findViewById(R.id.btnLoginFacebook);\n btnLoginGoogle = (RelativeLayout) findViewById(R.id.btnLoginGoogle);\n txtRegister = (TextViewFontAwesome) findViewById(R.id.txtRegister);\n txtForgotPassword = (TextViewFontAwesome) findViewById(R.id.txtForgotPassword);\n txtLogin = (TextViewFontAwesome) findViewById(R.id.txtLogin);\n txtUsername = (EditText) findViewById(R.id.txtUsername);\n txtPassword = (EditText) findViewById(R.id.txtPassword);\n txtForgotPassword.setPaintFlags(txtForgotPassword.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n }",
"protected abstract\n @LayoutRes\n int getLayoutRes(int position);",
"private void initView() {\n\n }",
"private void viewInit() {\n }",
"private void addViews() {\n\t}",
"private void initView() {\n\t\tself_info.setOnClickListener(this);\r\n\t\twhich_org.setOnClickListener(this);\r\n\t\tmember_information.setOnClickListener(this);\r\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}",
"@Override\n public void onViewCreate() {\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home, container, false);\n unbinder = ButterKnife.bind(this, view);\n\n\n generarLineaLayoutVertical();\n inicializarAdaptadorRV(crearAdaptador(HomeItemRepo.getModulos()));\n\n if(CredentialValues.getLoginData().getPerfilactual().getIdPerfil() == 1){\n //administrador\n textAdmin.setVisibility(View.VISIBLE);\n cardFecha.setVisibility(View.GONE);\n }\n\n if(!Utilities.getUltDownload(getContext()).equals(\"\"))\n download.setText(Utilities.getUltDownload(getContext()));\n\n if(!Utilities.getUltUpload(getContext()).equals(\"\"))\n upload.setText(Utilities.getUltUpload(getContext()));\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ViewGroup rootView = (ViewGroup) inflater.inflate(\n R.layout.fragment_chu_de_page, container, false);\n\n imgHinh = (ImageView) rootView.findViewById(R.id.imgHinh);\n txt_nameWord = (TextView) rootView.findViewById(R.id.txt_nameWord);\n txt_phatamWord = (TextView) rootView.findViewById(R.id.txt_phatamWord);\n txt_nghiaWord = (TextView) rootView.findViewById(R.id.txt_nghiaWord);\n btnLoa = (ImageView) rootView.findViewById(R.id.btnLoa);\n\n return rootView;\n }",
"@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initView() {\n un = findViewById(R.id.un);\n deux = findViewById(R.id.deux);\n trois = findViewById(R.id.trois);\n quatre = findViewById(R.id.quatre);\n cinq = findViewById(R.id.cinq);\n six = findViewById(R.id.six);\n sept = findViewById(R.id.sept);\n huit = findViewById(R.id.huit);\n neuf = findViewById(R.id.neuf);\n zero = findViewById(R.id.zero);\n etoile = findViewById(R.id.etoile);\n diaize = findViewById(R.id.diaize);\n call_btn = findViewById(R.id.appeler);\n tableView = findViewById(R.id.ecran);\n edit_search = findViewById(R.id.edit_search);\n efface = findViewById(R.id.effacer);\n setComposer = findViewById(R.id.set_composer);\n paletteComposition = findViewById(R.id.palette_de_composition);\n\n if (is_search) {\n setComposer.setVisibility(View.GONE);\n paletteComposition.setVisibility(View.GONE);\n edit_search.setFocusable(true);\n }\n }",
"private void Init(){\n /*button_continue = (Button)findViewById(R.id.button_continue);\n textView_welcome = (TextView)findViewById(R.id.textView_welcome);*/\n viewPager_slide = (ViewPager)findViewById(R.id.viewPager_slide);\n dots_layout = (LinearLayout) findViewById(R.id.dots_layout);\n button_retour = (Button)findViewById(R.id.button_retour);\n button_suivant = (Button)findViewById(R.id.button_suivant);\n }",
"@Override\n\tpublic void findView() {\n\t\tsetFingerButton = (defineImageButton)findViewById(R.id.setFingerButton);\n\t\tsetFingerButton.setPosition(100, 80);\n\t\tsetFingerButton.setState(1);\n\t\tsetFingerButton.setText(\"添加普通用户指纹\");\n\t\t\n\t\taddAdminUser = (defineImageButton)findViewById(R.id.addAdminUserID);\n\t\taddAdminUser.setPosition(100, 80);\n\t\taddAdminUser.setText(\"添加管理员用户指纹\");\n\t\t\n\t\tclearNormalUserButton = (defineImageButton)findViewById(R.id.clearNormalUserID);\n\t\tclearNormalUserButton.setPosition(100, 80);\n\t\tclearNormalUserButton.setText(\"删除普通用户指纹\");\n\t\t\n\t\tclearAdminUserButton = (defineImageButton)findViewById(R.id.deleteAdminUserID);\n\t\tclearAdminUserButton.setPosition(100, 80);\n\t\tclearAdminUserButton.setText(\"删除管理员用户指纹\");\n\t\t\n\t//\tipAddrTextView = (TextView)findViewById(R.id.ipAddr);\n\t\tm_btnCancel = (Button) findViewById(R.id.btnCancel);\n\t\t\n\t\t//弹出带Name对话框\n\t\tView popWindowView = View.inflate(this, R.layout.adduserpopname, null);\n\t\tmenuDialogName = new AlertDialog.Builder(this).create();\n\t\tmenuDialogName.setView(popWindowView);\n\t\taddNormalNameCurButton1 = (Button) popWindowView.findViewById(R.id.button1);\n\t\taddNormalNameCurButton2 = (Button) popWindowView.findViewById(R.id.button2);\n\t\ttextViewName2 = (TextView)popWindowView.findViewById(R.id.textView2);\n\t\teditTextName = (EditText)popWindowView.findViewById(R.id.editTextName);\n\t\t\n\t\t//弹出无Name对话框\n\t\tView popWindow = View.inflate(this, R.layout.adduserpopwindow, null);\n\t\tmenuDialog = new AlertDialog.Builder(this).create();\n\t\tmenuDialog.setView(popWindow);\n\t\taddNormalCurButton1 = (Button) popWindow.findViewById(R.id.button1);\n\t\taddNormalCurButton2 = (Button) popWindow.findViewById(R.id.button2);\n\t\ttextView2 = (TextView)popWindow.findViewById(R.id.textView2);\n\t\ttextView3 = (TextView)popWindow.findViewById(R.id.textView3);\n\t\teditText1 = (EditText)popWindow.findViewById(R.id.editText1);\n\n\t\t\n\t\teditText1.setOnClickListener(new View.OnClickListener(){\n\t\t\t @Override\n\t\t\t public void onClick(View v) {\n\t\t\t \tResetChangeTime();\n\t\t\t }\n\t\t\t });\n\t\t\n\t\teditText1.addTextChangedListener(new TextWatcher(){ \n\t \n @Override \n public void onTextChanged(CharSequence s, int start, int before, \n int count) { \n \tResetChangeTime();\n }\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t\n\t\t\t} \n }); \n\t\t\n\t\teditTextName.setOnClickListener(new View.OnClickListener(){\n\t\t @Override\n\t\t public void onClick(View v) {\n\t\t \tResetChangeTime();\n\t\t }\n\t\t });\n\t\t\n\t\teditTextName.addTextChangedListener(new TextWatcher(){ \n\t \n @Override \n public void onTextChanged(CharSequence s, int start, int before, \n int count) { \n \tResetChangeTime();\n }\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t\n\t\t\t} \n \n }); \n\t}",
"@Override\n\tprotected void iniView() {\n\t\ttxtHead = (TextView) findViewById(R.id.txtHead);\n\t\timgBack = (ImageView) findViewById(R.id.img_left);\n\n\t\ttxtHead.setText(\"回复列表\");\n\t\tlistview = (ListView) findViewById(R.id.listview_postlist);\n\t}",
"@Override\n public void initView() {\n\n }"
]
| [
"0.6702343",
"0.6414452",
"0.6334247",
"0.63259405",
"0.619943",
"0.6191298",
"0.61889684",
"0.61889684",
"0.61889684",
"0.6179825",
"0.6137386",
"0.6066429",
"0.606555",
"0.6056195",
"0.6050512",
"0.6048214",
"0.60349274",
"0.6016359",
"0.60103464",
"0.600864",
"0.59795415",
"0.5963612",
"0.59477264",
"0.5932383",
"0.59131145",
"0.59121853",
"0.59031534",
"0.58960766",
"0.58892906",
"0.5879632",
"0.5876411",
"0.5875058",
"0.58718014",
"0.5867244",
"0.5866104",
"0.58351535",
"0.58127445",
"0.5812679",
"0.5810673",
"0.58101606",
"0.5803011",
"0.58005106",
"0.5800307",
"0.57957745",
"0.5785084",
"0.57811046",
"0.5775319",
"0.57719433",
"0.57579356",
"0.57579356",
"0.5755541",
"0.57457227",
"0.57457227",
"0.57423705",
"0.5736328",
"0.57270664",
"0.5727065",
"0.572673",
"0.57239586",
"0.57227504",
"0.57220024",
"0.5719386",
"0.57188904",
"0.571793",
"0.57164735",
"0.5715644",
"0.57131183",
"0.57098985",
"0.57059216",
"0.57005674",
"0.5698742",
"0.56960654",
"0.5690226",
"0.5689779",
"0.5689392",
"0.5688587",
"0.56880516",
"0.5672696",
"0.56698644",
"0.5668931",
"0.5666281",
"0.5661162",
"0.56599486",
"0.56580645",
"0.56566286",
"0.5656116",
"0.5654632",
"0.565369",
"0.565369",
"0.56512433",
"0.56505793",
"0.56505233",
"0.56505233",
"0.56495476",
"0.56461155",
"0.5643839",
"0.5640785",
"0.56400484",
"0.5638523",
"0.5638062",
"0.5637879"
]
| 0.0 | -1 |
fungsi ambil ukuran banyaknya list | @Override
public int getItemCount() {
return getListKelas().size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }",
"public void ouvrirListe(){\n\t\n}",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"public ArrayList<DanhMuc> getListDanhMucCha();",
"void mo100443a(List<String> list);",
"void mo54419a(List<String> list);",
"public void listar() {\n\t\t\n\t}",
"public ArrayList<DanhMuc> getListDanhMucCon(String ma_danh_muc);",
"public List<Mobibus> darMobibus();",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"List<ParqueaderoEntidad> listar();",
"void mo100444b(List<C40429b> list);",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}",
"List<Vehiculo>listar();",
"public void getAllItem (ArrayList<itemTodo> list){\n Cursor cursor = this.getReadableDatabase().rawQuery(\"select judul, deskripsi, priority from \"+nama_table,null);\n while (cursor.moveToNext()){\n list.add(new itemTodo(cursor.getString(0), cursor.getString(1), cursor.getString(2)));\n }\n }",
"public void listeDesEmpruntsEnCours();",
"public abstract void mo56920a(List<C4122e> list);",
"void mo1929a(int i, int i2, List<DkCloudRedeemFund> list);",
"public abstract void mo56923b(List<C4122e> list);",
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"Object getTolist();",
"public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }",
"List<TipoHuella> listarTipoHuellas();",
"public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }",
"public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);",
"@Override\n\tpublic List<Baidu> savaList(List<Baidu> bl) {\n\t\tbaiduDao.save(bl);\n\t\treturn bl;\n\t}",
"public List<Tripulante> buscarTodosTripulantes();",
"public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}",
"public final void accept(List<? extends com.iqoption.fragment.c.a.a.j> list) {\n a aVar = this.dhx.dhv.dhu;\n kotlin.jvm.internal.i.e(list, \"list\");\n aVar.aU(list);\n }",
"void mo69875a(List<Aweme> list, boolean z);",
"public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }",
"@Override\n public void mostrarListadoEquipos(List<Equipo> equipos) {\n\n }",
"public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }",
"public List getList();",
"public void limpiarListaParametro() throws Exception;",
"private void modify(List listString){\n\t}",
"public List<New> list();",
"public List<Arbeitsgang> getArbeitsgang(Arbeitsgang ag);",
"public void listaFuncionarios() {\n this.telaFuncionario.mensagemListaFuncionarios();\n for (Funcionario funcionarioCadastrado : funcionarioDAO.getList()) { //funcionariosDAO list - coloca tudo em um arrayzao e depois manda pra tela\n int matricula = funcionarioCadastrado.getMatricula();\n String nome = funcionarioCadastrado.getNome();\n String dataNascimento = funcionarioCadastrado.getDataNascimento();\n int telefone = funcionarioCadastrado.getTelefone();\n int salario = funcionarioCadastrado.getSalario();\n Cargo cargo = funcionarioCadastrado.getCargo();\n this.telaFuncionario.exibeFuncionario(matricula, nome, dataNascimento, telefone, salario, cargo);\n }\n exibeMenuFuncionario();\n }",
"public static List<PhuThuocHam> phuToithieu(List<PhuThuocHam> list) {\n\t\tList<PhuThuocHam> listPTH = new ArrayList<PhuThuocHam>(); \n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tPhuThuocHam pth = list.get(i);\n\t\t\tfor (int j = 0; j < pth.getVePhai().length(); j++) {\n\t\t\t\tlistPTH.add(new PhuThuocHam(pth.getVeTrai(),Character.toString(pth.getVePhai().charAt(j))));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//bo cac thuoc tinh du thua ben trai\n\t\tint index = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tPhuThuocHam pth = listPTH.get(index);\n\t\t\t//ve ben trai chi co 1 thuoc tinh thi khong can xet\n\t\t\tif (pth.getVeTrai().length() != 1) {\n\t\t\t\tfor (int i = 0; i < pth.getVeTrai().length(); i++) {\n\t\t\t\t\tString chuoiBo = Character.toString(pth.getVeTrai().charAt(i));\n\t\t\t\t\tString chuoiSauKhiBo = CongCu.catChuoi(pth.getVeTrai(), i);\n\t\t\t\t\tif (TimBaoDong.timBaoDong(listPTH, chuoiSauKhiBo).contains(chuoiBo)) {\n//\t\t\t\t\t\tSystem.out.println(\"Delete \" + chuoiBo + \" From \" + pth.getVeTrai() + \" -> \" + pth.getVePhai());\n\t\t\t\t\t\tlistPTH.get(index).setVeTrai(chuoiSauKhiBo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//bo phu thuoc ham du thua\n\t\tindex = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tString trai = listPTH.get(index).getVeTrai();\n\t\t\tString phai = listPTH.get(index).getVePhai();\n\t\t\t\tlistPTH.remove(index);\n\t\t\t\tif(!TimBaoDong.timBaoDong(listPTH, trai).contains(phai)) {\n\t\t\t\tlistPTH.add(index, new PhuThuocHam(trai, phai));\n\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Delete \" + trai + \" -> \" + phai);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn listPTH;\n\t}",
"public List<Vendedor> listarVendedor();",
"public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }",
"@Override\n\tpublic void commande(List<commande> listcommande) {\n\n\t}",
"public List getTrabajadores();",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"public List<Madeira> buscaCidadesEstado(String estado);",
"void incluir(List<TabelaIRRFLegadoDTO> lstTabelaIRRF) throws BancoobException;",
"private static void caso4(ArrayList<Float> listaValores) {\n \n }",
"public static void main(String[] args) {\t\n\t\t//List olusturma nasil yapilir?\n\t\t//1. yol\n\t\tArrayList<String> sl1= new ArrayList<>();\n\t\t\n\t\t//2. yol\n\t\tArrayList<String> sl2= new ArrayList<>();\n\t\tSystem.out.println(sl1+\"\"+sl2);\n\t\t//3. yol (bunu kullanacagiz)\n\t\tList<String> sl3=new ArrayList<>();\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//Liste eleman ekleme\n\t\t\n\t\tsl3.add(\"A\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"B\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\tsl3.add(\"C\");\n\t\tSystem.out.println(sl3);\n\t\t\n\t\t//herhangi bir indexe eleman ekleme\n\t\t\n\t\tsl3.add(0, \"Mustafa\");\n\t\t System.out.println(sl3);//[Mustafa, A, X, B, C]\n\t\t \n\t\t //List'lerde eleman sayisini bulma nasil yapilir?\n\t\t System.out.println(sl3.size());//5\n\t\t \n\t\t //Bir list'in bos olup olmadigin nasil anlariz?\n\t\t System.out.println(sl3.isEmpty());//isEmpty() ==> bos ise true, dolu ise false verir\n\t\t \n\t\t //Bir list'den istenen elemani silme nasil yapilir?\n\t\t \n\t\t //1. Yol: index ile silme yapabilirsiniz.\n\t\t System.out.println(sl3.remove(0));\n\t\t System.out.println(sl3);//[A, X, B, C]\n\t\t \n\t\t //2. Yol: Eleman secip sil\n\t\t sl3.remove(\"X\");\n\t\t System.out.println(sl3);//[A, B, C]\n\t\t \n\t\t sl3.add(\"B\");//[A, B, C, B]\n\t\t System.out.println(sl3.remove(\"B\"));//true\n\t\t //Ayni elemandan 1 den fazla varsa ilkini siler\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t \n\t\t System.out.println(sl3.remove(\"W\"));//false\n\t\t //Java'dan olmayan bir elemani remove etmesini isterseniz\n\t\t //remove edemez ve list'i aynen oldugu gibi birakir.\n\t\t System.out.println(sl3);//[A, C, B]\n\t\t \n\t\t //remove(index) ne return eder?\n\t\t // sl3 ==> [A, C, B]\n\t\t System.out.println(sl3.remove(1));//C\n\t\t System.out.println(sl3);//[A, B]\n\t\t \n\t\t//remove(eleman) ne return eder?\n\t\t// sl3 ==> [A, B] \n\t\t System.out.println(sl3.remove(\"A\"));//true\n\t\t //remove() methodunun icine tamsayi koyarsaniz \n\t\t //Java onu index kabul eder. \n\t\t //Bu yuzden elemanlari integer olan bir listteki elemanlari silmek icin \n\t\t //remove() methodunun sadece indexlisini kullanabilirsiniz.\n\n \n}",
"List<ListObject> getSupplimentalCodeList();",
"public List<Login>listar();",
"public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }",
"int getListData(int list) {\n\t\treturn m_lists.getField(list, 5);\n\t}",
"List<Plaza> consultarPlazas();",
"public static List<StronaWiersza> pobierzStronaWierszazBazy(StronaWiersza stronaWiersza, String wnma, StronaWierszaDAO stronaWierszaDAO, TransakcjaDAO transakcjaDAO) {\r\n List<StronaWiersza> listaStronaWierszazBazy =new ArrayList<>();\r\n// stare = pobiera tylko w walucie dokumentu rozliczeniowego \r\n// listaNowychRozrachunkow = stronaWierszaDAO.findStronaByKontoWnMaWaluta(stronaWiersza.getKonto(), stronaWiersza.getWiersz().getTabelanbp().getWaluta().getSymbolwaluty(), stronaWiersza.getWnma());\r\n// nowe pobiera wszystkie waluty \r\n listaStronaWierszazBazy = stronaWierszaDAO.findStronaByKontoWnMa(stronaWiersza.getKonto(), wnma);\r\n //stronaWierszaDAO.refresh(listaStronaWierszazBazy);\r\n if (listaStronaWierszazBazy != null && !listaStronaWierszazBazy.isEmpty()) {\r\n try {\r\n DateFormat formatter;\r\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String datarozrachunku = null;\r\n if (stronaWiersza.getWiersz().getDataWalutyWiersza() != null) {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getRok()+\"-\"+stronaWiersza.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWiersza.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataR = formatter.parse(datarozrachunku);\r\n Iterator it = listaStronaWierszazBazy.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza stronaWierszaZbazy = (StronaWiersza) it.next();\r\n List<Transakcja> zachowaneTransakcje = transakcjaDAO.findByNowaTransakcja(stronaWierszaZbazy);\r\n for (Iterator<Transakcja> itx = stronaWierszaZbazy.getPlatnosci().iterator(); itx.hasNext();) {\r\n Transakcja transakcjazbazy = (Transakcja) itx.next();\r\n if (zachowaneTransakcje == null || zachowaneTransakcje.size() == 0) {\r\n itx.remove();\r\n } else if (!zachowaneTransakcje.contains(transakcjazbazy)) {\r\n itx.remove();\r\n }\r\n }\r\n for (Transakcja ta : zachowaneTransakcje) {\r\n if (!stronaWierszaZbazy.getPlatnosci().contains(ta)) {\r\n stronaWierszaZbazy.getPlatnosci().add(ta);\r\n }\r\n }\r\n if (Z.z(stronaWierszaZbazy.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n } else {\r\n String dataplatnosci;\r\n if (stronaWierszaZbazy.getWiersz().getDataWalutyWiersza() != null) {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getRok()+\"-\"+stronaWierszaZbazy.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWierszaZbazy.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataP = formatter.parse(dataplatnosci);\r\n if (dataP.compareTo(dataR) > 0) {\r\n it.remove();\r\n }\r\n }\r\n }\r\n } catch (ParseException ex) {\r\n E.e(ex);\r\n }\r\n }\r\n List<StronaWiersza> stronywierszaBO = stronaWierszaDAO.findStronaByKontoWnMaBO(stronaWiersza.getKonto(), stronaWiersza.getWnma());\r\n if (stronywierszaBO != null && !stronywierszaBO.isEmpty()) {\r\n Iterator it = stronywierszaBO.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza p = (StronaWiersza) it.next();\r\n if (Z.z(p.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n }\r\n }\r\n listaStronaWierszazBazy.addAll(stronywierszaBO);\r\n }\r\n if (listaStronaWierszazBazy == null) {\r\n return (new ArrayList<>());\r\n }\r\n return listaStronaWierszazBazy;\r\n //pobrano wiersze - a teraz z nich robie rozrachunki\r\n }",
"List<Persona> obtenerTodasLasPersona();",
"private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }",
"void mo13370a(int i, int i2, List<C15929a> list) throws IOException;",
"public final void accept(List<? extends com.iqoption.fragment.c.a.a.j> list) {\n kotlin.jvm.internal.i.e(list, \"list\");\n if ((list.isEmpty() ^ 1) != 0) {\n this.dhx.dhv.dhu.aU(list);\n }\n }",
"public void definirObjetos(ObservableList<ListaCompras> lista){\n this.data=lista;\n }",
"public static void main(String[] args) {\n\n ArrayList<Integer> arrayList1 =arrListHazirla(30, 0, 10);//1.adım method call\n System.out.println(\"arrayList1 = \" + arrayList1);//2.adım\n\n System.out.println(\"*********************************\");\n //3.adım\n ArrayList<Integer> arrayList2 = new ArrayList<>(Arrays.asList(10, 20, 30, 30, 30, 40, 40, 40, 50, 50, 50, 60, 70, 80, 90, 10));\n\n System.out.println(\"arrayList2 = \" + arrayList2);\n\n System.out.println(\"tekrarlananlar silinmiş hali\" + tekrarlariSil(arrayList2));//4.adım\n\n System.out.println(\"*********************************\");\n\n Set<Integer> set = SeteCevir(arrayList1);//5.adım method call\n\n System.out.println(\"set = \" + set);\n\n\n System.out.println(\"*********************************\");\n\n System.out.println(\"list = \" + ListeCevir(set));//6.adım method call\n }",
"List<T> buscarTodosComNomeLower();",
"public ArrayList<DataUsuario> listarUsaurios();",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"void listarDadosNaTelaLivro(ArrayList<Livro> lista,DefaultTableModel model ) throws Exception {\n \n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[7];\n Livro aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+editora.recuperar(aux.getIdEditora());\n linha[2] = \"\"+autor.recuperar(aux.getIdAutor());\n linha[3] = \"\"+areaDeConhecimento.recuperar(aux.getIdAreaDeConhecimento());\n linha[4] = aux.getTituloDoLivro();\n linha[5] = \"\"+aux.getIsbn();\n model.addRow(linha);\n }\n }",
"@Test\n\tpublic void testAfficheListe() {\n\t\tList<Professeur> list = new ArrayList<Professeur>();\n\t\tlist.add(prof);\n\t}",
"public Vector addJumMhsYgSudahHeregistrasi_v1(Vector vListInfoKelas) {\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString cuid1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"public JSONArray transforme(ArrayList<String> liste){\n\n JSONArray jliste = new JSONArray();\n for (int i = 0; i < liste.size(); i++) {\n Log.i(\"QUESTION \"+i,liste.get(i));\n jliste.put(liste.get(i));\n }\n Log.i(\"JLISTE\",jliste.toString());\n return jliste;\n }",
"private List<ItemListaIntegracaoDTO> montarListaInstituicaoIdInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tString cooperativa = instituicao.getNumCooperativa().toString();\n\t\t\tif(instituicao.getNumCooperativa() == 300) {\n\t\t\t\tcooperativa = \"0300\";\n\t\t\t}\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getIdInstituicao().toString(), cooperativa + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}",
"public void processList(List<String> inList);",
"public List<ActifFinancier> listemontant_actuelFondparUser(Fond f,int idUser){\n \t List<ActifFinancier> l ;\n \t if(f == Fond.Fond_Euro){\n \t l = actifFinancierRepo.listemontant_actuelFondEuroparUser(idUser) ;\n \t }\n \t else {\n \t\t l = actifFinancierRepo.listemontant_actuelEuroCroissanceparUser(idUser) ;\n \t }\n \t return l;\n }",
"private void irListaSodas(Soda soda){ }",
"public Vector addJumMhsYgSudahHeregistrasi(Vector vListInfoKelas) {\n\n \t/*\n \t * unreusable cuma adhock fix\n \t */\n \tif(vListInfoKelas!=null && vListInfoKelas.size()>0) {\n \t\t/*\n\t\t\t * tambah jumlah mhs perkelas ke dalam brs;\n\t\t\t */\n\t\t\tListIterator li = vListInfoKelas.listIterator();\n \t\ttry {\n \t\t\tContext initContext = new InitialContext();\n \t\t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\t\tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \t\t\tcon = ds.getConnection();\n \t\t\tstmt = con.prepareStatement(\"select NPMHS from DAFTAR_ULANG where THSMS=? and NPMHS=?\");\n \t\t\twhile(li.hasNext()) {\n \t\t\t\tString brs = (String)li.next();\n \t\t\t\t//System.out.println(\"brs=\"+brs);\n \t\t\t\tStringTokenizer st = new StringTokenizer(brs,\"$\");\n \t\t\tString kodeGabungan=st.nextToken();\n \t\t\tString idkmk1=st.nextToken();\n \t\t\tString idkur1=st.nextToken();\n \t\t\tString kdkmk1=st.nextToken();\n \t\t\tString nakmk1=st.nextToken();\n \t\t\tString thsms1=st.nextToken();\n \t\t\tString kdpst1=st.nextToken();\n \t\t\tString shift1=st.nextToken();\n \t\t\tString norutKlsPll1=st.nextToken();\n \t\t\tString initNpmInput1=st.nextToken();\n \t\t\tString latestNpmUpdate1=st.nextToken();\n \t\t\tString latesStatusInfo1=st.nextToken();\n \t\t\tString currAvailStatus1=st.nextToken();\n \t\t\tString locked1=st.nextToken();\n \t\t\tString npmdos1=st.nextToken();\n \t\t\tString nodos1=st.nextToken();\n \t\t\tString npmasdos1=st.nextToken();\n \t\t\tString noasdos1=st.nextToken();\n \t\t\tString canceled1=st.nextToken();\n \t\t\tString kodeKelas1=st.nextToken();\n \t\t\tString kodeRuang1=st.nextToken();\n \t\t\tString kodeGedung1=st.nextToken();\n \t\t\tString kodeKampus1=st.nextToken();\n \t\t\tString tknHrTime1=st.nextToken();\n \t\t\tString nmdos1=st.nextToken();\n \t\t\tString nmasdos1=st.nextToken();\n \t\t\tString enrolled1=st.nextToken();\n \t\t\tString maxEnrolled1=st.nextToken();\n \t\t\tString minEnrolled1=st.nextToken();\n \t\t\tString subKeterKdkmk1=st.nextToken();\n \t\t\tString initReqTime1=st.nextToken();\n \t\t\tString tknNpmApr1=st.nextToken();\n \t\t\tString tknAprTime1=st.nextToken();\n \t\t\tString targetTtmhs1=st.nextToken();\n \t\t\tString passed1=st.nextToken();\n \t\t\t\tString rejected1=st.nextToken();\n \t\t\t\tString konsen1=st.nextToken();\n \t\t\t\tString nmpst1=st.nextToken();\n \t\t\t\tString listNpm=st.nextToken();\n \t\t\t\tStringTokenizer st1 = new StringTokenizer(listNpm,\",\");\n \t\t\t\tString listNpmHer = null;\n \t\t\t\twhile(st1.hasMoreTokens()) {\n \t\t\t\t\tString npm = st1.nextToken();\n \t\t\t\t\tstmt.setString(1,thsms1);\n \t\t\t\t\tstmt.setString(2,npm);\n \t\t\t\t\trs = stmt.executeQuery();\n \t\t\t\t\t\n \t\t\t\t\tif(rs.next()) {\n \t\t\t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\t\t\tlistNpmHer = \"\";\n \t\t\t\t\t\t}\n \t\t\t\t\t\tlistNpmHer = listNpmHer+\",\"+npm;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(listNpmHer==null) {\n \t\t\t\t\tlistNpmHer = \"null\";\n \t\t\t\t}\n \t\t\t\tli.set(brs+\"$\"+listNpmHer);\n \t\t\t\t//System.out.println(\"listNpmHer=\"+listNpmHer);\n \t\t\t\t//System.out.println(thsms1+\"$\"+kdpst1+\"$\"+kdkmk1);\n \t\t\t\t//System.out.println(brs+\"$\"+i);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\tcatch (NamingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tcatch (SQLException ex) {\n \t\t\tex.printStackTrace();\n \t\t} \n \t\tfinally {\n \t\t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t\t\tif (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t\t\tif (con!=null) try { con.close();} catch (Exception ignore){}\n \t\t}\n \t}\n \treturn vListInfoKelas;\n }",
"List<String> mo5876c();",
"public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"public List<String> Mutfakkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(\"mutfak kullanici girdi\");\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Mutfak kullanicisini alirken hata olustu\");\r\n return null;\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n boolean durum = false;\r\n String deger = \"\";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='MUTFAK';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs1 = ps.executeQuery(sorgu2);\r\n while (rs1.next()) {\r\n deger = rs1.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n System.out.println(\"null\");\r\n System.out.println(deger);\r\n }\r\n System.out.println(kullad);\r\n durum = true;\r\n }\r\n } catch (Exception e) {\r\n durum = false;\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }",
"@VTID(38)\n boolean getList();",
"public static Object mostrarLista(Scanner keyboard,ArrayList lista) { \n Objeto obj;\n Usuario user;\n Object ob;\n for(Object o : lista){\n \n if(o.getClass().getSimpleName().equals(\"Objeto\")){\n obj = (Objeto)o;\n \n if(obj.getDisponibilidad()){\n System.out.println(o.toString());\n }\n }else if(o.getClass().getSimpleName().equals(\"Usuario\")){\n user = (Usuario)o;\n if(user.getActivo()){\n System.out.println(o.toString());\n }\n }else{\n System.out.println(o.toString());\n }\n }\n int id = 0;\n boolean ok = true;\n do{\n System.out.println(\"Seleccione el que desee: \");\n try{\n id = keyboard.nextInt(); \n }catch(NumberFormatException e){\n ok = false;\n }\n ob = lista.get(id-1);\n }while((id > lista.size() || id <= 0) || (!ok));\n \n return ob; \n }",
"public static void getMejorbeneficios(ArrayList<BeneficiosCovid19> lista1, ArrayList<BeneficiosCovid19> lista2){\n\n // obetjo de la clase BeneficiosCovid19 para almacenar los datos mayores\n BeneficiosCovid19 beneficiosMayores = new BeneficiosCovid19();\n\n //Variable para implementar el Wrapper del objeto tipo Float\n float valor = 0;\n\n //Almacenamos valor = 0\n beneficiosMayores.setValorSubsidio(valor);\n\n // Ciclo para obtener el subsidio mayor\n for (int i = 0;i< lista1.size();i++) {\n BeneficiosCovid19 auxiliarCovid = lista1.get(i);\n\n if (auxiliarCovid.getValorSubsidio() > beneficiosMayores.getValorSubsidio()){\n beneficiosMayores = auxiliarCovid;\n }\n }\n\n // Ciclo para obtener el ID mayor\n for (int i = 0;i< lista2.size();i++) {\n BeneficiosCovid19 auxiliarCovid2 = lista2.get(i);\n if (auxiliarCovid2.getValorSubsidio() > beneficiosMayores.getValorSubsidio()){\n beneficiosMayores = auxiliarCovid2;\n }\n }\n\n // Mostra resultado de las busquedas\n System.out.println(\"El id del subsidio mayor es: \" + beneficiosMayores.getId());\n System.out.println(\"El nombre subsidio mayor es: \" + beneficiosMayores.getNombre());\n System.out.println(\"El valor subsidio mayor es: \" + beneficiosMayores.getValorSubsidio());\n\n }",
"public List<Map<String, Object>> funcionarioPorDepartamento(Integer cod_departamento);",
"public interface IViewKhuyenMai {\n void hienThiDanhSachKhuyenMai(List<KhuyenMai> khuyenMaiList);\n}",
"public List<Tripulante> obtenerTripulantes();",
"@Override\n\tpublic void achete(List<Achat> listachat) {\n\t\tthis.achats = listachat;\n\n\t}",
"public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"public abstract List<Usuario> seleccionarTodos();",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"public String getList_Base();",
"void listarDadosNaTelaColaborador(ArrayList<Colaborador> lista,DefaultTableModel model ) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[9];\n Colaborador aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+aux.getMatricula();\n linha[2] = aux.getNome();\n linha[3] = \"\"+aux.getNumeroOAB();\n linha[4] = \"\"+aux.getCpf();\n linha[5] = aux.getEmail();\n linha[6] = \"\"+aux.getTelefone();\n linha[7] = aux.getTipo().toString();\n linha[8] = aux.getStatus().toString();\n model.addRow(linha);\n }\n }",
"public List<ActifFinancier> listemontant_actuelFond(Fond f){\n \t List<ActifFinancier> l = new ArrayList<>();\n \t if(f == Fond.Fond_Euro){\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Fond_Euro);\n \t }\n \t else{\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Euro_Croissance);\n \t }\n \t return l;\n }",
"public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException;",
"void printList();",
"void mo13375a(boolean z, int i, int i2, List<C15929a> list);",
"@Override\n\t\t\tpublic void onSuccess(List<QiangYu> list) {\n\t\t\t\tLogUtils.i(TAG,\"find success.\"+list.size());\n\t\t\t\tif(list.size()!=0&&list.get(list.size()-1)!=null){\n\t\t\t\t\tif(mRefreshType==RefreshType.REFRESH){\n\t\t\t\t\t\tmListItems.clear();\n\t\t\t\t\t}\n\t\t\t\t\tif(list.size()<Constant.NUMBERS_PER_PAGE){\n\t\t\t\t\t\tLogUtils.i(TAG,\"已加载完所有数据~\");\n\t\t\t\t\t}\n\t\t\t\t\tif(MyApplication.getInstance().getCurrentUser()!=null){\n\t\t\t\t\t\tlist = DatabaseUtil.getInstance(mContext).setFav(list);\n\t\t\t\t\t}\n\t\t\t\t\tmListItems.addAll(list);\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\t\n\t\t\t\t\tsetState(LOADING_COMPLETED);\n\t\t\t\t\tmPullRefreshListView.onRefreshComplete();\n\t\t\t\t}else{\n\t\t\t\t\tActivityUtil.show(getActivity(), \"暂无更多数据~\");\n\t\t\t\t\tpageNum--;\n\t\t\t\t\tsetState(LOADING_COMPLETED);\n\t\t\t\t\tmPullRefreshListView.onRefreshComplete();\n\t\t\t\t}\n\t\t\t}",
"public static void getLista(UsoApi<ArrayList> needResult, String lista)\n {\n final String[] response = new String[1];\n final SyncHttpClient client = new SyncHttpClient();\n client.setTimeout(5000);\n\n\n String api = host + \"/playlist/\" + lista;\n\n client.get(api,\n new TextHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, final String res) {\n response[0] = res;\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, final String res, Throwable t) {\n response[0] = res;\n }\n }\n );\n\n ArrayList<Marcha> marchas = new ArrayList<>();\n\n JsonArray array = new JsonParser().parse(response[0]).getAsJsonArray();\n for(int i=0; i<array.size(); i++) {\n Marcha marcha = new Marcha(array.get(i).getAsJsonObject());\n marchas.add(marcha);\n }\n needResult.result(marchas);\n }",
"void mo7380a(C1320b bVar, List<String> list) throws RemoteException;",
"List<Oficios> buscarActivas();",
"public static void main(String[] args) {\n\t\tString[] zeug = {\"fußball\",\"Stift\",\"tennisball\",\"lineal\",\"wacken\", \"nille\"};\n\t\tList<String> liste1 = new ArrayList<String>();\n\t\n\t\t//add Array items to list\n\t\t//String Array in Array List reinschreiben\n\t\tfor (String x: zeug) \n\t\tliste1.add(x);\n\t\n\t\t// nochmal String Array und Array List erstellen\n\t\tString[] mehrZeug = {\"Kugelschreiber\", \"geodreieck\",\"fußball\",\"Stift\",\"Keks\",\"tennisball\",\"nille\"};\n\t\tList<String> liste2 = new ArrayList<String>();\n\t\n\t\t// nochmal String Array in Array List reinschreiben\n\t\tfor (String y: mehrZeug)\n\t\tliste2.add(y);\n\t\n\t\t// ausgeben\n\t\t// Liste1 ausgeben. Die Array List\n\t\tSystem.out.println(\"Liste1 vor dem Bearbeiten:\");\n\t\t\n\t\tfor (int i=0; i<liste1.size(); i++) { \n\t\tSystem.out.printf(\"%s \", liste1.get(i));\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"Liste2 zum Vergleich:\");\n\t\tfor (int i=0; i<liste2.size(); i++) { \n\t\t\tSystem.out.printf(\"%s \", liste2.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t// methode listebearbeiten angewendet und liste1 und liste2 als parameter übergeben\n\t\tlistebearbeiten(liste1,liste2);\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\t// liste1 wird nach dem bearbeiten durch die Methode erneut ausgegeben\n\t\tSystem.out.println(\"Liste 1 nach dem bearbeiten:\");\n\t\tfor (int i=0; i<liste1.size(); i++) { \n\t\t\tSystem.out.printf(\"%s \", liste1.get(i));\n\t\t}\n\t\n\t\n\t\n\t}"
]
| [
"0.72264105",
"0.680214",
"0.6692551",
"0.6639855",
"0.66322297",
"0.6590378",
"0.6558315",
"0.6462954",
"0.64094496",
"0.63867867",
"0.63587546",
"0.635784",
"0.6344892",
"0.6334932",
"0.63324445",
"0.6317234",
"0.6277292",
"0.62567705",
"0.62529504",
"0.6245384",
"0.6242348",
"0.62146103",
"0.6207617",
"0.6178202",
"0.6141145",
"0.6129029",
"0.6110222",
"0.6096842",
"0.6087137",
"0.6069081",
"0.6063511",
"0.6061543",
"0.6060039",
"0.6052735",
"0.6051531",
"0.60136265",
"0.6000533",
"0.59989387",
"0.59892285",
"0.5981265",
"0.59800065",
"0.59769756",
"0.5971677",
"0.59654766",
"0.5964726",
"0.5963193",
"0.59524465",
"0.5948238",
"0.59466684",
"0.59434617",
"0.59338886",
"0.59321755",
"0.59231085",
"0.59214056",
"0.591709",
"0.5908029",
"0.59078646",
"0.5906162",
"0.5900848",
"0.5897743",
"0.5886461",
"0.588054",
"0.58591485",
"0.58501536",
"0.5848984",
"0.58446765",
"0.5839985",
"0.5839043",
"0.58365804",
"0.583651",
"0.5835559",
"0.58338773",
"0.58316135",
"0.5827307",
"0.58244514",
"0.5822707",
"0.58212125",
"0.5819691",
"0.58183473",
"0.5811943",
"0.5809987",
"0.5797631",
"0.57845724",
"0.57806844",
"0.5777154",
"0.5772652",
"0.5772358",
"0.5771818",
"0.5771725",
"0.5766409",
"0.5759142",
"0.57493454",
"0.57488775",
"0.57483894",
"0.57472837",
"0.5744481",
"0.5742613",
"0.5741134",
"0.5738379",
"0.57378256",
"0.5737496"
]
| 0.0 | -1 |
Resource collection API of FqdnListLocalRulestacks. | public interface FqdnListLocalRulestacks {
/**
* List FqdnListLocalRulestackResource resources by LocalRulestacks.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link
* PagedIterable}.
*/
PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(
String resourceGroupName, String localRulestackName);
/**
* List FqdnListLocalRulestackResource resources by LocalRulestacks.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link
* PagedIterable}.
*/
PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(
String resourceGroupName, String localRulestackName, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
Response<FqdnListLocalRulestackResource> getWithResponse(
String resourceGroupName, String localRulestackName, String name, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource.
*/
FqdnListLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String localRulestackName, String name);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String localRulestackName, String name, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
FqdnListLocalRulestackResource getById(String id);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
Response<FqdnListLocalRulestackResource> getByIdWithResponse(String id, Context context);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteById(String id);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteByIdWithResponse(String id, Context context);
/**
* Begins definition for a new FqdnListLocalRulestackResource resource.
*
* @param name resource name.
* @return the first stage of the new FqdnListLocalRulestackResource definition.
*/
FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name);",
"LevelStacks() {\n stacks = new ArrayList<>();\n }",
"public List<Taskdef> getLocalTaskdefs()\n {\n return localTaskdefs;\n }",
"public static final SubLObject setup_stacks_file() {\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_stack$.getGlobalValue(), Symbols.symbol_function($sym7$STACK_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym8$STACK_STRUC_NUM, $sym9$_CSETF_STACK_STRUC_NUM);\n Structures.def_csetf($sym10$STACK_STRUC_ELEMENTS, $sym11$_CSETF_STACK_STRUC_ELEMENTS);\n Equality.identity($sym0$STACK);\n access_macros.register_macro_helper($sym24$DO_STACK_ELEMENTS_STACK_ELEMENTS, $sym25$DO_STACK_ELEMENTS);\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_locked_stack$.getGlobalValue(), Symbols.symbol_function($sym36$LOCKED_STACK_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym37$LOCKED_STACK_STRUC_LOCK, $sym38$_CSETF_LOCKED_STACK_STRUC_LOCK);\n Structures.def_csetf($sym39$LOCKED_STACK_STRUC_STACK, $sym40$_CSETF_LOCKED_STACK_STRUC_STACK);\n Equality.identity($sym29$LOCKED_STACK);\n return NIL;\n }",
"public ResourceBundle getLocalQueries(String locale) {\n if (resourceBundles.containsKey(locale)) {\n return resourceBundles.get(locale);\n } else {\n resourceBundles.put(locale, ResourceBundle.getBundle(SQL_QUERIES_PATH,\n HttpParser.parseLocaleFromString(locale)));\n return resourceBundles.get(locale);\n }\n }",
"public String[] getLocalNames() {\r\n\t\treturn names.toArray(new String[0]);\r\n\t}",
"public LocalScope getlocalScope() {\n return localScope;\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"@ApiMethod(name = \"getLocals\", path = \"local\", httpMethod = ApiMethod.HttpMethod.GET)\n public List<Local> getLocals(@Nullable @Named(\"search\") String search,\n @Nullable @Named(\"idCity\") Long idCity,\n @Nullable @Named(\"idCategory\") Long idCategory,\n @Nullable @Named(\"idSubCategory\") Long[] subCategories)\n throws ConflictException {\n\n return mLocalService.list(idCity, idCategory, subCategories);\n }",
"@Override\n\tpublic List<LocalRichInfo> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}",
"Set<String> getRangeLocalNames();",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<AzureFirewallFqdnTag> list() {\n return this.serviceClient.listAsync();\n }",
"@NotNull\n public Collection<ThemeEditorStyle> getLocalThemes() {\n return Collections.unmodifiableList(myProjectLocalThemes);\n }",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1LocalVolumeSource getLocal();",
"@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<AzureFirewallFqdnTag> list(Context context) {\n return this.serviceClient.listAsync(context);\n }",
"@ApiMethod(name = \"getLocal\", path = \"local/{id}\", httpMethod = ApiMethod.HttpMethod.GET)\n public Local getLocal(@Named(\"id\") Long id)\n throws NotFoundException {\n\n return mLocalService.getById(id);\n }",
"public String[] getLocalVariables() {\r\n return scope != null? scope.getLocalVariables() : null;\r\n }",
"@VisibleForTesting\n public WindowList<TaskStack> getStacks() {\n return this.mTaskStackContainers.mChildren;\n }",
"public final EObject entryRuleLocalVariableDeclaration() throws RecognitionException {\n EObject current = null;\n int entryRuleLocalVariableDeclaration_StartIndex = input.index();\n EObject iv_ruleLocalVariableDeclaration = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 43) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2235:2: (iv_ruleLocalVariableDeclaration= ruleLocalVariableDeclaration EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2236:2: iv_ruleLocalVariableDeclaration= ruleLocalVariableDeclaration EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLocalVariableDeclarationRule()); \n }\n pushFollow(FOLLOW_ruleLocalVariableDeclaration_in_entryRuleLocalVariableDeclaration4370);\n iv_ruleLocalVariableDeclaration=ruleLocalVariableDeclaration();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleLocalVariableDeclaration; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLocalVariableDeclaration4380); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 43, entryRuleLocalVariableDeclaration_StartIndex); }\n }\n return current;\n }",
"private static double[] getSurfaces(final ImageStack aInputStack, final int[] aLables, final double[] aResol)\r\n\t{\r\n\t\tfinal double[] surfaces = GeometricMeasures3D.surfaceAreaCrofton(aInputStack, aLables, aResol, surfaceAreaDirs);\r\n\t\treturn surfaces;\r\n\t}",
"public List<LocalVariable> getLocalVariables() {\n\t\treturn localVariables;\n\t}",
"@Override\n\tpublic List<Localidad> listaLocalidades() {\n\t\treturn sesion.getCurrentSession().createCriteria(Localidad.class).list();\n\t}",
"public void setLocalUri(String localUri) {\n this.localUri = localUri;\n }",
"public final EObject entryRuleLocalVariableDeclarationStatement() throws RecognitionException {\n EObject current = null;\n int entryRuleLocalVariableDeclarationStatement_StartIndex = input.index();\n EObject iv_ruleLocalVariableDeclarationStatement = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 41) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2191:2: (iv_ruleLocalVariableDeclarationStatement= ruleLocalVariableDeclarationStatement EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2192:2: iv_ruleLocalVariableDeclarationStatement= ruleLocalVariableDeclarationStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLocalVariableDeclarationStatementRule()); \n }\n pushFollow(FOLLOW_ruleLocalVariableDeclarationStatement_in_entryRuleLocalVariableDeclarationStatement4267);\n iv_ruleLocalVariableDeclarationStatement=ruleLocalVariableDeclarationStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleLocalVariableDeclarationStatement; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLocalVariableDeclarationStatement4277); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 41, entryRuleLocalVariableDeclarationStatement_StartIndex); }\n }\n return current;\n }",
"public GMap<Integer, Stack> getStacks();",
"@Override\n\tpublic List<LocalRichInfo> findByemailReqBfcInfo(boolean inStage,\n\t\tString email) {\n\t\treturn findByemailReqBfcInfo(inStage, email, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}",
"public String getStack();",
"public ListStack() {\n\t\tlist = new ArrayList<>();\n\t}",
"@Override\n\tpublic Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, String p_225637_2_,\n\t\t\tString p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) {\n\t\treturn null;\n\t}",
"public <T extends Declaration> List<T> localMembers(final Class<T> kind) throws LookupException;",
"public LocalContext(int returnip, int nlocals) {\n\t\tthis.returnip = returnip;\n\t\tlocals = new Object[nlocals];\n\t}",
"public MinStack() {\r\n list = new LinkedList();\r\n }",
"public List<Macrodef> getLocalMacrodefs()\n {\n return localMacrodefs;\n }",
"public SimpleResList getResourceList() {\r\n\t\treturn new SimpleResList(resList);\r\n\t}",
"private void doList(String localPattern, List<org.glassfish.flashlight.datatree.TreeNode> ltn) {\n ActionReport.MessagePart topPart = reporter.getTopMessagePart();\n\n for (org.glassfish.flashlight.datatree.TreeNode tn1 : ltn) {\n if (tn1.hasChildNodes()) {\n String line = tn1.getCompletePathName();\n\n if (plainReporter != null)\n cliOutput.append(line).append('\\n');\n else {\n ActionReport.MessagePart part = topPart.addChild();\n part.setMessage(line);\n }\n }\n }\n setSuccess();\n }",
"public List<VirtualNetworkFunctionRecord> getListRegisteredVNFR() {\n\t\tVirtualNetworkFunctionRecord[] list = restTemplate.getForObject(serviceProfile.getServiceBaseUrl(), VirtualNetworkFunctionRecord[].class);\n\t return Arrays.asList(list);\t\t\n\t}",
"@GET\n @Produces({ MediaType.APPLICATION_JSON })\n @StatusCodes({\n @ResponseCode(code = 200, condition = \"Operation successful\"),\n @ResponseCode(code = 401, condition = \"Unauthorized\"),\n @ResponseCode(code = 501, condition = \"Not Implemented\"),\n @ResponseCode(code = 503, condition = \"No providers available\") })\n\n public Response listGroups(\n // return fields\n @QueryParam(\"fields\") List<String> fields,\n // OpenStack LoadBalancerListener attributes\n @QueryParam(\"id\") String queryLoadBalancerListenerID,\n @QueryParam(\"default_pool_id\") String queryLoadBalancerListenerDefaultPoolID,\n @QueryParam(\"tenant_id\") String queryLoadBalancerListenerTenantID,\n @QueryParam(\"name\") String queryLoadBalancerListenerName,\n @QueryParam(\"description\") String queryLoadBalancerListenerDescription,\n @QueryParam(\"protocol\") String queryLoadBalancerListenerProtocol,\n @QueryParam(\"protocol_port\") String queryLoadBalancerListenerProtocolPort,\n @QueryParam(\"admin_state_up\") String queryLoadBalancerListenerAdminIsUp,\n // pagination\n @QueryParam(\"limit\") String limit,\n @QueryParam(\"marker\") String marker,\n @QueryParam(\"page_reverse\") String pageReverse\n // sorting not supported\n ) {\n INeutronLoadBalancerListenerCRUD loadBalancerListenerInterface = NeutronCRUDInterfaces.getINeutronLoadBalancerListenerCRUD(this);\n // INeutronLoadBalancerListenerRuleCRUD firewallRuleInterface = NeutronCRUDInterfaces.getINeutronLoadBalancerListenerRuleCRUD(this);\n\n if (loadBalancerListenerInterface == null) {\n throw new ServiceUnavailableException(\"LoadBalancerListener CRUD Interface \"\n + RestMessages.SERVICEUNAVAILABLE.toString());\n }\n List<NeutronLoadBalancerListener> allLoadBalancerListeners = loadBalancerListenerInterface.getAllNeutronLoadBalancerListeners();\n // List<NeutronLoadBalancerListenerRule> allLoadBalancerListenerRules = firewallRuleInterface.getAllNeutronLoadBalancerListenerRules();\n List<NeutronLoadBalancerListener> ans = new ArrayList<NeutronLoadBalancerListener>();\n // List<NeutronLoadBalancerListenerRule> rules = new ArrayList<NeutronLoadBalancerListenerRule>();\n Iterator<NeutronLoadBalancerListener> i = allLoadBalancerListeners.iterator();\n while (i.hasNext()) {\n NeutronLoadBalancerListener nsg = i.next();\n if ((queryLoadBalancerListenerID == null ||\n queryLoadBalancerListenerID.equals(nsg.getLoadBalancerListenerID())) &&\n (queryLoadBalancerListenerDefaultPoolID == null ||\n queryLoadBalancerListenerDefaultPoolID.equals(nsg.getNeutronLoadBalancerListenerDefaultPoolID())) &&\n (queryLoadBalancerListenerTenantID == null ||\n queryLoadBalancerListenerTenantID.equals(nsg.getLoadBalancerListenerTenantID())) &&\n (queryLoadBalancerListenerName == null ||\n queryLoadBalancerListenerName.equals(nsg.getLoadBalancerListenerName())) &&\n (queryLoadBalancerListenerDescription == null ||\n queryLoadBalancerListenerDescription.equals(nsg.getLoadBalancerListenerDescription())) &&\n (queryLoadBalancerListenerProtocol == null ||\n queryLoadBalancerListenerProtocol.equals(nsg.getNeutronLoadBalancerListenerProtocol())) &&\n (queryLoadBalancerListenerProtocolPort == null ||\n queryLoadBalancerListenerProtocolPort.equals(nsg.getNeutronLoadBalancerListenerProtocolPort())) &&\n (queryLoadBalancerListenerAdminIsUp == null ||\n queryLoadBalancerListenerAdminIsUp.equals(nsg.getLoadBalancerListenerAdminStateIsUp()))) {\n if (fields.size() > 0) {\n ans.add(extractFields(nsg,fields));\n } else {\n ans.add(nsg);\n }\n }\n }\n return Response.status(200).entity(\n new NeutronLoadBalancerListenerRequest(ans)).build();\n }",
"public void testSetLocalRessources() {\n\t\ttry {\n\t\t\tthis.part.setLocalRessources(null);\n\t\t\tfail(\"NullPointerException must be thrown\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t/* all clear */\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"wrong Exception\");\n\t\t}\n\n\t\ttry {\n\t\t\tDotplotFile file = new DotplotFile(\"./testfiles/fmatrix/test.txt\");\n\t\t\tCollection<DotplotFile> coll = new Vector<DotplotFile>();\n\t\t\tcoll.add(file);\n\t\t\tassertNotNull(this.part.getSourceList());\n\t\t\tassertEquals(0, this.part.getSourceList().size());\n\t\t\tthis.part.setLocalRessources(coll);\n\t\t\tISourceList list = this.part.getSourceList();\n\t\t\tassertEquals(1, list.size());\n\t\t\tassertTrue(list.contains(file));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"no exception:\" + e.getClass().getName() + \":\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"public cwterm.service.rigctl.xsd.Filter[] getFilters() {\n return localFilters;\n }",
"protected final <T> List<T> getLocalCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(spanListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }",
"public void setLocalRichLocalService(\n\t\tservizio.local.bfc.service.LocalRichLocalService localRichLocalService) {\n\t\tthis.localRichLocalService = localRichLocalService;\n\t}",
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"public servizio.local.bfc.service.LocalRichInfoLocalService getLocalRichInfoLocalService() {\n\t\treturn localRichInfoLocalService;\n\t}",
"public void initialize_stacks(ArrayList<ArrayList<Stack<Integer>>> stacks) {\n\t\tfor (int i=0; i<size*size; i++) {\n\t\t\tstacks.add(new ArrayList<Stack<Integer>>());\n\t\t\tfor (int j=0; j<size*size; j++) {\n\t\t\t\tstacks.get(i).add(new Stack<Integer>());\n\t\t\t}\n\t\t}\n\t}",
"public void setLocalRichInfoLocalService(\n\t\tservizio.local.bfc.service.LocalRichInfoLocalService localRichInfoLocalService) {\n\t\tthis.localRichInfoLocalService = localRichInfoLocalService;\n\t}",
"public Collection lookup(String lfn) {\n Set lfns = new HashSet();\n lfns.add( lfn );\n \n Map<String, Collection<ReplicaCatalogEntry>> result = this.lookup( lfns );\n\n if( result == null ){\n return null;\n }\n else{\n Collection values = result.get( lfn );\n if( values == null ){\n //JIRA PM-74\n values = new ArrayList();\n }\n return values;\n }\n \n }",
"public void testParseLocalCodes() throws Exception {\r\n \t\tCObject node = archetype.node(\"/types[at0001]/items[at10003]/value\");\r\n \t\tString[] codeList = { \"at1311\",\"at1312\", \"at1313\", \"at1314\",\"at1315\" }; \r\n \t\tassertCCodePhrase(node, \"local\", codeList, null);\r\n \t}",
"@Override\n\tpublic List<Localidad> findAll(int page, int pageSize) {\n\t\treturn null;\n\t}",
"@RequestLine(\"GET /zones/{zoneName}/rrsets\")\n RRSetList getResourceRecordsOfZone(@Param(\"zoneName\") String zoneName);",
"public String[] getRuleSetDisplayNames(ULocale loc)\n/* */ {\n/* 996 */ String[] names = getNameListForLocale(loc);\n/* 997 */ if (names != null) {\n/* 998 */ return (String[])names.clone();\n/* */ }\n/* 1000 */ names = getRuleSetNames();\n/* 1001 */ for (int i = 0; i < names.length; i++) {\n/* 1002 */ names[i] = names[i].substring(1);\n/* */ }\n/* 1004 */ return names;\n/* */ }",
"public static assesment.persistence.question.QuestionReportLocalHome getLocalHome() throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportLocalHome) lookupHome(null, assesment.persistence.question.QuestionReportLocalHome.COMP_NAME, assesment.persistence.question.QuestionReportLocalHome.class);\n }",
"public Collection lookup( String lfn ) {\n Collection result = new LinkedList();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n Collection l = catalog.lookup( lfn );\n if ( l != null ){\n result.addAll( l );\n }\n }\n return result;\n\n }",
"@Override\n\tpublic List<DeptAdminUnit> getUnitLevelNamesForLocalBody(\n\t\t\tInteger adminUnitCode, Integer slc) throws Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn organizationDAO.getUnitLevelNamesForLocalBody(adminUnitCode,slc);\n\t}",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"public static authenticationlocalpolicy_binding[] get(nitro_service service, String name[]) throws Exception{\n\t\tif (name !=null && name.length>0) {\n\t\t\tauthenticationlocalpolicy_binding response[] = new authenticationlocalpolicy_binding[name.length];\n\t\t\tauthenticationlocalpolicy_binding obj[] = new authenticationlocalpolicy_binding[name.length];\n\t\t\tfor (int i=0;i<name.length;i++) {\n\t\t\t\tobj[i] = new authenticationlocalpolicy_binding();\n\t\t\t\tobj[i].set_name(name[i]);\n\t\t\t\tresponse[i] = (authenticationlocalpolicy_binding) obj[i].get_resource(service);\n\t\t\t}\n\t\t\treturn response;\n\t\t}\n\t\treturn null;\n\t}",
"public final void localVariableDeclarationStatement() throws RecognitionException {\n int localVariableDeclarationStatement_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"localVariableDeclarationStatement\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(606, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 87) ) { return ; }\n // Java.g:607:5: ( localVariableDeclaration ';' )\n dbg.enterAlt(1);\n\n // Java.g:607:10: localVariableDeclaration ';'\n {\n dbg.location(607,10);\n pushFollow(FOLLOW_localVariableDeclaration_in_localVariableDeclarationStatement3275);\n localVariableDeclaration();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(607,35);\n match(input,26,FOLLOW_26_in_localVariableDeclarationStatement3277); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 87, localVariableDeclarationStatement_StartIndex); }\n }\n dbg.location(608, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"localVariableDeclarationStatement\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }",
"private void parseLocalReferentialForLocalAuthority(final String localAuthorityName) {\n \n synchronized(this) {\n \n // add entry for local authority and default request type\n addLocalReferentialForLocalAuthority(localAuthorityName,\n commonReferentialFilename, \"All\");\n \n // for all already known request type services, add an entry for local authority\n Iterator requestServicesIt = parsedRequestServices.iterator();\n while (requestServicesIt.hasNext()) {\n IRequestService service = (IRequestService) requestServicesIt.next();\n if (service.getLocalReferentialFilename() != null) {\n addLocalReferentialForLocalAuthority(localAuthorityName,\n service.getLocalReferentialFilename(),\n service.getLabel());\n }\n }\n }\n }",
"public Map lookup(Set lfns) {\n //Map indexed by lrc url and each value a collection\n //of lfns that the RLI says are present in it.\n Map lrc2lfn = this.getLRC2LFNS(lfns);\n\n if(lrc2lfn == null){\n //probably RLI is not connected!!\n return null;\n }\n\n // now query the LRCs with the LFNs that they are responsible for\n // and aggregate stuff.\n String key = null;\n Map result = new HashMap(lfns.size());\n String message;\n for(Iterator it = lrc2lfn.entrySet().iterator();it.hasNext();){\n Map.Entry entry = (Map.Entry)it.next();\n key = (String)entry.getKey();\n message = \"Querying LRC \" + key;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,key);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + key,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n\n //query the lrc\n try{\n Map m = lrc.lookup((Set)entry.getValue());\n\n //figure out if we need to restrict our queries or not.\n //restrict means only include results if they have a site\n //handle associated\n boolean restrict = ( this.determineQueryType(key) == this.LRC_QUERY_RESTRICT );\n\n for(Iterator mit = m.entrySet().iterator();mit.hasNext();){\n entry = (Map.Entry)mit.next();\n List pfns = (( List )entry.getValue());\n if ( restrict ){\n //traverse through all the PFN's and check for resource handle\n for ( Iterator pfnIterator = pfns.iterator(); pfnIterator.hasNext(); ){\n ReplicaCatalogEntry pfn = (ReplicaCatalogEntry) pfnIterator.next();\n if ( pfn.getResourceHandle() == null ){\n //do not include in the results if the entry does not have\n //a pool attribute associated with it.\n mLogger.log(\"Ignoring entry \" + entry.getValue() +\n \" from LRC \" + key,\n LogManager.DEBUG_MESSAGE_LEVEL);\n pfnIterator.remove();\n }\n }\n\n }\n\n //if pfns are empty which could be due to\n //restriction case taking away all pfns\n //do not merge in result\n if( pfns.isEmpty() ){ continue; }\n\n //merge the entries into the main result\n key = (String)entry.getKey(); //the lfn\n if( result.containsKey(key) ){\n //right now no merging of RCE being done on basis\n //on them having same pfns. duplicate might occur.\n ((List)result.get(key)).addAll( pfns );\n }\n else{\n result.put( key, pfns );\n }\n }\n }\n catch(Exception ex){\n mLogger.log(\"lookup(Set)\",ex,LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n //disconnect\n lrc.close();\n }\n\n\n mLogger.log( message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n return result;\n }",
"public Stack getStack(int slot);",
"public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_;\n }",
"@Override\n public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {\n request = beforeClientExecution(request);\n return executeListTagsForResource(request);\n }",
"@Override\n public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {\n request = beforeClientExecution(request);\n return executeListTagsForResource(request);\n }",
"@Override\n public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {\n request = beforeClientExecution(request);\n return executeListTagsForResource(request);\n }",
"public Vector getLocalAppList(String s_user_for) throws Exception{\r\n\t\tVector result_list = null;\r\n\t\ttry {\t\t\t\t\t\r\n\t\t\tsetldschema( PropertyLoader.getConfig(\"ldschema.xml.url\") );\r\n\t\t\tsetlldschema( PropertyLoader.getConfig(\"lldschema.xml.url\") );\t\t\t\t\t\t\r\n\t\t\tresult_list = constructApplist(PropertyLoader.getConfig(\"lapplist.xml.url\"), s_user_for);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\":getLocalAppList\" + e.getMessage(), e);\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t}\t\t\t\r\n\t\treturn result_list;\t\t\r\n\t}",
"@RequestMapping(value = \"/txsource\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxSourceList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTranslationSourceList(),\n Description.fromDescriptible(strings, locale)\n );\n }",
"private LocalVariables locals(){\n\t\treturn frame.getLocals();\n\t}",
"public java.util.Collection<VariableInfo> getLocalVariables(){\n\t\tjava.util.Collection<VariableInfo> variables = new java.util.ArrayList<VariableInfo>();\n\n\t\treturn variables;\n\t}",
"@Override\n public @NotNull LocalQuickFix @Nullable [] getQuickFixes() {\n return LocalQuickFix.EMPTY_ARRAY;\n }",
"public void setLocalItemId(String localItemId) {\n this.localItemId = localItemId;\n }",
"@RequestLine(\"GET /zones/{zoneName}/rrsets?limit={limit}&offset={offset}\")\n RRSetList getResourceRecordsOfZone(@Param(\"zoneName\") String zoneName, @Param(\"limit\") int limit, @Param(\"offset\") int offset);",
"public static Set<Symbol> getLocalSymbols(Traversable t) {\n Set<Symbol> ret = new LinkedHashSet<Symbol>();\n if (t == null) {\n return ret;\n }\n DFIterator<SymbolTable> iter =\n new DFIterator<SymbolTable>(t, SymbolTable.class);\n while (iter.hasNext()) {\n ret.addAll(getSymbols(iter.next()));\n }\n return ret;\n }",
"public List<Identifier> getLocals(Function f){\n Map<String, Integer> variableScope = localVariableScopes.get(f);\n \n List<Identifier> locals = variableScope\n .keySet()\n .stream()\n .map(x -> new Identifier(Scope.LOCAL, Type.VARIABLE, x, variableScope.get(x).toString()))\n .collect(Collectors.toList());\n\n return locals;\n }",
"public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }",
"public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }",
"@NotNull\r\n\t@Override\r\n\tpublic ArrayStack initFilters(@Nullable ArrayStack filters, @NotNull Locale locale) throws FlexPayException {\r\n\r\n\t\tif (filters == null) {\r\n\t\t\tfilters = new ArrayStack();\r\n\t\t}\r\n\r\n\t\tBuildingsFilter parentFilter = filters.isEmpty() ? null : (BuildingsFilter) filters.pop();\r\n\r\n\t\t// check if a districts filter present\r\n\t\tif (filters.size() > 1 && filters.peek(1) instanceof DistrictFilter) {\r\n\t\t\tPrimaryKeyFilter<?> streetFilter = (PrimaryKeyFilter<?>) filters.pop();\r\n\r\n\t\t\tfilters = districtParentService.initFilters(filters, locale);\r\n\t\t\tDistrictFilter districtFilter = (DistrictFilter) filters.pop();\r\n\r\n\t\t\tfilters.push(streetFilter);\r\n\t\t\tfilters = parentService.initFilters(filters, locale);\r\n\t\t\tstreetFilter = (PrimaryKeyFilter<?>) filters.pop();\r\n\r\n\t\t\tfilters.push(districtFilter);\r\n\t\t\tfilters.push(streetFilter);\r\n\r\n\t\t\t// init filter\r\n\t\t\tparentFilter = initFilter(parentFilter, streetFilter,\r\n\t\t\t\t\tdistrictFilter);\r\n\t\t\tfilters.push(parentFilter);\r\n\t\t} else {\r\n\t\t\tfilters = parentService.initFilters(filters, locale);\r\n\t\t\tPrimaryKeyFilter<?> forefatherFilter = (PrimaryKeyFilter<?>) filters.peek();\r\n\r\n\t\t\t// init filter\r\n\t\t\tparentFilter = initFilter(parentFilter, forefatherFilter, locale);\r\n\t\t\tfilters.push(parentFilter);\r\n\t\t}\r\n\r\n\t\treturn filters;\r\n\t}",
"public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_.getUnmodifiableView();\n }",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public void setLocalXSLT(String localXSLT) {\r\n\t\tthis.localXSLT=localXSLT;\r\n\t}",
"static List<String> getStackFrameList(final Throwable t) {\n final String stackTrace = getStackTrace(t);\n final String linebreak = LINE_SEPARATOR;\n final StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);\n final List<String> list = new ArrayList<String>();\n boolean traceStarted = false;\n while (frames.hasMoreTokens()) {\n final String token = frames.nextToken();\n // Determine if the line starts with <whitespace>at\n final int at = token.indexOf(\"at\");\n if (at != -1 && token.substring(0, at).trim().isEmpty()) {\n traceStarted = true;\n list.add(token);\n } else if (traceStarted) {\n break;\n }\n }\n return list;\n }",
"public MinStack() {\n stackList = new ArrayList<>();\n minList = new ArrayList<>();\n size = 0;\n }",
"@Override\r\n\tpublic List<SprintTo> getSprintsForProjectByStatus(String projectId,\r\n\t\t\tint status) {\n\t\treturn null;\r\n\t}",
"java.util.List<java.lang.String>\n getFeedItemSetsList();",
"public void setLstStatus(String lstStatus) {\n this.lstStatus = lstStatus == null ? null : lstStatus.trim();\n }",
"public Set list(String constraint) {\n //sanity check\n if (this.isClosed()) {\n //probably an exception should be thrown here!!\n throw new RuntimeException(RLI_NOT_CONNECTED_MSG + this.mRLIURL);\n }\n Set result = new HashSet();\n String url = null,message = null;\n //we need to get hold of all the LRC\n //that report to the RLI and call the\n //list() method on each of them\n for(Iterator it = this.getReportingLRC().iterator();it.hasNext();){\n url = (String)it.next();\n message = \"Querying LRC \" + url;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,url);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + url,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n try{\n result.addAll(lrc.list(constraint));\n }\n catch(Exception e){\n mLogger.log(\"list(String)\",e,LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n lrc.close();\n }\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n\n return result;\n }",
"void resetLocal();",
"public static List<RDFNode> asJavaList(Resource l) {\n List<RDFNode> result = new ArrayList<RDFNode>();\n Model m = l.getModel();\n while (!l.equals(RDF.nil)) {\n Statement first = l.getProperty(RDF.first);\n Statement rest = l.getProperty(RDF.rest);\n if (first == null) {\n result.add(Vocab.missingListElement.inModel(m));\n } else {\n result.add(first.getObject());\n }\n if (rest == null) {\n result.add(Vocab.missingListTail.inModel(m));\n break;\n }\n l = rest.getResource();\n }\n return result;\n }",
"final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}",
"final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}",
"final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}",
"public JsonArray getFixedIPList() {\r\n\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/fixedaddress\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\tsb.append(\"&_return_fields=ipv4addr,network,mac,comment,disable,name,match_client\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}",
"public String getAllLayersAsList() {\n\t\treturn null;\n\t}",
"public java.lang.String getGetXFListResult() {\r\n return localGetXFListResult;\r\n }",
"public cwterm.service.rigctl.xsd.FreqRange[] getTxRangeList() {\n return localTxRangeList;\n }",
"@RequestMapping(value=\"/FUNE0050/setGroup\", method={RequestMethod.GET}, produces=APPLICATION_JSON)\n\tpublic CommonListResponseParams.ListResponse getSetGrouplist(\n\t\t\t@RequestParam(value=\"partCode\", required=false, defaultValue=\"\") String partCode, \n\t\t\t@RequestParam(value=\"setCode\", required=false, defaultValue=\"\") String setCode, \n\t\t\t@RequestParam(value=\"setName\", required=false, defaultValue=\"\") String setName){\n\t\tList<SetGroup> list = setGroupService.findByPartCodeStartingWithAndSetCodeStartingWithAndSetNameContainingOrderBySortNoAsc(\n\t\t\t\tpartCode, setCode, setName\n\t\t\t\t);\n\t\treturn CommonListResponseParams.ListResponse.of(list);\n\t}",
"public static Collection<EditedStyleItem> getStyleLocalValues(@NotNull final ThemeEditorStyle style) {\n final Set<String> localAttributes = Sets.newHashSet();\n for (ConfiguredElement<ItemResourceValue> value : style.getConfiguredValues()) {\n localAttributes.add(ResolutionUtils.getQualifiedItemName(value.getElement()));\n }\n\n final ThemeResolver resolver = new ThemeResolver(style.getConfiguration());\n return Collections2.filter(ThemeEditorUtils.resolveAllAttributes(style, resolver), new Predicate<EditedStyleItem>() {\n @Override\n public boolean apply(@javax.annotation.Nullable EditedStyleItem input) {\n assert input != null;\n return localAttributes.contains(input.getQualifiedName());\n }\n });\n }",
"@RequiresSession\n public List<ExtensionLinkEntity> findByStack(String stackName, String stackVersion) {\n TypedQuery<ExtensionLinkEntity> query = entityManagerProvider.get().createNamedQuery(\n \"ExtensionLinkEntity.findByStack\", ExtensionLinkEntity.class);\n\n query.setParameter(\"stackName\", stackName);\n query.setParameter(\"stackVersion\", stackVersion);\n\n return daoUtils.selectList(query);\n }",
"public ReferenceList getResourceIdList( Locale locale )\n {\n ReferenceList list = new ReferenceList( );\n\n for ( InsertService service : InsertServiceManager.getInsertServicesList( ) )\n {\n list.addItem( service.getId( ), I18nService.getLocalizedString( service.getNameKey( ), locale ) );\n }\n\n return list;\n }",
"final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}",
"public VariableStack mapStackToLocal(VariableStack stack) {\n\t\tif (stack == null)\n\t\t\talterrs.jode.GlobalOptions.err\n\t\t\t\t\t.println(\"map stack to local called with null: \" + this\n\t\t\t\t\t\t\t+ \" in \" + this.flowBlock);\n\t\tVariableStack middle = subBlocks[0].mapStackToLocal(stack);\n\t\tif (middle != null)\n\t\t\t// Otherwise the second block is at least \"logical\" dead code\n\t\t\treturn subBlocks[1].mapStackToLocal(middle);\n\t\talterrs.jode.GlobalOptions.err.println(\"Dead code after Block \"\n\t\t\t\t+ subBlocks[0]);\n\t\treturn null;\n\t}"
]
| [
"0.59856373",
"0.45435482",
"0.4456761",
"0.43934718",
"0.43758395",
"0.43752715",
"0.42514962",
"0.42423707",
"0.42423162",
"0.4214718",
"0.42131904",
"0.41238362",
"0.41231498",
"0.4119764",
"0.4116954",
"0.40852258",
"0.4082729",
"0.40805542",
"0.4064039",
"0.40507755",
"0.4028942",
"0.4028537",
"0.40105042",
"0.39778227",
"0.39774072",
"0.39634192",
"0.39583227",
"0.39417887",
"0.39228746",
"0.3917743",
"0.3910395",
"0.39088094",
"0.39080876",
"0.39077526",
"0.39025286",
"0.3901758",
"0.39014062",
"0.39000627",
"0.38895172",
"0.3883963",
"0.3875029",
"0.38744393",
"0.3871846",
"0.38669592",
"0.3856172",
"0.3848799",
"0.38400722",
"0.38317326",
"0.38313162",
"0.3829011",
"0.3827689",
"0.3826356",
"0.3824133",
"0.3821038",
"0.38206047",
"0.38184747",
"0.3813677",
"0.38096967",
"0.38012183",
"0.37996832",
"0.37953514",
"0.37928858",
"0.37928858",
"0.37928858",
"0.3790986",
"0.378777",
"0.37859914",
"0.37699336",
"0.37671685",
"0.37663507",
"0.37655264",
"0.37573865",
"0.37479824",
"0.37476203",
"0.37398732",
"0.37387866",
"0.373415",
"0.37306222",
"0.37261435",
"0.37224016",
"0.3717158",
"0.3714243",
"0.37138814",
"0.3713391",
"0.37092447",
"0.37057826",
"0.37020385",
"0.37015778",
"0.37015778",
"0.37015778",
"0.36951935",
"0.36937556",
"0.3691936",
"0.3688946",
"0.36835402",
"0.36820927",
"0.36820623",
"0.36807823",
"0.36803544",
"0.36773652"
]
| 0.703393 | 0 |
Begins definition for a new FqdnListLocalRulestackResource resource. | FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FqdnListLocalRulestacks {\n /**\n * List FqdnListLocalRulestackResource resources by LocalRulestacks.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link\n * PagedIterable}.\n */\n PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(\n String resourceGroupName, String localRulestackName);\n\n /**\n * List FqdnListLocalRulestackResource resources by LocalRulestacks.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link\n * PagedIterable}.\n */\n PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(\n String resourceGroupName, String localRulestackName, Context context);\n\n /**\n * Get a FqdnListLocalRulestackResource.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @param name fqdn list name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a FqdnListLocalRulestackResource along with {@link Response}.\n */\n Response<FqdnListLocalRulestackResource> getWithResponse(\n String resourceGroupName, String localRulestackName, String name, Context context);\n\n /**\n * Get a FqdnListLocalRulestackResource.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @param name fqdn list name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a FqdnListLocalRulestackResource.\n */\n FqdnListLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name);\n\n /**\n * Delete a FqdnListLocalRulestackResource.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @param name fqdn list name.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void delete(String resourceGroupName, String localRulestackName, String name);\n\n /**\n * Delete a FqdnListLocalRulestackResource.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @param name fqdn list name.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void delete(String resourceGroupName, String localRulestackName, String name, Context context);\n\n /**\n * Get a FqdnListLocalRulestackResource.\n *\n * @param id the resource ID.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a FqdnListLocalRulestackResource along with {@link Response}.\n */\n FqdnListLocalRulestackResource getById(String id);\n\n /**\n * Get a FqdnListLocalRulestackResource.\n *\n * @param id the resource ID.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return a FqdnListLocalRulestackResource along with {@link Response}.\n */\n Response<FqdnListLocalRulestackResource> getByIdWithResponse(String id, Context context);\n\n /**\n * Delete a FqdnListLocalRulestackResource.\n *\n * @param id the resource ID.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void deleteById(String id);\n\n /**\n * Delete a FqdnListLocalRulestackResource.\n *\n * @param id the resource ID.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void deleteByIdWithResponse(String id, Context context);\n\n /**\n * Begins definition for a new FqdnListLocalRulestackResource resource.\n *\n * @param name resource name.\n * @return the first stage of the new FqdnListLocalRulestackResource definition.\n */\n FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name);\n}",
"public MinStack() {\r\n list = new LinkedList();\r\n }",
"public FlightsResource() {\r\n }",
"Network_Resource createNetwork_Resource();",
"public ListStack() {\n\t\tlist = new ArrayList<>();\n\t}",
"public Local() {\n }",
"public LinkedListStack() {\r\n\t\tfirstNode = null;\r\n\t}",
"public Stack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public LinkedList() {\n\t\tthis(\"list\");\n\t}",
"public Stack() {\n stack = new LinkedList();\n }",
"public Local createLocal(Position pos, LocalInstance li) {\n return (Local) xnf.Local(pos, xnf.Id(pos, li.name())).localInstance(li).type(li.type());\n }",
"public Stack()\n {\n ll = new LinkedList<>();\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public final EObject entryRuleLocalVariableDeclaration() throws RecognitionException {\n EObject current = null;\n int entryRuleLocalVariableDeclaration_StartIndex = input.index();\n EObject iv_ruleLocalVariableDeclaration = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 43) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2235:2: (iv_ruleLocalVariableDeclaration= ruleLocalVariableDeclaration EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2236:2: iv_ruleLocalVariableDeclaration= ruleLocalVariableDeclaration EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLocalVariableDeclarationRule()); \n }\n pushFollow(FOLLOW_ruleLocalVariableDeclaration_in_entryRuleLocalVariableDeclaration4370);\n iv_ruleLocalVariableDeclaration=ruleLocalVariableDeclaration();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleLocalVariableDeclaration; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLocalVariableDeclaration4380); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 43, entryRuleLocalVariableDeclaration_StartIndex); }\n }\n return current;\n }",
"public FMISComLocal create() throws javax.ejb.CreateException;",
"public Rule localDef()\n \t{\n\t\treturn sequence(\n\t\t\t\tfirstOf(\n\t\t\t\t\tsequence(typeAndOrId(), enforcedSequence(OP_ASSIGN, expr())),\n\t\t\t\t\tsequence(type(), id())),\n \t\t\t\teos());\n \t}",
"public BasicStack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public MyStack() {\r\n stack = new LinkedList<>();\r\n }",
"public LocalDecl createLocalDecl(Position pos, LocalDef def, Expr init) {\n return xnf.LocalDecl( pos.markCompilerGenerated(), \n xnf.FlagsNode(pos, def.flags()),\n xnf.CanonicalTypeNode(pos, def.type().get()), \n xnf.Id(pos, def.name()),\n init ).localDef(def);\n }",
"public void markLocalConfigApnCreate() throws JNCException {\n markLeafCreate(\"localConfigApn\");\n }",
"public final EObject entryRuleLocalVariableDeclarationStatement() throws RecognitionException {\n EObject current = null;\n int entryRuleLocalVariableDeclarationStatement_StartIndex = input.index();\n EObject iv_ruleLocalVariableDeclarationStatement = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 41) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2191:2: (iv_ruleLocalVariableDeclarationStatement= ruleLocalVariableDeclarationStatement EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2192:2: iv_ruleLocalVariableDeclarationStatement= ruleLocalVariableDeclarationStatement EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLocalVariableDeclarationStatementRule()); \n }\n pushFollow(FOLLOW_ruleLocalVariableDeclarationStatement_in_entryRuleLocalVariableDeclarationStatement4267);\n iv_ruleLocalVariableDeclarationStatement=ruleLocalVariableDeclarationStatement();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleLocalVariableDeclarationStatement; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLocalVariableDeclarationStatement4277); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 41, entryRuleLocalVariableDeclarationStatement_StartIndex); }\n }\n return current;\n }",
"public LocalDecl createLocalDecl(Position pos, Flags flags, Name name, Expr init) {\n if (init.type().isVoid()) {\n System.err.println(\"ERROR: ForLoopOptimizer.createLocalDecl: creating void local assignment for \" +init+ \" at \" +pos);\n }\n return createLocalDecl(pos, flags, name, init.type(), init);\n }",
"public LocalSubscription createQueueToListentoTopic(){\n\t\treturn new AMQPLocalSubscription(amqQueue, \n \t\tamqpSubscription, subscriptionID, targetQueue, false, isExclusive, true, MessagingEngine.getMyNodeQueueName(),amqQueue.getName(),\n amqQueue.getOwner().toString(), AMQPUtils.DIRECT_EXCHANGE_NAME, DirectExchange.TYPE.toString(), Short.parseShort(\"0\"),true);\n\t}",
"public void setResourceLocalService(\n ResourceLocalService resourceLocalService) {\n this.resourceLocalService = resourceLocalService;\n }",
"public LocalObject() {}",
"public LocalDecl createLocalDecl(Position pos, LocalDef def) {\n return xnf.LocalDecl( pos, \n xnf.FlagsNode(pos, def.flags()),\n xnf.CanonicalTypeNode(pos, def.type().get()), \n xnf.Id(pos, def.name()) ).localDef(def);\n }",
"public VirtualMachineImageResourceList() {\n super();\n this.setResources(new LazyArrayList<VirtualMachineImageResource>());\n }",
"private LocalDevice(BluetoothStack stack) throws BluetoothStateException {\n this.bluetoothStack = stack;\n discoveryAgent = new DiscoveryAgent(this.bluetoothStack);\n addressStr = RemoteDeviceHelper.formatBluetoothAddress(this.bluetoothStack.getLocalDeviceBluetoothAddress());\n }",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public SLList()\n {\n head = tail = null;\n }",
"public LocalSchedule(Parcel in) {\n eventId = in.readInt();\n calendarEventId = in.readString();\n eventTitle = in.readString();\n fromTime = new Date(in.readLong());\n toTime = new Date(in.readLong());\n sessionId = in.readInt();\n mandatory = in.readString();\n }",
"public GoogleFluTrendResource() {\n }",
"private void createLocalAdministration(\n RoutingService routingService,\n ConfigurationFilterProvider configurationFilterProvider\n ) {\n checkNotNull(\n routingService,\n \"Routing Service must not be null when local interface enabled\"\n );\n checkNotNull(\n configurationFilterProvider,\n \"Configuration Filter Provider must not be null\"\n );\n\n // add listener to dynamic partition observer\n dynamicPartitionObserver.addListener(\n new com.github.aguther.dds.routing.dynamic.command.local.DynamicPartitionCommander(\n routingService,\n configurationFilterProvider\n )\n );\n }",
"public void setLocalXSLT(String localXSLT) {\r\n\t\tthis.localXSLT=localXSLT;\r\n\t}",
"public DLList() {\r\n init();\r\n }",
"Resource createResource();",
"public void setLocalId(String localId) {\n\t\t\n\t}",
"public LocalDecl createLocalDecl(Position pos, Flags flags, Name name, Type type, Expr init) {\n LocalDef def = xts.localDef(pos, flags, Types.ref(type), name);\n return createLocalDecl(pos, def, init);\n }",
"public Local createLocal(Position pos, Local local) {\n return syn.createLocal(pos, local.localInstance());\n }",
"public void setLocalRichLocalService(\n\t\tservizio.local.bfc.service.LocalRichLocalService localRichLocalService) {\n\t\tthis.localRichLocalService = localRichLocalService;\n\t}",
"public StackDynamic(ListIF<T> list) {\r\n\t\tthis();\r\n\t\tif(list != null)\r\n\t\t\tif(!list.isEmpty()) {\r\n\t\t\t\telement = list.getFirst();\r\n\t\t\t\tnext = new StackDynamic<T>(list.getTail());\r\n\t\t\t}\r\n\t}",
"public LinkedList(String listName) {\n\t\tname = listName;\n\t\tfirstNode = lastNode = null;\n\t\tsize=0;\n\t}",
"Service_Resource createService_Resource();",
"public MyResource() {\n System.out.println(\"creating Resource\");\n }",
"public MinStack() {\r\n\t\t}",
"public MyStack() {\n list = new LinkedList<>();\n list2 = new LinkedList<>();\n }",
"@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }",
"public MyStack() {\n\t q=new LinkedList<Integer>();\n\t }",
"public List(final SlingHttpServletRequest request) {\n ResourceResolver resourceResolver = request.getResourceResolver();\n this.resource = resourceResolver.getResource(\"/content/htlblog/posts\");\n }",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"public void displayResourceList(ResourceList list) {\n\n\t\tboolean done;\n\t\tResource resource;\n\n\t\tSystem.out.print(\"\\n\");\n\t\tlineCheck(1);\n\n\t\tlist.goToFrontOfList();\n\n\t\tdone = false;\n\n\t\twhile (!done) {\n\n\t\t\tresource = list.getNextResource();\n\n\t\t\tif (resource == null) {\n\n\t\t\t\tdone = true;\n\n\t\t\t} else {\n\n\t\t\t\tdisplayResource(resource);\n\t\t\t\tlineCheck(1);\n\n\t\t\t} // if\n\n\t\t} // while\n\n\t}",
"public LinearList(Location tr)\r\n {\r\n super(tr);\r\n }",
"public MyStack() {\n \tlist = new ArrayList<Integer>();\n }",
"On_Device_Resource createOn_Device_Resource();",
"public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }",
"public MyStack() {\n this.q = new LinkedList<>();\n }",
"@Override\n\tpublic void initialize(URL fxmlFileLocation, ResourceBundle resources) {\n\t\tmainMenu.setGraphic(new ImageView(\"/Images/stackedlines.png\"));\n\t\tpopulateQuestions();\n\t}",
"public WorkflowResource() {\r\n\t}",
"public SimpleResList getResourceList() {\r\n\t\treturn new SimpleResList(resList);\r\n\t}",
"public S_RESOURCEObj() {\r\n }",
"public void setResourceLocalService(\n com.liferay.portal.service.ResourceLocalService resourceLocalService) {\n this.resourceLocalService = resourceLocalService;\n }",
"public void setResourceLocalService(\n com.liferay.portal.service.ResourceLocalService resourceLocalService) {\n this.resourceLocalService = resourceLocalService;\n }",
"public void setResourceLocalService(\n com.liferay.portal.service.ResourceLocalService resourceLocalService) {\n this.resourceLocalService = resourceLocalService;\n }",
"public void setResourceLocalService(\n\t\tcom.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {\n\t\tthis.resourceLocalService = resourceLocalService;\n\t}",
"public void setResourceLocalService(\n\t\tcom.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {\n\t\tthis.resourceLocalService = resourceLocalService;\n\t}",
"public void setResourceLocalService(\n\t\tcom.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {\n\t\tthis.resourceLocalService = resourceLocalService;\n\t}",
"public void setResourceLocalService(\n\t\tcom.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {\n\t\tthis.resourceLocalService = resourceLocalService;\n\t}",
"public Localitzacio createLocalitzacio(Localitzacio localitzacio) {\n ContentValues values\n = new ContentValues();\n values.put(HelperCubata.COLUMN_NOMLOCALITZACIO,\n localitzacio.getLloc());\n\n long insertId= database.insert(HelperCubata.TABLE_LOCALITZACIO,null,values);\n localitzacio.setId(insertId);\n return localitzacio;\n }",
"Resource() {\r\n this.parent = null;\r\n this.name = \"\";\r\n this.displayName = \"\";\r\n this.createdDate = null;\r\n this.modifiedDate = null;\r\n count++;\r\n }",
"public LinkedStack() {\n first = null;\n n = 0;\n }",
"private void addLocalReferentialForLocalAuthority(final String localAuthorityName,\n final String localReferentialFilename,\n final String requestTypeLabel) {\n \n synchronized(this) {\n if (localReferentialFileMap.get(localAuthorityName) != null\n && ((Map) localReferentialFileMap.get(localAuthorityName)).get(requestTypeLabel) != null) {\n logger.debug(\"addLocalReferentialForLocalAuthority() \" + localAuthorityName\n + \" already contains data for request type \" + requestTypeLabel);\n return;\n }\n \n Date now = new Date();\n File localReferentialFile =\n localAuthorityRegistry.getLocalAuthorityResource(\n localAuthorityName, \n ILocalAuthorityRegistry.LOCAL_REFERENTIAL_RESOURCE_TYPE, localReferentialFilename, true);\n LocalReferentialDocument refDoc = null;\n try {\n refDoc = parse(localReferentialFile);\n } catch (CvqException e) {\n logger.error(\"Error while parsing local referential file for request type : \" \n + requestTypeLabel);\n return;\n }\n \n if (localReferentialFileMap.get(localAuthorityName) == null) {\n Map<String, LocalReferentialDocument> requestTypeFileMap = \n new LinkedHashMap<String, LocalReferentialDocument>();\n requestTypeFileMap.put(requestTypeLabel, refDoc);\n localReferentialFileMap.put(localAuthorityName, requestTypeFileMap);\n Map<String, Long> requestTypeTimestampMap = new LinkedHashMap<String, Long>();\n requestTypeTimestampMap.put(requestTypeLabel, new Long(now.getTime()));\n localReferentialTimestampMap.put(localAuthorityName, requestTypeTimestampMap);\n } else {\n Map requestTypeFileMap = localReferentialFileMap.get(localAuthorityName);\n requestTypeFileMap.put(requestTypeLabel, refDoc);\n Map requestTypeTimestampMap = localReferentialTimestampMap.get(localAuthorityName);\n requestTypeTimestampMap.put(requestTypeLabel, new Long(now.getTime()));\n }\n }\n }",
"public Lc232() {\r\n this.stack = new Stack<>();\r\n }",
"public void setParentLocalScope(LocalScope localScope) {\n\t\tthis.parentLocalScope = localScope;\n\t}",
"public LocalDecl transformFormalToLocalDecl(X10Formal formal, Expr init) {\n return xnf.LocalDecl(formal.position(), formal.flags(), formal.type(), formal.name(), init).localDef(formal.localDef());\n }",
"public Local createLocal(Position pos, LocalDecl decl) {\n return createLocal(pos, decl.localDef().asInstance());\n }",
"@Override\n\tpublic Restlet createInboundRoot() {\n\t\tRouter router = new Router(getContext());\n\t\trouter.attach(\"/supermarche/clients\", ResourceClients.class);\n\t\trouter.attach(\"/supermarche/clients/\", ResourceClients.class);\n\n\t\trouter.attach(\"/supermarche/clients/{id}\", ResourceClient.class);\n\t\trouter.attach(\"/supermarche/clients/{id}/\", ResourceClient.class);\n\n\t\trouter.attach(\"/supermarche/stock\", ResourceStocks.class);\n\t\trouter.attach(\"/supermarche/stock/\", ResourceStocks.class);\n\t\treturn router;\n\t}",
"LocalReference createLocalReference();",
"@Override\n\t\tpublic Surface3D createSurface(ParameterList faultRepresentationParams) {\n\t\t\treturn null;\n\t\t}",
"public ListNode() {\n\t\tthis(0, null);\n\t}",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"public SLL() {\n\t\tsuper();\n\t\tthis.head = null;\n\t\tthis.size = 0;\n\t}",
"public Resources() {\n this(DSL.name(\"Resources\"), null);\n }",
"public LocalContext(int returnip, int nlocals) {\n\t\tthis.returnip = returnip;\n\t\tlocals = new Object[nlocals];\n\t}",
"public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }",
"public com.callfire.api.data.LocalTimeZoneRestrictionDocument.LocalTimeZoneRestriction addNewLocalTimeZoneRestriction()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.callfire.api.data.LocalTimeZoneRestrictionDocument.LocalTimeZoneRestriction target = null;\n target = (com.callfire.api.data.LocalTimeZoneRestrictionDocument.LocalTimeZoneRestriction)get_store().add_element_user(LOCALTIMEZONERESTRICTION$4);\n return target;\n }\n }",
"@Override\r\n\tprotected NewlyAllocatedFlowSet entryInitialFlow() {\n\t\treturn new NewlyAllocatedFlowSet();\r\n\t}",
"public MyStack() {\n this.queue=new LinkedList<Integer>();\n }",
"public MyStack() {\n objects = new LinkedList<>();\n helper = new LinkedList<>();\n }",
"public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;\n target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().add_element_user(EJBLOCALREF$0);\n return target;\n }\n }",
"protected void setupLocal() {}",
"public void setLocalUri(String localUri) {\n this.localUri = localUri;\n }",
"public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}",
"public ResourceFactory(){}",
"public void testSetLocalRessources() {\n\t\ttry {\n\t\t\tthis.part.setLocalRessources(null);\n\t\t\tfail(\"NullPointerException must be thrown\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t/* all clear */\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"wrong Exception\");\n\t\t}\n\n\t\ttry {\n\t\t\tDotplotFile file = new DotplotFile(\"./testfiles/fmatrix/test.txt\");\n\t\t\tCollection<DotplotFile> coll = new Vector<DotplotFile>();\n\t\t\tcoll.add(file);\n\t\t\tassertNotNull(this.part.getSourceList());\n\t\t\tassertEquals(0, this.part.getSourceList().size());\n\t\t\tthis.part.setLocalRessources(coll);\n\t\t\tISourceList list = this.part.getSourceList();\n\t\t\tassertEquals(1, list.size());\n\t\t\tassertTrue(list.contains(file));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"no exception:\" + e.getClass().getName() + \":\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"public LinkedLists() {\n }",
"SwSchedulableResource createSwSchedulableResource();",
"public MinStack() {\n\n }",
"public LinkedList() {\r\n front = new ListNode(null);\r\n back = new ListNode(null, front, null);\r\n front.next = back;\r\n size = 0;\r\n }",
"public MyStack() {\n root=new ListNode(0);\n p =root;\n }",
"public MinStack() {\n stackList = new ArrayList<>();\n minList = new ArrayList<>();\n size = 0;\n }"
]
| [
"0.601798",
"0.50841856",
"0.4949224",
"0.48873058",
"0.48856497",
"0.4808853",
"0.47737157",
"0.47399265",
"0.4739233",
"0.47224334",
"0.4720808",
"0.46627524",
"0.46605626",
"0.46538237",
"0.46524295",
"0.46480963",
"0.45963717",
"0.45927787",
"0.45479017",
"0.45285523",
"0.45154208",
"0.450851",
"0.4503487",
"0.44969806",
"0.4495381",
"0.44720104",
"0.44560158",
"0.4453478",
"0.4423043",
"0.44031724",
"0.4403142",
"0.44005233",
"0.43957183",
"0.43914998",
"0.4367434",
"0.43620366",
"0.435953",
"0.43572137",
"0.43570706",
"0.43496832",
"0.43489206",
"0.43422478",
"0.43385008",
"0.4337316",
"0.43343097",
"0.4328844",
"0.43279284",
"0.4320494",
"0.43193156",
"0.43166438",
"0.43135867",
"0.4313508",
"0.43053812",
"0.43047157",
"0.4304313",
"0.43003488",
"0.42996168",
"0.4299454",
"0.42977625",
"0.42958945",
"0.42924848",
"0.42924848",
"0.42924848",
"0.429247",
"0.429247",
"0.429247",
"0.429247",
"0.42834282",
"0.42734745",
"0.42709273",
"0.4257316",
"0.42564788",
"0.42558876",
"0.42539218",
"0.42389905",
"0.4237362",
"0.4235607",
"0.42288855",
"0.42257333",
"0.42233673",
"0.42218342",
"0.42217624",
"0.42216083",
"0.42207316",
"0.4219239",
"0.4217999",
"0.42178404",
"0.42176762",
"0.4211553",
"0.42091778",
"0.42080578",
"0.4206535",
"0.4199016",
"0.41977805",
"0.4194034",
"0.41929823",
"0.41883224",
"0.41878518",
"0.4182507",
"0.4176081"
]
| 0.72292674 | 0 |
search function is embedded in here | public void insert(Node given){
length++;
String retVar = "";
Node curNode = root;
while (!curNode.isLeaf()){
if (curNode.getData() > given.getData()){
curNode = curNode.getLeft();
}
else{
curNode = curNode.getRight();
}
}
if (curNode.getData() > given.getData()){
curNode.setLeft(given);
}
else{
curNode.setRight(given);
}
myLazySearchFunction = curNode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void searchFunction() {\n\t\t\r\n\t}",
"public void search() {\r\n \t\r\n }",
"void search();",
"void search();",
"abstract public void search();",
"public void search() {\n }",
"void searchProbed (Search search);",
"@Override\r\n\tpublic void search() {\n\r\n\t}",
"@Override\n\tpublic void search() {\n\t}",
"@In String search();",
"void compareSearch();",
"private void search(Object value)\r\n\t\t{\n\r\n\t\t}",
"public abstract S getSearch();",
"Search getSearch();",
"private void search(String[] searchItem)\n {\n }",
"abstract public boolean performSearch();",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }",
"private Search() {}",
"public void doSearch(String searchText){\n }",
"private void searchCode() {\n }",
"private void search(String product) {\n // ..\n }",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public search() {\n }",
"private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }",
"void searchUI();",
"public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }",
"List<SearchResult> search(SearchQuery searchQuery);",
"List<DataTerm> search(String searchTerm);",
"private void searchMenu(){\n\t\t\n\t}",
"public List<Product> search(String searchString);",
"public abstract Solution<T> search(Searchable<T> s);",
"public abstract Search defaultSearch(StringBuilder sb);",
"void searchStarted (Search search);",
"private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"String printListSearch(String searchString);",
"public static int search (String searching)\n {\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}",
"@Override\n public Data3DPlastic search() {\n return super.search();\n }",
"public List<Ve> searchVe(String maSearch);",
"public abstract HashMap search(String keyword);",
"public boolean search(E e){\n boolean blResult = false;\n\n /** TODO: INSERT YOUR CODE HERE\n *\n * SEARCH FOR THE ITEM PASSED AS PARAMETER AND RETURN TRUE IF FOUND\n * ELSE RETURN FALSE\n *\n *\n */\n return blResult;\n }",
"public MagicSearch createMagicSearch();",
"@Override\n\tpublic ArrayList<SearchItem> search(String key) {\n\t\treturn null;\n\t}",
"private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }",
"public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;",
"private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }",
"@Override\n\tpublic void searchByMobile() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void search(String searchText) {\n\tsearchFrame.setVisible(false);\n\tsearchPApplet.searchText=\"\";\n\tSystem.out.println(\"Searching...\");\n\tsearchedCells.clear();\n\t\n\tif(searchText==null || searchText.length()==0)\t{redraw(); return;}\n\t\n\tfor(Cell c:cells)\n\t\tsearchedCells.addAll(recursiveSearch(c, searchText, 0));\n\tSystem.out.println(\"Found \"+searchedCells.size()+\" occurrences\");\n\tredraw();\n\treturn;\n}",
"public List search(Veranstaltung veranstatung) throws RuntimeException;",
"int search(E item);",
"@Override\n\tpublic void searchMembers(String keyword) {\n\t}",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"private void searchRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the name of the routine:\",\n \"Search\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n try {\n Routine r = collection.search(s);\n list.setSelectedValue(r, true);\n } catch (DoesNotExistException ee) {\n JOptionPane.showMessageDialog(this, \"Routine with given name does not exist.\");\n }\n }\n }",
"@Override\n\tpublic void searchByID() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's ID\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }",
"void search( RealLocalizable reference );",
"public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}",
"public void searchFlights();",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }",
"public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }",
"public abstract ParameterVector searchVector();",
"String search(int key);",
"void searchFinished (Search search);",
"@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}",
"@Override\n public boolean search(E e) {\n \treturn search(e, root);\n\n }",
"public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }",
"public search()\n\t { b = new char[INC];\n\t i = 0;\n\t i_end = 0;\n\t }",
"Customer search(String login);",
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }",
"int search(ICard toFind);",
"@Override\n public String search(String word) {\n return search(word, root);\n }",
"private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}",
"protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }",
"@Override\n public void passSearchRequest(SearchReq searchReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (searchReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> searchResult = checkFilesInFileList(searchReq.getFileName(), node.getFileList());\n logMe(\"Received SEARCH for \\\"\" + searchReq.getFileName() + \"\\\" from \" + searchReq.getCred().getNodeIp() + \":\" + searchReq.getCred().getNodePort() + \" at \" + getCurrentTime());\n if (!searchResult.isEmpty()) {\n SearchRes searchRes = new SearchRes(searchReq.getSeqNumber(), searchResult.size(), searchReq.getCred(), searchReq.getHopCount(), searchResult);\n searchOk(searchRes);\n } else {\n //logMe(\"File is not available at \" + node.getCredential().getIp() + \" : \" + node.getCredential().getPort() + \"\\n\");\n if (searchReq.getHopCount() <= TTL) {\n searchReq.setHopCount(searchReq.incHops());\n List<NetworkDetails> StatTableSearchResult = checkFilesInStatTable(searchReq.getFileName(), node.getNetworkDetailsTable());\n // Send search request to stat table members\n for (NetworkDetails networkDetails : StatTableSearchResult) {\n if (networkDetails.getQuery().equals(searchReq.getFileName())) {\n Cred cred = networkDetails.getServedNode();\n node.incForwardedQueryCount();\n search(searchReq, cred);\n }\n }\n //TODO: Wait and see for stat members rather flooding whole routing table\n // Send search request to routing table members\n for (Cred cred : node.getRoutingTable()) {\n node.incForwardedQueryCount();\n if (search(searchReq, cred)) {\n break;\n }\n }\n } else {\n// logMe(\"Search request from\" + searchRequest.getCredential().getIp() + \":\" + searchRequest.getCredential().getPort() + \"is blocked by hop TTL\\n\");\n }\n }\n// Thread.currentThread().interrupt();\n }",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }",
"private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }",
"@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }",
"public void search( final String haystack ) {\n search( mNeedle, haystack );\n }",
"void loadSearch(UserSearch search);",
"@java.lang.Override\n public boolean hasSearch() {\n return inputSourceCase_ == 10;\n }",
"List<Block> search(String searchTerm);",
"private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }",
"@java.lang.Override\n public boolean hasSearch() {\n return inputSourceCase_ == 10;\n }",
"@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}",
"void searchView(String name);",
"public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}",
"public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}",
"List<PilotContainer> Search(String cas, String word);",
"public SearchResult search(String text, String subText);",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }",
"java.lang.String getSearchValue();",
"private void searchWeb()\n {\n searchWeb = true;\n search();\n }"
]
| [
"0.9004099",
"0.84016615",
"0.83563405",
"0.83563405",
"0.8329416",
"0.8246383",
"0.79894656",
"0.79706126",
"0.79655015",
"0.7779722",
"0.7506286",
"0.74460727",
"0.7384125",
"0.73240894",
"0.7228349",
"0.7216041",
"0.7201723",
"0.71572626",
"0.71369064",
"0.71324",
"0.7123583",
"0.69704705",
"0.69594073",
"0.6899402",
"0.6874901",
"0.68559116",
"0.6843529",
"0.68094176",
"0.6805095",
"0.67930365",
"0.6776927",
"0.6752961",
"0.67474234",
"0.67185366",
"0.67062575",
"0.6690946",
"0.6684078",
"0.66633177",
"0.6651819",
"0.66313744",
"0.66207105",
"0.66134715",
"0.6607957",
"0.6594991",
"0.6554085",
"0.65445435",
"0.65395296",
"0.65317315",
"0.65217537",
"0.651304",
"0.6472495",
"0.6472009",
"0.6469583",
"0.6456599",
"0.64431834",
"0.6441718",
"0.6438109",
"0.6438099",
"0.6436463",
"0.6430206",
"0.64295036",
"0.64066523",
"0.6405736",
"0.6405736",
"0.6400755",
"0.63889223",
"0.6373615",
"0.6371126",
"0.63708496",
"0.63688946",
"0.6361729",
"0.63373727",
"0.6334433",
"0.6330466",
"0.63304454",
"0.63300574",
"0.63225263",
"0.63141",
"0.6313841",
"0.6309416",
"0.63081926",
"0.6303727",
"0.62850904",
"0.62838864",
"0.62828",
"0.62815684",
"0.6280087",
"0.6271258",
"0.6264894",
"0.6264294",
"0.6263944",
"0.62614644",
"0.6260913",
"0.6257881",
"0.62556046",
"0.6252618",
"0.62400824",
"0.62318784",
"0.6220978",
"0.62052596",
"0.62027776"
]
| 0.0 | -1 |
Computes an assignment. Unmatched elements should be assigned to 1. | public abstract int[] solve(double[][] costs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }",
"assign_op getAssign_op();",
"private void assignment() {\n\n\t\t\t}",
"public final void rule__XAssignment__FeatureAssignment_1_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17388:1: ( ( ( ruleOpMultiAssign ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17389:1: ( ( ruleOpMultiAssign ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17389:1: ( ( ruleOpMultiAssign ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17390:1: ( ruleOpMultiAssign )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17391:1: ( ruleOpMultiAssign )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17392:1: ruleOpMultiAssign\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpMultiAssign_in_rule__XAssignment__FeatureAssignment_1_1_0_0_135107);\r\n ruleOpMultiAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }",
"protected ConstraintSyntaxTree reduce(OCLFeatureCall assignment) { \n result = assignment;\n \n if (OclKeyWords.ASSIGNMENT.equals(assignment.getOperation())) {\n result = null;\n assignment.getParameter(0).accept(this);\n \n if (filtered && null != result) {\n result = new OCLFeatureCall(assignment.getOperand(), assignment.getOperation(), result);\n try {\n // Needed for setting the correct operation\n result.inferDatatype();\n } catch (CSTSemanticException e) {\n result = null;\n Bundle.getLogger(AssignmentReducer.class).exception(e);\n }\n } else if (!filtered) {\n result = assignment;\n }\n }\n \n return result;\n }",
"protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }",
"public final void rule__XAssignment__FeatureAssignment_1_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17411:1: ( ( ( ruleOpMultiAssign ) ) )\r\n // InternalDroneScript.g:17412:2: ( ( ruleOpMultiAssign ) )\r\n {\r\n // InternalDroneScript.g:17412:2: ( ( ruleOpMultiAssign ) )\r\n // InternalDroneScript.g:17413:3: ( ruleOpMultiAssign )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \r\n }\r\n // InternalDroneScript.g:17414:3: ( ruleOpMultiAssign )\r\n // InternalDroneScript.g:17415:4: ruleOpMultiAssign\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpMultiAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"abstract void assign(int i);",
"public void assignment()\n\t{\n\t\tint[] zerosRow = new int[n];\n\t\tint[] zerosColumn = new int[n];\n\t\tassignCounter=0;\n\t\t\n\t\t//obtains the number of zeroes in each row\n\t\tzerosRow = countRowZeroes();\n\t\t\n\t\t//Initialize all the row labels and column labels to 9999\n\t\tfor(int k=0;k<n;k++)\n\t\t{\n\t\t\trowLabel[k]=9999;\n\t\t\tcolumnLabel[k]=9999;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(zerosRow[i]==1)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(cost[i][j]==0 && columnLabel[j]==9999)\n\t\t\t\t\t{\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tcolumnLabel[j]=i;\n\t\t\t\t\t\tassignCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//obtains the number of zeroes in each column\n\t\tzerosColumn = countColumnZeroes();\t\t\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t{\n\t\t\tif(zerosColumn[j]==1)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(cost[i][j]==0 && columnLabel[j]==9999 && rowLabel[i]==9999)\n\t\t\t\t\t{\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tcolumnLabel[j]=i;\n\t\t\t\t\t\tassignCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tif(cost[i][j]==0 && rowLabel[i]==9999 && columnLabel[j]==9999)\n\t\t\t\t{\n\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\tcolumnLabel[j]=i;\n\t\t\t\t\tassignCounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void assign() {\n\t\tfinal RandomAccess<U> accessor = img.randomAccess();\n\t\tfinal V output = function.createOutput();\n\t\tINPUT input = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tinput = iter.next(input);\n\t\t\tboolean proceed = (condition == null) || (condition.isTrue(input));\n\t\t\tif (proceed) {\n\t\t\t\tfunction.compute(input, output);\n\t\t\t\taccessor.setPosition(iter.getCurrentPoint());\n\t\t\t\taccessor.get().setReal(output.getRealDouble());\n\t\t\t\taccessor.get().setImaginary(output.getImaginaryDouble());\n\t\t\t\t// FIXME\n\t\t\t\t// Note - for real datasets this imaginary assignment may waste cpu\n\t\t\t\t// cycles. Perhaps it can get optimized away by the JIT. But maybe not\n\t\t\t\t// since the type is not really known because this class is really\n\t\t\t\t// constructed from a raw type. We'd need to test how the JIT handles\n\t\t\t\t// this situation. Note that in past incarnations this class used\n\t\t\t\t// assigner classes. The complex version set R & I but the real\n\t\t\t\t// version just set R. We could adopt that approach once again.\n\t\t\t}\n\t\t}\n\t}",
"public final void mMULTIPLY_ASSIGN() throws RecognitionException {\n try {\n int _type = MULTIPLY_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:232:2: ( '*=' )\n // /Users/benjamincoe/HackWars/C.g:232:4: '*='\n {\n match(\"*=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }",
"@Override\n public Void visit(AssignmentExpression nd, SuccessorInfo i) {\n if (\"&&=\".equals(nd.getOperator()) || \"||=\".equals(nd.getOperator()) || \"??=\".equals(nd.getOperator())) {\n if (\"&&=\".equals(nd.getOperator())) {\n // from lhs to rhs on truthy. from lhs to false-branch on falsy.\n visitWithSuccessors(nd.getLeft(), First.of(nd.getRight()), i.getSuccessors(false));\n } else if (\"||=\".equals(nd.getOperator())) {\n // from lhs to true-branch on truthy. from lhs to rhs on falsy.\n visitWithSuccessors(nd.getLeft(), i.getSuccessors(true), First.of(nd.getRight()));\n } else { // \"??=\"\n // the union of the above - truthyness is unknown.\n visitWithSuccessors(nd.getLeft(), union(First.of(nd.getRight()), i.getAllSuccessors()));\n }\n \n visitWithSuccessors(nd.getRight(), nd); // from right to assignment.\n\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n } else {\n visitAssign(nd, nd.getLeft(), nd.getRight());\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n }\n return null;\n }",
"@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }",
"public final void rule__XAssignment__Group_0__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5403:1: ( ( ruleOpSingleAssign ) )\r\n // InternalDroneScript.g:5404:1: ( ruleOpSingleAssign )\r\n {\r\n // InternalDroneScript.g:5404:1: ( ruleOpSingleAssign )\r\n // InternalDroneScript.g:5405:2: ruleOpSingleAssign\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpSingleAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}",
"public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public final void rule__XAssignment__FeatureAssignment_1_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12139:1: ( ( ( ruleOpMultiAssign ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12140:1: ( ( ruleOpMultiAssign ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12140:1: ( ( ruleOpMultiAssign ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12141:1: ( ruleOpMultiAssign )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12142:1: ( ruleOpMultiAssign )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12143:1: ruleOpMultiAssign\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpMultiAssign_in_rule__XAssignment__FeatureAssignment_1_1_0_0_124347);\n ruleOpMultiAssign();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:517:2: ( ( '=' ) )\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n {\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n // InternalDroneScript.g:519:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private boolean onlyOneAssign(ILogicalOperator op, List<AssignOperator> assignOps) {\n if (op.getOperatorTag() == LogicalOperatorTag.ASSIGN) {\n AssignOperator aOp = (AssignOperator) op;\n assignOps.add(aOp);\n op = op.getInputs().get(0).getValue();\n }\n return (joinClause(op));\n }",
"public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }",
"public final void ruleOpSingleAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:299:2: ( ( '=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:301:1: '='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n match(input,11,FOLLOW_11_in_ruleOpSingleAssign580); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }",
"public final void rule__XAssignment__Group_0__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6191:1: ( ( ruleOpSingleAssign ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6192:1: ( ruleOpSingleAssign )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6192:1: ( ruleOpSingleAssign )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:6193:1: ruleOpSingleAssign\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \r\n }\r\n pushFollow(FOLLOW_ruleOpSingleAssign_in_rule__XAssignment__Group_0__2__Impl13046);\r\n ruleOpSingleAssign();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }",
"abstract void assignOne();",
"public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:382:2: ( ( '=' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:383:1: ( '=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:383:1: ( '=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:384:1: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,14,FOLLOW_14_in_ruleOpSingleAssign760); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Uniform__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7125:1: ( ( ( rule__Uniform__ExpressionAssignment_0_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7126:1: ( ( rule__Uniform__ExpressionAssignment_0_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7126:1: ( ( rule__Uniform__ExpressionAssignment_0_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7127:1: ( rule__Uniform__ExpressionAssignment_0_1 )\n {\n before(grammarAccess.getUniformAccess().getExpressionAssignment_0_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7128:1: ( rule__Uniform__ExpressionAssignment_0_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7128:2: rule__Uniform__ExpressionAssignment_0_1\n {\n pushFollow(FOLLOW_rule__Uniform__ExpressionAssignment_0_1_in_rule__Uniform__Group_0__1__Impl13979);\n rule__Uniform__ExpressionAssignment_0_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getUniformAccess().getExpressionAssignment_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}",
"public final void rule__OpMultiAssign__Group_5__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:5699:1: ( ( '=' ) )\r\n // InternalDroneScript.g:5700:1: ( '=' )\r\n {\r\n // InternalDroneScript.g:5700:1: ( '=' )\r\n // InternalDroneScript.g:5701:2: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__PredicateEquality__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3824:1: ( ( ( rule__PredicateEquality__OpAssignment_1_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3825:1: ( ( rule__PredicateEquality__OpAssignment_1_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3825:1: ( ( rule__PredicateEquality__OpAssignment_1_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3826:1: ( rule__PredicateEquality__OpAssignment_1_1 )\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpAssignment_1_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3827:1: ( rule__PredicateEquality__OpAssignment_1_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3827:2: rule__PredicateEquality__OpAssignment_1_1\n {\n pushFollow(FOLLOW_rule__PredicateEquality__OpAssignment_1_1_in_rule__PredicateEquality__Group_1__1__Impl7524);\n rule__PredicateEquality__OpAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateEqualityAccess().getOpAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public interface AssignmentStrategy {\n\tpublic Map<Integer, Integer> assign(DoubleMatrix matrix);\n}",
"public final void rule__OpMultiAssign__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2499:1: ( ( '+=' ) | ( '-=' ) | ( '*=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) )\r\n int alt7=7;\r\n switch ( input.LA(1) ) {\r\n case 16:\r\n {\r\n alt7=1;\r\n }\r\n break;\r\n case 17:\r\n {\r\n alt7=2;\r\n }\r\n break;\r\n case 18:\r\n {\r\n alt7=3;\r\n }\r\n break;\r\n case 19:\r\n {\r\n alt7=4;\r\n }\r\n break;\r\n case 20:\r\n {\r\n alt7=5;\r\n }\r\n break;\r\n case 27:\r\n {\r\n alt7=6;\r\n }\r\n break;\r\n case 26:\r\n {\r\n alt7=7;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 7, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt7) {\r\n case 1 :\r\n // InternalDroneScript.g:2500:2: ( '+=' )\r\n {\r\n // InternalDroneScript.g:2500:2: ( '+=' )\r\n // InternalDroneScript.g:2501:3: '+='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); \r\n }\r\n match(input,16,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:2506:2: ( '-=' )\r\n {\r\n // InternalDroneScript.g:2506:2: ( '-=' )\r\n // InternalDroneScript.g:2507:3: '-='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); \r\n }\r\n match(input,17,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalDroneScript.g:2512:2: ( '*=' )\r\n {\r\n // InternalDroneScript.g:2512:2: ( '*=' )\r\n // InternalDroneScript.g:2513:3: '*='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); \r\n }\r\n match(input,18,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalDroneScript.g:2518:2: ( '/=' )\r\n {\r\n // InternalDroneScript.g:2518:2: ( '/=' )\r\n // InternalDroneScript.g:2519:3: '/='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); \r\n }\r\n match(input,19,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // InternalDroneScript.g:2524:2: ( '%=' )\r\n {\r\n // InternalDroneScript.g:2524:2: ( '%=' )\r\n // InternalDroneScript.g:2525:3: '%='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); \r\n }\r\n match(input,20,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // InternalDroneScript.g:2530:2: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n {\r\n // InternalDroneScript.g:2530:2: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n // InternalDroneScript.g:2531:3: ( rule__OpMultiAssign__Group_5__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n // InternalDroneScript.g:2532:3: ( rule__OpMultiAssign__Group_5__0 )\r\n // InternalDroneScript.g:2532:4: rule__OpMultiAssign__Group_5__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OpMultiAssign__Group_5__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 7 :\r\n // InternalDroneScript.g:2536:2: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n {\r\n // InternalDroneScript.g:2536:2: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n // InternalDroneScript.g:2537:3: ( rule__OpMultiAssign__Group_6__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n // InternalDroneScript.g:2538:3: ( rule__OpMultiAssign__Group_6__0 )\r\n // InternalDroneScript.g:2538:4: rule__OpMultiAssign__Group_6__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OpMultiAssign__Group_6__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void assignment() throws RecognitionException {\n CommonTree IDENT14=null;\n Object e =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:3: ( ^( '=' IDENT e= expression ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:5: ^( '=' IDENT e= expression )\n {\n match(input,38,FOLLOW_38_in_assignment524); \n\n match(input, Token.DOWN, null); \n IDENT14=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_assignment526); \n\n pushFollow(FOLLOW_expression_in_assignment530);\n e=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n \n localScope.set((IDENT14!=null?IDENT14.getText():null), e); \n lastAssignmentResult = e;\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }",
"public final void rule__XAssignment__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3302:1: ( ( ruleOpSingleAssign ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3303:1: ( ruleOpSingleAssign )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3303:1: ( ruleOpSingleAssign )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3304:1: ruleOpSingleAssign\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \n }\n pushFollow(FOLLOW_ruleOpSingleAssign_in_rule__XAssignment__Group_0__2__Impl6972);\n ruleOpSingleAssign();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }",
"private <E> Assignment<E> backtracking(CSP<E> csp, Assignment<E> assignment, HashMap<String,Set<E>> explored) {\r\n\t\t++iterationCount;\r\n\t\tif(assignment.isComplete(csp) || iterationCount>10000){\r\n\t\t\treturn assignment;\r\n\t\t}\r\n\t\tString var=selectUnassignedVariable(csp, assignment);\r\n\t\tList<E> values= orderDomainValues(csp, var, assignment);\r\n\t\tSet<E> valuesSet = new HashSet<>();\r\n\t\tfor(int i=0;i<values.size();i++){\r\n\t\t\tboolean consistent=true;\r\n\t\t\tif(!Visited(explored,var,values.get(i))){\r\n\t\t\t\tvaluesSet.add(values.get(i));\r\n\t\t\t\tassignment.put(var,values.get(i));\r\n\t\t\t\texplored.put(var,valuesSet);\r\n\t\t\t\tif(csp.isConsistent(assignment)){\r\n\t\t\t\t\tAssignment<E> result = backtracking(csp, assignment, explored);\r\n\t\t\t\t\tif(result!=null) {\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tassignment.remove(var);\r\n\t\t\t}\r\n\t\t}\r\n\t\texplored.get(var).clear();\r\n\t\treturn null;\r\n\t}",
"public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void visit(AssignmentOperator n) {\n n.f0.accept(this);\n }",
"protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}",
"public Object VisitAssignmentStatement(ASTAssignmentStatement assignstatement) {\n TypeClass lhstc = (TypeClass) assignstatement.variable().Accept(this);\n TypeClass rhstc = (TypeClass) assignstatement.value().Accept(this);\n Type lhs = lhstc.type();\n Type rhs = rhstc.type();\n \n if (lhs != rhs) {\n CompError.message(assignstatement.line(), \"Lefthand side and righthand \"\n + \"side of an assignment statement must match.\");\n //////System.out.println(\"lhs: \" + lhs + \" rhs: \" + rhs);\n }\n return bt.assignmentStatement(lhstc.value(), rhstc.value());\n }",
"private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }",
"public IncrementableAssignment(Literal lit) {\n super(lit, false);\n variableOrdering.add(lit.variable());\n }",
"public final void rule__PredicateComparison__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3979:1: ( ( ( rule__PredicateComparison__OpAssignment_1_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3980:1: ( ( rule__PredicateComparison__OpAssignment_1_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3980:1: ( ( rule__PredicateComparison__OpAssignment_1_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3981:1: ( rule__PredicateComparison__OpAssignment_1_1 )\n {\n before(grammarAccess.getPredicateComparisonAccess().getOpAssignment_1_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3982:1: ( rule__PredicateComparison__OpAssignment_1_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3982:2: rule__PredicateComparison__OpAssignment_1_1\n {\n pushFollow(FOLLOW_rule__PredicateComparison__OpAssignment_1_1_in_rule__PredicateComparison__Group_1__1__Impl7829);\n rule__PredicateComparison__OpAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateComparisonAccess().getOpAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }",
"public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17430:1: ( ( ruleXAssignment ) )\r\n // InternalDroneScript.g:17431:2: ( ruleXAssignment )\r\n {\r\n // InternalDroneScript.g:17431:2: ( ruleXAssignment )\r\n // InternalDroneScript.g:17432:3: ruleXAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final JavaliParser.assignmentTail_return assignmentTail(Object lhs) throws RecognitionException {\n\t\tJavaliParser.assignmentTail_return retval = new JavaliParser.assignmentTail_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken eq=null;\n\t\tParserRuleReturnScope rightExpr =null;\n\n\t\tObject eq_tree=null;\n\t\tRewriteRuleTokenStream stream_80=new RewriteRuleTokenStream(adaptor,\"token 80\");\n\t\tRewriteRuleSubtreeStream stream_assignmentRHS=new RewriteRuleSubtreeStream(adaptor,\"rule assignmentRHS\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:2: (eq= '=' rightExpr= assignmentRHS -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:4: eq= '=' rightExpr= assignmentRHS\n\t\t\t{\n\t\t\teq=(Token)match(input,80,FOLLOW_80_in_assignmentTail929); \n\t\t\tstream_80.add(eq);\n\n\t\t\tpushFollow(FOLLOW_assignmentRHS_in_assignmentTail933);\n\t\t\trightExpr=assignmentRHS();\n\t\t\tstate._fsp--;\n\n\t\t\tstream_assignmentRHS.add(rightExpr.getTree());\n\t\t\t// AST REWRITE\n\t\t\t// elements: assignmentRHS\n\t\t\t// token labels: \n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t// 344:3: -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t{\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:344:6: ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t\t{\n\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(Assign, eq, \"Assign\"), root_1);\n\t\t\t\tadaptor.addChild(root_1, lhs );\n\t\t\t\tadaptor.addChild(root_1, stream_assignmentRHS.nextTree());\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }",
"public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }",
"private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }",
"public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"@Override\n\tpublic Object visitStatement_Assign(Statement_Assign statement_Assign, Object arg) throws Exception {\n\t\tif(statement_Assign.lhs.getTypeName().isType(Type.INTEGER) ||statement_Assign.lhs.getTypeName().isType(Type.BOOLEAN) ){\n\t\t\tstatement_Assign.e.visit(this, arg);\t\t\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t}\n\t\telse if(statement_Assign.lhs.getTypeName().isType(Type.IMAGE)){\n\t\t\t//if(statement_Assign.lhs.isCartesian){\n\t\t\t\tmv.visitFieldInsn(GETSTATIC, className, statement_Assign.lhs.name, ImageSupport.ImageDesc);\n\t\t\t\tmv.visitInsn(DUP);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getX\", ImageSupport.getXSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 3);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getY\", ImageSupport.getYSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 4);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 1);\n\t\t\tLabel l1 = new Label();\n\t\t\tmv.visitLabel(l1);\n\t\t\tLabel l2 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l2);\n\t\t\tLabel l3 = new Label();\n\t\t\tmv.visitLabel(l3);\n\t\t\tmv.visitLineNumber(11, l3);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 2);\n\t\t\tLabel l4 = new Label();\n\t\t\tmv.visitLabel(l4);\n\t\t\tLabel l5 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l5);\n\t\t\tLabel l6 = new Label();\n\t\t\tmv.visitLabel(l6);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\t\n\t\t\tstatement_Assign.e.visit(this, arg);\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t\t\n\t\t\tmv.visitIincInsn(2, 1);\n\t\t\tmv.visitLabel(l5);\n\t\t\tmv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 2);\n\t\t\tmv.visitIntInsn(ILOAD, 4); // Y MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l6);\n\t\t\tLabel l7 = new Label();\n\t\t\tmv.visitLabel(l7);\n\t\t\tmv.visitIincInsn(1, 1);\n\t\t\tmv.visitLabel(l2);\n\t\t\tmv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 1);\n\t\t\tmv.visitIntInsn(ILOAD, 3); // X MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l3);\n\t\t}\n\t\treturn null;\n\t}",
"public static BinaryExpression addAssignChecked(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public final void ruleOpMultiAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:329:2: ( ( '+=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:331:1: '+='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n match(input,12,FOLLOW_12_in_ruleOpMultiAssign642); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public IncrementableAssignment() {\n super(false);\n }",
"public final void rule__PrimaryExpr__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:12680:1: ( ( ( rule__PrimaryExpr__OpAssignment_0_1 ) ) )\r\n // InternalGo.g:12681:1: ( ( rule__PrimaryExpr__OpAssignment_0_1 ) )\r\n {\r\n // InternalGo.g:12681:1: ( ( rule__PrimaryExpr__OpAssignment_0_1 ) )\r\n // InternalGo.g:12682:2: ( rule__PrimaryExpr__OpAssignment_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getPrimaryExprAccess().getOpAssignment_0_1()); \r\n }\r\n // InternalGo.g:12683:2: ( rule__PrimaryExpr__OpAssignment_0_1 )\r\n // InternalGo.g:12683:3: rule__PrimaryExpr__OpAssignment_0_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__PrimaryExpr__OpAssignment_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getPrimaryExprAccess().getOpAssignment_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void ruleOpMultiAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:412:2: ( ( '+=' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:413:1: ( '+=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:413:1: ( '+=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:414:1: '+='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \r\n }\r\n match(input,15,FOLLOW_15_in_ruleOpMultiAssign822); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17407:1: ( ( ruleXAssignment ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17408:1: ( ruleXAssignment )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17408:1: ( ruleXAssignment )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17409:1: ruleXAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXAssignment_in_rule__XAssignment__RightOperandAssignment_1_1_135142);\r\n ruleXAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"boolean equivalent(AssignmentPath other);",
"public final void rule__Operand__Group_1_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:13301:1: ( ( ( rule__Operand__ExpAssignment_1_1_1 ) ) )\r\n // InternalGo.g:13302:1: ( ( rule__Operand__ExpAssignment_1_1_1 ) )\r\n {\r\n // InternalGo.g:13302:1: ( ( rule__Operand__ExpAssignment_1_1_1 ) )\r\n // InternalGo.g:13303:2: ( rule__Operand__ExpAssignment_1_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOperandAccess().getExpAssignment_1_1_1()); \r\n }\r\n // InternalGo.g:13304:2: ( rule__Operand__ExpAssignment_1_1_1 )\r\n // InternalGo.g:13304:3: rule__Operand__ExpAssignment_1_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Operand__ExpAssignment_1_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOperandAccess().getExpAssignment_1_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12158:1: ( ( ruleXAssignment ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12159:1: ( ruleXAssignment )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12159:1: ( ruleXAssignment )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12160:1: ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXAssignment_in_rule__XAssignment__RightOperandAssignment_1_1_124382);\n ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static BinaryExpression powerAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void reassignIfNeeded() {\n\t}",
"public LlvmValue visit(Assign n){\n\t\t\n\t\tSystem.out.format(\"assign********\\n\");\n\t\t\n\t\tLlvmValue rhs = n.exp.accept(this);\n\t\tLlvmRegister returns;\n\t\t//Nesta parte, para retornarmos o tipo certo, tivemos que converter todos os parametros do tipo\n\t\t//[ A x iB] para ponteiros. o Assembly reclamava quando tinha algum store ou algo do genero com tipos\n\t\t// diferentes\n\t\tif(rhs.type.toString().contains(\"x i\")){\n\t\t\t//System.out.format(\"expressao de rhs envolve arrays. fazendo casting...\\n\");\n\t\t\t\n\t\t\t//Fazer bitcast\n\t\t\tif(rhs.type.toString().contains(\" x i32\")){\n\t\t\t\treturns = new LlvmRegister(LlvmPrimitiveType.I32PTR);\n\t\t\t}else if(rhs.type.toString().contains(\" x i8\")){\n\t\t\t\treturns = new LlvmRegister(new LlvmPointer(LlvmPrimitiveType.I8));\n\t\t\t//Esse else eh meio inutil, mas pelo fato de eu querer usar elseif, deixei ele aqui mesmo.\n\t\t\t}else{\n\t\t\t\treturns = new LlvmRegister(rhs.type);\n\t\t\t}\n\t\t\t\n\t\t\tassembler.add(new LlvmBitcast(returns, rhs, returns.type));\n\t\t\tassembler.add(new LlvmStore(returns, n.var.accept(this)));\n\t\t}else{\n\t\t\t//Caso o tipo ja esteja ok, soh damos store com o rhs mesmo.\n\t\t\tassembler.add(new LlvmStore(rhs, n.var.accept(this)));\n\t\t}\n\t\treturn null;\n\t}",
"public AssignStmt assign_stmt() {\n AssignExpr ae = assign_expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after assignment\");\n }\n lexer.nextToken();\n\n return new AssignStmt(ae);\n }",
"public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1);\n }",
"public AssignStatement(Element element) {\n super(element);\n }",
"AssignmentRule createAssignmentRule();",
"abstract void assignZero();",
"public final void rule__Affect__ExprsAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:1496:1: ( ( ruleExpr ) )\n // InternalWh.g:1497:2: ( ruleExpr )\n {\n // InternalWh.g:1497:2: ( ruleExpr )\n // InternalWh.g:1498:3: ruleExpr\n {\n before(grammarAccess.getAffectAccess().getExprsExprParserRuleCall_4_1_0()); \n pushFollow(FOLLOW_2);\n ruleExpr();\n\n state._fsp--;\n\n after(grammarAccess.getAffectAccess().getExprsExprParserRuleCall_4_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"void companyStudentMatching (Student[]students, Company[]companies){\n match1to1s(students, companies);\n\n //case 2: lol\n assign(students, companies);\n\n }",
"@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}",
"public Code visitAssignmentNode(StatementNode.AssignmentNode node) {\n beginGen(\"Assignment\");\n /* Generate code to evaluate the expression */\n Code code = new Code();\n /* Generate the code to load the address of the variable */\n for(int i= 0; i < node.getExps().size(); i++) {\n \tExpNode exp = node.getExps().get(i);\n \tcode.append(exp.genCode(this));\n }\n for(int i = node.getLValues().size() - 1; i >= 0; i--) {\n \tExpNode lValue = node.getLValues().get(i);\n \tcode.append(lValue.genCode(this));\n \tcode.genStore(lValue.getType());\n }\n endGen(\"Assignment\");\n return code;\n }",
"public final void rule__XSetLiteral__Group_3_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:9074:1: ( ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) ) )\r\n // InternalDroneScript.g:9075:1: ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) )\r\n {\r\n // InternalDroneScript.g:9075:1: ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) )\r\n // InternalDroneScript.g:9076:2: ( rule__XSetLiteral__ElementsAssignment_3_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); \r\n }\r\n // InternalDroneScript.g:9077:2: ( rule__XSetLiteral__ElementsAssignment_3_1_1 )\r\n // InternalDroneScript.g:9077:3: rule__XSetLiteral__ElementsAssignment_3_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSetLiteral__ElementsAssignment_3_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void equal() {\n if (operatorAssigned != Operator.NON || operatorType != Operator.NON) {\n double subResult;\n if (numberStored[1] != 0) {\n subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numberStored[0] = basicCalculation(numberStored[0], subResult, operatorAssigned);\n numberStored[1] = 0;\n mainLabel.setText(Double.toString(numberStored[0]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n operatorAssigned = Operator.NON;\n operatorType = Operator.NON;\n }",
"public final void rule__Operand__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:13220:1: ( ( ( rule__Operand__OperandnAssignment_1_0 ) ) )\r\n // InternalGo.g:13221:1: ( ( rule__Operand__OperandnAssignment_1_0 ) )\r\n {\r\n // InternalGo.g:13221:1: ( ( rule__Operand__OperandnAssignment_1_0 ) )\r\n // InternalGo.g:13222:2: ( rule__Operand__OperandnAssignment_1_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOperandAccess().getOperandnAssignment_1_0()); \r\n }\r\n // InternalGo.g:13223:2: ( rule__Operand__OperandnAssignment_1_0 )\r\n // InternalGo.g:13223:3: rule__Operand__OperandnAssignment_1_0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Operand__OperandnAssignment_1_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOperandAccess().getOperandnAssignment_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private static int[] greedyAssign(double[][] array, int[] assignment, int chunk_size) {\n\n\t\tint[] jToi = new int[chunk_size];\n\t\tArrays.fill(assignment, -1);\n\t\tArrays.fill(jToi, -1);\n\t\tfor (int i=0; i<edge_size; i++){\n\t\t\tHeapNode node = (HeapNode) edges[i];\n\t\t\tif (assignment[node.getI()]==-1 && jToi[node.getJ()]==-1){\n\t\t\t\tassignment[node.getI()]=node.getJ();\n\t\t\t\tjToi[node.getJ()]=node.getI();\n\t\t\t}\n\t\t}\n\t\t//long backtrace_start = System.currentTimeMillis();\n\t\tfor (int index = 0; index<chunk_size; index++){\n\t\t\tboolean swap_done = false;\n\t\t\tif (assignment[index]==-1){\n\t\t\t\tSystem.out.println(index);\n\t\t\t\tfor (int step=1; step<chunk_size/2; step++){\n\t\t\t\t\tint possible_i = (chunk_size+index-step)%chunk_size;\n\t\t\t\t\tint possible_j = assignment[possible_i];\n\t\t\t\t\tif (possible_j != -1){\n\t\t\t\t\t\tif (array[index][possible_j]!=BIG){\n\t\t\t\t\t\t\tfor (int l=0; l<chunk_size; l++){\n\t\t\t\t\t\t\t\tif (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t\tassignment[index]=possible_j;\n\t\t\t\t\t\t\t\t\tassignment[possible_i]=l;\n\t\t\t\t\t\t\t\t\tjToi[l]=possible_i;\n\t\t\t\t\t\t\t\t\tjToi[possible_j]=index;\n\t\t\t\t\t\t\t\t\tswap_done = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/*for (int step2 = 1; step2<chunk_size/2; step2++){\n\t\t\t\t\t\t\t int l = (chunk_size+possible_j-step2)%chunk_size;\n\n\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t l=(possible_j+step2)%chunk_size;\n\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (swap_done)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tpossible_i = (index+step)%chunk_size;\n\t\t\t\t\t\tpossible_j = assignment[possible_i];\n\t\t\t\t\t\tif (possible_j != -1){\n\t\t\t\t\t\t\tif (array[index][possible_j]!=BIG){\n\t\t\t\t\t\t\t\tfor (int l=0; l<chunk_size; l++){\n\t\t\t\t\t\t\t\t\tif (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t\t\tassignment[index]=possible_j;\n\t\t\t\t\t\t\t\t\t\tassignment[possible_i]=l;\n\t\t\t\t\t\t\t\t\t\tjToi[l]=possible_i;\n\t\t\t\t\t\t\t\t\t\tjToi[possible_j]=index;\n\t\t\t\t\t\t\t\t\t\tswap_done = true;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*for (int step2 = 1; step2<chunk_size/2; step2++){\n\t\t\t\t\t\t\t\t int l = (chunk_size+possible_j-step2)%chunk_size;\n\n\t\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t l=(possible_j+step2)%chunk_size;\n\t\t\t\t\t\t\t\t if (jToi[l]==-1 && array[possible_i][l]!=BIG){\n\t\t\t\t\t\t\t\t assignment[index]=possible_j;\n\t\t\t\t\t\t\t\t assignment[possible_i]=l;\n\t\t\t\t\t\t\t\t jToi[l]=possible_i;\n\t\t\t\t\t\t\t\t jToi[possible_j]=index;\n\t\t\t\t\t\t\t\t swap_done = true;\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t }*/\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (swap_done)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn assignment;\n\t}",
"public final void rule__PredicateAtomic__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4892:1: ( ( ( rule__PredicateAtomic__ValueAssignment_0_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4893:1: ( ( rule__PredicateAtomic__ValueAssignment_0_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4893:1: ( ( rule__PredicateAtomic__ValueAssignment_0_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4894:1: ( rule__PredicateAtomic__ValueAssignment_0_1 )\n {\n before(grammarAccess.getPredicateAtomicAccess().getValueAssignment_0_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4895:1: ( rule__PredicateAtomic__ValueAssignment_0_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4895:2: rule__PredicateAtomic__ValueAssignment_0_1\n {\n pushFollow(FOLLOW_rule__PredicateAtomic__ValueAssignment_0_1_in_rule__PredicateAtomic__Group_0__1__Impl9610);\n rule__PredicateAtomic__ValueAssignment_0_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateAtomicAccess().getValueAssignment_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void visit (AssignmentStatement aStmt)\n {\n // Bind memory in the hash table\n fMemory.put (aStmt.getVariableName (), aStmt.getVariableValue ());\n }",
"public final void ruleXExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:243:2: ( ( ruleXAssignment ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:244:1: ( ruleXAssignment )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:244:1: ( ruleXAssignment )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:245:1: ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); \n }\n pushFollow(FOLLOW_ruleXAssignment_in_ruleXExpression460);\n ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17396:1: ( ( ruleXAssignment ) )\r\n // InternalDroneScript.g:17397:2: ( ruleXAssignment )\r\n {\r\n // InternalDroneScript.g:17397:2: ( ruleXAssignment )\r\n // InternalDroneScript.g:17398:3: ruleXAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"private <E> Assignment<E> backtrackingMRVLCVDH(CSP<E> csp, Assignment<E> assignment, HashMap<String,Set<E>> explored) {\r\n\t\t++iterationCount;\r\n\t\tif(assignment.isComplete(csp) || iterationCount>10000){\r\n\t\t\treturn assignment;\r\n\t\t}\r\n\t\tString var=MinRemainingValue(csp, assignment);\r\n\t\tList<E> values= LeastConstrainingValue(csp,var);\r\n\t\tSet<E> valuesSet = new HashSet<>();\r\n\t\tfor(int i=0;i<values.size();i++){\r\n\t\t\tboolean consistent=true;\r\n\t\t\tif(!Visited(explored,var,values.get(i))){\r\n\t\t\t\tvaluesSet.add(values.get(i));\r\n\t\t\t\tassignment.put(var,values.get(i));\r\n\t\t\t\texplored.put(var,valuesSet);\r\n\t\t\t\tif(csp.isConsistent(assignment)){\r\n\t\t\t\t\tAssignment<E> result = backtracking(csp, assignment, explored);\r\n\t\t\t\t\tif(result!=null) {\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tassignment.remove(var);\r\n\t\t\t}\r\n\t\t}\r\n\t\texplored.get(var).clear();\r\n\t\treturn null;\r\n\t}",
"public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12124:1: ( ( ruleXAssignment ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12125:1: ( ruleXAssignment )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12125:1: ( ruleXAssignment )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12126:1: ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \n }\n pushFollow(FOLLOW_ruleXAssignment_in_rule__XAssignment__ValueAssignment_0_324312);\n ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__DistributedEventUpdate__AssignerAssignment_1_5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10295:1: ( ( ruleUniform ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10296:1: ( ruleUniform )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10296:1: ( ruleUniform )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10297:1: ruleUniform\n {\n before(grammarAccess.getDistributedEventUpdateAccess().getAssignerUniformParserRuleCall_1_5_0()); \n pushFollow(FOLLOW_ruleUniform_in_rule__DistributedEventUpdate__AssignerAssignment_1_520240);\n ruleUniform();\n\n state._fsp--;\n\n after(grammarAccess.getDistributedEventUpdateAccess().getAssignerUniformParserRuleCall_1_5_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1, Method method) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1, false, method);\n }",
"public Integer visitAssign(ExprParser.AssignContext ctx) {\n String id = ctx.ID().getText();\n int value = visit(ctx.expr());\n memory.put(id, value);\n return value;\n }",
"public OnSetClause addAssignment(Expression expression) {\n assignments.add(new Assignment(expression));\n return this;\n }",
"public final void rule__PredicateAtomic__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4955:1: ( ( ( rule__PredicateAtomic__ValueAssignment_1_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4956:1: ( ( rule__PredicateAtomic__ValueAssignment_1_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4956:1: ( ( rule__PredicateAtomic__ValueAssignment_1_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4957:1: ( rule__PredicateAtomic__ValueAssignment_1_1 )\n {\n before(grammarAccess.getPredicateAtomicAccess().getValueAssignment_1_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4958:1: ( rule__PredicateAtomic__ValueAssignment_1_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4958:2: rule__PredicateAtomic__ValueAssignment_1_1\n {\n pushFollow(FOLLOW_rule__PredicateAtomic__ValueAssignment_1_1_in_rule__PredicateAtomic__Group_1__1__Impl9732);\n rule__PredicateAtomic__ValueAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateAtomicAccess().getValueAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__DistributedEventUpdate__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6155:1: ( ( ( rule__DistributedEventUpdate__AssigneeAssignment_0_1 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6156:1: ( ( rule__DistributedEventUpdate__AssigneeAssignment_0_1 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6156:1: ( ( rule__DistributedEventUpdate__AssigneeAssignment_0_1 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6157:1: ( rule__DistributedEventUpdate__AssigneeAssignment_0_1 )\n {\n before(grammarAccess.getDistributedEventUpdateAccess().getAssigneeAssignment_0_1()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6158:1: ( rule__DistributedEventUpdate__AssigneeAssignment_0_1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6158:2: rule__DistributedEventUpdate__AssigneeAssignment_0_1\n {\n pushFollow(FOLLOW_rule__DistributedEventUpdate__AssigneeAssignment_0_1_in_rule__DistributedEventUpdate__Group_0__1__Impl12078);\n rule__DistributedEventUpdate__AssigneeAssignment_0_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDistributedEventUpdateAccess().getAssigneeAssignment_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public abstract int apply(int lhs, int rhs);",
"protected IExpressionValue assignment(List<Entity> declaredStates, List<Entity> possibleStates) \r\n\t\t\t\t\tthrows InvalidProbabilityRangeException, \r\n\t\t\t\t\t\t TableFunctionMalformedException,\r\n\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// prepare a representation of a cell inside the temporary table\r\n\t\tTempTableProbabilityCell currentCell = new TempTableProbabilityCell(null, null);\r\n\t\t\r\n\t\t// SCAN FOR IDENTIFIER\r\n\t\tscan();\r\n\t\tString userDefinedVariableName = null;\t// this will become non-null if there is an unknown state declared (unknown states will become user-defined variables)\r\n\t\tif (token == 'x') {\r\n\t\t\tif (this.node != null) {\r\n\t\t\t\t// Consistency check C09\r\n\t\t\t\t// Remember declared states, so we can check later if all states was declared\r\n\t\t\t\tEntity possibleValue = null;\r\n\t\t\t\tint index = this.node.getPossibleValueIndex(this.noCaseChangeValue);\r\n\t\t\t\tif (index < 0) {\r\n\t\t\t\t\t// unknown states will be considered as a new variable that user has declared\r\n\t\t\t\t\tuserDefinedVariableName = this.noCaseChangeValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpossibleValue = possibleStates.get(index);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t//throw new TableFunctionMalformedException(e.getMessage());\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(this.node.toString(), e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (possibleValue == null) {\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(getNode().toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdeclaredStates.add(possibleValue);\r\n\t\t\t\t\tcurrentCell.setPossibleValue(possibleValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\texpected(\"Identifier\");\r\n\t\t}\r\n\r\n\t\t// LOOK FOR = OPERATOR\r\n\t\tmatch('=');\r\n\r\n\t\t// consistency check C09\r\n\t\t// ret verifies the sum of all declared states' probability (must be 1)\r\n\t\t// boolean hasUnknownValue shows if some ret was negative or NaN.\r\n\t\tIExpressionValue ret = expression();\t\r\n\t\tif (ret == null) {\r\n\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonDeclaredVarStateAssignment\"));\r\n\t\t}\r\n\t\tfloat retValue = 0;\t// initialize with a value which will not impact consistency check (the one that checks if sum is 1)\r\n\t\tif (userDefinedVariableName == null) {\r\n\t\t\t// this is a state of current node, so store the probability in order to calculate consistency later\r\n\t\t\tif (!ret.isNumeric()) {\r\n\t\t\t\t// state of nodes must be probabilities (numbers)\r\n\t\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonNumericProbAssignment\"));\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tretValue = Float.parseFloat(ret.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tretValue = Float.NaN;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// this is a user-defined value\r\n\t\t\t// store it in the scope of current if-clause\r\n\t\t\tthis.currentHeader.addUserDefinedVariable(userDefinedVariableName, ret);\r\n\t\t}\r\n\t\tboolean hasUnknownValue = Float.isNaN(retValue);\r\n\t\t\r\n\t\t// add cell to header\r\n\t\tcurrentCell.setProbability(ret);\r\n\t\tif (currentCell.getPossibleValue() != null && currentCell.getPossibleValue() != null) {\r\n\t\t\tthis.currentHeader.addCell(currentCell);\r\n\t\t}\r\n\t\t// Debug.println(\"Adding cell: \" + currentCell.getPossibleValue().getName() + \" = \" + ret.toString());\r\n\r\n\t\t// consistency check C09\r\n\t\t// a single state shall never have negative prob \r\n\t\tif ( isToNormalize()\r\n\t\t\t\t&& ((retValue < 0.0) \r\n//\t\t\t\t\t\t|| (1.0 < retValue)\r\n\t\t\t\t\t\t)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\t// LOOK FOR , (OPTIONAL)\r\n\t\tif (look == ',') {\r\n\t\t\tmatch(',');\r\n\t\t\tif (look != this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\tIExpressionValue temp = assignment(declaredStates, possibleStates);\r\n\t\t\t\tfloat tempValue = Float.NaN;\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttempValue = Float.parseFloat(temp.getValue());\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\ttempValue = Float.NaN;\r\n\t\t\t\t}\r\n\t\t\t\thasUnknownValue = hasUnknownValue || (Float.isNaN(tempValue));\r\n\t\t\t\tif (hasUnknownValue) {\r\n\t\t\t\t\tretValue = Float.NaN;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tretValue += tempValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// this is an if-clause after assignment.\r\n\t\t\t\t// we should finish assignment (assignments in same block of if-clauses must be always before the if clause)\r\n\t\t\t\t// if assignment and if-clause happens in same block, assingments must be only for user-defined variables\r\n\t\t\t\tif (!currentHeader.getCellList().isEmpty()) {\r\n\t\t\t\t\t// user-defined variables are not added to cellList. Assignments to states of variables are added to cell list.\r\n\t\t\t\t\t// if this is not empty, then there were assignments to states of variables, so this is invalid.\r\n\t\t\t\t\tthrow new SomeStateUndeclaredException(getResource().getString(\"NonUserDefinedVariablesFoundBeforeIfClause\"));\r\n\t\t\t\t}\r\n\t\t\t\t// let the upper clause actually handle the if=clause\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Returned expression value = \" + retValue);\r\n\t\tif (isToNormalize() && (retValue < 0)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\treturn new SimpleProbabilityValue(retValue);\r\n\t}",
"public final void rule__ExpressionList__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:12221:1: ( ( ( rule__ExpressionList__ExpAssignment_1 ) ) )\r\n // InternalGo.g:12222:1: ( ( rule__ExpressionList__ExpAssignment_1 ) )\r\n {\r\n // InternalGo.g:12222:1: ( ( rule__ExpressionList__ExpAssignment_1 ) )\r\n // InternalGo.g:12223:2: ( rule__ExpressionList__ExpAssignment_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExpressionListAccess().getExpAssignment_1()); \r\n }\r\n // InternalGo.g:12224:2: ( rule__ExpressionList__ExpAssignment_1 )\r\n // InternalGo.g:12224:3: rule__ExpressionList__ExpAssignment_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ExpressionList__ExpAssignment_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExpressionListAccess().getExpAssignment_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static Assign run (Assign stmt, QueryChannel channel) {\n Rhs newRhs = stmt.getRhs().accept(visitor, channel);\n if (newRhs == null)\n newRhs = new Rlin(linear(Bound.ONE));\n if (newRhs != stmt.getRhs())\n return new Assign(stmt.getLhs(), newRhs);\n return stmt;\n }",
"public abstract void assign(ParameterVector pv) throws SolverException;",
"void visit(final Assignment assignment);",
"public final void rule__MultExp__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8500:1: ( ( ( rule__MultExp__OpAssignment_1_1 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8501:1: ( ( rule__MultExp__OpAssignment_1_1 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8501:1: ( ( rule__MultExp__OpAssignment_1_1 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8502:1: ( rule__MultExp__OpAssignment_1_1 )\n {\n before(grammarAccess.getMultExpAccess().getOpAssignment_1_1()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8503:1: ( rule__MultExp__OpAssignment_1_1 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8503:2: rule__MultExp__OpAssignment_1_1\n {\n pushFollow(FOLLOW_rule__MultExp__OpAssignment_1_1_in_rule__MultExp__Group_1__1__Impl17064);\n rule__MultExp__OpAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getMultExpAccess().getOpAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17373:1: ( ( ruleXAssignment ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17374:1: ( ruleXAssignment )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17374:1: ( ruleXAssignment )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17375:1: ruleXAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXAssignment_in_rule__XAssignment__ValueAssignment_0_335072);\r\n ruleXAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }"
]
| [
"0.63890165",
"0.6385579",
"0.6117686",
"0.60810876",
"0.6006668",
"0.5995957",
"0.5983095",
"0.5977374",
"0.59636974",
"0.5897587",
"0.5864542",
"0.5855576",
"0.58548844",
"0.5826845",
"0.5823154",
"0.57933515",
"0.57846296",
"0.57793146",
"0.5778574",
"0.57736355",
"0.5758146",
"0.57494605",
"0.56939644",
"0.56666875",
"0.5660892",
"0.5655457",
"0.5640899",
"0.5633381",
"0.5611648",
"0.5599417",
"0.5562314",
"0.55531317",
"0.5529937",
"0.5527301",
"0.5527128",
"0.5522272",
"0.5514367",
"0.5496586",
"0.54923546",
"0.5485566",
"0.5447054",
"0.54436755",
"0.5436099",
"0.5430313",
"0.5417549",
"0.54088086",
"0.53961056",
"0.53845596",
"0.5377607",
"0.5372767",
"0.5367994",
"0.53668416",
"0.536138",
"0.5360808",
"0.53592664",
"0.53543067",
"0.535404",
"0.53455216",
"0.53189045",
"0.53149503",
"0.53066087",
"0.53035957",
"0.52973604",
"0.52906823",
"0.52817667",
"0.5281518",
"0.5280741",
"0.52675825",
"0.52589166",
"0.5254825",
"0.5250339",
"0.5249047",
"0.5231161",
"0.5227439",
"0.5224318",
"0.52230275",
"0.5221153",
"0.52100533",
"0.520878",
"0.52024364",
"0.51982915",
"0.51952785",
"0.5188329",
"0.5180236",
"0.5179184",
"0.51753503",
"0.5171373",
"0.5166597",
"0.51662093",
"0.51633596",
"0.5162232",
"0.5161301",
"0.5159017",
"0.5149706",
"0.51481104",
"0.5144042",
"0.5142976",
"0.5137907",
"0.5129813",
"0.51255435",
"0.5125341"
]
| 0.0 | -1 |
The provider of the credentials | @ApiModelProperty(example = "null", value = "The provider of the credentials")
public AuthenticationProviderEnum getAuthenticationProvider() {
return authenticationProvider;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProvider() {\n return provider;\n }",
"public String getProvider() {\r\n return provider;\r\n }",
"public String getProvider() {\n\t\treturn this.provider;\n\t}",
"public String getProvider() {\n\t\treturn provider;\n\t}",
"public String getProvider() {\n return mProvider;\n }",
"java.lang.String getProvider();",
"public final String getAwsCredentialsProviderService() {\n return properties.get(AWS_CREDENTIALS_PROVIDER_SERVICE_PROPERTY);\n }",
"java.lang.String getCryptProvider();",
"public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n }\n }",
"public String getCredentials();",
"public Provider getProvider() {\r\n Provider provider = new Provider();\r\n provider.setProviderId(this.loginId);\r\n provider.setProviderPassword(this.loginPassword);\r\n provider.setProviderEmail(this.email);\r\n provider.setProviderPhone(this.phone);\r\n provider.setProviderBirth(this.birth);\r\n provider.setProviderGender(this.gender);\r\n provider.setAuthentication(this.authentication);\r\n provider.setProviderAccountPayment(this.accountPayment);\r\n provider.setUrl(this.urlAvatar);\r\n // Address add = new Address();\r\n // add.setBuildingName(this.buildingName);\r\n // add.setDistrictName(this.districtName);\r\n // add.setHomeNumber(this.homeNumber);\r\n // add.setStreetName(this.streetName);\r\n // add.setWardName(this.wardName);\r\n this.address = CustomerBLO.toStringAddres(homeNumber, buildingName, streetName, wardName, districtName);\r\n provider.setProviderAddress(this.address);\r\n provider.setLoginDate(new Date());\r\n provider.setDetail(this.detail);\r\n provider.setProviderName(this.loginName);\r\n return provider;\r\n\r\n }",
"public String getProvider() {\n return (String) getAttributeInternal(PROVIDER);\n }",
"public static Class<?> getProvider() {\n return provider;\n }",
"public ProviderIdentity getProviderIdentity() {\n\t\treturn this.providerIdentity;\n\t}",
"java.lang.String getCred();",
"public com.google.protobuf.ByteString\n getProviderBytes() {\n java.lang.Object ref = provider_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n provider_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getProviderBytes() {\n java.lang.Object ref = provider_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n provider_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getProviderString();",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerName_ = s;\n return s;\n }\n }",
"public String getProviderID() {\n return PROVIDER_ID;\n }",
"@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();",
"public Object credentials() {\n return cred;\n }",
"public java.lang.String getProviderType() {\n return this._providerType;\n }",
"public java.lang.String getProviderName() {\n java.lang.Object ref = providerName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getProviderUrl() {\n return \"jnp://\".concat(host).concat(\":\").concat(jndiPort.toString());\n }",
"public OpenShiftManagedClusterBaseIdentityProvider provider() {\n return this.provider;\n }",
"public String getProviderUrl() {\r\n return providerUrl;\r\n }",
"@JsonProperty(\"provider\")\n public String getProvider() { return _provider; }",
"public String getProviderId() {\n\t\treturn providerId;\n\t}",
"public String getProviderId() {\n\t\treturn providerId;\n\t}",
"public String getProviderClassName();",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public String getProviderAddress() {\n\t\treturn this.providerAddress;\n\t}",
"public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerId_ = s;\n return s;\n }\n }",
"public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public String getProviderName() {\n return \"SimpleEncryptionKeyStoreProvider\";\n }",
"public URL getProviderURL () {\n return impl.getProviderURL ();\n }",
"private CredentialsProvider emulatedPubSubCredentialsProvider() {\n if (!useEmulator) {\n throw new RuntimeException(\"You shouldn't be calling this when using the real \"\n + \"(non-emulator) implementation\");\n }\n return NoCredentialsProvider.create();\n }",
"public String getProviderName(){\n\t\treturn proxy.getName();\n\t}",
"public DefaultCredentialsProvider() {\n // nothing\n }",
"public String getCredentials() {\n return serverGroup.getCredentials();\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"public com.google.protobuf.ByteString\n getProviderNameBytes() {\n java.lang.Object ref = providerName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n providerName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getProviderName() {\n return mDeveloperProvider;\n }",
"@Override\n public Object getCredentials() {\n return token;\n }",
"public void setProvider(String value) { _provider = value; }",
"public IProvider provider();",
"private List<AuthUI.IdpConfig> getProvider() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.FacebookBuilder().setPermissions(Arrays.asList(\"email\")).build(),\n new AuthUI.IdpConfig.GoogleBuilder().build(),\n new AuthUI.IdpConfig.TwitterBuilder().build());\n\n return providers;\n }",
"protected OAuthProvider getOAuthProvider() {\r\n \tOAuthProvider provider = new CommonsHttpOAuthProvider(MendeleyApiUrls.OAuthUrls.REQUEST_TOKEN_URL,\r\n \t\t\tMendeleyApiUrls.OAuthUrls.ACCESS_TOKEN_URL, MendeleyApiUrls.OAuthUrls.AUTHORIZE_URL);\r\n \t\r\n \tprovider.setOAuth10a(true);\r\n// for (String headerName : requestHeaders.keySet()) {\r\n// \tprovider.setRequestHeader(headerName, requestHeaders.get(headerName));\r\n// }\r\n \t\r\n \treturn provider;\r\n\t}",
"private DatabaseProvider getDatabaseProvider() {\n return new DatabaseProvider(\n System.getProperty(\"url\"),\n System.getProperty(\"user\"),\n System.getProperty(\"password\")\n );\n }",
"public String getJCEProviderName() {\n/* 196 */ return this.signatureAlgorithm.engineGetJCEProviderName();\n/* */ }",
"private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}",
"org.openxmlformats.schemas.presentationml.x2006.main.STCryptProv xgetCryptProviderType();",
"public com.google.protobuf.ByteString\n getProviderNameBytes() {\n java.lang.Object ref = providerName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n providerName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }",
"@Column(name = \"provider_name\")\n\tpublic java.lang.String getProviderName() {\n\t\treturn providerName;\n\t}",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return WorkflowsStubSettings.defaultCredentialsProviderBuilder();\n }",
"public String getCredentialsId() {\n return settings.CredentialsId;\n }",
"@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"@SuppressWarnings(\"rawtypes\")\n @Override\n public Class[] getSupportedCredentials() {\n return new Class[] { DefaultCredential.class, CertificateCredential.class, PasswordCredential.class, CredentialMap.class };\n }",
"public String getProviderUserId() {\n\t\treturn providerUserId;\n\t}",
"public String getProviderArn() {\n return this.providerArn;\n }",
"protected void setProvider() {\n fs.getClient().setKeyProvider(cluster.getNameNode().getNamesystem()\n .getProvider());\n }",
"public Optional<String> getCredentials() {\n return Optional.ofNullable(credentials);\n }",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"com.google.protobuf.ByteString\n getProviderBytes();",
"public ProtocolProviderService getProtocolProvider()\n {\n return providerService;\n }",
"public String getCreditor() {\n return creditor;\n }",
"public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}",
"public Credential getCredential() {\n return this.credential;\n }",
"java.lang.String getCryptProviderTypeExtSource();",
"public SessionProviderImpl(CredentialsProvider cp) {\n this.cp = cp;\n }",
"public ConnectionProvider getConnectionProvider() {\n\t\treturn requireStarted(connectionProvider);\n\t}",
"@Bean\n public DaoAuthenticationProvider authenticationProvider() {\n final DaoAuthenticationProvider prov = new DaoAuthenticationProvider();\n prov.setUserDetailsService(this.userDetails());\n prov.setPasswordEncoder(this.passwordEncoder());\n return prov;\n }",
"@Bean\n public BasicCredentialsProvider abTestCredentialProvider() {\n BasicCredentialsProvider provider = new BasicCredentialsProvider();\n provider.setCredentials(abTestAuthScope(), abTestCredentials());\n return provider;\n }",
"@Override\n public UserProvider getUserProvider() {\n\treturn new UserProvider() {\n\t public FeatureUser getCurrentUser() {\n\t\treturn new SimpleFeatureUser(\"admin\", true);\n\t }\n\t};\n }",
"protected SSLSocketProvider getSocketProvider()\n {\n return f_providerSocket;\n }",
"boolean isSetCryptProvider();",
"@Override\r\n\tpublic Credential getCredential() {\n\t\treturn null;\r\n\t}",
"public com.google.protobuf.ByteString\n getProviderIdBytes() {\n java.lang.Object ref = providerId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n providerId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Bean\n\tpublic DaoAuthenticationProvider authenticationProvider() {\n\t\t//Create a new authentication provider object\n\t\tDaoAuthenticationProvider authenticationProvider = new DaoAuthenticationProvider();\n\t\t//setting up custom user details service\n\t\tauthenticationProvider.setUserDetailsService(userServiceObj);\n\t\t//setting up password encoder by BCrypt\n\t\tauthenticationProvider.setPasswordEncoder(pswdEncoder()); \n\t\t//Return the authentication provider object\n\t\treturn authenticationProvider;\n\t}",
"public void setProviderId(String value) { _providerId = value; }",
"public AWSCredentialsProvider getAWSCredentialsProvider() {\n return new DefaultAWSCredentialsProviderChain();\n }",
"public Provider() {\n super(PROVIDER_NAME, 0.1, \"WebID-TLS Provider\");\n }",
"public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}",
"public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}",
"@Override\n public LoginCredentials getCredentials() {\n return (localSshCredentials != null) ? localSshCredentials : getGlobalCredentials();\n }",
"public final java.security.Provider getProvider() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider\");\n }",
"@Bean\n @Override\n public AuthenticationManager authenticationManagerBean() {\n return new ProviderManager(singletonList(new OAuth2PasswordAuthenticationProvider(properties)));\n }",
"public Credentials getCredentials() {\n return mCredentials;\n }",
"long getCryptProviderTypeExt();",
"public String getName() {\n return Token2Constants.AUTHENTICATOR_NAME;\n }",
"public LoginCredentials getGlobalCredentials() {\n return super.getCredentials();\n }",
"public static interface Credentials extends Serializable {\n\t\tpublic String getUserName();\n\t\t/**\n\t\t* The password is encrypted.\n\t\t*/\n\t\tpublic String getPassword();\n\t}"
]
| [
"0.7454891",
"0.7450382",
"0.7409851",
"0.73840946",
"0.71741927",
"0.7117185",
"0.6951301",
"0.6936704",
"0.6925489",
"0.69015396",
"0.68850595",
"0.68818104",
"0.6807517",
"0.675079",
"0.67405105",
"0.67383754",
"0.66881275",
"0.6682986",
"0.6597714",
"0.6548506",
"0.6547751",
"0.6517556",
"0.6509936",
"0.65034497",
"0.6474947",
"0.6449606",
"0.6438788",
"0.63874733",
"0.6383824",
"0.63430184",
"0.63430184",
"0.6342032",
"0.6328387",
"0.6328387",
"0.6328387",
"0.62968576",
"0.6275696",
"0.6225278",
"0.62187433",
"0.6203565",
"0.61971486",
"0.61834043",
"0.6174834",
"0.61689353",
"0.6161927",
"0.6143399",
"0.61392146",
"0.61161745",
"0.61145955",
"0.610289",
"0.61010545",
"0.6095129",
"0.6088893",
"0.6054929",
"0.60398644",
"0.6030401",
"0.602659",
"0.60134447",
"0.5997284",
"0.59842235",
"0.5978834",
"0.59349316",
"0.59314936",
"0.59314936",
"0.59314936",
"0.59169793",
"0.59131163",
"0.5903152",
"0.5895438",
"0.5892141",
"0.5889725",
"0.5878814",
"0.58753675",
"0.5866405",
"0.5853428",
"0.58458054",
"0.58043194",
"0.58029824",
"0.579518",
"0.57945263",
"0.578517",
"0.5764769",
"0.5761189",
"0.57490534",
"0.57464784",
"0.57353145",
"0.5721639",
"0.57189596",
"0.5705815",
"0.57041585",
"0.57001585",
"0.57001585",
"0.5698702",
"0.5691263",
"0.5690814",
"0.5683164",
"0.56746024",
"0.56667805",
"0.5660322",
"0.56554836"
]
| 0.63599205 | 29 |
The type of backend that is created. This field allows users to create a local backend or with supported 3rd parties. | @ApiModelProperty(example = "null", value = "The type of backend that is created. This field allows users to create a local backend or with supported 3rd parties.")
public BackendTypeEnum getBackendType() {
return backendType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String backend();",
"public static EBackendType getBackendByName(String name) {\n\t\treturn availableBackends().filter(backend -> backend.cc_name.equalsIgnoreCase(name)).findFirst().orElse(EBackendType.DEFAULT);\n\t}",
"public void backend (String backend) {\n if (isRunning ())\n throw new IllegalArgumentException (\"Can not change the backend of a running server\");\n\n this.backend = backend;\n }",
"@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }",
"public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}",
"public Type getType() {\n \t\tif(type == null) {\n \t\t\ttry {\n \t\t\t\tsetType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName()));\n \t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO: ?? Need to handle this, so the \"not found\" surfaces to the user...\n\t\t\t\t// Handled via model validation - type can not be null\n \t\t\t}\n \t\t}\n \t\treturn type;\n \t}",
"public String getDeviceBrokerType() {\n return deviceBrokerType;\n }",
"Future<CreateBackendResponse> createBackend(\n CreateBackendRequest request,\n AsyncHandler<CreateBackendRequest, CreateBackendResponse> handler);",
"public Byte getClientType() {\r\n return clientType;\r\n }",
"protected abstract DbType getDatabaseType();",
"public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }",
"public int getCreateType() {\n\t\treturn createType;\n\t}",
"public String getDBType() {\r\n return dbType;\r\n }",
"public int getDatabaseType()\n {\n return Constants.LOCAL | Constants.SHARED_DATA | Constants.LOCALIZABLE;\n }",
"@ApiModelProperty(example = \"null\", value = \"The API key for 3rd party backends.\")\n public String getBackendKey() {\n return backendKey;\n }",
"DatabaseTypes getDatabaseType();",
"public String getDatabaseType() {\r\n return m_databaseType;\r\n }",
"protected int getClientType() {\n\n return clientType;\n\n }",
"public String getType() \t\t\t\t{ return DATABASE_NAME; }",
"public PlatformType getPlatformType();",
"private JComboBox getJComboBoxDbType() {\r\n\t\tif (jComboBoxDbType == null) {\r\n\t\t\tString [] dbType = new String[]{\"Mysql\",\"Oracle\",\"Access\"}; \r\n\t\t\tjComboBoxDbType = new JComboBox(dbType);\r\n\t\t\tjComboBoxDbType.setBounds(new Rectangle(537, 36, 120, 23));\r\n\t\t}\r\n\t\treturn jComboBoxDbType;\r\n\t}",
"public String getCreatePlatform() {\n return createPlatform;\n }",
"@Override\r\n\tpublic int type() {\n\t\treturn Packets.CREATE;\r\n\t}",
"@Deprecated\n public V1IngressBackend getDefaultBackend();",
"java.lang.String getPkiType();",
"public String Type()\t{\r\n\t\treturn BrickFinder.getDefault().getType();\r\n\t}",
"public void setDBType(String dbType) {\r\n this.dbType = dbType;\r\n }",
"public String getBusinessType() {\n\t\treturn businessType;\n\t}",
"public String getType() {\n return DATABASE_NAME;\n }",
"Coding getType();",
"java.lang.String getAppType();",
"public String getBankAccountType();",
"public ServerTypeEnum getServerType()\n {\n return coreSchemaSelectionWidget.getServerType();\n }",
"org.tensorflow.proto.framework.FullTypeId getTypeId();",
"@ApiModelProperty(example = \"WLAN\", value = \"WLAN / LAN / ...\")\n public String getConnectionType() {\n return connectionType;\n }",
"public String getType() {\n\t\treturn TYPE_NAME;\n\t}",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"public ClientType getType() {\n return type;\n }",
"public String getClientType() {\n return (String)getAttributeInternal(CLIENTTYPE);\n }",
"AppengineWebAppType createAppengineWebAppType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public int getType() {\n\t\treturn 1;\r\n\t}",
"public void setBackendConfiguration(BackendConfig backendConfiguration) {\n this.backendConfiguration = backendConfiguration;\n }",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public final String type() {\n return type;\n }",
"public String getType() { return type; }",
"public abstract Class<BE> getBukkitEntityType();",
"com.rpg.framework.database.Protocol.ItemType getType();",
"private static BackendInstanceWrapper backendInstanceWrapper(\r\n final DBInfo theSettings) {\r\n final Iterator<BackendType> beItr = BackendServiceLoader.getInstance()\r\n .availableBackends();\r\n while (beItr.hasNext()) {\r\n final BackendType betype = beItr.next();\r\n if (betype.name().equals(theSettings.backendType())) {\r\n for (final BackendInstance ins : betype.instances()) {\r\n if (ins.name().equals(theSettings.instanceName()))\r\n return new BackendInstanceWrapper(betype.name(),\r\n ins.description(), ins.name(),\r\n theSettings.dbName());\r\n }\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Either Database type :\"\r\n + theSettings.backendType() + \" or Instance :\"\r\n + theSettings.instanceName() + \" not found\");\r\n }",
"@Override\n\tpublic String getDbType() {\n\t\treturn this.dbType;\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"One of the following values will be provided: Payment Settlement Entity (PSE), Electronic Payment Facilitator (EPF), Other Third Party\")\n\n public String getType() {\n return type;\n }",
"@Override\n\tpublic String type() {\n\t\treturn type;\n\t}",
"public void setClientType(Byte clientType) {\r\n this.clientType = clientType;\r\n }",
"public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}",
"public String getGraphType() {\r\n\t\treturn graphType;\r\n\t}",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n return null; //To change body of implemented methods use File | Settings | File Templates.\n }",
"public Integer getPlatformType() {\n return platformType;\n }",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();"
]
| [
"0.6051457",
"0.6025935",
"0.57976735",
"0.5749181",
"0.5721932",
"0.5701675",
"0.5644082",
"0.56234854",
"0.5587276",
"0.5568128",
"0.5558282",
"0.54831266",
"0.5461849",
"0.5461681",
"0.5433639",
"0.542189",
"0.54205453",
"0.5404202",
"0.53754526",
"0.53200144",
"0.5309298",
"0.5286993",
"0.5275997",
"0.525595",
"0.52521014",
"0.5236167",
"0.52292985",
"0.5215205",
"0.5197315",
"0.5185129",
"0.5184115",
"0.5172663",
"0.5170459",
"0.5152004",
"0.51512665",
"0.51510745",
"0.51445377",
"0.5143984",
"0.5136591",
"0.5133542",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51313025",
"0.51277304",
"0.512596",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.51236564",
"0.5116509",
"0.5116418",
"0.5113035",
"0.5109314",
"0.51000994",
"0.5098735",
"0.50977916",
"0.509003",
"0.5087479",
"0.5086915",
"0.50842166",
"0.50772256",
"0.5071066",
"0.5068794",
"0.5067691",
"0.5067691",
"0.5067691",
"0.5067691",
"0.5067691",
"0.5067691"
]
| 0.8108634 | 0 |
The API secret for 3rd party backends. | @ApiModelProperty(example = "null", value = "The API secret for 3rd party backends.")
public String getBackendSecret() {
return backendSecret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSecret();",
"java.lang.String getServerSecret();",
"java.lang.String getSecret();",
"public int getSecret() {\n return secret;\n }",
"String getComponentAppSecret();",
"public String getAppSecret() {\r\n return appSecret;\r\n }",
"public abstract String getSecret();",
"public String getAppsecret() {\n return appsecret;\n }",
"private String key() {\n return \"secret\";\n }",
"@Override\r\n protected String appSecret() {\r\n return \"\";\r\n }",
"com.google.protobuf.ByteString getSecretBytes();",
"public String getSecretKey() {\n return getProperty(SECRET_KEY);\n }",
"public String getClientSecret() {\n return clientSecret;\n }",
"public String getSecretKey() {\n return properties.getProperty(SECRET_KEY);\n }",
"public String getSecretKey() {\n return secretKey;\n }",
"public String getSecretKey();",
"public String getClientSecret() {\n return clientSecret;\n }",
"com.google.protobuf.ByteString\n getServerSecretBytes();",
"public ResourceReference secret() {\n return this.secret;\n }",
"public final String getClientSecret() {\n return clientSecret;\n }",
"public String generateClientSecret() {\n return clientSecretGenerator.generate().toString();\n }",
"public SecretKey getSecretKey() {\n return secretKey;\n }",
"String getSecretByKey(String key);",
"ApiTokenProperty(String seed) {\n apiToken = Secret.fromString(seed);\n }",
"public String getDriveSecretId() {return this.databaseConfig.getProperty(\"driveClientSecret\");}",
"public static String getApiKey() {\n String sep = \"-\";\n String a = BuildConfig.GUARD_A;\n String b = BuildConfig.GUARD_B;\n String c = BuildConfig.GUARD_C;\n String d = BuildConfig.GUARD_D;\n String e = BuildConfig.GUARD_E;\n return b+sep+a+sep+d+sep+c+sep+e;\n }",
"byte[] get_node_secret();",
"public String getSecretWord() {\r\n return \"DEFAULT\";\r\n }",
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"public String getSecretWord()\n {\n return OriginSecretWord;\n }",
"void setComponentAppSecret(String componentAppSecret);",
"protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}",
"protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}",
"public static byte[] getSecret()\r\n/* 136: */ {\r\n/* 137: */ try\r\n/* 138: */ {\r\n/* 139:122 */ return getPropertyBytes(\"secret\");\r\n/* 140: */ }\r\n/* 141: */ catch (Exception e)\r\n/* 142: */ {\r\n/* 143:124 */ log.warning(\"Error getting secret: \" + e.getMessage());\r\n/* 144: */ }\r\n/* 145:126 */ return new byte[0];\r\n/* 146: */ }",
"public interface Secret extends ModelEntity, Buildable<SecretCreateBuilder> {\n\n /**\n * @return algorithm.\n */\n String getAlgorithm();\n\n /**\n * @return bit length of the secret. Must be greater than zero.\n */\n Integer getBitLength();\n\n /**\n * @return content type of the secret.\n */\n Map<String, String> getContentTypes();\n\n /**\n * @return system generated creation time.\n */\n Date getCreateTime();\n\n /**\n * @return system generated last update time.\n */\n Date getUpdateTime();\n\n /**\n * @return user uuid of the creator of this secret.\n */\n String getCreatorId();\n\n /**\n * @return expiration of the secret.\n */\n Date getExpiration();\n\n /**\n * @return mode of the secret.\n */\n String getMode();\n\n /**\n * @return name of the secret.\n */\n String getName();\n\n /**\n * @return URL reference to the secret.\n */\n String getSecretReference();\n\n /**\n * @return secret type.\n */\n String getSecretType();\n\n /**\n * @return current status of the secret.\n */\n String getStatus();\n\n /**\n * @return stored secret data.\n */\n String getPayload();\n\n /**\n * @return content type of the secret data.\n */\n String getPayloadContentType();\n\n /**\n * @return encoding used for the data.\n */\n String getPayloadContentEncoding();\n}",
"public String getAccessSecret () {\n\t\treturn this.accessSecret;\n\t}",
"public static SecretKey getAdminSigningKey() {\n return adminSigningKey;\n }",
"public String getAccessKeySecret() {\n return accessKeySecret;\n }",
"DBOOtpSecret storeSecret(Long userId, String secret);",
"public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;",
"public String getApiKey(){\n\t\treturn apiKey;\n\t}",
"private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }",
"public String getApiKey() {\n return apiKey;\n }",
"@Schema(required = true, description = \"Secret string for signature generation\")\n public String getSignatureSecret() {\n return signatureSecret;\n }",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"public static SecretKey getAdminLoggingKey() {\n return adminLoggingKey;\n }",
"public String generateApiKey() {\r\n\t\t\r\n\t\tString key = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < API_LENGTH; i++) {\r\n\t\t\tchar letter = (char) (Math.random() * (90 - 65 + 1) + 65);\r\n\t\t\tkey += letter;\r\n\t\t}\r\n\t\t\r\n\t\treturn key;\r\n\t}",
"protected byte[] engineSharedSecret() throws KeyAgreementException {\n return Util.trim(ZZ);\n }",
"public static SecretKey getAdminEncryptionKey() {\n return adminEncryptionKey;\n }",
"public interface SecretService {\n\n SecretDto getSecret(String id, SignType type);\n\n Boolean isInnerApplications(String appId, SignType signType);\n\n}",
"private String getApiKey() throws IOException {\n Properties prop = new Properties();\n InputStream loader = getClass().getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(loader);\n\n return prop.getProperty(\"apiKey\");\n }",
"public String getApiKey() {\n\t\treturn apiKey;\n\t}",
"public Secret readSecret(final ArtifactVersion version);",
"@GetMapping(\"/here\")\n public String getHereKey() {\n return properties.getHereApiKey();\n }",
"@ApiModelProperty(example = \"null\", value = \"The API key for 3rd party backends.\")\n public String getBackendKey() {\n return backendKey;\n }",
"public String keyVaultSecretId() {\n return this.keyVaultSecretId;\n }",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"public String getApiKey() {\n\t\treturn this.apiKey;\t// may return null, this is fine.\n\t}",
"public String getAppKey() {\n return appKey;\n }",
"String getApiKey() {\n return interceptorManager.isPlaybackMode() ? \"apiKeyInPlayback\"\n : Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_API_KEY);\n }",
"synchronized SecretKey loadSecretKeyForEncryption() throws IOException,\n GeneralSecurityException {\n final byte[] secretKeyData = AuthenticationSettings.INSTANCE.getSecretKeyData();\n return loadSecretKeyForEncryption(secretKeyData == null ? VERSION_ANDROID_KEY_STORE : VERSION_USER_DEFINED);\n }",
"public String getKmsSecretKey() {return this.databaseConfig.getProperty(\"kmsSecretKey\");}",
"public static String getRequestTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN_SECRET, null);\n\t\t}",
"public String getDynamoDbSecretKey() {return this.databaseConfig.getProperty(\"dynamoDbSecretKey\");}",
"public void setAppsecret(String appsecret) {\n this.appsecret = appsecret;\n }",
"private String base32EncodedUtf8BytesOfSecret(String secret) {\n return base32().encode(secret.getBytes(StandardCharsets.UTF_8));\n }",
"public void setClientSecret(Secret secret) {\n this.clientSecret = secret;\n }",
"public void createSecret(final ArtifactVersion version, final Secret secret);",
"void touchSecret(Long secretId);",
"private static String generateSecret(Accessor accessor, Consumer consumer) {\n return generateHash(accessor.getToken() + consumer.getSecret() + System.nanoTime());\n }",
"@Override\n public boolean isSecretRequired() {\n\t return getClientSecret() != null;\n }",
"private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }",
"public RgwAdminBuilder secretKey(String secretKey) {\n this.secretKey = secretKey;\n return this;\n }",
"public final byte[] secret() {\n try {\n ByteSequence seq = new ByteSequence(this.sequence());\n seq.append(this._domainNameSeq);\n seq.append(this._creatorCert.getEncoded());\n return seq.sequence();\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }",
"public boolean isSecret() {\r\n \treturn false;\r\n }",
"public String getSecretAccessKey() {\n return cred.getAWSSecretKey();\n }",
"public static String getAccessTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN_SECRET, null);\n\t\t}",
"public String getIdentityCardSecret() {\n return identityCardSecret;\n }",
"void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }",
"private byte[] getTokenKey() throws InternalSkiException {\n return sysKey(TOKEN_KEY);\n }",
"public String getChiffreSecret() {\r\n\t\treturn this.chiffreSecret;\r\n\t}",
"public String getAppAeskey() {\r\n return appAeskey;\r\n }",
"public String getAppKey(Integer appId) {\n\t\treturn \"d3d1f52452be41aaa1b68e33d59d0188\";\n\t}",
"public Secret() {\n\n\t}",
"public String getSecretArn() {\n return this.secretArn;\n }",
"public void setSecretKey(String secretKey) {\n this.secretKey = secretKey;\n }",
"public byte[] get_node_secret() {\n\t\tbyte[] ret = bindings.KeysInterface_get_node_secret(this.ptr);\n\t\treturn ret;\n\t}",
"public SecretBase password() {\n return this.password;\n }",
"public SecretBase password() {\n return this.password;\n }",
"public static Pair<String, String> dummyApiKeyAndDb() {\n return new Pair<>(dummyApiKey(),\n \"2a1099049fd8653247c5ea42bOIajMRhH0R0FcBwJZM4ca7zj6HAq1ZDS\");\n }",
"public static char[] getSecretKey(Context context) {\n StringBuilder builder = new StringBuilder(0x10000);\n\n builder.append(context.getPackageName());\n builder.append(Constants.HIPHEN);\n\n String appendToken = getDeviceTokenID(context);\n try {\n if (appendToken.length() > 10) {\n appendToken = appendToken.substring(2, 10);\n }\n } catch (Exception e) {\n AppUtils.debugThrowable(TAG, e);\n }\n builder.append(Constants.LEFTSQUAREBRACKET);\n builder.append(appendToken);\n builder.append(Constants.RIGHTSQUAREBRACKET);\n\n return builder.toString().toCharArray();\n\n }",
"public int[] getSecretNumber() {\r\n \r\n //Return Value\r\n return secretNumber;\r\n \r\n }",
"Object getAuthInfoKey();",
"public String getPrincipalSecret() {\n\t\treturn principalSecret;\n\t}",
"String getComponentAesKey();",
"public String getKey() { return \"thaumcraft.CLOUD\"; }",
"public Long getAPIID()\r\n {\r\n return APIID;\r\n }",
"public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }",
"public interface Constant {\n\n String JWT_SECRET = \"jwtsecret\";\n\n long EXP_TIME_LENGTH = 86400000;\n}",
"Pokemon.RequestEnvelop.AuthInfo.JWT getToken();"
]
| [
"0.7661615",
"0.7606546",
"0.75922054",
"0.75657994",
"0.7461036",
"0.7438245",
"0.7390463",
"0.7308486",
"0.7279034",
"0.7274237",
"0.70567036",
"0.6960873",
"0.69445384",
"0.6940024",
"0.69308996",
"0.69165856",
"0.6849778",
"0.6809568",
"0.67962915",
"0.67874974",
"0.6772562",
"0.6748829",
"0.6617242",
"0.6510004",
"0.6490037",
"0.6474651",
"0.6440143",
"0.6434092",
"0.63675797",
"0.63649577",
"0.63566965",
"0.6332376",
"0.632946",
"0.62678015",
"0.6260789",
"0.6251993",
"0.6248615",
"0.6230961",
"0.61948156",
"0.6172893",
"0.6153711",
"0.6146419",
"0.6129246",
"0.60888076",
"0.60855925",
"0.6079633",
"0.6028735",
"0.60212994",
"0.60165244",
"0.59869605",
"0.59397584",
"0.5935397",
"0.5926472",
"0.5903114",
"0.5892831",
"0.58699536",
"0.58673483",
"0.5857263",
"0.58415616",
"0.58276176",
"0.58275145",
"0.5799761",
"0.5794678",
"0.57921827",
"0.5790805",
"0.5782893",
"0.57808024",
"0.5780459",
"0.57792306",
"0.5775359",
"0.5775147",
"0.576797",
"0.5766961",
"0.5753315",
"0.5748257",
"0.57404333",
"0.5688024",
"0.5677036",
"0.5656843",
"0.5638617",
"0.5632495",
"0.56176096",
"0.56041527",
"0.55939806",
"0.55831",
"0.5582315",
"0.55762935",
"0.5549295",
"0.5549295",
"0.5544635",
"0.55290645",
"0.55067545",
"0.54975486",
"0.54901713",
"0.5481938",
"0.54697144",
"0.5462963",
"0.5448397",
"0.54397464",
"0.5387026"
]
| 0.74185044 | 6 |
The API key for 3rd party backends. | @ApiModelProperty(example = "null", value = "The API key for 3rd party backends.")
public String getBackendKey() {
return backendKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}",
"protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}",
"public String getApiKey() {\n return apiKey;\n }",
"String getApiKey() {\n return interceptorManager.isPlaybackMode() ? \"apiKeyInPlayback\"\n : Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_API_KEY);\n }",
"public String getApiKey(){\n\t\treturn apiKey;\n\t}",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"public String getApiKey() {\n\t\treturn apiKey;\n\t}",
"public String getApiKey() {\n\t\treturn this.apiKey;\t// may return null, this is fine.\n\t}",
"public static String getApiKey() {\n String sep = \"-\";\n String a = BuildConfig.GUARD_A;\n String b = BuildConfig.GUARD_B;\n String c = BuildConfig.GUARD_C;\n String d = BuildConfig.GUARD_D;\n String e = BuildConfig.GUARD_E;\n return b+sep+a+sep+d+sep+c+sep+e;\n }",
"public String generateApiKey() {\r\n\t\t\r\n\t\tString key = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < API_LENGTH; i++) {\r\n\t\t\tchar letter = (char) (Math.random() * (90 - 65 + 1) + 65);\r\n\t\t\tkey += letter;\r\n\t\t}\r\n\t\t\r\n\t\treturn key;\r\n\t}",
"public String getAppKey() {\n return appKey;\n }",
"private String getApiKey() throws IOException {\n Properties prop = new Properties();\n InputStream loader = getClass().getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(loader);\n\n return prop.getProperty(\"apiKey\");\n }",
"public static void setAPIkey(String key) {\n\t\tkey1 = key;\r\n\r\n\r\n\t}",
"java.lang.String getClientKey();",
"private String key() {\n return \"secret\";\n }",
"Object getAuthInfoKey();",
"@GetMapping(\"/here\")\n public String getHereKey() {\n return properties.getHereApiKey();\n }",
"java.lang.String getPublicEciesKey();",
"public String getApiKey() {\n\t\treturn openWeatherApiKey;\n\t}",
"public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }",
"public String getKey() { return \"thaumcraft.CLOUD\"; }",
"public String getAppKey(Integer appId) {\n\t\treturn \"d3d1f52452be41aaa1b68e33d59d0188\";\n\t}",
"public Key getKey() {\n\t\treturn getKey(settings, url);\n\t}",
"public static String fetchAppIdFrom(String apiKey) {\n String secondSegment = substringBetween(apiKey, \".\", \".\");\n String appId = \"\";\n try {\n String decodedAK = decodeString(secondSegment);\n JSONObject jwt = new JSONObject(decodedAK);\n JSONObject account = jwt.getJSONObject(\"data\").getJSONObject(\"account\");\n appId = account.getString(\"id\");\n } catch (Exception e) {\n NearLog.e(\"NearITErrors\", \"Error while processing NearIT API token. Please check if you are using the correct key.\");\n }\n return appId;\n }",
"public Object externalApiKeys() {\n return this.externalApiKeys;\n }",
"public String getTlsKey();",
"private String encode(APIKey apiKey) {\n if (!signer.sign(apiKey)) {\n return null;\n }\n\n String json = apiKey.toJson();\n String base64 = new String(Base64.getEncoder().encode(json.getBytes()));\n return String.format(\"%s.%s\", base64, apiKey.getApiKeySignature());\n }",
"protected abstract String getUseProjectKey();",
"protected String getKey() {\n\t\treturn makeKey(host, port, transport);\n\t}",
"String getComponentAppSecret();",
"String getComponentAesKey();",
"@Override\n\tpublic String getKey() {\n\t\t LiuLiang_Key = Util.getMaiYuanConfig(\"LiuLiang_Key\");\n\t\treturn LiuLiang_Key;\n\t}",
"long getApikeyOpId();",
"@Override\r\n\tpublic BittrexKeyUtil getApiKey(RWLoginDetail userDetail) {\r\n\t\treturn accountDataDao.getApiKey(userDetail);\r\n\t}",
"public static String getApiUrl() {\n return API_URL;\n }",
"public final String mo1957a() {\n return \"type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey\";\n }",
"@ApiModelProperty(example = \"null\", value = \"The API secret for 3rd party backends.\")\n public String getBackendSecret() {\n return backendSecret;\n }",
"@ApiModelProperty(value = \"Key of the peer project of the service desk.\")\n public String getProjectKey() {\n return projectKey;\n }",
"public void setAPIKey(String APIKey)\r\n {\r\n this.APIKey = APIKey == null ? null : APIKey.trim();\r\n }",
"public String getAPIName() {\r\n return apiName;\r\n }",
"public String getSecretKey();",
"public String getAppAeskey() {\r\n return appAeskey;\r\n }",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"public Long getAPIID()\r\n {\r\n return APIID;\r\n }",
"public void setApiKey(String apiKey) {\n\t\tthis.apiKey = apiKey;\n\t}",
"java.lang.String getPubkey();",
"public GoogleAPI() {\n try {\n ytService = getService();\n } catch (GeneralSecurityException | IOException e) {\n e.printStackTrace();\n }\n DEVELOPER_KEY = DEVELOPER_KEY_Junwei;\n }",
"public interface KeyPairProvider {\n\n KeyPair getJWTKey();\n\n /**\n * Get a key with the specified alias;\n * If there is no key of this alias, return\n * {@code null}\n *\n * @param alias the alias of key to load\n * @return a valid key pair or {@code null} if a key with this alias is not available\n */\n KeyPair getKey(String alias);\n}",
"public static String generateApiKey(String name) throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + name + Utility.generateToken(8));\n\t}",
"public static String getQueryParameterApiKey(Locale locale, Request request) throws BadRequestException {\n\t\treturn getQueryParameter(locale, request, \"apiKey\", true);\n\t}",
"public String getApiToken() {\n return apiToken;\n }",
"public String apiId() {\n return this.innerProperties() == null ? null : this.innerProperties().apiId();\n }",
"@GetMapping(\"/nrel\")\n public String getNrelKey() {\n return properties.getNrelApiKey();\n }",
"int getProductKey();",
"private static String getAuthorizationKey() {\n\n\t\t// Get valid authentication key from Environment\n\t\tString validAuthKey = AUTHORIZATION_KEY;\n\t\tif (String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\")) != \"null\"){\n\t\t\tvalidAuthKey = String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\"));\n\t\t}\n\n\t\treturn validAuthKey;\n\t}",
"private String getKey(final PushToken token) throws UnsupportedEncodingException {\n final String sKey = new StringBuilder().append(\"/\").append(token.getTenantKey()).append(\"/\")\n .append(token.getUserId()).toString();\n\n return sKey;\n }",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"String activity_key () throws BaseException;",
"String getSecretByKey(String key);",
"private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }",
"protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }",
"public static SecretKey getAdminSigningKey() {\n return adminSigningKey;\n }",
"public void addKeyParameter() {\n\t Parameter param = RestFactoryImpl.eINSTANCE.createParameter();\n\t param.setParameterName(PARAMETER_KEY);\n\t param.setParameterValue(PIXABAY_API_KEY);\n\t\tparam.setName(\"Key\");\n\t\tthis.listOfParameters.add(param);\t\n\t\tthis.keyParameter = param;\n\t}",
"public long getApikeyOpId() {\n return apikeyOpId_;\n }",
"java.lang.String getApiUrl();",
"public static Pair<String, String> dummyApiKeyAndDb() {\n return new Pair<>(dummyApiKey(),\n \"2a1099049fd8653247c5ea42bOIajMRhH0R0FcBwJZM4ca7zj6HAq1ZDS\");\n }",
"public String resource_key () throws BaseException {\n return username;\n }",
"public CryptoKey getMyKey() {\n return myKey;\n }",
"OpenSSLKey mo134201a();",
"com.google.protobuf.ByteString\n getClientKeyBytes();",
"public String accessKey() {\n return this.accessKey;\n }",
"public String getMainKey() {\r\n return mainKey;\r\n }",
"public GenerateKey() {\n\t\tsuper(\"generate_key\", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(LICENSE_DATE);\n\t\taddInParameter(EMAIL);\n\t}",
"public String getApiBase() {\n\t\treturn apiBase;\n\t}",
"public long getApikeyOpId() {\n return apikeyOpId_;\n }",
"private byte[] getTokenKey() throws InternalSkiException {\n return sysKey(TOKEN_KEY);\n }",
"public BittrexApi() {\n this.apiKey = config.getVariable(\"BITTREX_API_KEY\");\n this.secretKey = config.getVariable(\"BITTREX_SECRET_KEY\");\n }",
"java.lang.String getServerSecret();",
"public String getSecretKey() {\n return secretKey;\n }",
"public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }",
"public String getApiUrl();",
"public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }",
"ApiKeys listKeys();",
"public String getSecretKey() {\n return getProperty(SECRET_KEY);\n }",
"public final String getKey() {\n return key;\n }",
"public IntegrationRuntimeAuthKeyName keyName() {\n return this.keyName;\n }",
"public String getJsonKey()\n {\n return jsonKey;\n }",
"public String key() {\n return key;\n }",
"public String key() {\n return key;\n }",
"private byte[] getSystemKey() throws InternalSkiException {\n return sysKey(SYSTEM_KEY);\n }",
"public String getAppId();",
"protected static String getKeyStoreAlias() {\n return keyStoreAlias;\n }",
"public String getSecretKey() {\n return properties.getProperty(SECRET_KEY);\n }",
"String getLicenseKey() {\n return null;\n }",
"public static byte[] getKey() {\n return key;\n }"
]
| [
"0.7597696",
"0.72513473",
"0.7221289",
"0.7200736",
"0.7141865",
"0.7137327",
"0.7118843",
"0.7032716",
"0.69137216",
"0.68321735",
"0.6616334",
"0.65218216",
"0.6365619",
"0.6358531",
"0.6200353",
"0.61858946",
"0.6170791",
"0.6169991",
"0.6158798",
"0.6150306",
"0.61335564",
"0.6071715",
"0.60521865",
"0.6049398",
"0.6039243",
"0.6036849",
"0.60052586",
"0.5990106",
"0.59471786",
"0.5910497",
"0.5870878",
"0.5865006",
"0.58316654",
"0.5824717",
"0.58069116",
"0.57703906",
"0.5754637",
"0.5745786",
"0.57181025",
"0.5706813",
"0.5697743",
"0.5687863",
"0.5685044",
"0.5675843",
"0.56489724",
"0.56404287",
"0.56262726",
"0.560693",
"0.5600895",
"0.5600157",
"0.5595403",
"0.5589923",
"0.55848503",
"0.55758965",
"0.55369127",
"0.55285263",
"0.55207485",
"0.5518411",
"0.5515718",
"0.55113584",
"0.5491396",
"0.5488355",
"0.5479126",
"0.54673135",
"0.54634947",
"0.54505366",
"0.5433895",
"0.5424436",
"0.5412191",
"0.53912926",
"0.5391109",
"0.53837204",
"0.5366942",
"0.5360158",
"0.5340125",
"0.5340099",
"0.53320897",
"0.5325629",
"0.53110117",
"0.53064895",
"0.53058946",
"0.5300385",
"0.52980536",
"0.52909213",
"0.52838343",
"0.52818835",
"0.5264994",
"0.52645206",
"0.526171",
"0.52574384",
"0.5245897",
"0.5237997",
"0.523616",
"0.523616",
"0.52278817",
"0.5225343",
"0.5223589",
"0.52225965",
"0.52205294",
"0.52177566"
]
| 0.7021664 | 8 |
The backend that is used for when properties are not set. This allows credentials to be set at one backend and used by multiple backends. | @ApiModelProperty(example = "null", value = "The backend that is used for when properties are not set. This allows credentials to be set at one backend and used by multiple backends.")
public String getParentId() {
return parentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}",
"public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }",
"@ApiModelProperty(example = \"null\", value = \"The type of backend that is created. This field allows users to create a local backend or with supported 3rd parties.\")\n public BackendTypeEnum getBackendType() {\n return backendType;\n }",
"@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }",
"public ApplicationGatewayBackendHttpSettings backendHttpSettings() {\n return this.backendHttpSettings;\n }",
"@ApiModelProperty(example = \"null\", value = \"The API secret for 3rd party backends.\")\n public String getBackendSecret() {\n return backendSecret;\n }",
"public void backend (String backend) {\n if (isRunning ())\n throw new IllegalArgumentException (\"Can not change the backend of a running server\");\n\n this.backend = backend;\n }",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"String backend();",
"@ApiModelProperty(example = \"null\", value = \"The API key for 3rd party backends.\")\n public String getBackendKey() {\n return backendKey;\n }",
"public UserResource()\n {\n backend_ = (Backend) getApplication().getContext().getAttributes()\n .get(\"backend\");\n }",
"@Deprecated\n public V1IngressBackend getDefaultBackend();",
"public void setBackendConfiguration(BackendConfig backendConfiguration) {\n this.backendConfiguration = backendConfiguration;\n }",
"protected BackendContext getBackendContext() {\n assertActivityNotNull();\n return mActivity.getBackendContext();\n }",
"@BindAttribute(name = \"backendUrl\")\n\tpublic void setBackendUrl(String backendUrl) {\n\t\tthis.backendUrl = backendUrl;\n\t}",
"public static BackendFactory getInstance() {\n return INSTANCE;\n }",
"@Updatable\n public Set<BackendHttpConfiguration> getBackendHttpConfiguration() {\n if (backendHttpConfiguration == null) {\n backendHttpConfiguration = new HashSet<>();\n }\n\n return backendHttpConfiguration;\n }",
"public static EBackendType getBackendByName(String name) {\n\t\treturn availableBackends().filter(backend -> backend.cc_name.equalsIgnoreCase(name)).findFirst().orElse(EBackendType.DEFAULT);\n\t}",
"public Integer backendPort() {\n return this.backendPort;\n }",
"@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageKeyLookupStrategy() {\n return storageKeyLookupStrategy;\n }",
"public Optional<AuthLoginAzure> authLoginAzure() {\n return Codegen.objectProp(\"authLoginAzure\", AuthLoginAzure.class).config(config).get();\n }",
"public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }",
"public Optional<AuthLoginGcp> authLoginGcp() {\n return Codegen.objectProp(\"authLoginGcp\", AuthLoginGcp.class).config(config).get();\n }",
"@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageContextLookupStrategy() {\n return storageContextLookupStrategy;\n }",
"Future<GetBackendResponse> getBackend(\n GetBackendRequest request, AsyncHandler<GetBackendRequest, GetBackendResponse> handler);",
"public TempletSetting getBackEnd() {\n\t\treturn backEnd;\n\t}",
"public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }",
"java.lang.String getTenant();",
"public Gateway setBackendMid(java.lang.String backendMid) {\n return genClient.setOther(backendMid, CacheKey.backendMid);\n }",
"public DatabaseBackend(Context context) {\n super(context, Db_name, null, Db_version);\n }",
"private DatabaseProvider getDatabaseProvider() {\n return new DatabaseProvider(\n System.getProperty(\"url\"),\n System.getProperty(\"user\"),\n System.getProperty(\"password\")\n );\n }",
"public String getDatabase() {\r\n \t\treturn properties.getProperty(KEY_DATABASE);\r\n \t}",
"public String getTenant()\n {\n return tenant;\n }",
"public final String getAwsCredentialsProviderService() {\n return properties.get(AWS_CREDENTIALS_PROVIDER_SERVICE_PROPERTY);\n }",
"public String getTenant() {\n if ( this.token == null || this.token.isEmpty())\n return null;\n JsonObject pl = this.getPayload();\n if ( pl == null )\n return null;\n String tenant = pl.getString(\"tenant\");\n return tenant;\n }",
"public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}",
"protected BackendModule(){ }",
"private static BackendInstanceWrapper backendInstanceWrapper(\r\n final DBInfo theSettings) {\r\n final Iterator<BackendType> beItr = BackendServiceLoader.getInstance()\r\n .availableBackends();\r\n while (beItr.hasNext()) {\r\n final BackendType betype = beItr.next();\r\n if (betype.name().equals(theSettings.backendType())) {\r\n for (final BackendInstance ins : betype.instances()) {\r\n if (ins.name().equals(theSettings.instanceName()))\r\n return new BackendInstanceWrapper(betype.name(),\r\n ins.description(), ins.name(),\r\n theSettings.dbName());\r\n }\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Either Database type :\"\r\n + theSettings.backendType() + \" or Instance :\"\r\n + theSettings.instanceName() + \" not found\");\r\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"public BackendClient loadClient() {\r\n final Injector inject = Guice.createInjector(new AbstractModule() {\r\n\r\n /*\r\n * (non-Javadoc)\r\n * \r\n * @see com.google.inject.AbstractModule#configure()\r\n */\r\n @Override\r\n protected void configure() {\r\n try {\r\n\r\n bind(BackendClient.class);\r\n if (verboseStream != null) {\r\n bind(PrintStream.class).annotatedWith(\r\n Names.named(\"verboseStream\")).toInstance(\r\n verboseStream);\r\n }\r\n bind(Boolean.class).annotatedWith(\r\n Names.named(\"verboseflag\")).toInstance(verbose);\r\n\r\n } catch (final Exception e) {\r\n e.printStackTrace();\r\n throw new IllegalStateException(e.getMessage(), e);\r\n }\r\n }\r\n\r\n // TODO: remove the if-else logic and make this more dynamic\r\n /** Provide input reader. */\r\n @Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }\r\n\r\n // TODO: remove the if-else logic and make this more dynamic\r\n @Provides\r\n public DataOutput provideOutputWriter() {\r\n DataOutput out = null;\r\n final PrintWriter oWriter = outWriter;\r\n if ((oWriter != null) && (outputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(outputFormat)) {\r\n out = new CSVDataOutput(oWriter);\r\n } else if (\"json\".equalsIgnoreCase(outputFormat)) {\r\n out = new JSONDataOutput(oWriter);\r\n } else\r\n throw new IllegalArgumentException(\"Output format \"\r\n + outputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n out.verboseOptions(verboseStream, verbose);\r\n }\r\n return out;\r\n }\r\n\r\n /** Provides BackendInstanceWrapper instance to be injected where\r\n * \r\n * @see BackendClient\r\n * @return the backend instance wrapper */\r\n @Provides\r\n @Named(\"source\")\r\n public BackendInstanceWrapper provideSourceWrapper() {\r\n return backendInstanceWrapper(sourceDB);\r\n }\r\n\r\n @Provides\r\n @Named(\"target\")\r\n @Nullable\r\n @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE\")\r\n public BackendInstanceWrapper provideTargetWrapper() {\r\n if (targetDB != null) {\r\n return backendInstanceWrapper(targetDB);\r\n } else\r\n return null;\r\n }\r\n\r\n });\r\n return inject.getInstance(BackendClient.class);\r\n }",
"public String getDbdriver() {\n return dbdriver;\n }",
"@Nullable public String getBucketEndpoint() {\n return bucketEndpoint;\n }",
"public String getDeviceBrokerType() {\n return deviceBrokerType;\n }",
"public JCoConnection getDefaultJCoConnection() throws BackendException;",
"public String getDatabaseEngine() {\n return this.databaseEngine;\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0 ) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }",
"public static String getDefaultMtlsEndpoint() {\n return \"biglake.mtls.googleapis.com:443\";\n }",
"@Override\n\t\tpublic String getScheme() {\n\t\t\treturn null;\n\t\t}",
"public BlobStorageTokenStore azureBlobStorage() {\n return this.azureBlobStorage;\n }",
"private JComboBox getJComboBoxDbType() {\r\n\t\tif (jComboBoxDbType == null) {\r\n\t\t\tString [] dbType = new String[]{\"Mysql\",\"Oracle\",\"Access\"}; \r\n\t\t\tjComboBoxDbType = new JComboBox(dbType);\r\n\t\t\tjComboBoxDbType.setBounds(new Rectangle(537, 36, 120, 23));\r\n\t\t}\r\n\t\treturn jComboBoxDbType;\r\n\t}",
"public Optional<AuthLoginKerberos> authLoginKerberos() {\n return Codegen.objectProp(\"authLoginKerberos\", AuthLoginKerberos.class).config(config).get();\n }",
"public StorageProfile storageProfile() {\n return this.storageProfile;\n }",
"@Override\r\n\tpublic Credential getCredential() {\n\t\treturn null;\r\n\t}",
"public String getRepositoryDatabaseDriver(){\n \t\treturn getProperty(\"org.sagebionetworks.id.generator.database.driver\");\n \t}",
"public SettingConfigStore get() {\n return (SettingConfigStore) c.a(this.f15852a.i(), \"Cannot return null from a non-@Nullable @Provides method\");\n }",
"public BackendService getBackendService(String region, String backendServiceName) {\n BackendService backendService;\n try {\n backendService =\n compute.regionBackendServices().get(project, region, backendServiceName).execute();\n } catch (GoogleJsonResponseException e) {\n log.error(\"Response error = \" + e.getMessage());\n throw new PlatformServiceException(BAD_REQUEST, e.getMessage());\n } catch (IOException e) {\n log.error(\"IO Exception = \" + e.toString());\n throw new PlatformServiceException(INTERNAL_SERVER_ERROR, \"Failed to connect to GCP.\");\n }\n if (backendService == null) {\n throw new PlatformServiceException(\n BAD_REQUEST,\n \"Cannot find backed service (Load balancer) with given name \" + backendServiceName);\n }\n return backendService;\n }",
"public String getDriver() {\n return jdbcDriver;\n }",
"public boolean isNotNullBackendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.backendMid);\n }",
"@Override\n\tpublic String getScheme() {\n\t\treturn null;\n\t}",
"public Optional<AuthLoginAws> authLoginAws() {\n return Codegen.objectProp(\"authLoginAws\", AuthLoginAws.class).config(config).get();\n }",
"public Backend() {\t\t\n\t\tthis.rpc = new HttpPost(Backend.URL_BASE + Backend.URL_PATH_RPC);\n\t\tthis.rpc.setHeader(Backend.HEADER_CONTENT_TYPE, Backend.HEADER_VALUE_CONTENT_TYPE);\n\t\t\n\t\tthis.shutdown = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_SHUTDOWN);\n\t\tthis.ping = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_PING);\n\t\tthis.guid = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_GUID);\n\t\t\n\t\tFile basePath = new File(\"\");\n\t\ttry {\n\t\t\tbasePath = new File(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"/\")).toURI());\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Could not resolve bundle absolute path.\");\n\t\t\tSystem.err.print(e);\n\t\t}\n\t\t\n\t\tthis.processRunner.setProcessPath(new File(basePath, Backend.NODE_PATH).getAbsolutePath());\n\t\tthis.processRunner.setArguments(\n\t\t\tnew File(basePath, Backend.APPLICATION_ENTRY_PATH).getAbsolutePath(),\n\t\t\tBackend.APPLICATION_OPTIONS\n\t\t);\n\t}",
"public String getTccConfigInstrumentOrigin() {\n return \"phoenix\";\n }",
"@Override\n\t\tpublic GraphDatabaseService getGraphDatabase() {\n\t\t\treturn null;\n\t\t}",
"@JsonProperty(\"dbMetastore\")\n public String getDbMetastore() {\n return dbMetastore;\n }",
"public Object credentials() {\n return cred;\n }",
"public String getProtocol()\n {\n ASPManager mgr = getASPManager();\n String protocol = mgr.getAspRequest().getScheme();\n\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[0]))\n protocol = data[0];\n }\n\n return protocol;\n }",
"public BrokerAlgoSpec getAlgoSpec()\n {\n return algoSpec;\n }",
"public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }",
"@Override\n public String getAuthenticationScheme() {\n return \"OAuth2\";\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return WorkflowsStubSettings.defaultCredentialsProviderBuilder();\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public AuthStrategy getAuthStrategy() {\n\t\treturn authStrategy;\n\t}",
"public String getFirefoxProfileTemplate() {\n return firefoxProfileTemplate;\n }",
"public String getJdbcDriver()\n {\n return getDriverDobj() == null ? \"\" : getDriverDobj().getDriver();\n }",
"@Override\n public String resolveCurrentTenantIdentifier() {\n return \"Default\";\n }",
"public String getCredentials();",
"@Override\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tif (isDevelopment()) {\n\t\t\tswitch (this.applicationProperties.getMode()) {\n\t\t\tcase basic:\n\t\t\t\tauth.inMemoryAuthentication().withUser(\"INTW1\").password(\"{noop}intw1\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"ABC\").password(\"{noop}abc\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"JKL\").password(\"{noop}jkl\")\n\t\t\t\t\t\t.and()\n\t\t\t\t\t\t.withUser(\"noWrite\").password(\"{noop}a\");\n\t\t\t\tbreak;\n\t\t\tcase noauth:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public String storageAccount() {\n return this.storageAccount;\n }",
"public JupiterConnector getDefault() {\n if (defaultConnection == null) {\n defaultConnection = new JupiterConnector(this,\n DEFAULT_NAME,\n redis.getPool(DEFAULT_NAME),\n fallbackPools.computeIfAbsent(DEFAULT_NAME, this::fetchFallbackPool));\n }\n\n return defaultConnection;\n }",
"String getStorageVendor();",
"public String getDriveClientId() {return this.databaseConfig.getProperty(\"driveClientId\");}",
"public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }",
"public String getScheme( ) {\n\t\treturn scheme;\n\t}",
"@Nullable public String getStorageContext() {\n return storageContext;\n }",
"public static String getDriver(){\n\t\treturn HIVE_DRIVER;\n\t}",
"@Override\r\n public String getScheme() {\r\n return scheme;\r\n }",
"public boolean hasBackendMid() {\n return genClient.cacheHasKey(CacheKey.backendMid);\n }",
"public String getJdbcDriver() {\n if(isJakartaNamespace()) {\n return \"jakarta.persistence.jdbc.driver\";\n }\n return \"javax.persistence.jdbc.driver\";\n }",
"public void clearBackendMid() {\n genClient.clear(CacheKey.backendMid);\n }",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"public Gateway setAcquiringBackEnd(java.lang.String acquiringBackEnd) {\n return genClient.setOther(acquiringBackEnd, CacheKey.acquiringBackEnd);\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public String getBrowser() {\n String browser = null;\n\n try\n {\n browser = System.getProperty(\"browser\");\n if(browser !=null)\n return browser;\n else\n return prop.getProperty(BROWSER_KEY);\n\n\n }catch(Exception e)\n {\n return prop.getProperty(BROWSER_KEY);\n }\n\n\n }",
"protected AccountStore getAccountStore() {\n return accountStore;\n }",
"public String getBrowser(){\n\t\tif (prop.getProperty(\"browser\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"browser\");\n\t}",
"public String getScheme() {\n return scheme;\n }"
]
| [
"0.658856",
"0.6428878",
"0.6074119",
"0.60657376",
"0.599837",
"0.59759",
"0.59737325",
"0.5945641",
"0.5771679",
"0.57553095",
"0.5702355",
"0.56463516",
"0.55892825",
"0.54608047",
"0.5368457",
"0.53398085",
"0.5308999",
"0.51923424",
"0.51364577",
"0.51052904",
"0.5098181",
"0.5010029",
"0.49957347",
"0.49815923",
"0.49782366",
"0.48849872",
"0.4871887",
"0.48696205",
"0.48496112",
"0.48457822",
"0.483219",
"0.4781075",
"0.47607958",
"0.47468317",
"0.47418195",
"0.4721864",
"0.4716063",
"0.46872303",
"0.46794522",
"0.46753478",
"0.46705067",
"0.46526095",
"0.4620892",
"0.46170107",
"0.45928067",
"0.45910412",
"0.45895427",
"0.45888114",
"0.45825577",
"0.45788598",
"0.45757267",
"0.45714322",
"0.4571166",
"0.45607558",
"0.4555328",
"0.45517987",
"0.4550824",
"0.4549081",
"0.4536054",
"0.45144597",
"0.45118186",
"0.4506817",
"0.45048547",
"0.44880807",
"0.44855714",
"0.44849122",
"0.44766846",
"0.4472479",
"0.44677153",
"0.44628835",
"0.44509774",
"0.44419333",
"0.44419333",
"0.44419333",
"0.44333586",
"0.44235244",
"0.44142467",
"0.4411261",
"0.44108185",
"0.4404493",
"0.4399423",
"0.43944564",
"0.4369663",
"0.43682608",
"0.43536967",
"0.43486413",
"0.43442556",
"0.43440548",
"0.43430588",
"0.43297306",
"0.43287528",
"0.43269816",
"0.43268266",
"0.43254554",
"0.43251926",
"0.43251926",
"0.43181914",
"0.4315142",
"0.43147078",
"0.43101436"
]
| 0.46441552 | 42 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }",
"private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }"
]
| [
"0.7884939",
"0.7549351",
"0.74972624",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987"
]
| 0.0 | -1 |
Obtener Historial de Solicitud de Conexion mediante Id de Solicitud de Conexion | public List<HistorialSolicitudConexion> getHistorialByIdSolicitud(SolicitudConexion solicitudConexion) {
try {
Query query = em.createNamedQuery("HistorialSolicitudConexion.findByIdSolicitudConexion").setParameter("idSolicitudConexion", solicitudConexion);
return query.getResultList();
} catch (Exception e) {
UtilLogger.error(this.getClass().getName() + ".getHistorialByIdSolicitud", e);
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Hashtable obtenerHistoricosSolicitud(Long oidPais, Long oidSolicitud) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - entrada\"); \n BelcorpService belcorpService;\n StringBuffer query = new StringBuffer();\n RecordSet rsHistoricosActuales = null;\n Hashtable hashHistoricos = new Hashtable();\n String clave;\n try {\n belcorpService = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n String codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n try {\n\t\t\tquery.append(\" SELECT \");\n query.append(\" OID_HIST_DTO, DCTO_OID_DESC, SOCA_OID_SOLI_CABE, IMP_FIJO, \");\n query.append(\" IMP_DESC_APLI, VAL_PORC_APLI, VAL_VENT_REAL, VAL_BASE_CALC, VAL_BASE_CALC_ACUM, \");\n query.append(\" MAFA_OID_MATR_FACT, CLIE_OID_CLIE \");\n\t\t\tquery.append(\" FROM \");\n query.append(\" DTO_HISTO_DTO \");\n\t\t\tquery.append(\" WHERE \");\n query.append(\" PAIS_OID_PAIS = ? AND SOCA_OID_SOLI_CABE = ? \");\n Vector parametros = new Vector();\n parametros.add(oidPais);\n parametros.add(oidSolicitud);\n rsHistoricosActuales = belcorpService.dbService.executePreparedQuery(query.toString(), parametros);\n } catch (Exception e) {\n throw new MareException(e,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n for (int i=0; i<rsHistoricosActuales.getRowCount(); i++) {\n DTOHistoricoDescuento dtoHistoricoDescuento = new DTOHistoricoDescuento();\n dtoHistoricoDescuento.setOidHistoricoDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"OID_HIST_DTO\")).toString()));\n dtoHistoricoDescuento.setOidDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"DCTO_OID_DESC\")).toString()));\n dtoHistoricoDescuento.setOidSolicitud(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"SOCA_OID_SOLI_CABE\")).toString()));\n dtoHistoricoDescuento.setImporteFijo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_FIJO\"));\n dtoHistoricoDescuento.setImporteDescuentoAplicado((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_DESC_APLI\"));\n dtoHistoricoDescuento.setPorcentaje((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_PORC_APLI\"));\n dtoHistoricoDescuento.setImporteVentaReal((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_VENT_REAL\"));\n dtoHistoricoDescuento.setBaseCalculo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC\"));\n dtoHistoricoDescuento.setBaseCalculoAcumulada((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC_ACUM\"));\n dtoHistoricoDescuento.setOidMatrizFacturacion(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"MAFA_OID_MATR_FACT\")).toString()));\n dtoHistoricoDescuento.setOidCliente(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"CLIE_OID_CLIE\")).toString()));\n clave = this.obtenerClaveHistorico(dtoHistoricoDescuento);\n hashHistoricos.put(clave, dtoHistoricoDescuento);\n }\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - salida\"); \n return hashHistoricos;\n }",
"BpmInstanciaHistorica selectByPrimaryKey(Long idreg);",
"public ConsumoHistorico obterConsumoHistorico(Integer idImovel, Integer amLeitura) throws ErroRepositorioException;",
"public Integer getPkHistoria() {\n return this.pkHistoria;\n }",
"public Integer getHistroyid() {\n return histroyid;\n }",
"public List<IssqnHistorico> obterHistoricoPorContribuinte(Integer idContribuinte) throws Exception {\n try {\n return repositorio.obterHistoricoPorContribuinte(idContribuinte);\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n }",
"public List getHistoricoCursoDictado(HistoricoCursoDictado historicoCursoDictado);",
"public List<HistoriaLaboral> getHistoriasSanciones(Emp emp);",
"public HistoricoEntity getHistorico(Integer id) {\n return this.entityManager.find(HistoricoEntity.class, id);\n }",
"public FiltroCreditoARealizarHistorico() {\r\n\t}",
"public abstract Long getIdHistoricalWrapper();",
"public Object[] obterConsumoHistoricoAnormalidade(Integer idImovel, Integer idAnormalidade, int anoMes) throws ErroRepositorioException;",
"public Collection<ContaEmissao2Via> pesquisarHistoricoEmissaoSegundaViaContas(Integer idImovel) \n\t\t\tthrows ErroRepositorioException;",
"public List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);",
"public java.lang.String getHistUsuarioId() {\n\t\treturn _pnaAlerta.getHistUsuarioId();\n\t}",
"public String getHistorico() {\n return historico;\n }",
"@Override\n\t@Transactional\n\tpublic HistoriqueCat getCurrentHistoriqueCat(int idper) {\n\t\treturn HistoriqueCatDao.getCurrentHistoriqueCat(idper);\n\t}",
"@Override\n\tpublic Connexion affichageConnexion(int idConnexion) {\n\t\treturn dao.affichageConnexion(idConnexion);\n\t}",
"public JbdSendRecordHist getJbdSendRecordHist(final String id);",
"public void obtenerHistoricoEstatusCliente(Cliente cliente)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerHistoricoEstatusCliente(\"\n +\"Cliente cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT ESTA_OID_ESTA_CLIE, OID_HIST_ESTA, \");\n query.append(\" PERD_OID_PERI, \");\n query.append(\" PERD_OID_PERI_PERI_FIN, \");\n query.append(\" PED.FEC_INIC as PED_FEC_INIC, \");\n query.append(\" PED.FEC_FINA as PED_FEC_FINA, \");\n query.append(\" PED.MARC_OID_MARC as PED_MARC_OID_MARC, \");\n query.append(\" PED.CANA_OID_CANA as PED_CANA_OID_CANA, \");\n query.append(\" PED.PAIS_OID_PAIS as PED_PAIS_OID_PAIS, \");\n query.append(\" PCD.COD_PERI as PCD_COD_PERI, \");\n query.append(\" PEH.FEC_INIC as PEH_FEC_INIC, \");\n query.append(\" PEH.FEC_FINA as PEH_FEC_FINA, \");\n query.append(\" PEH.MARC_OID_MARC as PEH_MARC_OID_MARC, \");\n query.append(\" PEH.CANA_OID_CANA as PEH_CANA_OID_CANA, \");\n query.append(\" PEH.PAIS_OID_PAIS as PEH_PAIS_OID_PAIS, \");\n query.append(\" PCH.COD_PERI as PCH_COD_PERI \");\n query.append(\" FROM MAE_CLIEN_HISTO_ESTAT, \");\n query.append(\" CRA_PERIO PED, \");\n query.append(\" SEG_PERIO_CORPO PCD, \");\n query.append(\" CRA_PERIO PEH, \");\n query.append(\" SEG_PERIO_CORPO PCH \");\n query.append(\" WHERE PERD_OID_PERI = PED.OID_PERI \");\n query.append(\" AND PED.PERI_OID_PERI = PCD.OID_PERI \");\n query.append(\" AND PERD_OID_PERI_PERI_FIN = PEH.OID_PERI(+) \");\n query.append(\" AND PEH.PERI_OID_PERI = PCH.OID_PERI(+) \");\n query.append(\" AND CLIE_OID_CLIE = \").append(cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\" obtenerHistoricoEstatusCliente respuesta \" + respuesta); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setHistoricoEstatusCliente(new HistoricoEstatusCliente[0]);\n } else {\n HistoricoEstatusCliente[] historico = new HistoricoEstatusCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"Pongo un historico\");\n\n Periodo periodoDesde = new Periodo();\n periodoDesde.setOidPeriodo(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PERD_OID_PERI\")).longValue()));\n periodoDesde.setFechaDesde((Date) respuesta\n .getValueAt(i, \"PED_FEC_INIC\"));\n periodoDesde.setFechaHasta((Date) respuesta\n .getValueAt(i, \"PED_FEC_FINA\"));\n periodoDesde.setOidMarca(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PED_MARC_OID_MARC\")).longValue()));\n periodoDesde.setOidCanal(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PED_CANA_OID_CANA\")).longValue()));\n periodoDesde.setOidPais(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PED_PAIS_OID_PAIS\")).longValue()));\n periodoDesde.setCodperiodo((String) respuesta\n .getValueAt(i, \"PCD_COD_PERI\"));\n\n Periodo periodoHasta;\n BigDecimal periodoFin = (BigDecimal) respuesta\n .getValueAt(i, \"PERD_OID_PERI_PERI_FIN\");\n\n if (periodoFin == null) {\n periodoHasta = null;\n } else {\n periodoHasta = new Periodo();\n periodoHasta.setOidPeriodo(new Long(periodoFin\n .longValue()));\n periodoHasta.setFechaDesde((Date) respuesta\n .getValueAt(i, \"PEH_FEC_INIC\"));\n periodoHasta.setFechaHasta((Date) respuesta\n .getValueAt(i, \"PEH_FEC_FINA\"));\n periodoHasta.setOidMarca((respuesta\n .getValueAt(i, \"PEH_MARC_OID_MARC\") != null)\n ? new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PEH_MARC_OID_MARC\")).longValue()) \n : null);\n periodoHasta.setOidCanal((respuesta\n .getValueAt(i, \"PEH_CANA_OID_CANA\") != null) \n ? new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PEH_CANA_OID_CANA\")).longValue()) \n : null);\n periodoHasta.setOidPais((respuesta\n .getValueAt(i, \"PEH_PAIS_OID_PAIS\") != null)\n ? new Long(((BigDecimal) respuesta\n .getValueAt(i, \"PEH_PAIS_OID_PAIS\")).longValue()) \n : null);\n periodoHasta.setCodperiodo((String) respuesta\n .getValueAt(i, \"PCH_COD_PERI\"));\n }\n\n historico[i] = new HistoricoEstatusCliente();\n historico[i].setOidEstatus(respuesta.getValueAt(i, \"ESTA_OID_ESTA_CLIE\")==null?null:\n new Long(((BigDecimal) respuesta.getValueAt(i, \"ESTA_OID_ESTA_CLIE\")).longValue()));\n historico[i].setPeriodoInicio(periodoDesde);\n historico[i].setPeriodoFin(periodoHasta);\n \n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"Pongo un historico historico[i].setOidEs\"\n +\"tatus \" + historico[i].getOidEstatus());\n UtilidadesLog.debug(\"Pongo un historico historico[i].setPerio\"\n +\"doInicio \" + historico[i].getPeriodoInicio());\n UtilidadesLog.debug(\"Pongo un historico historico[i].setPerio\"\n +\"doFin \" + historico[i].getPeriodoFin());\n } \n }\n\n cliente.setHistoricoEstatusCliente(historico);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerHistoricoEstatusCliente(\"\n +\"Cliente cliente):Salida\");\n }",
"public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n // Adding to list\n history.add(glucosedata);\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"public Integer getIdCurso() {\r\n return idCurso;\r\n }",
"public Operacion obtenerOperacion(int id){\n return historialOperaciones.get(id);\n }",
"@Override\n public List<History> getHistories(Long id) {\n return historyRepository.findByProposalIdOrderByCreatedDateDesc(id);\n }",
"public List<ReceiverEntity> obtenerReceiversHora(){\r\n System.out.println(\"Se ejecuta cvapa logica\");\r\n List<ReceiverEntity> receivers = persistence.findByHour();\r\n return receivers;\r\n }",
"public Integer getIdLocacion();",
"public Integer pesquisarSequencialContaHistoricoBoleto(Integer idConta) throws ErroRepositorioException;",
"public ArrayList getStatisticiTot(int id) {\n c = db.rawQuery(\"select st.procent, cr.id from statistici st join caroserii cr ON st.caroserie_id=cr.id where st.id=\" + id , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int procente=c.getInt(0);\n int caroserie=c.getInt(1);\n lista.add(procente);\n lista.add(caroserie);\n }\n return lista;\n }",
"@Override\n public List<FecetProrrogaOrden> getHistoricoProrrogaPorOrden(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SELECT_PRORROGAS_RELACIONES).append(\" INNER JOIN \").append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \");\n query.append(\" ORDER BY P.ID_PRORROGA_ORDEN, FP.ID_FLUJO_PRORROGA_ORDEN \");\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden);\n\n }",
"public Socio getSocioInfo() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\");\n Statement stmt = null;\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM socio\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio(rs.getString(\"nomeSocio\"), rs.getString(\"matSocio\"), rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n \n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getId()>= socioMax.getId() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n\n }\n\n System.out.println(socioMax.getId());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }",
"@GET\n @Path(\"/conciliacion/{id}\")\n @Produces({MediaType.APPLICATION_JSON})\n public List<EscenarioDTO> getByConciliacion(@PathParam(\"id\") int id) {\n logger.log(Level.INFO, \"id:{0}\", id);\n List<EscenarioDTO> lstDTO;\n List<Escenario> lst;\n lst = managerDAO.findByConciliacion(id);\n lstDTO = lst.stream().map(item -> item.toDTO()).distinct().sorted(comparing(EscenarioDTO::getId)).collect(toList());\n List<EscenarioDTO> lstFinal = (List<EscenarioDTO>) (List<?>) lstDTO;\n return lstFinal;\n }",
"public Integer getLogisticsId() {\n return logisticsId;\n }",
"int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;",
"public int getAuditId();",
"public HistoryItemCS getHistoryCS(int id) {\n\n // 1. build query\n Cursor cursor =\n db.query(TABLE_NAME, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[]{String.valueOf(id)}, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 2. if we got results, get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 3. build cs object\n HistoryItemCS historyCS = new HistoryItemCS();\n historyCS.setAddress(cursor.getString(1));\n historyCS.setDistrict(cursor.getString(2));\n historyCS.setDescription(cursor.getString(3));\n historyCS.setType(cursor.getString(4));\n historyCS.setSocket(cursor.getString(5));\n historyCS.setQuantity(cursor.getInt(6));\n historyCS.setLatitude(cursor.getString(7));\n historyCS.setLongitude(cursor.getString(8));\n historyCS.setMatching_index(cursor.getInt(9));\n\n historyCS.setId(cursor.getInt(cursor.getColumnIndexOrThrow(KEY_ID)));\n\n Log.d(\"getHistoryCS(\" + id + \")\", historyCS.toString());\n\n if (cursor != null)\n cursor.close();\n // 5. return book\n return historyCS;\n }",
"Graph getRecentGraph();",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n private List<SensorData> getLastSensorData(Session session, int idConcentrator)\n {\n Query query = session\n .createSQLQuery(\n \"SELECT SensorDatas.idMonitorData FROM SensorDatas, Sensors, Concentrators WHERE SensorDatas.idSensor = Sensors.idSensor AND Sensors.idConcentrator = Concentrators.idConcentrator AND Concentrators.idConcentrator = :id ORDER By SensorDatas.timeStamp DESC LIMIT 1\")\n .setParameter(\"id\", idConcentrator);\n List result = query.list();\n if (result.isEmpty()) {\n return null;\n }\n else\n {\n int idMonitorData = (Integer) result.iterator().next();\n Criteria cr = session.createCriteria(SensorData.class)\n .add(Restrictions.eq(\"monitorData.idMonitorData\", idMonitorData));\n return cr.list();\n }\n }",
"public Collection<HidrometroInstalacaoHistorico> pesquisarDataHidrometroLigacaoEsgoto(\n\t\t\tString idImovel) throws ErroRepositorioException;",
"public int getId_Socio()\r\n {\r\n return id_socio;\r\n }",
"TrackerHistory getTrackerHistory(final Integer id);",
"public Historial_equipo() {\n initComponents();\n\n user = Login.user;\n IDequipo = GestionarEquipos.IDequipo_update;\n\n setTitle(\"Historial del equipo registrado con el ID \" + IDequipo + \" - Sesión de \" + user);\n setSize(850, 630);\n setResizable(false);\n setLocationRelativeTo(null);\n\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\n ImageIcon wallpaper = new ImageIcon(\"src/imagenes/wallpapertech.jpg\");\n Icon icono = new ImageIcon(wallpaper.getImage().getScaledInstance(jLabel_Wallpaper.getWidth(), jLabel_Wallpaper.getHeight(), Image.SCALE_DEFAULT));\n jLabel_Wallpaper.setIcon(icono);\n this.repaint();\n\n try {\n Connection cn = Conexion.conectar();\n PreparedStatement pst = cn.prepareStatement(\"select comentario_historial, dia, mes, annio, insumo, revision_tecnica_de from historial where id_equipo = '\" + IDequipo + \"'\");\n ResultSet rs = pst.executeQuery();\n\n jTable_historial = new JTable(model);\n jScrollPane_historial.setViewportView(jTable_historial);\n\n model.addColumn(\"Comentario\");\n model.addColumn(\"Dia\");\n model.addColumn(\"Mes\");\n model.addColumn(\"Año\");\n model.addColumn(\"Insumo Usado\");\n model.addColumn(\"Registro del Tecnico\");\n\n while (rs.next()) {\n Object[] fila = new Object[6];\n\n for (int i = 0; i < 6; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n model.addRow(fila);\n\n }\n\n cn.close();\n } catch (SQLException e) {\n\n }\n\n }",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public List<HistoricoEntity> historicoLocal(int idLocal) {\n return this.entityManager.createQuery(\"SELECT p FROM HistoricoEntity p where p.idLocal = :id\").setParameter(\"id\", idLocal).getResultList();\n }",
"public void setHistroyid(Integer histroyid) {\n this.histroyid = histroyid;\n }",
"public ArrayList getNumberCaroserii() {\n c = db.rawQuery(\"select caroserie_id from statistici\" , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int id=c.getInt(0);\n lista.add(id);\n }\n return lista;\n }",
"public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }",
"public int getIdCandidatura(){\n return idCandidatura;\n }",
"@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"public List<HistoriaLaboral> getHistoriasQueAfectanDesignacion(Emp emp);",
"int getLogId();",
"public MedicaoHistorico obterMedicaoHistorico(Integer idImovel, Integer amLeitura) throws ErroRepositorioException;",
"private Hashtable actualizarHistorico(Hashtable hashHistoricos, String clave, DTOHistoricoDescuento dtoHistoricoActual) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.actualizarHistorico() - entrada\"); \n DTOHistoricoDescuento dtoHistoricoDescuento;\n //obtenemos el historico de descuento a actualizar\n dtoHistoricoDescuento = (DTOHistoricoDescuento)hashHistoricos.get(clave);\n UtilidadesLog.debug(\"va a actualizar OidDescuento:\" + dtoHistoricoActual.getOidDescuento() + \" OidMatrizFacturacion: \"+ dtoHistoricoActual.getOidMatrizFacturacion() ); \n\n UtilidadesLog.debug(\"HistoricoDescuento dto.getImporteVentaReal(): \" + dtoHistoricoActual.getImporteVentaReal()); \n UtilidadesLog.debug(\"HistoricoDescuento dto.getBaseCalculo(): \" + dtoHistoricoActual.getBaseCalculo()); \n UtilidadesLog.debug(\"HistoricoDescuento dto.getBaseCalculoAcumulada(): \" + dtoHistoricoActual.getBaseCalculoAcumulada()); \n // -> Segun incidencia 21031 estos tres atributos no deben de acumularse.\n dtoHistoricoDescuento.setImporteVentaReal(dtoHistoricoActual.getImporteVentaReal());\n dtoHistoricoDescuento.setBaseCalculo(dtoHistoricoActual.getBaseCalculo());\n dtoHistoricoDescuento.setBaseCalculoAcumulada(dtoHistoricoActual.getBaseCalculoAcumulada());\n\n // -> Acumular los siguientes atributos: porcentajeAplicado, importeFijoDescuento\n // porcentajeAplicado eq porcentaje, (Segun Incidencia 7378:)\n if (dtoHistoricoActual.getPorcentaje() != null) {\n if (dtoHistoricoDescuento.getPorcentaje() == null) {\n dtoHistoricoDescuento.setPorcentaje(new BigDecimal(0)); //valor por defecto\n }\n BigDecimal porcentajeAcc = dtoHistoricoDescuento.getPorcentaje().add(dtoHistoricoActual.getPorcentaje());\n UtilidadesLog.debug(\"HistoricoDescuento porcentajeAcc: \" + porcentajeAcc); \n dtoHistoricoDescuento.setPorcentaje(porcentajeAcc);\n }\n \n //importeFijoDescuento eq importeFijo, \n if (dtoHistoricoActual.getImporteFijo() != null) {\n if (dtoHistoricoDescuento.getImporteFijo() == null) {\n dtoHistoricoDescuento.setImporteFijo(new BigDecimal(0)); //valor por defecto\n }\n BigDecimal importeFijoAcc = dtoHistoricoDescuento.getImporteFijo().add(dtoHistoricoActual.getImporteFijo());\n UtilidadesLog.debug(\"HistoricoDescuento importeFijoAcc: \" + importeFijoAcc); \n dtoHistoricoDescuento.setImporteFijo(importeFijoAcc);\n }\n\n //descuento eq importe descuento aplicado: el porcentaje aplicado a la venta real (porcentaje/100 * venta real)\n BigDecimal importeDescuentoAplicado = new BigDecimal(0);\n if ( (dtoHistoricoDescuento.getPorcentaje() != null ) && (dtoHistoricoDescuento.getImporteVentaReal() != null ) ) {\n importeDescuentoAplicado = (dtoHistoricoDescuento.getPorcentaje().divide(new BigDecimal(100), CANT_DECIMALES, BigDecimal.ROUND_UNNECESSARY).multiply(dtoHistoricoDescuento.getImporteVentaReal()));\n UtilidadesLog.debug(\"HistoricoDescuento importeDescuentoAplicado: \" + importeDescuentoAplicado); \n }\n dtoHistoricoDescuento.setImporteDescuentoAplicado(importeDescuentoAplicado);\n \n UtilidadesLog.info(\"MONHistoricoDTO.actualizarHistorico() - salida\"); \n return hashHistoricos;\n }",
"public History() {\n\tthis.timestampMinute = new Date();\n\tthis.status = false;\n\n }",
"public Collection<HidrometroInstalacaoHistorico> pesquisarDataHidrometroLigacaoAgua(\n\t\t\tString idImovel) throws ErroRepositorioException;",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof HistoricoConsumo)) {\r\n return false;\r\n }\r\n HistoricoConsumo other = (HistoricoConsumo) object;\r\n if ((this.idHistoricoConsumo == null && other.idHistoricoConsumo != null) || (this.idHistoricoConsumo != null && !this.idHistoricoConsumo.equals(other.idHistoricoConsumo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private void grabarHistoricosDescuentos(Hashtable hashHistoricosDescuentos) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.grabarHistoricosDescuentos() - entrada\"); \n DTOHistoricoDescuento dtoHistoricoDescuento;\n BelcorpService bs;\n StringBuffer querySimple = new StringBuffer();\n StringBuffer variasQuerys = new StringBuffer();\n try {\n bs = BelcorpService.getInstance();\n } catch (MareException e) {\n throw new MareException(e,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n Collection historicos = hashHistoricosDescuentos.values();\n Iterator iter = historicos.iterator();\n\n // -> Armamos querys de insert o update segun el oidHistoricoDescuento\n while(iter.hasNext()) {\n dtoHistoricoDescuento = (DTOHistoricoDescuento)iter.next();\n if (dtoHistoricoDescuento.getOidHistoricoDescuento() == null) {\n querySimple = this.armarInsertHisotricoDescuento(dtoHistoricoDescuento); \n } else {\n querySimple = this.armarUpdateHisotricoDescuento(dtoHistoricoDescuento); \n }\n variasQuerys.append(querySimple);\n variasQuerys.append(\";\");\n }\n // -> Ejecutamos multiples inserts y updates \n try {\n bs.dbService.executeProcedure(\"PQ_PLANI.EXECUTOR\", variasQuerys.toString());\n } catch (Exception e) {\n throw new MareException(e,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_ESCRITURA_EN_BASE_DE_DATOS));\n }\n UtilidadesLog.info(\"MONHistoricoDTO.grabarHistoricosDescuentos() - salida\"); \n }",
"public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }",
"@GetMapping(\"/last-connections/{id}\")\n @Timed\n public ResponseEntity<LastConnectionDTO> getLastConnection(@PathVariable Long id) {\n log.debug(\"REST request to get LastConnection : {}\", id);\n LastConnectionDTO lastConnectionDTO = lastConnectionService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(lastConnectionDTO));\n }",
"public void getAllCursosAvanzado() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT id_curso, nombre_curso, familia.nombre_familia as familia, id_profesor FROM curso \"\n + \"INNER JOIN familia ON curso.id_familia = familia.id_familia;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n \n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n String familia = rs.getString(\"familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n \n System.out.format(\"%d,%s,%s,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn getId();\n\t}",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"TrackerHistory loadTrackerHistory(final Integer id);",
"public List<GlucoseData> getHistoryOfDay(Date day) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyyMMdd\");\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n\n Date datadate = sqlDateFormat.parse(glucosedata.getDate());\n // Adding to list\n if(fmt.format(day).equals(fmt.format(datadate))) {\n history.add(glucosedata);\n }\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"@Transient\n @Override\n public Integer getId()\n {\n return this.conservDescriptionId;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", tds=\").append(tds);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", userId=\").append(userId);\n sb.append(\", deviceId=\").append(deviceId);\n sb.append(\"]\");\n return sb.toString();\n }",
"public Object[] consultarDadosConsumoTipoConsumoHistorico(ConsumoHistorico consumoHistorico) throws ErroRepositorioException;",
"public int hashCode() {\n return getId();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Cuota [id=\" + id + \", fechaPago=\" + fechaPago + \", periodo=\" + periodo + \", monto=\" + monto\r\n\t\t\t\t+ \", estado=\" + estado + \", usuario=\" + usuario + \"]\";\r\n\t}",
"List<HistoryData> loadAllHistoryData();",
"public static ArrayList<HistorialNotificacion> listaHistorialNotificaciones_CompletoRealizados(String idModMotocicleta, int kilometraje) {\n ArrayList<HistorialNotificacion> historialNotificacion = new ArrayList<>();\n\n\n Cursor cursor = OperacionesBaseDatos.obtenerHistorialNotificaciones_ListaCompletaRealizadas(idModMotocicleta, kilometraje);\n\n if (cursor.moveToFirst()) {\n do {\n Boolean boolAux;\n if(cursor.getString(4) == null) {\n boolAux = false;\n }\n else {\n boolAux = false;\n }\n historialNotificacion.add(new HistorialNotificacion(null, cursor.getString(0), cursor.getInt(1),\n cursor.getString(2), cursor.getString(3), boolAux, null, null));\n } while (cursor.moveToNext());\n }\n return historialNotificacion;\n }",
"public int getId() {return Id;}",
"@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"@Override\n public int hashCode() {\n return this.id;\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn id;\r\n\t}",
"public Conge find( Integer idConge ) ;",
"public long getIdCargaTienda();",
"public void setPkHistoria(Integer pkHistoria) {\n this.pkHistoria = pkHistoria;\n }",
"public StatusChamado buscarStatusChamado(int id){\n return statusChamadoDAO.buscarPorChave(id);\n }",
"public TelaFuncionario_TelaMenu_GerenciarHistorico() {\n initComponents();\n try {\n listaUsuario = fc.listarTodos();\n } catch (SQLException ex) {\n Logger.getLogger(TelaFuncionario_TelaMenu_GerenciarCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n btSelecionar.setEnabled(false);\n btHabilitar.setEnabled(false);\n }",
"public ResultSet getPatientHistory(int patientId) {\n\t\treturn dbObject.select(\"SELECT `time` as Time, `bglValue` as BGL, injectedUnits FROM `patientHistory` \"); //WHERE patientId=\"+patientId);\n\t}",
"public Collection<CreditoRealizadoHistorico> pesquisarCreditosRealizadoHistorico(\n\t\t\tInteger idImovel,Integer anoMesCobrancaCredito) throws ErroRepositorioException ;",
"private void onGetAllIdentitet(Event<FintResource> responseEvent) {\n Identifikator batmanId = new Identifikator();\n batmanId.setIdentifikatorverdi(\"BATMAN\");\n Identitet batman = new Identitet();\n batman.setSystemId(batmanId);\n responseEvent.addData(FintResource\n .with(batman)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100001\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATMOBILE\").build()));\n\n Identifikator robinId = new Identifikator();\n robinId.setIdentifikatorverdi(\"ROBIN\");\n Identitet robin = new Identitet();\n robin.setSystemId(robinId);\n responseEvent.addData(FintResource\n .with(robin)\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.PERSONALRESSURS).forType(Personalressurs.class).field(\"ansattnummer\").value(\"100002\").build())\n .addRelations(new Relation.Builder().with(Identitet.Relasjonsnavn.RETTIGHET).forType(Rettighet.class).field(\"systemid\").value(\"BATCAVE\").build()));\n }",
"public Factura obtenerFactura(int id ){\n return historialFacturas.get(id);\n }",
"LoginHistory findById( Long id ) ;",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"public int getId() {return id;}",
"@Override\n public RspPermiso getPermisoPorIdPermiso(int idPermiso) {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1 AND id_permiso = '\" + idPermiso + \"'\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n if (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n rspPermiso.setPermiso(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn Integer.parseInt(sid);\n\t}",
"public int getClientePorHora() {\r\n return clientePorHora;\r\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn statusId;\r\n\t}",
"public static Map<Condidate_Profile, Integer> ReturnSeggestionConnections(User user) {\n\t\tMap<Condidate_Profile,Integer> res = new HashMap<Condidate_Profile,Integer>();\n\t\tCondidate_Profile profile = user.getProfil();\n\t\t \n\t\tfor(Connection con : profile.getConnections())\n\t\t{\n\t\t\tfor (Connection concon : con.getConnectedtoCondidate().getConnections())\n\t\t\t{\n\t\t\t\tif(res.containsKey(concon.getConnectedtoCondidate())&&((concon.getConnectedtoCondidate().getId())!=(profile.getId())))\n\t\t\t\t{\n\t\t\t\t\tres.put(concon.getConnectedtoCondidate(), res.get(concon.getConnectedtoCondidate())+1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tres.put(concon.getConnectedtoCondidate(),1);\n\t\t\t\t}\n\t\t}\n\t\t}\n\t\t res = TreemapbyValues.sortByValues(res);\n\t\treturn res;\n\t}",
"public static void ObtenerDatosHistorial_Autoeficacia(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/HistorialAuto\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }"
]
| [
"0.64629054",
"0.604974",
"0.6019108",
"0.5958377",
"0.5815312",
"0.58052725",
"0.56920105",
"0.56821245",
"0.5635125",
"0.55028677",
"0.5495217",
"0.5490588",
"0.5442519",
"0.54074395",
"0.54035795",
"0.5403463",
"0.5392366",
"0.5389729",
"0.53597593",
"0.53479636",
"0.5261352",
"0.52594656",
"0.5226895",
"0.5206669",
"0.51932937",
"0.5151896",
"0.51375324",
"0.5136267",
"0.51360345",
"0.51233447",
"0.51023275",
"0.5096764",
"0.5083482",
"0.5082724",
"0.5080473",
"0.5079387",
"0.50782514",
"0.50738806",
"0.50730485",
"0.5068287",
"0.5053344",
"0.50468576",
"0.50388926",
"0.502802",
"0.5027077",
"0.5025169",
"0.5019677",
"0.5018611",
"0.5014673",
"0.5010816",
"0.50064784",
"0.5003407",
"0.49979773",
"0.49959937",
"0.499486",
"0.49938673",
"0.49915344",
"0.4988037",
"0.49874708",
"0.49858862",
"0.4983195",
"0.4983195",
"0.4983195",
"0.4983195",
"0.4983195",
"0.4983195",
"0.49829412",
"0.49812913",
"0.4981237",
"0.49782917",
"0.4976775",
"0.49725506",
"0.49716362",
"0.49659798",
"0.49628496",
"0.49596524",
"0.4958105",
"0.4958105",
"0.49557984",
"0.49518046",
"0.49466237",
"0.49408382",
"0.49346095",
"0.49254584",
"0.49248236",
"0.4921997",
"0.49215934",
"0.4921",
"0.49138787",
"0.49135637",
"0.4910543",
"0.49077818",
"0.4899939",
"0.4888071",
"0.48841187",
"0.48810175",
"0.48747304",
"0.48706356",
"0.48683837",
"0.48672065"
]
| 0.6342585 | 1 |
Sets the internal fields to the passed values | public FirmClassContainer(ExchangeFirmStruct exchangeFirmStruct, int key) {
this.firmNumber = exchangeFirmStruct.firmNumber;
this.exchange = exchangeFirmStruct.exchange;
this.classKey = key;
hashCode = (firmNumber.hashCode() + exchange.hashCode() + classKey)/3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public static void setInternalState(Object object, Object value, Object... additionalValues) {\n setField(object, value,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(getType(value))));\n if (additionalValues != null && additionalValues.length > 0) {\n for (Object additionalValue : additionalValues) {\n setField(\n object,\n additionalValue,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(\n getType(additionalValue))));\n }\n }\n }",
"public void setAllFields(WritableComparable... values) {\n if (fields.length != values.length) {\n throw new IllegalArgumentException(\"Wrong number (\" + values.length +\n \") of fields for \" + schema);\n }\n for (int col = 0; col < fields.length && col < values.length; ++col) {\n fields[col] = values[col];\n }\n }",
"public void setFields(Map fields_p) throws Exception\r\n {\r\n m_fields = fields_p;\r\n\r\n m_clonedfields = createCloneFromFields(fields_p);\r\n }",
"public static void setInternalState(Object object, String fieldName, Object[] value) {\n setInternalState(object, fieldName, (Object) value);\n }",
"void setFields(Set<F> fields);",
"public void setFields(CacheHolder ch) {\r\n\t\tif (!ch.getWayPoint().equalsIgnoreCase(lastWaypoint)) {\r\n\t\t\tlastWaypoint = ch.getWayPoint();\r\n\t\t\tif (ch.getPos().isValid()) {\r\n\t\t\t\tinpBearing.setText(\"0\");\r\n\t\t\t\tinpDistance.setText(\"0\");\r\n\t\t\t\tcoordInp.set(ch.getPos());\r\n\t\t\t\tsetFields();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public void updateNonDynamicFields() {\n\n\t}",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"@Override\n\tprotected void setParameterValues() {\n\t}",
"public static void setInternalState(Object object, String fieldName, Object[] value) {\n WhiteboxImpl.setInternalState(object, fieldName, value);\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"private void initValues() {\n \n }",
"public static void setInternalState(Object object, String fieldName, Object value, Class<?> where) {\n WhiteboxImpl.setInternalState(object, fieldName, value, where);\n }",
"public static void setInternalState(Object object, String fieldName, Object value, Class<?> where) {\n if (object == null || fieldName == null || fieldName.equals(\"\") || fieldName.startsWith(\" \")) {\n throw new IllegalArgumentException(\"object, field name, and \\\"where\\\" must not be empty or null.\");\n }\n\n final Field field = getField(fieldName, where);\n try {\n field.set(object, value);\n } catch (Exception e) {\n throw new RuntimeException(\"Internal Error: Failed to set field in method setInternalState.\", e);\n }\n }",
"protected void setProjectFields(final ArrayList<Field> fields) {\n\t\tthis._projectFields = fields;\n\t\t\n\t\t\n\t\t// Assign all special fields to their corresponding variables\n\t\tfor (Field field : fields) {\n\t\t\tif (field.getName().equals(\"Function Requirements\")) {\n\t\t\t\t_functionReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Data Requirements\")) {\n\t\t\t\t_dataReq = field;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Performance Requirements\")) {\n\t\t\t\t_performanceReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Glossary\")) {\n\t\t\t\t_glossary = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Parameters\")) {\n\t\t\t\t_fpParameters = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Influences\")){\n\t\t\t\t_fpInfluences = field;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// Calculation\n\t\t_calcMethodEnum = CalculationEnum.notSet;\n\t\t_calcMethodInstance = null;\n\t\t\n\t}",
"public static void setInternalState(Object object, String fieldName, Object value) {\n Field foundField = findFieldInHierarchy(object, fieldName);\n setField(object, value, foundField);\n }",
"void setParameters() {\n\t\t\n\t}",
"public static void setInternalState(Object object, Object value, Class<?> where) {\n setField(object, value,\n findField(object, new AssignableFromFieldTypeMatcherStrategy(getType(value)), where));\n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"public void set(Object requestor, String field);",
"@Override\n public void setField(int id, int value) {\n \n }",
"void setValue4Po(String poFieldName, Object val);",
"void setParameters(Map<String, Object> propertyValues);",
"private void assignment() {\n\n\t\t\t}",
"private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }",
"void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }",
"public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }",
"public static void setInternalState(Object object, Class<?> fieldType, Object value) {\n setField(object, value, findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(fieldType)));\n }",
"public ORM setI(String field, String val) {\n if (this.fields_values == \"\") {\n this.fields_values = field + \"=\" + val;\n } else {\n this.fields_values = this.fields_values + \",\" + field + \"=\" + val;\n }\n // System.out.println(\"after setI: \" + this.fields_values); \n return this;\n }",
"public void setFields(Map<String, String> fields) {\n this.fields = fields;\n }",
"public void setValue(Object val);",
"@Override\n public void setField (String fieldToModify, String value, Double duration) {\n\n }",
"@Override\n public void setValue(Value[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}",
"public void setNewValues(){\n questionT = qMean.getText();\n phoneT = pMean.getText();\n doorT = dMean.getText();\n time = simTime.getText();\n simulation.setTime(time);\n simulation.setD(doorT);\n simulation.setP(phoneT);\n simulation.setQ(questionT);\n }",
"public void setValue(String fieldName, Object value) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n FieldUtils.writeField(field, object, value, true);\n } else {\n logger.error(\"Unable to set value on field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n }",
"public ORM setS(String field, String val) {\n if (this.fields_values == \"\") {\n this.fields_values = field + \"='\" + val + \"'\";\n } else {\n this.fields_values = this.fields_values + \",\" + field + \"='\" + val + \"'\";\n }\n //System.out.println(\"after setS: \" + this.fields_values);\n return this;\n }",
"private void setValues() {\n //Calls for new assessment\n Assessment assessment = new Assessment();\n //Updates the local db assessmentDao with courseID and assessment ID\n assessment = db.assessmentDao().getAssessment(courseID, assessmentID);\n //Gets the assessment details name\n String name = assessment.getAssessment_name();\n //Gets the assessment details type\n String type = assessment.getAssessment_type();\n //Gets the assessment details status\n String status = assessment.getAssessment_status();\n //Gets the assessment details date\n String dDate = DateFormat.format(\"MM/dd/yyyy\", assessment.getAssessment_due_date()).toString();\n boolean alert1 = assessment.getAssessment_alert();\n //Gets the assessment details alert bar\n String alert = \"Off\";\n if (alert1) {\n alert = \"On\";\n }\n //Sets assessment details Name\n adName.setText(name);\n //Sets assessment details type\n adType.setText(type);\n //Sets assessment details status\n adStatus.setText(status);\n //Sets assessment details due date\n adDueDate.setText(dDate);\n //Sets assessment details alert\n adAlert.setText(alert);\n }",
"public static void setInternalState(Object object, Class<?> fieldType, Object value, Class<?> where) {\n if (fieldType == null || where == null) {\n throw new IllegalArgumentException(\"fieldType and where cannot be null\");\n }\n\n setField(object, value, findFieldOrThrowException(fieldType, where));\n }",
"public void setParamValues(Object[] values);",
"public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}",
"default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }",
"public abstract void set(DataType x, DataType y, DataType z);",
"public void setValues(List<Object> values);",
"public static void setInternalState(Object object, String fieldName, Object value) {\n WhiteboxImpl.setInternalState(object, fieldName, value);\n }",
"public void setDependentFields() {\n\t\tboolean saveUnbound = unbound;\n\t\tunbound = true;\n\t\t\n\t\tsetFromDates();\n\t\t\n\t\tunbound = saveUnbound;\n\t}",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"void setValue(Object value);",
"protected void initValuesFromControlRecord() {\n int count = getControlRecords().size();\n for (int i = 0; i < count; i++) {\n setCurrentNbaMibPlanFControl((NbaMibPlanFControl) getControlRecords().get(i));\n if (getCurrentNbaMibPlanFControl().getOrganizationCode().equalsIgnoreCase(getCurrentCarrierCode())) {\n break;\n }\n }\n setStartDate(getCurrentNbaMibPlanFControl().getHighWaterDate());\n setStartRecord(getCurrentNbaMibPlanFControl().getNextRecord());\n }",
"private static void setValue(Object object, String fieldName, Object fieldValue) \n throws NoSuchFieldException, IllegalAccessException {\n \n Class<?> studentClass = object.getClass();\n while(studentClass != null){\n Field field = studentClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n field.set(object, fieldValue);\n //return true;\n } \n //return false;\n }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"@EnsuresNonNull({\"field2\", \"field3\"})\n private void init_other_fields(@UnderInitialization(MyClass.class) MyClass this) {\n field2 = new Object();\n field3 = new Object();\n }",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"private void set(String sEmailTag, String sFirstNameTag, String sIdTag, String sLastNameTag)\r\n\t{\r\n\t\tthis.sEmailTag = sEmailTag;\r\n\t\tthis.sFirstNameTag = sFirstNameTag;\r\n\t\tthis.sIdTag = sIdTag;\r\n\t\tthis.sLastNameTag = sLastNameTag;\r\n\t\t\r\n\t}",
"public void setFieldsByName(String[] fields)\n\t{\n\t\tList<String> localFields = Arrays.asList(fields);\n\t\tsetFieldsByName(localFields);\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }",
"protected void fixateBindings()\r\n\t\t\t\tthrows IllegalArgumentException, IllegalAccessException,\r\n\t\t\t\tNoSuchFieldException, SecurityException {\n\t\t\tfor (Field field : getClass().getDeclaredFields()) {\r\n\t\t\t\t// relax private fields for reflection only\r\n\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\t// search local -> global -> default for set value\r\n\t\t\t\tfield.set(this, evaluateField(field));\r\n\t\t\t}\r\n\t\t}",
"protected void set(Class k,String paramName,Object o) {\n\t\ttry {\n\t\t\tField f=k.getField(paramName);\n\t\t\tf.setAccessible(true);\n\t\t\tf.set(this,o);\n\t\t} catch (Exception x) {\n\t\t\tx.printStackTrace();\n\t\t}\n\t}",
"private void fillMandatoryFields() {\n\n }",
"private void setFields(int year, int month, int day, double hour, boolean calType) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t\tthis.hour = hour;\n\t\tthis.calType = calType;\n\t\tthis.jd = swe_julday(year, month, day, hour, calType);\n\t}",
"public void setValue(Object param1, Object param2) {\n }",
"@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }",
"public void setAllValues(AbstractDomainObject abstractDomain)\r\n\t{\r\n\t}",
"public void setState(String fieldType, String fieldName, Object fieldValue) {\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}",
"public void setValue(Object value) { this.value = value; }",
"public void setParameterValues(Map<String, Object> parameterValues) {\r\n\t\tLOG.info(DOLLAR + INSIDE_METHOD + DOLLAR);\r\n\t\tthis.parameterValues = parameterValues;\r\n\t\tLOG.info(DOLLAR + OUTSIDE_METHOD + DOLLAR);\r\n\t}",
"public static void setInternalState(Object object, Object value, Object... additionalValues) {\n WhiteboxImpl.setInternalState(object, value, additionalValues);\n }",
"@Override\n public void setValue(String[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"public void setParameters(Parameters params) {\n Log.e(TAG, \"setParameters()\");\n //params.dump();\n native_setParameters(params.flatten());\n }",
"public static void setInternalState(Object object, Class<?> fieldType, Object value, Class<?> where) {\n WhiteboxImpl.setInternalState(object, fieldType, value, where);\n }",
"protected abstract void setValues(double[] values);",
"private <T> void setField(Field field, Object object, T fieldInstance) {\n try {\n field.setAccessible(true);\n field.set(object, fieldInstance);\n } catch (IllegalArgumentException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Feld \" + field.getName() + \" ist kein Objekt!\", ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Feld \" + field.getName() + \" ist nicht zugreifbar!\", ex);\n } finally {\n field.setAccessible(false);\n }\n }",
"public void setValue(Object value);",
"void setValue(Object object, Object value);",
"void setObjectValue(Object dataObject);",
"public abstract void setValues(String[] pValues);",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"public void setValue2(Object value2) { this.value2 = value2; }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"public void setFieldsByName(List<String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<String> it = fields.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tField field = new Field((String) it.next(), null);\n\t\t\tlocalFields.add(field);\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }",
"protected static void setParam(Object o, Field f, CommandSetting s, String key) throws ReflectiveOperationException,\r\n\t\t\tNameNotFoundException, IllegalArgumentException, notFoundException, CannotConvertException {\n\t\tf.setAccessible(true);\r\n\t\tClass<?> cls = f.getType();\r\n\t\tif (cls == int.class) {\r\n\t\t\tf.set(o, s.getAsInt(key));\r\n\t\t} else if (cls == double.class) {\r\n\t\t\tf.set(o, s.getAsDouble(key));\r\n\t\t} else if (cls == boolean.class) {\r\n\t\t\tf.set(o, s.getAsBool(key));\r\n\t\t} else if (Sequence.class.isAssignableFrom(cls)) {\r\n\t\t\tassert false;\r\n\r\n\t\t\t// f.set(o, Sequence.getSequence(s.getAsStr(key)));\r\n\t\t} else {\r\n\t\t\tf.set(o, s.get(key));\r\n\t\t}\r\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }"
]
| [
"0.79727316",
"0.6344611",
"0.62640107",
"0.6159723",
"0.6157921",
"0.61398065",
"0.6135012",
"0.6128735",
"0.608321",
"0.603791",
"0.60352653",
"0.6023386",
"0.6011819",
"0.5999774",
"0.5943746",
"0.5937445",
"0.5904106",
"0.59016633",
"0.5900697",
"0.58929706",
"0.5863652",
"0.5851534",
"0.5825446",
"0.58044183",
"0.58002126",
"0.5794834",
"0.5782633",
"0.57754093",
"0.57528776",
"0.57455087",
"0.5724869",
"0.5721555",
"0.5705568",
"0.5692848",
"0.5688738",
"0.5678418",
"0.5676768",
"0.56688756",
"0.5665232",
"0.5650079",
"0.56452775",
"0.5636569",
"0.5634021",
"0.56294304",
"0.56223744",
"0.5621401",
"0.5605864",
"0.5593296",
"0.559069",
"0.5579285",
"0.55772483",
"0.5571671",
"0.5571222",
"0.5569605",
"0.5566652",
"0.5548283",
"0.5543254",
"0.55428296",
"0.5537996",
"0.5537784",
"0.5537693",
"0.55290455",
"0.55272514",
"0.5525681",
"0.55250496",
"0.5520123",
"0.55181944",
"0.5509923",
"0.5502786",
"0.5501838",
"0.5497008",
"0.54911494",
"0.54862124",
"0.54862124",
"0.5485662",
"0.54753554",
"0.5474696",
"0.5472499",
"0.547066",
"0.5467319",
"0.5463617",
"0.5463603",
"0.5461915",
"0.5461253",
"0.5458783",
"0.5457622",
"0.5450626",
"0.5449195",
"0.54490507",
"0.544707",
"0.5441431",
"0.54357964",
"0.5432046",
"0.5427447",
"0.54272056",
"0.5420406",
"0.5419342",
"0.54160327",
"0.5407001",
"0.5393837",
"0.5391873"
]
| 0.0 | -1 |
The toString() for the key. | public String toString() {
if (displayString == null)
{
displayString = this.exchange + ':' + this.firmNumber + ':' + classKey;
}
return displayString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}",
"@Override\n public String toString() {\n return String.valueOf(key);\n }",
"public String toString() {\r\n \treturn key;\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.key;\r\n\t}",
"@Override\n public String toString() {\n return key;\n }",
"@Override\n public String toString(){\n return key;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}",
"public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}",
"public String toString()\r\n\t\t{\r\n\t\t\treturn \"|Key: \" + key + \", Value: \" + value + \"|\";\r\n\t\t}",
"@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn keyConverter.apply(key) + KEY_VALUE_SEPARATOR_CHAR + ' ' + value;\n\t\t}",
"@Override\r\n public String toString() {\r\n return key.toString() + \"=\" + value.toString();\r\n }",
"@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn key.toString() + \"=\" + value.toString();\r\n\t\t}",
"public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }",
"public String toString() {\n return key + \"=\" + value;\n }",
"public String toString() {\r\n\t\treturn \"(\" + key + \",\" + value + \")\";\r\n\t}",
"public String toString() {\n\treturn \"Key: \" + key.toString() + \"\\tData: \" + data;\n }",
"@Override\n public String toString() {\n return key + \"=\" + value;\n }",
"@Override\n public String toString() {\n String output;\n if (hasKeyIndex()) {\n output = key + \"(\" + index + \")\";\n } else if (hasArrayIndex()) {\n output = key + \"[\" + index + \"]\";\n } else {\n output = key;\n }\n return output;\n }",
"@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }",
"public String toString() {\n return \"{...(\" + this.size() + \" key(s) mapped to value(s))...}\";\n }",
"protected String keyToString(Object rawKey)\n {\n if (rawKey instanceof String) {\n return (String) rawKey;\n }\n return String.valueOf(rawKey);\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn \"<\"+key.toString()+\",\"+value.toString()+\">\";\n\t\t}",
"@Override\r\n\tpublic String toString() {\r\n\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tint count = 0;\r\n\t\tfor (PGPSecretKeyRing key : keys) {\r\n\t\t\tif (count++ > 0)\r\n\t\t\t\tb.append(\"\\n\\n\");\r\n\t\t\tb.append(key.toString());\r\n\t\t}\r\n\t\treturn b.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\t\n\t\tSet<KeyValueData> keyvalueset = key_value_treemap.keySet();\n\t\tIterator<KeyValueData> iterator = keyvalueset.iterator();\n\t\tStringBuilder builder = new StringBuilder(\"*\");\n\t\twhile(iterator.hasNext()){\n\t\t\tKeyValueData data = iterator.next();\n\t\t\tbuilder.append(data.key);\n\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(data.value);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\t\treturn builder.toString();\n\t}",
"@Override\n public String toString() {\n return new StringBuilder().append(\"key = \\\"\").append(key).append(\"\\\", values[] = \").append(valuesToStringBuilder()).append(\", message = \\\"\").append(message).append(\"\\\"\").toString();\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder buffer = new StringBuilder(128);\n\t\tIterator<Map.Entry<String, AbstractNode>> it = pairs.entrySet().iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String, AbstractNode> pair = it.next();\n\t\t\tbuffer.append(keyToString(pair.getKey()));\n\t\t\tbuffer.append(KEY_VALUE_SEPARATOR_CHAR);\n\t\t\tbuffer.append(' ');\n\t\t\tbuffer.append(pair.getValue());\n\t\t\tif (it.hasNext())\n\t\t\t{\n\t\t\t\tbuffer.append(PAIR_SEPARATOR_CHAR);\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"@Override\n public String toString() {\n return encodedHash.get();\n }",
"public String\n toString() \n {\n return \"[\" + pCellKey.toString() + \"]\"; \n }",
"public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getKey() {\n Object ref = key_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getKey() {\n Object ref = key_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n }\n }",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"public String toString(){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < key; i++) {\n sb.append(getArtikel(i));\n }\n return sb.toString();\n }",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String getKey() {\n\t\treturn id + \"\";\n\t}",
"public String key() {\n return key;\n }",
"public String key() {\n return key;\n }",
"public String toString() {\n\t\treturn hashString;\n\t}",
"public java.lang.String getKey() {\n java.lang.Object ref = key_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n key_ = s;\n return s;\n }\n }",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"public String toString()\r\n {\r\n StringBuffer sb = new StringBuffer(super.toString());\r\n\r\n if (requires_CHV)\r\n sb.append(\" CHV\" + number_of_CHV);\r\n if (requires_AUT)\r\n sb.append(\" AUT\" + number_of_key);\r\n if (requires_PRO)\r\n sb.append(\" PRO\" + number_of_key);\r\n if (requires_ENC)\r\n sb.append(\" ENC\" + number_of_key);\r\n\r\n if (never_accessible)\r\n sb.append(\" Never\");\r\n\r\n return sb.toString();\r\n }",
"private String getKey()\r\n\t\t{\r\n\t\t\tif (key != null)\r\n\t\t\t{\r\n\t\t\t\treturn key.toString();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn \"The key has not been found\";\r\n\t\t\t}\r\n\t\t}",
"@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCustomKeyStoreId() != null)\n sb.append(\"CustomKeyStoreId: \").append(getCustomKeyStoreId()).append(\",\");\n if (getNewCustomKeyStoreName() != null)\n sb.append(\"NewCustomKeyStoreName: \").append(getNewCustomKeyStoreName()).append(\",\");\n if (getKeyStorePassword() != null)\n sb.append(\"KeyStorePassword: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getCloudHsmClusterId() != null)\n sb.append(\"CloudHsmClusterId: \").append(getCloudHsmClusterId());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String getKey() {\n return key;\n }",
"public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(key);\n sb.append(\"]:\"); \n sb.append(apsPinKey);\n sb.append(\"|\");\n sb.append(apsSkillKey);\n sb.append(\"|\");\n sb.append(apsOthers);\n sb.append(\"|\");\n sb.append(apsCityKey);\n sb.append(\"|\");\n sb.append(apsRemarks);\n sb.append(\"|\");\n sb.append(activeStatus);\n sb.append(\"|\");\n sb.append(profileKey);\n sb.append(\"|\");\n sb.append(lockKey);\n sb.append(\"|\");\n sb.append(createdOn);\n return sb.toString(); \n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getOptional() != null)\n sb.append(\"Optional: \").append(getOptional()).append(\",\");\n if (getKey() != null)\n sb.append(\"Key: \").append(getKey()).append(\",\");\n if (getNoEcho() != null)\n sb.append(\"NoEcho: \").append(getNoEcho()).append(\",\");\n if (getQueryable() != null)\n sb.append(\"Queryable: \").append(getQueryable()).append(\",\");\n if (getDescription() != null)\n sb.append(\"Description: \").append(getDescription());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getGroupKey() {\n StringWriter sw = new StringWriter();\n writeGroupKey(sw);\n return sw.toString();\n }",
"public String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String toString() {\r\n\t\tString result = \"[ \";\r\n\t\tLinkedNode nextNode = firstNode;\r\n\t\twhile (nextNode != null) {\r\n\t\t\tresult = result + nextNode.getKey() + \"\\n\";\r\n\t\t\tnextNode = nextNode.getNextNode();\r\n\t\t}\r\n\t\tresult = result + \" ]\";\r\n\t\treturn result;\r\n\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n\treturn key;\n }",
"@Override\n public String toString() {\n return getKey().toString() + \" scale\";\n }",
"String key();",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public java.lang.String getKey() {\n\t\treturn this.key;\n\t}",
"public final String getKey() {\n return key;\n }",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String toString() { return stringify(this, true); }",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public String getKey_() {\n return key_;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}",
"public String getKey() {\n\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"@Override\n public String toString() {\n Gson gson = new Gson();\n String s = gson.toJson(this);\n return s;\n\n// return \"Pair: (\" + key + \",\" + value + \")\";\n }"
]
| [
"0.9153218",
"0.9111625",
"0.89982915",
"0.88850605",
"0.8848335",
"0.87593675",
"0.84381384",
"0.8357598",
"0.8263066",
"0.8233514",
"0.818163",
"0.8172892",
"0.81366014",
"0.81342167",
"0.80860865",
"0.80563873",
"0.79153454",
"0.7910152",
"0.78001016",
"0.7527102",
"0.74978983",
"0.74921024",
"0.74209994",
"0.74151653",
"0.7391231",
"0.7333047",
"0.7315685",
"0.72715586",
"0.7250536",
"0.72197205",
"0.7199382",
"0.71690065",
"0.716343",
"0.7133535",
"0.7122233",
"0.7107171",
"0.7094749",
"0.7094749",
"0.7094749",
"0.7094749",
"0.70779485",
"0.7071793",
"0.7071793",
"0.7045693",
"0.7043206",
"0.7022013",
"0.7020445",
"0.7018826",
"0.70185345",
"0.69915813",
"0.69849485",
"0.6984836",
"0.697694",
"0.6930732",
"0.6927571",
"0.69252026",
"0.69251627",
"0.69251627",
"0.69251627",
"0.69139063",
"0.69135326",
"0.69135326",
"0.6909432",
"0.689977",
"0.6888497",
"0.68849504",
"0.68849504",
"0.68849504",
"0.68835896",
"0.68828213",
"0.68777996",
"0.6875045",
"0.68694824",
"0.68679565",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.68679297",
"0.6863783",
"0.68634176",
"0.68634176",
"0.68634176",
"0.6862063",
"0.6862054",
"0.6861816",
"0.6838091",
"0.6835961",
"0.682717",
"0.68239266",
"0.68239266",
"0.68239266",
"0.68239266",
"0.68239266",
"0.68239266",
"0.6817847"
]
| 0.0 | -1 |
Test case for the remove(Company) method of the CompanyService implementation | @Test
public void testRemove() throws Exception {
String ADMIN_USERNAME = "bjones";
Calendar DEFAULT_START_DATE = Calendar.getInstance();
Calendar DEFAULT_END_DATE = Calendar.getInstance();
DEFAULT_START_DATE.set(Calendar.YEAR, 1900);
DEFAULT_END_DATE.set(Calendar.YEAR, 3000);
logger.debug("\nSTARTED testRemove()\n");
User user1 = userDao.find(TEST_USERNAME);
List<TaskLog> logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());
Result<User> ar;
if (logs.isEmpty()) {
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Delete of user should be allowed as no task logs assigned!", ar.isSuccess());
} else {
// this user has task log assigned
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Cascading delete of user to task logs not allowed!", !ar.isSuccess());
}
logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());
if (logs.isEmpty()) {
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Delete of user should be allowed as empty task log list!", ar.isSuccess());
} else {
// this user has task log assigned
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Cascading delete of user to task logs not allowed!", !ar.isSuccess());
}
ar = userService.remove(ADMIN_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Should not be able to delete yourself", !ar.isSuccess());
logger.debug("\nFINISHED testRemove()\n");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeByCompanyId(long companyId);",
"public void deleteCompany(Company obj);",
"@Override\n\tpublic void remove(cp_company cp) {\n\t\t\n\t}",
"@Test\n\tpublic void testDeleteCompanyApi() {\n\t\tCompany company = new Company(\"DataSolutionsPvtLtd\",\n\t\t\t\t\"Marthahalli road\", \"Bangalore\", \"India\", \"9880440671\");\n\t\tcompanyRepository.save(company);\n\n\t\tInteger companyId = company.getCompanyId();\n\n\t\t// Now Invoke the API to delete the Company\n\t\trestTemplate.delete(\"http://localhost:8888/companies/delete/\"\n\t\t\t\t+ companyId);\n\n\t\t// Try to fetch from the DB directly\n\t\tCompany companyFromDb = companyRepository.findOne(companyId);\n\t\t// and assert that there is no data found\n\t\tassertNull(companyFromDb);\n\t}",
"@Override\r\n\tpublic void removeCompany(Company company) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\r\n\t\tString sql = \"delete from Company where ID = ?\";\r\n\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\r\n\t\t\tconnection.setAutoCommit(false);\r\n\t\t\tpreparedStatement.setLong(1, company.getCompanyId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t\tSystem.out.println(\"remove succeeded. Company removed id: \" + company.getCompanyId()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.rollback();\r\n\t\t\t} catch (SQLException e2) {\r\n\t\t\t\tthrow new Exception(\"DB error - failed to remove Company. companyId: \" + company.getCompanyId());\r\n\t\t\t}\r\n\t\t\tthrow new Exception(\"failed to remove Company. companyId: \" + company.getCompanyId());\r\n\t\t} finally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t} \r\n\r\n\t}",
"void deleteComputerByCompany(Company company);",
"public void removeCompany(int id, String name) {\n }",
"public void removeCouponByCompany(Company company) throws DbException;",
"public void removeCustomerCoupon(Company company) throws DbException;",
"@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }",
"@RequestMapping(path = \"/remove\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> remove(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.remove(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}",
"@Test\n public void remove() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n PartialUserBO writer = new PartialUserBO();\n writer.setId(1L);\n ProductBO product = new ProductBO();\n product.setId(1L);\n\n Date now = new Date();\n\n ProductBO productBO = new ProductBO();\n productBO.setId(1L);\n productBO.setStatus(Status.CREATED);\n\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n\n ProductBO productBOExpected = new ProductBO();\n productBOExpected.setId(1L);\n productBOExpected.setStatus(Status.DELETED);\n\n mockProductDAO.update(with(productBOExpected, new ProductBOMatcher(productBOExpected)));\n }\n };\n\n productService.remove(pProductId);\n }",
"@Test(expected = BusinessException.class)\n public void removeNo() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n mockProductDAO.get(1L);\n times = 1;\n returns(null);\n }\n };\n\n productService.remove(pProductId);\n }",
"@Test\n public void removeAlreadyDELETED() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.DELETED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.remove(pProductId);\n }",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }",
"public void removeByUuid_C(java.lang.String uuid, long companyId);",
"public void testRemove() throws SQLException, ClassNotFoundException {\r\n\t\t// create an instance to be test\r\n\t\tDate d = Date.valueOf(\"2017-01-01\");\r\n\t\tService ser = new Service(\"employee\", 1, \"variation\", \"note\", d, d, 1, 1);\r\n\t\tmodelDS.insert(ser); \r\n\t\tint id = -1;\r\n\t\tLinkedList<Service> list = modelDS.findAll();\r\n\t\tfor (Service a : list) {\r\n\t\t\tif (a.equals(ser))\r\n\t\t\t\tid = a.getId();\r\n\t\t}\r\n\t\t\r\n\t\tService service = modelDS.findByKey(id);\r\n\t\tmodelDS.remove(service.getId()); // method to test\r\n\r\n\t\t// database extrapolation\r\n\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT count(*) FROM \" + TABLE_NAME + \" WHERE id = ?\");\r\n\t\tps.setInt(1, id);\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tint expected = 0;\r\n\t\tif (rs.next())\r\n\t\t\texpected = rs.getInt(1);\r\n\t\tassertEquals(expected, 0);\r\n\t}",
"public void removeByC_S(long companyId, int status);",
"@Test\n public void testRemoveItem() throws Exception {\n System.out.println(\"removeItem\");\n Orcamentoitem orcItem = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeItem(orcItem);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void removeByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\r\n\tpublic void deleteCompany(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"delete from companies where companyId=\" + compId;\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tstmt.executeUpdate(sql);\r\n\t\t\tSystem.out.println(\"Company with ID: \" + compId + \" was deleted\");\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"deleteCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic ResponseEntity<String> deleteCompany(int companyCode) {\n\t\tcompanyRepository.deleteById(companyCode);\r\n\t\treturn new ResponseEntity<>(\"Company has been Deleted\", HttpStatus.OK);\r\n\t}",
"@Test\n public void removeEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n //removing dummy data to avoid clutter in database\n assertTrue(employeeResource.removeEmployee(\"dummy\"));\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"@Test\n public void testHRemoveCity() throws Exception {\n initializeCreateCity();\n doDirectDeleteRequest(\"/ws/dal/City/\" + cityId, 200);\n }",
"public void removeCompanyCoupon(Coupon coupon) throws DbException;",
"@Test\n public void removeEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n assertFalse(employeeResource.removeEmployee(\"notdummy\"));\n\n //removing dummy data to avoid clutter in database\n employeeResource.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"public void delete(Company company) {\r\n\t\tsessionFactory.getCurrentSession().delete(company);\r\n\t}",
"public void testRemoveContact() throws DaoException {\n\t\tContact contact = new Contact();\n\t\tcontact.setName(\"Jack Sparrow\");\n\t\t// create\n\t\tString contactId = contactService.addContact(addrBook1, contact).getId();\n\t\t// assert\n\t\tassertEquals(1, contactService.getContacts(addrBook1).size());\n\t\t// remove\n\t\tcontactService.deleteContact(contactId);\n\t\t// assert\n\t\tassertEquals(0, contactService.getContacts(addrBook1).size());\n\n\t}",
"@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}",
"@Test\n\tpublic void shoudRemoveContact(){\n\t\tContact contact = new Contact().setFirstName(\"tester\").setLastName(\"test\");\n\t\tapp.getContactHelper().createContact(contact);\n\t\t//Removing the contact\n\t\tapp.getContactHelper().removeFirstContact();\n\t\tapp.getContactHelper().checkContactRemoved();\n\n\t}",
"@Test\n public void removeTest() {\n reservation3.setId(14L);\n reservationService.remove(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).remove(reservation3);\n }",
"int deleteByExample(CompanyExtendExample example);",
"@Test\n public void testRemoveOrcamento() throws Exception {\n System.out.println(\"removeOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeOrcamento(orc);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n void removeItem() {\n }",
"public void removeCustomerCompany(Long id) \n\t{\n\t\tQuery queryUsers = this.entityManager.createNamedQuery(\"CompanyUser.removeByCompanyId\");\n\t\tqueryUsers.setParameter(\"prCompanyId\", id);\n\t\tqueryUsers.executeUpdate();\n\t\tQuery queryCompany = this.entityManager.createNamedQuery(\"CustomerCompany.removeById\");\n\t\tqueryCompany.setParameter(\"prId\", id);\n\t\tqueryCompany.executeUpdate();\n\t}",
"@Test(expected = BusinessException.class)\n public void removeArchived() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.ARCHIVED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.remove(pProductId);\n }",
"@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}",
"abstract protected void removeEntity(Entity entity);",
"@Test\n public void testDeleteBySsoId() {\n System.out.println(\"deleteBySsoId\");\n try {\n String ssoId = \"sam\";\n\n userRepo.removeByFirstName(\"Sam\");\n AppUser result = userRepo.findBySsoId(ssoId);\n assertNull(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"@Test\n public void deleteContact() {\n }",
"@Test\r\n\tvoid testContactServiceDeleteContact() {\r\n\t\t// delete contact\r\n\t\tcontactService.deleteContact(id);\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.getContactFirstName(id);\r\n\t\t});\r\n\t}",
"@Test\n public void testRemovePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n Assert.assertTrue(itemDao.delete(item.getName()));\n Assert.assertNull(itemDao.read(item.getName()));\n }",
"@Test\n public void test() {\n categoryService.addCategory(new Category(null, \"c\", 5423));\n\n //categoryService.removeCategory(1001);\n\n }",
"@Test\n void removeItem() {\n\n }",
"@Test\n void testDeleteCity() {\n CityList cityList = mockCityList();\n cityList.delete(mockCity());\n\n assertFalse(cityList.hasCity(mockCity()));\n assertTrue(cityList.countCities() == 0);\n\n }",
"void remove(Price Price);",
"public void remove(ComplexCar[] cars) throws DatabaseTestException;",
"@Test\n public void removeSellerTest(){\n }",
"@Test\n\tpublic void testSuppCompany() {\n\n\t\tSuppCompany suppCompany =new SuppCompany();\n\t\tsuppCompany.setName(\"www\");\n\t\tsuppCompanyService.update(suppCompany,new EntityWrapper<SuppCompany>().eq(false,\"name\",\"yyy\"));\n\t}",
"@Test\n public void testRemove(){\n DogHouse testDogHouseRem = new DogHouse();\n Integer expected = 0;\n\n Dog newDog = new Dog(\"Thor\", new Date(), 23);\n testDogHouseRem.add(newDog);\n\n testDogHouseRem.remove(newDog);\n Integer actual = testDogHouseRem.getNumberOfDogs();\n\n Assert.assertEquals(expected, actual);\n }",
"void removeCustomer(Customer customer);",
"@Test\n\tpublic void testRemoval() {\n\t\tLong id = RedisQuery.nextUniqueId();\n\t\tEntityTest et = new EntityTest(id, \"EntityTestToRemove\");\n\t\tif (RedisQuery.save(et, id)) {\n\t\t\t// Remove the entity\n\t\t\tRedisQuery.remove(et, id);\n\t\t} else {\n\t\t\tthrow new AssertionError(\"Unable to create entity to remove\");\n\t\t}\n\t}",
"public void test02_EJBHome_remove(){\n try{\n ejbHome.remove(ejbHandle);\n try{\n ejbObject.businessMethod(\"Should throw an exception\");\n assertTrue( \"Calling business method after removing the EJBObject does not throw an exception\", false );\n } catch (Exception e){\n assertTrue( true );\n return;\n }\n } catch (Exception e){\n fail(\"Received Exception \"+e.getClass()+ \" : \"+e.getMessage());\n } finally{\n ejbObject = null;\n }\n }",
"@Test\n public void deleteCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Delete the Customer from the database\n service.removeCustomer(customer.getCustomerId());\n\n // Test the deleteCustomer() method\n verify(customerDao, times(1)).deleteCustomer(integerArgumentCaptor.getValue());\n assertEquals(customer.getCustomerId(), integerArgumentCaptor.getValue().intValue());\n }",
"@Test\n public void testStaffFactoryRemove() {\n StaffController staffController = staffFactory.getStaffController();\n staffController.removeStaff(STAFF_NAME, 1);\n assertEquals(0, staffController.getStaffList().size());\n }",
"@Transactional\n public void deleteBy(final Long companyId) {\n final Company company = companyRepository.findOne(companyId);\n if (company != null) {\n companyRepository.delete(company);\n }\n }",
"public void deleteCompany(Long companyId) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"DELETE FROM companies WHERE company_id = ?\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setLong(1, companyId);\n\n //Executing the update\n int result = preparedStatement.executeUpdate();\n\n if (result == 0) {\n throw new ApplicationException(ErrorType.FAILED_DELETE_COMPANY, \"Failed to delete company\");\n }\n System.out.println(result + \" Company has been successfully deleted from DB\");\n\n } catch (Exception e) {\n throw new Exception(\"Failed to delete company \" + companyId, e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }",
"@Test\n\tpublic void testRemoveColaboradorSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.removeColaborador(col1);\n\n\t\tassertTrue(result);\n\t}",
"@Test\n public void removeUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.removeUser(\"dummy\"));\n }",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values = {\"all\",\"dept-update\"})\n public void _2_4_3_removeBCfromDept() throws Exception {\n Department d = d_1_1;\n d.removeBusinessCategory(bc_2);\n this.mockMvc.perform(put(\"/api/v1.0/companies/\"+\n d.getCompany()+\n \"/departments/\"+\n d.getId())\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(d)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(d.getId().toString())))\n .andExpect(jsonPath(\"$.description\",is(d.getDescription())))\n .andExpect(jsonPath(\"$.businessCategories\").doesNotExist());\n }",
"@Test\n public void deleteEmpleadoTest() {\n \n try{ \n EmpleadoEntity entity = data.get(3);\n empleadoLogic.deleteEmpleado(entity.getId());\n EmpleadoEntity deleted = em.find(EmpleadoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n \n }catch(BusinessLogicException b){\n Assert.fail();\n }\n }",
"@Test\n public void remove() throws Exception {\n CollisionList list = new CollisionList();\n list.add(\"key\", \"value\");\n assertEquals(\"value\", list.remove(\"key\"));\n assertEquals(null, list.remove(\"key\"));\n }",
"public void removePerson(Person p);",
"@Test\r\n public void testRemoveElement() {\r\n System.out.println(\"removeElement\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = false;\r\n boolean result = instance.removeElement(o);\r\n\r\n }",
"@Test\n void removeTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"[email protected]\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.persist(anAdmin);\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n adminJpa.remove(anAdmin);\n assertThrows(NoResultException.class, () -> {\n adminJpa.retrieveByEmailPassword(\"[email protected]\", \"Ciao1234.\");\n });\n }",
"public Boolean deleteManagedCompany(int id) {\n \n Boolean result = false;\n \n try { \n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.delete(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }",
"@Test\n public void removeUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userResource.removeUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }",
"@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}",
"@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConSolicitudesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(0);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }",
"@Test\n public void testRemove_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }",
"public void delete(HrJBorrowcontract entity);",
"public void doDeleteAlbum(AlbumDTO dto)\n/* */ {\n/* 64 */ this.galleryManager.deleteAlbum(dto);\n/* 65 */ this.albumList.remove(dto);\n/* */ }",
"@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }",
"@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}",
"@Test\n\t public void testDeleteEntity(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(entityManager.getReference(Users.class,\n\t\t\t \t \t\tuser.getLoginName()));\n\t\t\t\tuserDao.delete(user.getLoginName(),user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }",
"public void testRemoveSelectedAuthor() {\r\n //given \r\n /*System.out.println(\"removeSelectedAuthor\");\r\n int authorID = 43;\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when\r\n boolean result = instance.removeSelectedAuthor(authorID);\r\n \r\n //then \r\n assertEquals(expResult, result);*/ \r\n }",
"@Test(expected = BusinessException.class)\n public void unarchiveDeleted() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.DELETED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.unarchive(pProductId);\n }",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Company ID received\n\t */\n\tpublic void deleteCouponsByCompanyID(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Company ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCompanyIDSQL = \"delete from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCompanyIDSQL);\n\t\t\t// Set Company ID from variable that method received\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByComp3 = pstmt.executeUpdate();\n\t\t\tif (resRemByComp3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Company have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Company not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"void unsetAuditingCompany();",
"void unsetHasAuditingCompany();",
"public interface ICompanyService {\r\n /**\r\n * 根据公司名字和唯一码查询公司信息\r\n *\r\n * @param company\r\n * @return\r\n */\r\n List<Company> findCompanyByCompany(Company company);\r\n List<Company> findCompanyByCompany(Company company,PageBounds pageBounds);\r\n\r\n /**\r\n * 根据公司code查询公司信息\r\n *\r\n * @param companyCode\r\n * @return\r\n */\r\n Company findCompanyByCompanyCode(String companyCode);\r\n\r\n /**\r\n * 根据公司id查询\r\n *\r\n * @param id\r\n * @return\r\n */\r\n Company findCompanyByid(String id);\r\n\r\n /**\r\n * 修改公司信息\r\n * @param company 公司基本信息\r\n */\r\n void modifyCompanyInfo(Company company)throws Exception;\r\n\r\n void removeCompany(String companyId);\r\n\r\n /**\r\n * 创建公司\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void addCompany(Company company, String permissionIds);\r\n\r\n /**\r\n * 更新公司权限\r\n *\r\n * @param company\r\n * @param permissionIds\r\n */\r\n void modifyCompanyPermission(Company company, String permissionIds);\r\n}",
"@Test\n\tpublic void eliminar() {\n\t\tGestionarComicPOJO gestionarComicPOJO = new GestionarComicPOJO();\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"1\", \"Dragon Ball Yamcha\",\n\t\t\t\t\"Planeta Comic\", TematicaEnum.AVENTURAS.name(), \"Manga Shonen\", 144, new BigDecimal(2100),\n\t\t\t\t\"Dragon Garow Lee\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 20l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"2\", \"Captain America Corps 1-5 USA\",\n\t\t\t\t\"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"BIBLIOTECA MARVEL\", 128, new BigDecimal(5000),\n\t\t\t\t\"Phillippe Briones, Roger Stern\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 5l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"3\",\n\t\t\t\t\"The Spectacular Spider-Man v2 USA\", \"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"MARVEL COMICS\",\n\t\t\t\t208, new BigDecimal(6225), \"Straczynski,Deodato Jr.,Barnes,Eaton\", Boolean.TRUE, LocalDate.now(),\n\t\t\t\tEstadoEnum.INACTIVO.name(), 0l));\n\n\t\tint tamañoAnterior = gestionarComicPOJO.getListaComics().size();\n\t\tgestionarComicPOJO.eliminarComicDTO(\"1\");\n\t\tAssert.assertEquals(gestionarComicPOJO.getListaComics().size(), tamañoAnterior - 1);\n\t}",
"@Test\n void delete() {\n petTypeSDJpaService.delete(petType);\n\n //Then\n verify(petTypeRepository).delete(petType);\n }",
"@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConPropuestasAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(2);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }",
"public void testRemoveOrder() {\n }",
"@Test\n public void testRemoveProduct() {\n }",
"void remove(Team team);",
"public void maybeRemove(RemoveRandom r, ObjectContainer container, ClientContext context);",
"@Test\n public void removeByCatTest(){\n // Given\n CatHouse catHouse = new CatHouse();\n Cat tom = new Cat(\"tom\", new Date(), 1);\n\n // When\n catHouse.add(tom);\n catHouse.remove(tom);\n Integer expected = 0;\n Integer actual = catHouse.getNumberOfCats();\n\n // Then\n Assert.assertEquals(expected, actual);\n }",
"@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConInvitacionesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(1);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }",
"int deleteByExample(TycCompanyCheckCrawlerExample example);",
"@Test\n\t public void testDelete(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(user);\n\t\t\t\tuserDao.delete(user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }",
"UserGroup removeMember(String companyId, String name, String memberEmail);",
"@Test\n public void removeByIdTest(){\n // Given\n CatHouse catHouse = new CatHouse();\n Cat tom = new Cat(\"tom\", new Date(), 1);\n\n // When\n catHouse.add(tom);\n catHouse.remove(1);\n Integer expected = 0;\n Integer actual = catHouse.getNumberOfCats();\n\n // Then\n Assert.assertEquals(expected, actual);\n }",
"@SmallTest\n public void testDelete() {\n int result = -1;\n if (this.entity != null) {\n result = (int) this.adapter.remove(this.entity.getId());\n Assert.assertTrue(result >= 0);\n }\n }",
"@DeleteMapping(\"/company-types/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCompanyType(@PathVariable Long id) {\n log.debug(\"REST request to delete CompanyType : {}\", id);\n companyTypeRepository.delete(id);\n companyTypeSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"companyType\", id.toString())).build();\n }",
"@Test\n void removeTask() {\n }"
]
| [
"0.7664904",
"0.7464891",
"0.7313516",
"0.72835714",
"0.7213492",
"0.71925235",
"0.71685374",
"0.7000491",
"0.6939989",
"0.6915296",
"0.6871826",
"0.67294014",
"0.66463876",
"0.6609053",
"0.65882194",
"0.65882194",
"0.65882194",
"0.6576584",
"0.6516712",
"0.647538",
"0.64620274",
"0.64592963",
"0.6453925",
"0.64473766",
"0.6431957",
"0.6389278",
"0.63649195",
"0.6347717",
"0.6347059",
"0.63423556",
"0.63381135",
"0.63135284",
"0.6310707",
"0.6285987",
"0.6259953",
"0.624628",
"0.62108845",
"0.619599",
"0.61870897",
"0.6178394",
"0.6178308",
"0.6162291",
"0.61538786",
"0.6140964",
"0.6140453",
"0.6137174",
"0.61291474",
"0.6126968",
"0.6120317",
"0.6101637",
"0.60988575",
"0.6097318",
"0.60952425",
"0.6079736",
"0.6075804",
"0.6074934",
"0.6055464",
"0.6025149",
"0.60244817",
"0.60151935",
"0.6014517",
"0.59970486",
"0.59959584",
"0.5991851",
"0.5950252",
"0.594237",
"0.5939257",
"0.59379685",
"0.5922835",
"0.5920083",
"0.591612",
"0.5907116",
"0.58942974",
"0.5888985",
"0.58749324",
"0.5871225",
"0.58663565",
"0.58653784",
"0.58576477",
"0.584383",
"0.5839648",
"0.583683",
"0.58308375",
"0.5821756",
"0.5819344",
"0.5812929",
"0.5806457",
"0.58062774",
"0.5802443",
"0.57841945",
"0.57814074",
"0.5781252",
"0.5778968",
"0.5778519",
"0.5770105",
"0.57696366",
"0.57685035",
"0.5758284",
"0.5755025",
"0.5752509",
"0.5749644"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Utility u=new Utility();
Scanner sc=new Scanner(System.in);
System.out.println("Enter Size ");
int size=sc.nextInt();
int[] arr = new int[size];
System.out.println("Enter Elements");
for(int i=0;i<size;i++)
arr[i]=sc.nextInt();
System.out.println("Before sorting : " + Arrays.toString(arr));
u.bubbleSort(arr);
System.out.println("After sorting : " + Arrays.toString(arr));
sc.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO: console can have permissions set | @Override
public boolean hasPermission(String string) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"void askForPermissions();",
"AdminConsole createAdminConsole();",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"@Override\n\tpublic boolean isCommandAuthorized(){\n\t\treturn true;\n\t}",
"public String getUserCommand();",
"abstract void initiateConsole();",
"@Test\n public void testSetPermissions() {\n System.out.println(\"setPermissions\");\n ArrayList<File> files = new ArrayList<File>();\n Docker instance = new Docker(\"ubuntu\", \"git\", files, \"sh6791\", \"matrix\", \"v1\", \"saqhuss\", \"dockersh6791\", \"[email protected]\");\n instance.setPermissions();\n Process p;\n String line = null;\n StringBuilder sb = new StringBuilder();\n try {\n p = Runtime.getRuntime().exec(new String[]{\"docker\", \"ps\"});\n BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n line = reader.readLine();\n } catch (Exception e) {\n\n }\n assertEquals(line.split(\" \")[0].trim(), \"CONTAINER\");\n }",
"void legalCommand();",
"private void changeExecPermission(String permission, String filePath) {\n\t\t// TODO Auto-generated method stub\n\t\t// change permission to the uploaded science app for execute\n\t\t//String command = \"sudo chmod +\" + permission + \" \" + filePath;\n\t\tString command = \"chmod +\" + permission + \" \" + filePath;\n\t\ttry {\n\t\t\t// Create a Runtime instance.\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t// Execute the command.\n\t\t\tProcess p1 = rt.exec(command);\n\t\t\tSystem.out.println(command);\n\t\t\t// Read the input stream.\n\t\t\tInputStream instd = p1.getInputStream();\n\t\t\t// Create a buffered reader\n\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\t// Declare a temporary variable to contain a line.\n\t\t\tString line = \"\";\n\t\t\t// Declare a temporary variable to store a line count.\n\t\t\t// Begin to read each line from given output (or given file).\n\t\t\twhile ((line = buf_reader.readLine()) != null) {\n\t\t\t\t// Increment line count.\n\t\t\t\t// System.out.println(line);\n\t\t\t}\n\t\t\t// Close the buffered reader instance.\n\t\t\tbuf_reader.close();\n\t\t\t// Let's wait for the Runtime instance to be done.\n\t\t\tp1.waitFor();\n\n\t\t\tInputStream errstd = p1.getErrorStream();\n\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\twhile ((line = buf_err_reader.readLine()) != null) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t\tbuf_err_reader.close();\n\t\t} catch (Exception ex) {\n\t\t\t// ex.printStackTrace();\n\t\t\t// Print out any message when an error(s) occurs.\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t}\n\t}",
"private void requestPermissions(){\n Intent intent = new Intent(this.getApplication(), MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(intent);\r\n }",
"abstract public void getPermission();",
"private PermissionHelper() {}",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n\t{\n\t\tif ((sender instanceof Player && !allowPlayer) || (!(sender instanceof Player) && !allowConsole))\n\t\t{\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You can't do that from here\");\n\t\t\treturn false;\n\t\t}\n\t\tif (permission == null || sender.hasPermission(permission))\n\t\t\tonInvoked(sender, args);\n\t\telse\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You don't have permission to do this\");\n\t\treturn true;\n\t}",
"@NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);",
"public boolean addCommandConsole() {\n addCritical(LOC_HEAD, 0, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_LIFE_SUPPORT));\n addCritical(LOC_HEAD, 1, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_SENSORS));\n addCritical(LOC_HEAD, 2, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_COCKPIT));\n addCritical(LOC_HEAD, 3, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_COCKPIT));\n addCritical(LOC_HEAD, 4, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_SENSORS));\n addCritical(LOC_HEAD, 5, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_LIFE_SUPPORT));\n setCockpitType(COCKPIT_COMMAND_CONSOLE);\n return true;\n }",
"public void runTimePermission(){\n Dexter.withActivity(this).withPermission(Manifest.permission.READ_EXTERNAL_STORAGE)\n .withListener(new PermissionListener() {\n @Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n play();\n }\n\n @Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\n token.continuePermissionRequest();\n }\n }).check();\n }",
"String getPermission();",
"private void RequestPermissions() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{RECORD_AUDIO, WRITE_EXTERNAL_STORAGE}, REQUEST_AUDIO_PERMISSION_CODE);\r\n }",
"private void checkVoiceCommandPermission()\n {\n // Android 6 er uporer version gula te voice neoar capability ache, and they require permissions.\n // that's why we check first the SDK version is above 6 or not\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n {\n // jodi persmission pai voice er then\n if(!(ContextCompat.checkSelfPermission(SmartPlayerActivity.this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED))\n {\n // we can start the activity\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse(\"package:\" + getPackageName()));\n startActivity(intent);\n finish();\n }\n }\n }",
"@ApiModelProperty(required = true, value = \"The remote system permission of the invoking user on the file/folder.\")\n public String getPermissions() {\n return permissions;\n }",
"public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }",
"public String getFloodPerm() throws PermissionDeniedException;",
"@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }",
"public void printCommands(){\n LocalApi.print_commands();\n }",
"@Override\n public Set<String> getPermissions(Class<? extends AeroCommandBase<?>> command) {\n return permissions.get(command);\n }",
"public static void main(String[] args) {\n\t\tConsole console = System.console();\n\t\tSystem.out.println(\"console value is : \" + console);\n\t\t\n\t\tString name = console.readLine();\n\t\t\n\t\tSystem.out.println(\"Enter input is: \" + name);\n\t}",
"com.lxd.protobuf.msg.result.console.Console.Console_ getConsole();",
"int getPermissionWrite();",
"@Test\n public void accessDeniedFile() throws CommandException {\n ExportCommand command = new ExportCommand(\".txt\", \"C:/Windows/a\");\n command.setData(model, null, null, null);\n if (os.indexOf(\"win\") > 0) {\n assertEquals(command.execute(), new CommandException(MESSAGE_ACCESS_DENIED));\n }\n }",
"@Override\n public void checkPermission(Permission perm) {\n }",
"public void requestPermission() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{\n Manifest.permission.CAMERA,\n Manifest.permission.READ_CONTACTS\n }, RequestPermissionCode);\n }",
"public void provideAccess() {\n\t\tint choice = View.NO_CHOICE;\n\t\twhile (choice != View.EXIT) {\n\t\t\tview.displayMenu();\n\t\t\tchoice = view.readIntWithPrompt(\"Enter choice: \");\n\t\t\texecuteChoice(choice);\n\t\t}\n\t}",
"void exec(ICommandConsole console, List<String> options);",
"@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }",
"@Test\n\t// Delivery 2 Use Case 1. Grant/Deny Access to commands based on profile's role\n\tpublic void test() {\n\n\t\tUsers user1 = new Users(\"Test1\", \"PARENT\");\n\t\tUsers user2 = new Users(\"Test2\", \"STRANGER\");\n\t\tUsers user3 = new Users(\"Test3\", \"CHILDREN\");\n\t\tUsers user4 = new Users(\"Test4\", \"GUEST\");\n\n\t\t// Checking if users have permissions\n\t\tassertEquals(\"PARENT\", user1.getPermission());\n\t\tassertEquals(\"STRANGER\", user2.getPermission());\n\t\tassertEquals(\"CHILDREN\", user3.getPermission());\n\t\tassertEquals(\"GUEST\", user4.getPermission());\n\n\t}",
"void configure_permissions() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}\n , 10);\n }\n return;\n }\n }",
"private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }",
"private void uhqa_4_fix() {\n try {\n CommandResult uhqa_4_fix = Shell.SU.run(\"chmod 0644 /data/user/0/com.hana.mao/files/uhqa_4.txt\");\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"int getPermissionRead();",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"void setConsole(ConsoleManager console);",
"@Override\n public void permissionsGranted() {\n showScanner();\n }",
"public void askPermission() {\n try {\n if (Build.VERSION.SDK_INT >= 23) {\n //call the function to ask for permission\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, 100);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public boolean areCommandsAllowed()\n {\n return allowCommands;\n }",
"@Override\n protected String requiredGetPermission() {\n return \"user\";\n }",
"public adminmenu() throws IOException, ClassNotFoundException {\r\n this.input = new Scanner(System.in);\r\n this.adminPage(); // Calling the Mentioned Function\r\n }",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"boolean isExecuteAccess();",
"private boolean promptCommand() {}",
"public Enumeration permissions();",
"private static void task42() {\n char[] pass = null;\n Console con = System.console();\n if(con != null){\n try {\n pass = con.readPassword(\"Enter your password:\");\n System.out.println(\"Your password is \" + new String(pass));\n }\n finally {\n if(pass!=null){\n System.out.println(\"Yur pass -\"+pass);\n }\n }\n }else {\n throw new RuntimeException(\"Can't get password...No console\");\n }\n\n }",
"@Test\n public void accessDeniedFolder() throws CommandException {\n ExportCommand command = new ExportCommand(\".txt\", \"C:/Windows/a\");\n command.setData(model, null, null, null);\n if (os.indexOf(\"win\") > 0) {\n assertEquals(command.execute(), new CommandException(MESSAGE_ACCESS_DENIED));\n }\n }",
"public boolean subCommandProcess(CommandSender sender, Command command, String string, String[] args) {\n\n\t\tif ((consoleOnly && sender instanceof Player) || (permission != null && !sender.hasPermission(permission))) {\n\n\t\t\tsender.sendMessage(errorPrefix + noPermissionError);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn execute(sender, command, string, args);\n\t}",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"void showInConsole();",
"private void requestWriteStoragePermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n //show explanation to user\n Toast.makeText(this, \"Write storage permission is needed to save photos/videos\", Toast.LENGTH_LONG).show();\n //request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n WRITE_EXTERNAL_STORAGE_CODE);\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n WRITE_EXTERNAL_STORAGE_CODE);\n\n // WRITE_EXTERNAL_STORAGE_CODE is an\n // app-defined int constant. The onRequestPermissionsResult method gets the code\n }\n }",
"public static void helpCommand(){\n\n System.out.println(\"--------list of controls-------\");\n System.out.println(\"'help' : display the list of control\");\n System.out.println(\"'exit' : for quit the app /n\");\n System.out.println(\"'adduser' : you can add user with this command,<fistname>,<lastname>,<country>,<departement>,<age>\");\n System.out.println(\"'edituser' : you can edit an user with this command, <firstname>,<lastname>\");\n System.out.println(\"'removeuser' : you can remove an user with this command, <firstanme>,<lastname>\");\n System.out.println(\"'listusers' : display all of users\");\n System.out.println(\"'addcar' : add a car to the list, <brand>,<model>,<ref>,<year>\");\n System.out.println(\"'editcar' : use this command for edit a car, <ref>\");\n System.out.println(\"'removecar' : use this command for remove a car\");\n System.out.println(\"'listcars' : display all the cars\");\n System.out.println(\"'rentcar' : command for rent a car\");\n System.out.println(\"'returncar' : command for return a car\");\n System.out.println(\"'listrent' : display the list of rents\");\n System.out.println(\"'saveusers' : use this command for save your users file\");\n System.out.println(\"'restoreusers' : use this command open your save users file\");\n System.out.println(\"'serialusers' : use this command serialize object users\");\n System.out.println(\"'saverents' : use this command save the list of rents in file\");\n System.out.println(\"'loadrents' : use this command load the list from file\");\n System.out.println(\"'savecars' : use this command for save the list of cars in a file\");\n System.out.println(\"'loadcars' : use this command for import the list from file \");\n System.out.println(\"'saveall' : use this command for save all the list in a file\");\n System.out.println(\"'loadall' : use this command for import all the list from file\");\n System.out.println(\"----------------------------------\");\n\n }",
"private void showPermissionsAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Permissions required!\")\n .setMessage(\"Camera needs few permissions to work properly. Grant them in settings.\")\n .setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n CameraUtils.openSettings(ReceiveActivity.this);\n }\n })\n .setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n }\n }).show();\n }",
"private void requestCameraPermission() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"No Permissions\" , Toast.LENGTH_LONG).show();\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO}, 0);\n }\n else\n {\n Toast.makeText(this, \"Has Permissions\" , Toast.LENGTH_LONG).show();\n }\n }",
"public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }",
"private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }",
"private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }",
"@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}",
"public interface ICommand {\r\n public List<String> getRights();\r\n public String execute() throws ServletException, IOException;\r\n}",
"private void requestPermission() {\r\n\r\n if (ActivityCompat.shouldShowRequestPermissionRationale(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\r\n Toast.makeText(UniformDrawer.this, \"Write External Storage permission allows us to do store images. Please allow this permission in App Settings.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n ActivityCompat.requestPermissions(UniformDrawer.this, new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSION_REQUEST_CODE);\r\n }\r\n }",
"private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (!ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n }\n }",
"public static void main(String[] args) {\n\t\tAccessModifiers am = new AccessModifiers();\r\n\t\tSystem.out.println(am.publicInt);\r\n\t\t//System.out.println(am.privatefloat);\r\n\t\tSystem.out.println(am.protectedName);\r\n\t\tSystem.out.println(am.defaultAge);\r\n\t}",
"private void requestPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.CAMERA}, 1);\n //if not permitted by the user ,send a message to the user to get the right\n } else {\n opencamera();\n //if permitted by the user already ,then start open the camera directly\n }\n }",
"public void getPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(permissions,\n MULTIPLE_PERMISSIONS);\n }\n }",
"private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }",
"private ConsoleUtils(String name) {\n instance = this;\n fConsole = new IOConsole(\"Mobius\" + name + \" Console\", EImages.TOOL.getDescriptor());\n fConsole.activate();\n ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[]{fConsole});\n final Display display = PlatformUI.getWorkbench().getDisplay();\n fRed = new Color(display, RED);\n fBlue = new Color(display, BLUE);\n fPurple = new Color(display, PURPLE);\n fBlack = new Color(display, BLACK);\n }",
"public void memberOptions(int selection, Console console) {\n\t\tif (selection == 1) {\n\t\t\ttry {\n\t\t\t\tconsole.updateOrAddMember(2);\n\t\t\t}catch (ParseException e) {\n\t\t\t\t\n\t\t\t}\n\t\t} else if (selection == 2) {\n\t\t\tconsole.removeMemberWindow();\n\t\t} else if (selection == 3) {\n\t\t\tconsole.viewBoatListWindow();\n\t\t} else if (selection == 4) {\n\t\t\tconsole.welcomeWindow();\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid choice! Try again \");\n\t\t\tconsole.welcomeWindow();\n\t\t}\n\t}",
"void admin() {\n\t\tSystem.out.println(\"i am from admin\");\n\t}",
"public static void main(String[] args) throws IOException {\n\n menuPrincipal();\n }",
"public interface Console {\n\t//For know without description\n\t\n\t/**\n\t * Prints all information in XML src\n\t * @param src - document \n\t */\n\tpublic void startInfo(Document src);\n\t\n\t/**\n\t * Reading and printing inform. from console\n\t * @param str - string from console with request\n\t */\n\tpublic void readAndPrint(String str);\n\t\n\t/**\n\t * Starts listening InputStream in\n\t * @param in - in this program it's System.in\n\t */\n\n\tpublic void start(InputStream in, String path);\n\t\n\t/**\n\t * Printing all information about Node n\n\t * @param n\n\t */\n\tpublic void printNode(Node n);\n}",
"String getCommand();",
"private static void testRunHardcodedCmd() {\n\t\tString[] cmdArray = { \"./runAsUser/runAsUser.exe\", \"c:\\\\procesos\", \"martin.zaragoza@ACCUSYSARGBSAS\", \"Marzo2015\", \"\\\"C:\\\\WINDOWS\\\\system32\\\\cmd.exe\\\"\",\n\t\t\t\t\"\\\"/c a.exe 1\\\"\" };\n\t\ttry {\n\t\t\tFile wrkDir = new File(\"c:\\\\procesos\");\n\n\t\t\tProcess process = Runtime.getRuntime().exec(cmdArray, null, wrkDir);\n\t\t\tprintStdout(process.getInputStream());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }",
"private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}",
"private void requestReadAndSendSmsPermission()\n {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.READ_SMS))\n {\n\n }\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.READ_SMS,\n android.Manifest.permission.SEND_SMS,\n android.Manifest.permission.RECEIVE_SMS,\n Manifest.permission.READ_PHONE_STATE}, 1);\n }",
"@Override\n public void checkRunTimePermission(AppBaseActivity activity, String permission) {\n if (ContextCompat.checkSelfPermission(activity, permission)\n != PackageManager.PERMISSION_GRANTED) {\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(activity,\n new String[]{permission},\n REQUEST_PERMISSIONS_REQUEST_CODE);\n // REQUEST_PERMISSIONS_REQUEST_CODE is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n\n }\n }",
"public IConsole getConsole() {\n return console;\n }",
"public String[] readCommand();",
"private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private interface Command {\n public void execute();\n }",
"public ConsoleHandler createConsoleHandler () {\r\n\t\t\t\r\n\t\tConsoleHandler consoleHandler = null;\r\n\t\t\t\r\n\t\ttry {\r\n\t\t \t\r\n\t\t\tconsoleHandler = new ConsoleHandler();\r\n\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t \r\n\t\t return consoleHandler;\r\n\t}",
"public static void main(String[] args) {\n\t\tAdminShell as = new AdminShell(\"foo.txt\", \"bar.txt\");\r\n\t\tas.promptManual();\r\n\t\twhile (true){\r\n\t\t\ttry {\r\n\t\t\t\tas.eachTime();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private Shell() { }",
"private void showGrantPermissionDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Stop!\")\n .setMessage(\"You must grant all the permissions request otherwise you can't use this feature.\")\n .setCancelable(false)\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"@Override\n public boolean testPermission(CommandSource source) {\n return source.hasPermission(\"core.tps\");\n }",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"private void RequestMultiplePermission()\n {\n /**\n * Creating String Array with Permissions.\n */\n ActivityCompat.requestPermissions(FamilyMemberActivity.this, new String[]\n {\n CAMERA,\n WRITE_EXTERNAL_STORAGE,\n READ_EXTERNAL_STORAGE\n }, PERMISSION_REQUEST_CODE);\n\n }",
"public Tree(Console console, String command[]) {\n userFileSystem = console.getFileSystem();\n commandArgument = command;\n }",
"public String getPermission()\r\n {\r\n return permission;\r\n }",
"private void openPermissions(){\n WebDriverHelper.clickElement(seePermissionLvlButton);\n }",
"private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }",
"private void showUsage(Command cmd, CommandSender sender, boolean prefix) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) return;\n\n sender.sendMessage((prefix ? \"Usage: \" : \"\") + info.usage() + \" \" + ChatColor.YELLOW + info.desc());\n }",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"public void EnableRuntimePermission(){\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(EditProfileActivity.this,\n Manifest.permission.CAMERA))\n {\n\n Toast.makeText(getApplicationContext(),\"CAMERA permission allows us to Access CAMERA app\", Toast.LENGTH_LONG).show();\n\n } else {\n\n ActivityCompat.requestPermissions(EditProfileActivity.this,new String[]{\n Manifest.permission.CAMERA}, RequestPermissionCode);\n\n }\n }",
"@Override\n public void onPermissionGranted() {\n }"
]
| [
"0.6412935",
"0.6243704",
"0.61460185",
"0.6094147",
"0.59404814",
"0.5881127",
"0.5866792",
"0.58032984",
"0.57996076",
"0.57906103",
"0.57853913",
"0.56829274",
"0.56543815",
"0.5601155",
"0.55870974",
"0.558431",
"0.55452126",
"0.55445886",
"0.55242246",
"0.55172014",
"0.5511584",
"0.548481",
"0.5482333",
"0.5479603",
"0.5475923",
"0.54405046",
"0.5439507",
"0.5435692",
"0.5435662",
"0.54281926",
"0.54246455",
"0.5419255",
"0.5417751",
"0.5405202",
"0.5397556",
"0.539592",
"0.5395795",
"0.5392878",
"0.53905827",
"0.5383614",
"0.53732306",
"0.5370904",
"0.53592765",
"0.535292",
"0.53384376",
"0.5333508",
"0.53321266",
"0.5328147",
"0.53267944",
"0.53244",
"0.53126526",
"0.5302533",
"0.5297361",
"0.5289733",
"0.52875304",
"0.5282121",
"0.5281715",
"0.52782524",
"0.5268647",
"0.5267329",
"0.5267253",
"0.5258815",
"0.5254635",
"0.5250469",
"0.5234768",
"0.5231796",
"0.5231564",
"0.522922",
"0.52202487",
"0.5219633",
"0.5218215",
"0.5210631",
"0.5209428",
"0.5208585",
"0.5207067",
"0.5206355",
"0.5197239",
"0.51888216",
"0.5187851",
"0.51866233",
"0.5185288",
"0.51811254",
"0.51795036",
"0.51792437",
"0.51722634",
"0.51708835",
"0.5170872",
"0.516786",
"0.51603067",
"0.515943",
"0.5159099",
"0.5150504",
"0.51485145",
"0.51481473",
"0.5145428",
"0.51445585",
"0.513717",
"0.51292884",
"0.5121357",
"0.5121046",
"0.51207215"
]
| 0.0 | -1 |
Apply the action according to the protocol. All actions done by all agents come through this method. The protocol should check here if the agent's action is actually allowed and contains the proper data. | void applyAction(Action action, Session session) throws ActionException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"@Override\n\tpublic void handleEventAgentAction(Agent agent, Action action) {\n\t\t// TODO: verify the agent is \"authorised\" to execute this action\n\t\tengine.submitAction(action);\n\t\t\n\t\t// TODO: handle response to Action, ie. callback... direct it back to the Agent.\n\t}",
"public abstract void applyAction(Action.ActionType type, TileObject actioneer, World world);",
"public void performAction(HandlerData actionInfo) throws ActionException;",
"@Override\n public void action() {\n ACLMessage acl = blockingReceive();\n System.err.println(\"Hola, que gusto \" + acl.getSender() + \", yo soy \" + getAgent().getName());\n new EnviarMensaje().enviarMensajeString(ACLMessage.INFORM, \"Ag4\", getAgent(), \"Hola agente, soy \" + getAgent().getName(),\n \"COD0001\");\n }",
"@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}",
"@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }",
"public synchronized void applyAction(int action) {\n\n }",
"@Override\n\t\t\t\tpublic void action() {\n\t\t\t\t\t\tRandom r = new Random();\n\t\t\t\t\t\tint Low = 1;\n\t\t\t\t\t\tint High = 999;\n\t\t\t\t\t\tint Result = r.nextInt(High-Low) + Low;\n\t\t\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\t\t\tmsg.setOntology(\"AirConditioner\");\n\t\t\t\t\t\tmsg.addReceiver(new AID(\"da\", AID.ISLOCALNAME));\n//\t\t\t\t\t\tif (Result % 2 == 0){\n//\t\t\t\t\t\t\t//humid mode\n//\t\t\t\t\t\t\tmsg.setContent(\"humid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: humid\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if((Result % 3 == 0)) {\n//\t\t\t\t\t\t\t//mid\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: mid\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if((Result % 5 == 0)) {\n//\t\t\t\t\t\t\t//high\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: high\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//low\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: low\" );\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tmsg.setContent(Airconditioner_Agent.mode);\n\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: \"+Airconditioner_Agent.mode );\n\t\t\t\t\t\tmyAgent.send(msg);\n\t\t\t\t\t}",
"void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);",
"public void executeAction( String actionInfo );",
"private void sendRequest(Action action) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n request.setLanguage(new SLCodec().getName());\n request.setOntology(MobilityOntology.getInstance().getName());\n try {\n getContentManager().fillContent(request, action);\n request.addReceiver(action.getActor());\n send(request);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public void processAction(CIDAction action);",
"@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\r\n\t\t\tpublic void actionExecuted(GameAction action) {\r\n\t\t\t\tif(action != selectAction) return;\r\n\t\t\t\tattackedCollector = action.getCard().getCollector();\r\n\t\t\t}",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void action() {\n action.action();\n }",
"@Override\r\n\tpublic void processAction(ActionRequest actionRequest,\r\n\t\t\tActionResponse actionResponse) throws IOException, PortletException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.processAction(actionRequest, actionResponse);\r\n\t}",
"public abstract ActionInMatch act();",
"private void createActions() {\n\n\t\t//-----------------------------------------------\n\t\t// Check if Party Exists\n\t\t//-----------------------------------------------\n\t\tpartyExists = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return emailaddressField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new PartyExists()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (party != null ) {setValue(party);}\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Read Party\n\t\t//-----------------------------------------------\n\t\tactorRead = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return partyField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new ActorRead()));}\n\t\t\tprotected void receive(Party party){setValue(party);}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Update Party\n\t\t//-----------------------------------------------\n\t\tactorUpdate = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(AbstractRoot.noOrganizationid(), Level.TERSE, AbstractField.CONSTANTS.errOrganizationid(), partyField)\n\t\t\t\t\t\t|| ifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t\t\t|| ifMessage(emailaddressField.noValue(), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n\t\t\t\t\t\t|| ifMessage(formatdateField.noValue(), Level.ERROR, CONSTANTS.formatdateError(), formatdateField)\n\t\t\t\t\t\t|| ifMessage(formatphoneField.noValue(), Level.ERROR, CONSTANTS.formatphoneError(), formatphoneField)\n\t\t\t\t\t\t|| ifMessage(!Party.isEmailAddress(emailaddressField.getValue()), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n//\t\t\t\t\t\t|| ifMessage((typesField.hasValue(Party.Type.Agent.name()) || typesField.hasValue(Party.Type.Organization.name())) && !partyField.hasValue(AbstractRoot.getOrganizationid()), Level.ERROR, CONSTANTS.partytypeError(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorUpdate()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Delete Party\n\t\t//-----------------------------------------------\n\t\tactorDelete = new GuardedRequest<Party>() {\n\t\t\tprotected String popup() {return AbstractField.CONSTANTS.errDeleteOK();}\n\t\t\tpublic void cancel() {state = oldstate;}\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorDelete()));}\n\t\t\tprotected void receive(Party party){\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\t\n\t}",
"@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void dealWithCustomAction(Context context, UMessage msg)\n\t\t\t{\n\t\t\t}",
"public void takeAction(int actionCode) {\n\t\tif(this.panel.canTakeAction(actionCode)){\n\t\t\ttry {\n\t\t\t\tthis.receive.acceptActionTra(actionCode, indexOfGame);\n\t\t\t} catch (RemoteException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void addActionAvailable(Action action) {\n this.data.addAction(action);\n }",
"public void processAction(ActionRequest request, ActionResponse response) throws PortletException, java.io.IOException {\r\n\r\n }",
"abstract public void performAction();",
"public void setAction(String action) { this.action = action; }",
"@Override\n public void action() {\n DFAgentDescription appointmentAgentDescription = dfSubscription.getAgentDescription();\n List<AllocationState> preferredAllocations = patientAgent.getAllocationStates();\n\n if (patientAgent.getCurrentAllocation() == GlobalAgentConstants.APPOINTMENT_UNINITIALIZED) {\n /* Patient agent has not got any appointment from the hospital agent yet */\n return;\n\n } else if (preferredAllocations.isEmpty()) {\n /* Patient Agent has its most preferred appointment */\n isHappyWithAppointment = true;\n\n } else if (appointmentAgentDescription != null) {\n\n /* Loop executed when action is executed for the first time */\n if (preferredAllocationsIterator == null) {\n /* Querying patient preferences */\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n }\n\n\n if (!preferredAllocationsIterator.hasNext()) {\n /* Condition executed when no more swaps available */\n updatePreferences();\n\n } else if (expectedMessageTemplate == null) {\n\n /* We are not expecting any response, we can make another swap proposal */\n proposeSwap(preferredAllocationsIterator.next(), appointmentAgentDescription);\n\n } else {\n /* Some message has been sent, awaiting a response */\n ACLMessage expectedMessage = patientAgent.receive(expectedMessageTemplate);\n if (expectedMessage != null) {\n boolean wasSwapSuccessful = receiveResponse(expectedMessage, appointmentAgentDescription);\n expectedMessageTemplate = null;\n currentlyProposedAllocationSwap = null;\n\n /* If swap has been successful, we need to update our preference list\n as the patient agent has got new appointment */\n if (wasSwapSuccessful) {\n updatePreferences();\n }\n }\n }\n }\n }",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}",
"@Override\n public void onAction(RPObject player, RPAction action) {\n }",
"private void processAction(ClientContext context, String relayMsg) throws Exception\r\n {\r\n TwoPlayerClientContext tPCC = (TwoPlayerClientContext) context;\r\n updateContext(tPCC, tPCC.getIOMSG(), tPCC.getMessage());\r\n // update the list\r\n for (TwoPlayerClientContext tp : serverContext.getContextList())\r\n {\r\n if (!tp.equals(tPCC))\r\n {\r\n messageQueue.appendText(\"Processing Action for \" + \r\n tp.getClientID().toString() + \"\\n\");\r\n // copy the data over to other clients\r\n copyData(tPCC, tp);\r\n updateContext(tp, tPCC.getIOMSG(), relayMsg);\r\n }\r\n }\r\n }",
"public void doAction(Action action) {\n\t\tif (!isMyTurn) {\n\t\t\treporter.log(Level.SEVERE, \"User did action but it's not his turn\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconnection.send(action);\n\t\t} catch (IOException e) {\n\t\t\treporter.log(Level.SEVERE, \"Can't send action\", e);\n\t\t\treturn;\n\t\t}\n\t\tif (progress instanceof ProgressRounds) {\n\t\t\tprogress = ((ProgressRounds) progress).advance();\n\t\t}\n\t\tsetMyTurn(false);\n\t\t// notifyListeners(action);\n\t}",
"public void executeAction()\n\t{\t\t\n\t\tthis.getUser().setHealth(this.getUser().getHealth()+HEALTH);\n\t}",
"@Override\n\tpublic void processAction(ActionRequest actionRequest, ActionResponse actionResponse)\n\t\t\tthrows IOException, PortletException {\n\t\tsuper.processAction(actionRequest, actionResponse);\n\t}",
"abstract protected String performAction(String input);",
"@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}",
"@Override\n public void accept(Action action) {\n }",
"@Override\n public void receiveMessage(AgentID sender, Action action)\n {\n super.receiveMessage(sender, action);\n\n // update the value of Care_Value、Reluctance、Agreement_Value every ten rounds\n if (getTimeLine() instanceof DiscreteTimeline) {\n DiscreteTimeline discreteTimeline = (DiscreteTimeline)getTimeLine();\n int cRound = discreteTimeline.getRound();\n if (cRound % 10 == 0) {\n\n // care_value increase 4% every ten rounds\n Care_Value = Care_Value * (1 + 0.04);\n if (Care_Value > 0.72) {\n Care_Value = 0.72;\n }\n\n // reluctance decrease 4% every ten rounds\n Reluctance = Reluctance * (1 - 0.06);\n if (timeline.getTime() < 7 && Reluctance < 0.9) {\n Reluctance = 0.9;\n }\n\n List<BidDetails> allBids = new ArrayList<>(feasibleBids);\n // find a common set for all opponent\n Set<BidDetails> commonBids = opponentModelInterface.queryCommonBestBidsSet(allBids, Number_of_Bids);\n List<BidDetails> commonBidsList = new ArrayList<>(commonBids);\n // sort the common set\n Collections.sort(commonBidsList);\n // AV = Utility(BidBest) * Reluctance\n Agreement_Value = (commonBidsList.get(commonBidsList.size() - 1).getMyUndiscountedUtil()) * Reluctance;\n if (Agreement_Value > 0.85) {\n Agreement_Value = 0.85;\n }\n\n if (Agreement_Value < Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()))) {\n Agreement_Value = Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()));\n }\n }\n }\n\n if (action instanceof Inform) {\n // receive message first time, update the number of opponent\n opponentModelInterface = new OpponentModelManager(getNumberOfParties());\n }else if (action instanceof Offer) {\n // save the last offer\n lastOffer = ((Offer) action).getBid();\n // update opponent model by new bid from opponent\n opponentModelInterface.handleBidFromSender(sender.toString(), lastOffer, getDomain());\n }\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"protected Action makeAcceptAction() {\n\t\tAction myAction;\n\t\tmyAction = new Accept(getAgentID(),\n\t\t\t\t((ActionWithBid) opponentAction).getBid());\n\t\treturn myAction;\n\t}",
"public void actionOffered();",
"public static void performAction(int action) {\n\t\tArrayList<Double> data;\n\t\tswitch (action) {\n\t\tcase MANUAL_INPUT:\n\t\t\tdata = manualInput();\n\t\t\tbreak;\n\t\tcase AUTO_INPUT:\n\t\t\tdata = autoInput();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tanalyze(data);\n\t}",
"public void processAction (ActionRequest request, ActionResponse response) \n throws PortletException, java.io.IOException {\n throw new PortletException(\"processAction method not implemented\");\n }",
"private void addAgentAction(Event e) {\n AgentActionEvent event = (AgentActionEvent) e;\n int time = this.getEnvironment().getTime();\n\n this.addCycle(time);\n\n var packet = event.getPacket();\n var agentId = event.getAgent().getID();\n\n switch (event.getAction()) {\n case AgentActionEvent.PICK: {\n var action = new PacketAction(packet.getX(), packet.getY(),\n PacketAction.Mode.Pickup, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.PUT: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Drop, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.DELIVER: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Delivery, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.STEP: {\n var action = new AgentMove(event.getFromX(), event.getFromY(),\n event.getToX(), event.getToY(), agentId);\n this.historyMoves.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n }\n\n repaint();\n }",
"@Override\n public ServiceResult performAction() throws UpdateException {\n children.add(createDeleteEnrichmentAction());\n children.add(createMoveEnrichmentToCommonRecordAction());\n return ServiceResult.newOkResult();\n }",
"@Override\n\tpublic void action() \n\t{\n\t\tif(this.user.arrivedToFinalStation())\n\t\t{\n\t\t\tthis.user.stablishDesiredVehicle();\n\t\t\tthis.user.stablishDesiredStation();\n\t\t}\n\t\t\n\t\t//printing info\n\t\tSystem.out.println(\"\\nI'm \" + this.user.getLocalName() + \": I'm on \" + this.user.getCurrentStation() + \" and I want to go to \" + this.user.desiredStation + \" by \" + this.user.desiredVehicle +\".\\n\");\n\t\t//this.mensaje=scanner.nextLine(); //debug\n\t\t\n\t\t//PetitionRequest\n\t\tSystem.out.println(\"I make a vehicle request to \" + this.user.getCurrentStation() + \": I'm on \" + this.user.getCurrentStation() + \" and I want to go to \" + this.user.desiredStation + \" by \" + this.user.desiredVehicle + \".\");\n\t\tthis.msgObject = new Capsule(null,this.user.getDesiredVehicle(),this.user.getDesiredStation(),null);\n\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_REQUEST\");\n\t\t\n\t\t//Waiting for answer\n\t\tACLMessage msg=this.myAgent.blockingReceive(\n\t\t\t\tMessageTemplate.and(\n\t\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST), \n\t\t\t\t\t\tMessageTemplate.MatchOntology(\"ontologia\"))\n\t\t\t\t);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tthis.comment = msg.getEnvelope().getComments();\n\t\t\tthis.msgObject = (Capsule) msg.getContentObject();\n\t\t\tSystem.out.println(\"\\t\" + this.user.getCurrentStation() + \" told me \" + this.comment + \". \");\n\t\t\t\n\t\t\tswitch(this.comment)\n\t\t\t{\n\t\t\tcase \"VEHICLE_DELIVERY\":\n\t\t\t\t//1. The station give to the user the vehicle normaly\n\t\t\t\tif(msgObject.getVehicle() != null) {\n\t\t\t\t\tthis.user.takeVehicle(msgObject.getVehicle());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//2. The user goes to the final station\n\t\t\t\tthis.notifyMonitor(\"moving\");\n\t\t\t\tthis.user.goToStation();\n\t\t\t\tthis.notifyMonitor(\"waiting\");\n\n\t\t\t\t//3. Leaves the vehicle on the final station\n\t\t\t\tif(this.user.hasVehicle())\n\t\t\t\t{\n\t\t\t\t\tthis.vehicleTemp = this.user.leaveVehicle();\n\t\t\t\t\tmsgObject = new Capsule(this.vehicleTemp,null, null, null);\n\t\t\t\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_RETURN\");\n\t\t\t\t}\n\n\t\t\t\t//4. The user waits a bit\n\t\t\t\tthis.user.waitSomeTime(8000);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"UNSATISFACTORY_REQUEST\":\n\t\t\t\t// The station reports that the request couldn't be completed properly\n\t\t\t\t//1. The capsule can cointain: alternativeStation and alternativeVehicle\n\t\t\t\tif(msgObject.getStation() != null) {\t//checks if there's an alternative reserved station\n\t\t\t\t\tSystem.out.println(\"\\t\"+this.user.getCurrentStation() + \" told me that there's an alternative route -> \" + msgObject.getStation() + \". \");\n\t\t\t\t\tthis.user.stablishDestinationStation(msgObject.getStation());\n\t\t\t\t}\n\t\t\t\tif(msgObject.getVehicle() != null) { //checks if the station gave an alternative vehicle\n\t\t\t\t\tSystem.out.println(\"\\t\"+this.user.getCurrentStation() + \" gived to me an alternative vehicle -> \" + msgObject.getVehicle().getType() + \". \");\n\t\t\t\t\tthis.user.takeVehicle(msgObject.getVehicle());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"\\tI have to go walking. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//2. Moving to the destination station\n\t\t\t\tthis.notifyMonitor(\"moving\");\n\t\t\t\tthis.user.goToStation();\n\t\t\t\tthis.notifyMonitor(\"waiting\");\n\n\t\t\t\t//3. If has a vehicle, the user leaves it\n\t\t\t\tif(this.user.hasVehicle()) \n\t\t\t\t{\n\t\t\t\t\t//send the vehicle to the station\n\t\t\t\t\tthis.vehicleTemp = this.user.leaveVehicle();\n\t\t\t\t\tmsgObject = new Capsule(this.vehicleTemp,null, null, null);\n\t\t\t\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_RETURN\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4. the user waits before restarting the behavior\n\t\t\t\tthis.user.waitSomeTime(4000);\n\t\t\t}\n\t\t}\n\t\tcatch (UnreadableException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public abstract void addAction(Context context, NAAction action);",
"@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void handleAction(Action action, Object sender, Object target) {\n\t\t\n\t}",
"public void run() {\n long startTime = 0;\n if (action.getClass().getName().contains(\"TooAction\")) {\n startTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sending a ToO alert...\");\n }\n\n action.doTriggerAction(change, handback);\n\n // Record the end time and warn if it took too long.\n if (startTime != 0) {\n long curTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sent ToO alert\");\n\n long elapsed = curTime - startTime;\n if (elapsed > 5000) {\n LOG.log(Level.WARNING, \"Long delay sending ToO alert: \" + elapsed);\n }\n }\n\n }",
"@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }",
"protected boolean applyImpl() throws Exception\n {\n MBeanServer mbeanServer = (MBeanServer) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.Agent_MBeanServer);\n ObjectName objectName = (ObjectName) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.MBean_ObjectName);\n\n Object result = mbeanServer.invoke(objectName, m_methodName, m_parameters, m_signature);\n\n return matchesDesiredResult(result);\n }",
"public void setAction(String action);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"private void processGameAction(GameAction gameAction) {\r\n // Get all of the methods to be called by this setting as strings\r\n ArrayList<String> methods = gameAction.getGameActionMethods();\r\n \r\n // Set each method into an array to be run using the mapMethodSetting\r\n for (String methodName : methods) {\r\n try {\r\n // Get the specific method to run from this class \r\n Method method = GameManager.class.getMethod(methodName, \r\n this.methodMapGameActions.get(methodName));\r\n \r\n // Set an array to hold the arguments for this \r\n Object[] arguments = \r\n new Object[method.getParameterTypes().length];\r\n \r\n // Loop through the values and add them to the arguments list\r\n for (int i = 0; i < arguments.length; i++) {\r\n arguments[i] = gameAction.getNextActionValue();\r\n }\r\n \r\n // Invoke the method with the arguments array\r\n method.invoke(this, arguments);\r\n }\r\n catch (NoSuchMethodException|IllegalAccessException|\r\n InvocationTargetException e) {\r\n System.out.println(e.getCause());\r\n }\r\n }\r\n }",
"@Override\n public Action chooseAction(List<Class<? extends Action>> possibleActions)\n {\n // if receive a offer from opponent\n if (null != lastOffer) {\n\n // check whether choose acceptance\n Action action = acceptanceStrategy.handleOfferFromOpponent(lastOffer);\n\n if (null != action) {\n return action;\n }\n }\n\n // if we offer first or we can not accept offer from opponent, deliver to offering strategy\n return offeringStrategy.offer(opponentModelInterface);\n }",
"@Override\r\n\t\tpublic void action() {\n\t\t\tswitch (state) {\r\n\t\t\tcase REGISTER:\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" trying to register\");\r\n\t\t\t\t\r\n\t\t\t\t// searching for waiter agent\r\n\t\t\t\twhile(waiter == null) {\r\n\t\t\t\t\twaiter = searchWaiterAgent(\"waiter-service\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tACLMessage cfp = new ACLMessage(ACLMessage.CFP);\r\n\t\t\t\tcfp.addReceiver(waiter);\r\n\t\t\t\tcfp.setContent(\"philosopher-agent\");\r\n\t\t\t\tcfp.setConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tcfp.setReplyWith(\"cfp\"+System.currentTimeMillis());\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" send registration request \" + cfp);\r\n\t\t\t\tmyAgent.send(cfp);\r\n\t\t\t\t\r\n\t\t\t\t// Prepare template to get response\r\n\t\t\t\t//mt = MessageTemplate.and(MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\"),\r\n\t\t\t\t//\t\tMessageTemplate.MatchInReplyTo(request.getReplyWith()));\r\n\t\t\t\tmt = MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tstate = State.REGISTERED;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase REGISTERED:\r\n\t\t\t\tACLMessage response = myAgent.receive();\r\n\t\t\t\tif (response != null && response.getConversationId().equals(\"philosopher-waiter-fork\")) {\r\n\t\t\t\t\tif (response.getPerformative() == ACLMessage.SUBSCRIBE) {\r\n\t\t\t\t\t\t// behaviour can be finished\r\n\t\t\t\t\t\tregistered = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registered Successfully\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tregistered = false;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registration in progress\");\r\n\t\t\t\t\t\tstate = State.REGISTER;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(myAgent.getAID().getName() + \" blocked\");\r\n\t\t\t\t\tblock();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"POGOProtos.Rpc.CombatActionProto getCurrentAction();",
"public void executeAction() {\n classifier.addFeature(operation);\n }",
"public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}",
"@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }",
"@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}",
"@Override\r\n\t\t\tpublic void actionActivated(GameAction action) {\r\n\t\t\t\tif(selectAction == null) {\r\n\t\t\t\t\tif(action.getCode().equals(CollectorSelect)) {\r\n\t\t\t\t\t\tselectAction = (SelectMagicCollector) action;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(selectAction != null) {\r\n\t\t\t\t\t\towningCard.getOwningPlayer().getGameZone(SummonZone).deavtivateAll();\r\n\t\t\t\t\t\towningCard.getOwningPlayer().getGameZone(CollectorZone).deavtivateAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}",
"public void setAction (String action) {\n this.action = action;\n }",
"public void setExecuteAction(Action action) {\n this.data.setExecuteAction(action);\n }",
"public void performAction();",
"public Object evaluateAction(String action, Object target, IMObject parent, NodeDescriptor node,\r\n AssertionDescriptor assertion) {\r\n ActionTypeDescriptor descriptor = getActionTypeDescriptorByName(action);\r\n if (descriptor == null) {\r\n throw new AssertionException(\r\n AssertionException.ErrorCode.ActionNotSupportedByAssertion,\r\n new Object[]{action, this.getName()});\r\n }\r\n\r\n try {\r\n Class clazz = Thread.currentThread().getContextClassLoader().loadClass(descriptor.getClassName());\r\n Method method;\r\n Object[] args;\r\n try {\r\n method = clazz.getMethod(descriptor.getMethodName(), ActionContext.class);\r\n args = new Object[]{new ActionContext(assertion, parent, node, target)};\r\n } catch (NoSuchMethodException ignore) {\r\n // try the old style binding\r\n method = clazz.getMethod(descriptor.getMethodName(),\r\n Object.class, NodeDescriptor.class,\r\n AssertionDescriptor.class);\r\n args = new Object[]{target, node, assertion};\r\n }\r\n\r\n return method.invoke(null, args);\r\n } catch (Exception exception) {\r\n throw new AssertionException(AssertionException.ErrorCode.FailedToApplyAssertion,\r\n new Object[]{action, this.getName()}, exception);\r\n\r\n }\r\n }",
"@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}",
"interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }",
"protected String applyAction(PlayerAction action, Player player) {\n GameContext.log(0, \"ignoring action \" + action);\n return \"\";\n }",
"public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }",
"public void performAbility() { return; }",
"public void setAction(A action) {\r\n\t\tthis.action = action;\r\n\t}",
"public void ExecuteAction()\n {\n ActionTarget oTarget = mVecTargets.get( 0 );\n\n // Check if attack lands: compute chance of hitting the target\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetHitChance( oTarget.mCell.GetUnit() ) )\n {\n // Get the attack information from the attacking unit\n double dFinalDamage = Math.max(\n 1,\n mSourceUnit.GetUnit().GetResultingAttributes().GetStrength() -\n oTarget.mCell.GetUnit().GetUnit().GetResultingAttributes().GetPhysicalDef() );\n\n // Check critical chance\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetCritChance() )\n {\n dFinalDamage *= 1.5;\n oTarget.mActionStatus = ActionStatus.STATUS_CRITICAL;\n }\n else\n {\n oTarget.mActionStatus = ActionStatus.STATUS_SUCCESS;\n }\n\n // Add random portion to damage (10% of base damage)\n dFinalDamage = RandomGenerator.GetInstance().GetRandom(\n dFinalDamage - ( dFinalDamage / 10 ),\n dFinalDamage + ( dFinalDamage / 10 ) );\n mDamage = oTarget.mCell.GetUnit().ApplyDamage( dFinalDamage );\n\n // Add Slow status to target\n oTarget.mCell.GetUnit().SetStatus( new UnitStatusSlow(\n SLOW_TURN_DURATION,\n oTarget.mCell.GetUnit(),\n SLOW_PERCENTAGE ) );\n\n }\n else\n {\n mDamage = 0;\n oTarget.mActionStatus = ActionStatus.STATUS_MISS;\n }\n\n NotifyActionUpdate();\n ResetAttackArray();\n mSourceUnit.SetActionPerformed();\n }",
"@Override\r\n\tpublic Object doApply(String owner, @NotNull List<String> factors, @NotNull HttpServletRequest request) {\n\t\tsender.doSend(determineParameters(request, getVerifyCode(true).getCode()));\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void setAction() {\n\t}",
"protected abstract void action(Object obj);",
"public void doAction(){}",
"@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard cardToSteal = targetingAction.getPrimaryTargetCard(targetGroupId);\n\n // Perform result(s)\n action.appendEffect(\n new StealCardToLocationEffect(action, cardToSteal));\n }",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }",
"public void handleActionApply() {\n\t\t// it's important to perform handleActionOk\n\t\t// and not handleActionApply here\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\t// afterwards reopen the bean editor\n\t\tnew OpenCurrentBillingPeriod().execute();\n\t}",
"public boolean performAction(String action, Character caller) {\r\n\r\n\t\tfor (Action a : this.actions) {\r\n\t\t\tif (a.name().equals(action)) {\r\n\t\t\t\ta.perform(caller);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void setAction(String action) {\n this.action = action;\n }",
"public void setAction(String action) {\n this.action = action;\n }",
"public int onAction(int r11, int r12, int r13) {\n /*\n r10 = this;\n r9 = 9;\n r8 = 4;\n r7 = 3;\n r6 = 1;\n r5 = 0;\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener onAction Start command: \";\n r3 = r3.append(r4);\n r3 = r3.append(r11);\n r4 = \" cmdAttr: \";\n r3 = r3.append(r4);\n r3 = r3.append(r12);\n r4 = \" priority: \";\n r3 = r3.append(r4);\n r3 = r3.append(r13);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r1 = 1;\n switch(r12) {\n case 1: goto L_0x005d;\n case 2: goto L_0x005f;\n case 3: goto L_0x0061;\n default: goto L_0x0036;\n };\n L_0x0036:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener onAction cmdAttr invalid :!!!\";\n r3 = r3.append(r4);\n r3 = r3.append(r12);\n r3 = r3.toString();\n android.util.Log.e(r2, r3);\n L_0x004e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r0 = r2.mDestType;\n switch(r11) {\n case 3: goto L_0x01e5;\n case 4: goto L_0x0063;\n case 5: goto L_0x0063;\n case 6: goto L_0x01e5;\n default: goto L_0x0055;\n };\n L_0x0055:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener Unknown CMD!\";\n android.util.Log.i(r2, r3);\n L_0x005c:\n return r5;\n L_0x005d:\n r1 = 1;\n goto L_0x004e;\n L_0x005f:\n r1 = 2;\n goto L_0x004e;\n L_0x0061:\n r1 = 3;\n goto L_0x004e;\n L_0x0063:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener: CBM_STOP!\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mSrcType;\n r3 = r3.append(r4);\n r4 = \", mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = r1 ^ -1;\n r0 = r0 & r2;\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mDestType;\n if (r2 == 0) goto L_0x00a8;\n L_0x0096:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mDestType;\n if (r0 != r2) goto L_0x00a8;\n L_0x009c:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener: CBM_STOP, do nothing mDestType == destDir!\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n goto L_0x005c;\n L_0x00a8:\n if (r0 != 0) goto L_0x00f7;\n L_0x00aa:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r6) goto L_0x00cd;\n L_0x00b0:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP Already Stoped mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x00cd:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCurrentStatus;\n if (r2 != r6) goto L_0x00e0;\n L_0x00d3:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener CBM_STOP Already been stoped because there is other activity in front\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n goto L_0x005c;\n L_0x00e0:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2._stop();\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r6;\n L_0x00e9:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.notifymsg(r8, r5, r1);\n L_0x00ee:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener onAction End!!!\";\n android.util.Log.d(r2, r3);\n goto L_0x005c;\n L_0x00f7:\n if (r6 != r1) goto L_0x016e;\n L_0x00f9:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP All mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r7) goto L_0x0139;\n L_0x011b:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already STOP_FRONT mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x0139:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 != r9) goto L_0x014e;\n L_0x0143:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 2;\n r2.setDestination(r3);\n L_0x0149:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r7;\n goto L_0x00e9;\n L_0x014e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x0167;\n L_0x015a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 2;\n r2.setDestination(r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setDisplay(r3);\n goto L_0x0149;\n L_0x0167:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setDisplay(r3);\n goto L_0x0149;\n L_0x016e:\n r2 = 2;\n if (r2 != r1) goto L_0x00e9;\n L_0x0171:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_STOP All mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r8) goto L_0x01b1;\n L_0x0193:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already STOP_REAR mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x01b1:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 != r9) goto L_0x01c6;\n L_0x01bb:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r6);\n L_0x01c0:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r8;\n goto L_0x00e9;\n L_0x01c6:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x01de;\n L_0x01d2:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r6);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setRearDisplay(r3);\n goto L_0x01c0;\n L_0x01de:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r3 = 0;\n r2.setRearDisplay(r3);\n goto L_0x01c0;\n L_0x01e5:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener CBM_START mSrcType is !\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mSrcType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != 0) goto L_0x0225;\n L_0x0207:\n r2 = \"InputSourceClient\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"mCBMActionListener Already Started mDestType:\";\n r3 = r3.append(r4);\n r4 = com.autochips.inputsource.InputSourceClient.this;\n r4 = r4.mDestType;\n r3 = r3.append(r4);\n r3 = r3.toString();\n android.util.Log.i(r2, r3);\n goto L_0x005c;\n L_0x0225:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCurrentStatus;\n if (r2 != r6) goto L_0x0238;\n L_0x022b:\n r2 = \"InputSourceClient\";\n r3 = \"mCBMActionListener CBM_START been stoped by other activity in front just return resource\";\n android.util.Log.i(r2, r3);\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x005c;\n L_0x0238:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r6) goto L_0x024e;\n L_0x023e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2._play();\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n L_0x0247:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.notifymsg(r8, r6, r1);\n goto L_0x00ee;\n L_0x024e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r7) goto L_0x0274;\n L_0x0254:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 == r9) goto L_0x026a;\n L_0x025e:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x026f;\n L_0x026a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r7);\n L_0x026f:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x0247;\n L_0x0274:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mCbmCtlStatus;\n if (r2 != r8) goto L_0x0247;\n L_0x027a:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n if (r2 == r9) goto L_0x0290;\n L_0x0284:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2 = r2.mSrcType;\n r3 = com.autochips.inputsource.InputSourceClient.this;\n r3 = r3.mCBM;\n r3 = 10;\n if (r2 != r3) goto L_0x0295;\n L_0x0290:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.setDestination(r7);\n L_0x0295:\n r2 = com.autochips.inputsource.InputSourceClient.this;\n r2.mCbmCtlStatus = r5;\n goto L_0x0247;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autochips.inputsource.InputSourceClient.1.onAction(int, int, int):int\");\n }",
"@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}",
"@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}",
"@Override\n public List<String> doAction(){\n destination.setCloakTurns(destination.getCloakTurns() + 3);\n destination.getOwner().getResources().getTechResource().useTech(Constants.CLOAK_COST);\n //Message \"(Player) cloaked (destination) for three more turns.\"\n return Arrays.asList((destination.getOwner().getName() + \" cloaked \" + destination.getName() + \" for three more turns.\"));\n }",
"public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }",
"protected void actionConfirmed()\r\n\t\t{\n\r\n\t\t\tif ( actionSelect.getSelectedItem() == null )\r\n\t\t\t\tDEFAULT_SHELL.executeLine( \"set battleAction=attack\" );\r\n\r\n\t\t\tRunnable request = (Runnable) locationSelect.getSelectedItem();\r\n\t\t\tif ( request == null )\r\n\t\t\t\treturn;\r\n\r\n\t\t\tsetProperty( \"lastAdventure\", request.toString() );\r\n\r\n\t\t\t// If there are conditions in the condition field, be\r\n\t\t\t// sure to process them.\r\n\r\n\t\t\tString conditionList = conditionField.getText().trim();\r\n\t\t\tif ( conditionList.equalsIgnoreCase( \"none\" ) )\r\n\t\t\t\tconditionList = \"\";\r\n\r\n\t\t\tif ( conditionList.length() > 0 )\r\n\t\t\t{\r\n\t\t\t\tDEFAULT_SHELL.executeLine( \"conditions clear\" );\r\n\r\n\t\t\t\tboolean verifyConditions = false;\r\n\t\t\t\tboolean useDisjunction = false;\r\n\t\t\t\tString [] conditions = conditionList.split( \"\\\\s*,\\\\s*\" );\r\n\r\n\t\t\t\tfor ( int i = 0; i < conditions.length; ++i )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( conditions[i].equals( \"check\" ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Postpone verification of conditions\r\n\t\t\t\t\t\t// until all other conditions added.\r\n\r\n\t\t\t\t\t\tverifyConditions = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( conditions[i].equals( \"outfit\" ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Determine where you're adventuring and use\r\n\t\t\t\t\t\t// that to determine which components make up\r\n\t\t\t\t\t\t// the outfit pulled from that area.\r\n\r\n\t\t\t\t\t\tif ( !(request instanceof KoLAdventure) || !EquipmentDatabase.addOutfitConditions( (KoLAdventure) request ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsetStatusMessage( \"No outfit corresponds to this zone.\" );\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tverifyConditions = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( conditions[i].equals( \"or\" ) || conditions[i].equals( \"and\" ) || conditions[i].startsWith( \"conjunction\" ) || conditions[i].startsWith( \"disjunction\" ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tuseDisjunction = conditions[i].equals( \"or\" ) || conditions[i].startsWith( \"disjunction\" );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ( !DEFAULT_SHELL.executeConditionsCommand( \"add \" + conditions[i] ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tKoLmafia.enableDisplay();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( verifyConditions )\r\n\t\t\t\t{\r\n\t\t\t\t\tDEFAULT_SHELL.executeConditionsCommand( \"check\" );\r\n\t\t\t\t\tif ( StaticEntity.getClient().conditions.isEmpty() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tKoLmafia.updateDisplay( \"All conditions already satisfied.\" );\r\n\t\t\t\t\t\tKoLmafia.enableDisplay();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( StaticEntity.getClient().conditions.size() > 1 )\r\n\t\t\t\t\tDEFAULT_SHELL.executeConditionsCommand( useDisjunction ? \"mode disjunction\" : \"mode conjunction\" );\r\n\r\n\t\t\t\tconditionField.setText( \"\" );\r\n\t\t\t\tif ( countField.getText().equals( \"\" ) )\r\n\t\t\t\t\tcountField.setText( String.valueOf( KoLCharacter.getAdventuresLeft() ) );\r\n\t\t\t}\r\n\r\n\t\t\t(new RequestThread( request, getValue( countField ) )).start();\r\n\t\t\tcountField.setText( \"\" );\r\n\t\t}",
"public void goToPermissions(String action) {\n boolean allowed = false;\n if (selectedSubject instanceof Subject) {\n allowed = isAuthorized((Subject) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n } else {\n allowed = isAuthorized((Role) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n }\n if (!allowed) {\n return;\n }\n if (selectedSubject != null\n && (!selectedActions.isEmpty() || (!selectedCollectionActions.isEmpty() && isSelectedFields(selectedCarrierModel.getCollectionFields().values())))) {\n\n if (getTabEntity() instanceof Carrier) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedCarrierModel, carriers);\n } else {\n if (getTabEntity() instanceof Party) {\n if (partyModel.getEntity().getId() != null) {\n List<RowModel> ret = new ArrayList<RowModel>();\n ret.add(new RowModel(partyModel.getEntity(), partyModel.isSelected(), \"Party-\" + ((Party) partyModel.getEntity()).getPartyField1() + \", \"\n + ((Party) partyModel.getEntity()).getPartyField2()));\n if (isSelected(ret)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, partyModel, ret);\n } else {\n System.err.println(\"Select party\");\n }\n }\n } else {\n if (getTabEntity() instanceof Contact) {\n if (isSelected(contacts)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedContactModel, contacts);\n } else {\n System.err.println(\"Select contact\");\n }\n }\n }\n }\n }\n\n }",
"@Override\n\tpublic void action() {\n\n\t}",
"public boolean[] getAction()\n {\n cleanActions();\n \n //Execute BT to get the action to do.\n m_behaviorTree.execute();\n \n //keep track of last set of actions.\n //recordActions();\n\n if(m_resetThisCycle)\n {\n resetAgent();\n }\n\n //And this is the action that must be taken:\n return action;\n }",
"public abstract void action();"
]
| [
"0.7106402",
"0.6757423",
"0.6548902",
"0.63633806",
"0.6271428",
"0.62097305",
"0.6139064",
"0.6133486",
"0.6096722",
"0.60887194",
"0.60062784",
"0.59751564",
"0.59735376",
"0.5948096",
"0.5918909",
"0.5895805",
"0.5885922",
"0.5811174",
"0.5804285",
"0.5786696",
"0.5753412",
"0.5719319",
"0.56971043",
"0.56929094",
"0.5690269",
"0.5680326",
"0.56645477",
"0.5641884",
"0.56367785",
"0.56188995",
"0.5612642",
"0.55991125",
"0.55937207",
"0.5589264",
"0.5587485",
"0.5583778",
"0.55761814",
"0.5572935",
"0.5572525",
"0.55380636",
"0.5507533",
"0.5507533",
"0.5507533",
"0.5506842",
"0.55059797",
"0.5504455",
"0.55041564",
"0.5499126",
"0.54928255",
"0.54808706",
"0.5470224",
"0.54555637",
"0.54503113",
"0.5448237",
"0.54385805",
"0.5436508",
"0.54341626",
"0.54326886",
"0.54232925",
"0.5420073",
"0.5406087",
"0.5404579",
"0.53845876",
"0.5381937",
"0.53749806",
"0.5370631",
"0.53693074",
"0.5366656",
"0.5366465",
"0.53565",
"0.5351111",
"0.5341998",
"0.5320756",
"0.53183335",
"0.53154534",
"0.5299519",
"0.52955127",
"0.5290973",
"0.52867043",
"0.52837306",
"0.5283155",
"0.528163",
"0.52774996",
"0.5275496",
"0.5267891",
"0.5265004",
"0.5264939",
"0.5256066",
"0.52555865",
"0.52555865",
"0.5250856",
"0.5242242",
"0.5240152",
"0.5240142",
"0.5231972",
"0.52293557",
"0.52231807",
"0.5222663",
"0.5214613",
"0.5200244"
]
| 0.61983234 | 6 |
This method should return the current agreement. Some protocols only have an agreement at the negotiation session, make sure that this method returns null until the end of the session in that case, because this method might be queried at intermediary steps. | Bid getCurrentAgreement(Session session, List<NegotiationParty> parties); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Agreement getAgreement() {\n\t\treturn this.agreement;\n\t}",
"public ProtocolResult getAnswer(){\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.9\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isInitiator() && (getState() == RequestProtocolState.WAITING_ANSWER)) {\n\t\t\t\t\n\t\t\t\tProtocolResult result = null;\n\t\t\t\tACLMessage aMsg = getRefAclAgent().getACLMessageForConversationId( getConversationId() );\n\t\t\t\t\n\t\t\t\tif( aMsg != null )\n\t\t\t\t{\n\t\t\t\t\tresult = new ProtocolResult();\n\t\t\t\t\tresult.setPerformative( aMsg.getPerformative() );\n\t\t\t\t\tresult.setContent( aMsg.getContent().getContent() );\n\t\t\t\t\t\n\t\t\t\t\tif( result.getPerformative().compareTo(Performative.NOT_UNDERSTOOD) == 0 )\n\t\t\t\t\t\tsetFinalStep();\n\t\t\t\t\telse if( result.getPerformative().compareTo(Performative.REFUSE) == 0 )\n\t\t\t\t\t\tsetFinalStep();\n\t\t\t\t\telse if( result.getPerformative().compareTo(Performative.AGREE) == 0 )\n\t\t\t\t\t\tsetState(RequestProtocolState.WAITING_RESULT);\n\t\t\t\t\t\n\t\t\t\t\tresetStartedTime();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\telse if( isParticipant() ){\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.10\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse{\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.11\")); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"PartyType getConsignorParty();",
"public ProtocolResult getRequest() {\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.2\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isParticipant() && (getState() == RequestProtocolState.NOT_STARTED)) {\n\t\t\t\t\n\t\t\t\tACLMessage message = getRefAclAgent().getACLMessage(EnumFipaProtocol.FIPA_REQUEST, Performative.REQUEST);\n\t\t\t\t\n\t\t\t\tif (message != null) {\n\t\t\t\t\tinitiate(message.getSender(), getRefAclAgent().getAddress());\n\t\t\t\t\t\n\t\t\t\t\tsetConversationId(message.getConversationId());\n\t\t\t\t\tsetState(RequestProtocolState.WAITING_REQUEST);\n\t\t\t\t\t\n\t\t\t\t\tresetStartedTime();\n\t\t\t\t\t\n\t\t\t\t\treturn new ProtocolResult(message.getSender(), Performative.REQUEST, message.getContent().getContent().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (isInitiator()) {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.3\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.4\")); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"PartyType getConsigneeParty();",
"com.polytech.spik.protocol.SpikMessages.Conversation getConversation();",
"public java.lang.String getModeOfConveyance () {\n\t\treturn modeOfConveyance;\n\t}",
"public Protocol getProtocol()\n \t{\n \t\treturn protocol;\n \t}",
"public java.lang.Object getServiceLevelAgreementID() {\n return serviceLevelAgreementID;\n }",
"public String getConformance() { \n\t\treturn getConformanceElement().getValue();\n\t}",
"public void setAgreement(Agreement agreement) {\n\t\tthis.agreement = agreement;\n\t}",
"public java.lang.CharSequence getCLAPPROVAL() {\n return CL_APPROVAL;\n }",
"public String getApprover() {\n return approver;\n }",
"public java.lang.CharSequence getCLAPPROVAL() {\n return CL_APPROVAL;\n }",
"public Protocol getProtocol();",
"public ProtocolType getProtocol() {\n return protocol;\n }",
"@JsonIgnore public Organization getAuthenticator() {\n return (Organization) getValue(\"authenticator\");\n }",
"public ProtocolTypes protocol() {\n return this.protocol;\n }",
"public tudresden.ocl20.core.jmi.uml15.core.Association getAssociation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getAssociation(this.refMofId());\n \t} \n \t\n\t\treturn super_getAssociation();\t\n }",
"public Protocol getProtocol() {\n\t\treturn protocol;\n\t}",
"public PaxosAcceptor getAcceptor()\n {\n return m_acceptor;\n }",
"public Protocol getPrideProtocol() {\n\n \n return prideProtocol;\n\n }",
"public Protocol getProtocol() {\n Protocol result = null;\n \n if (getResourceRef() != null) {\n // Attempt to guess the protocol to use\n // from the target reference scheme\n result = getResourceRef().getSchemeProtocol();\n // Fallback: look at base reference scheme\n if (result == null) {\n result = (getResourceRef().getBaseRef() != null) ? getResourceRef()\n .getBaseRef().getSchemeProtocol()\n : null;\n }\n }\n\n return result;\n }",
"public net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision getDecision() {\n net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision result = net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision.valueOf(decision_);\n return result == null ? net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision.ACCEPTED : result;\n }",
"public com.polytech.spik.protocol.SpikMessages.Conversation getConversation() {\n if (typeCase_ == 2) {\n return (com.polytech.spik.protocol.SpikMessages.Conversation) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Conversation.getDefaultInstance();\n }",
"public net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision getDecision() {\n net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision result = net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision.valueOf(decision_);\n return result == null ? net.nyhm.protonet.example.proto.LoginProto.LoginResponse.Decision.ACCEPTED : result;\n }",
"public Algorithme getAlgorithme() {\n return this.algorithme;\n }",
"public ProtocolEnum getProtocol() {\n return protocol;\n }",
"protected int interestProtocol()\n {\n return m_nOpsInterestProtocol;\n }",
"public int getAcknowledgeMode() {\n return acknowledgeMode;\n }",
"private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public void agree(Object content){\n\n\t\tif( isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)){\n\t\t\tsendMessage(content, Performative.AGREE, getInitiator());\n\t\t\tsetState(RequestProtocolState.SENDING_RESULT);\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.7\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.8\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder getConfigOrBuilder() {\n if ((converseRequestCase_ == 1) && (configBuilder_ != null)) {\n return configBuilder_.getMessageOrBuilder();\n } else {\n if (converseRequestCase_ == 1) {\n return (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_;\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig getConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n return (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_;\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n } else {\n if (converseRequestCase_ == 1) {\n return configBuilder_.getMessage();\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n }",
"@Override\n\tpublic java.lang.String getProofNumber() {\n\t\treturn _candidate.getProofNumber();\n\t}",
"public Conference getConference();",
"public InboundSecurityRulesProtocol protocol() {\n return this.protocol;\n }",
"public InteractionMatrix<ConstrainedInteraction> getInteractionMatrix() {\n return this.getEnvironmentType().getInteractionMatrix();\n }",
"public messages.Ackinterface.AckInterface getAck() {\n return ack_;\n }",
"public com.polytech.spik.protocol.SpikMessages.Conversation getConversation() {\n if (conversationBuilder_ == null) {\n if (typeCase_ == 2) {\n return (com.polytech.spik.protocol.SpikMessages.Conversation) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Conversation.getDefaultInstance();\n } else {\n if (typeCase_ == 2) {\n return conversationBuilder_.getMessage();\n }\n return com.polytech.spik.protocol.SpikMessages.Conversation.getDefaultInstance();\n }\n }",
"public String getPartyAuthenticationAssessmentInstanceReference() {\n return partyAuthenticationAssessmentInstanceReference;\n }",
"@Override\n\tpublic Protocol getProtocol() {\n\t\treturn null;\n\t}",
"public RoutingProtocol getProtocol() {\n\t\tif (this.isBgpProcess()) {\n\t\t\treturn RoutingProtocol.BGP;\n\t\t}\n\t\telse if (this.isOspfProcess()) {\n\t\t\treturn RoutingProtocol.OSPF;\n\t\t}\n\t\telse if (this.isStaticProcess()) {\n\t\t\treturn RoutingProtocol.STATIC;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getInternalAuditServiceAgreementReference() {\n return internalAuditServiceAgreementReference;\n }",
"public Contributor getResponsibleParty() {\n\t\treturn null;\n\t\t// org.dom4j.Document xmlDoc = getXmlDoc();\n\t\t// return getContributor(...);\n\t}",
"private int agreement(SpatialObject x, SpatialObject y) {\n\n\t\tint agr = -1;\n\n\t\tif (x.getScore() > y.getScore()) {\n\t\t\tif (x.getRate() > y.getRate()) {\n\t\t\t\tagr = 1;\n\t\t\t}\n\t\t} else if (x.getScore() < y.getScore()) {\n\t\t\tif (x.getRate() < y.getRate()) {\n\t\t\t\tagr = 1;\n\t\t\t}\n\t\t} \n\n\t\tif (x.getScore() == y.getScore() && x.getRate() != y.getRate()) {\n\t\t\tagr = 2; \t\t\n\t\t}\n\n\t\tif (x.getRate() == y.getRate() && x.getScore() != y.getScore()) {\n\t\t\tagr = 3;\t\t\n\t\t} \n\n\t\tif (x.getRate() == y.getRate() && x.getScore() == y.getScore()) {\n\t\t\tagr = 0;\n\t\t}\t\t\n\t\treturn agr;\n\t}",
"com.polytech.spik.protocol.SpikMessages.ConversationOrBuilder getConversationOrBuilder();",
"public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n if (authBuilder_ == null) {\n return auth_;\n } else {\n return authBuilder_.getMessage();\n }\n }",
"public String getActiveChallengesAnswer() {\n return categories.get(indexOfActiveCategory).getActiveChallenge().getAnswer();\n }",
"public BrokerAlgoSpec getAlgoSpec()\n {\n return algoSpec;\n }",
"private HRProtocol receiveEnvelop()\n\t{\n\t\tHRProtocol env = null;\n\t\tObject obj = clientSocket.receiveObject();\t// Receive from server.\n\t\tif(obj instanceof HRProtocol)\n\t\t{\n\t\t\tenv = (HRProtocol) obj;\n\t\t\tmsg = env.getPassingMessage();\n\t\t}else\n\t\t{\n\t\t\t// Error in transition.\n\t\t}\n\t\tclientSocket.close();\n\t\t\n\t\treturn env;\n\t}",
"@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }",
"public NetworkProtocol getProtocol() {\n return _protocol;\n }",
"public DownloadResponseCompliancePdfReport compliancePdfReport() {\n return this.compliancePdfReport;\n }",
"public static @NonNull ByteBuffer getAth() {\n ByteBuffer req = getMsg(REQ_ATH, OFS_RND + RND_SIZ); // Create CHALLENGE request\n req.put(SLOT_0); // Add Slot Number\n req.put(SafFkt.getRnd(RND_SIZ)); // Add Nonce\n return req; // Return the CHALLENGE request\n }",
"public String getConference() {\n\t\treturn conference;\n\t}",
"public String getAcceptor() {\r\n\t\treturn acceptor;\r\n\t}",
"public com.polytech.spik.protocol.SpikMessages.ConversationOrBuilder getConversationOrBuilder() {\n if ((typeCase_ == 2) && (conversationBuilder_ != null)) {\n return conversationBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 2) {\n return (com.polytech.spik.protocol.SpikMessages.Conversation) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Conversation.getDefaultInstance();\n }\n }",
"public com.polytech.spik.protocol.SpikMessages.ConversationOrBuilder getConversationOrBuilder() {\n if (typeCase_ == 2) {\n return (com.polytech.spik.protocol.SpikMessages.Conversation) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Conversation.getDefaultInstance();\n }",
"public String getProtocol() {\n return this.protocol;\n }",
"public InteractMode getCurrentMode() {\r\n\t\treturn currentMode;\r\n\t}",
"NegotiationType getNegotiationType();",
"public Confidence getConfidence() {\n return confidence;\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig getConfig() {\n if (converseRequestCase_ == 1) {\n return (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_;\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }",
"public AlgoDiffusion getAlg() {\n\t\treturn alg;\n\t}",
"public com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder getConfigOrBuilder() {\n if (converseRequestCase_ == 1) {\n return (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_;\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }",
"public String getProtocol() {\n return m_Protocol;\n }",
"public Boolean getAcceptTerms() {\n\t\treturn acceptTerms;\n\t}",
"private double getCorrection(){\n //Get the current angle of the robot\n double angle = getAngle();\n double correction;\n\n //Use the angle to calculate the correction\n if (angle == 0){\n //If angle = 0, robot is moving straight; no correction needed\n correction = 0;\n }else{\n //If angle != 0, robot is not moving straight\n //Correction is negative angle (to move the robot in the opposite direction)\n //multiplied by gain; the gain is the sensitivity to angle\n //We have determined that .1 is a good gain; higher gains result in overcorrection\n //Lower gains are ineffective\n correction = angle*gain;\n }\n //Display correction\n telemetry.addData(\"Correction\", correction);\n telemetry.update();\n\n return correction;\n }",
"public int getProtocol() {\n return protocol;\n }",
"public ProtocolProviderService getProtocolProvider()\n {\n return providerService;\n }",
"Party getOrganizationParty();",
"public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n return auth_;\n }",
"@Override\n\tpublic long getCurrentCtc() {\n\t\treturn _candidate.getCurrentCtc();\n\t}",
"public final String getProtocol() {\n return protocol;\n }",
"org.beangle.security.session.protobuf.Model.Agent getAgent();",
"public State getInConversation() {\n\t\treturn inConversation;\n\t}",
"public net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision() {\n net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision result = net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision.valueOf(decision_);\n return result == null ? net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision.ACCEPTED : result;\n }",
"pb4server.CheckAllianceCompetitionAskReq getCheckAllianceCompetitionAskReq();",
"public Envelope getEnvelope() {\n return this.envelope;\n }",
"public boolean getAutoNegotiation() {\n return autoNegotiation;\n }",
"public String getProtocol() {\n return protocol;\n }",
"Inertial getInertial();",
"public java.lang.String getProtocol () {\r\n return protocol;\r\n }",
"public RemoteConnection getCispaConnection() {\n return cispaConnection;\n }",
"public String getProtocol() {\n return (String)getAttributeInternal(PROTOCOL);\n }",
"public TransportProtocol protocol() {\n return this.protocol;\n }",
"@Override\n\tpublic Object getEqualizer() {\n\t\tif (mEQ != null) {\n\t\t\treturn mEQ.getEqualizer();\n\t\t}\n\t\treturn null;\n\t}",
"public double getConfidence()\n {\n return this.confidence;\n }",
"public net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision() {\n net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision result = net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision.valueOf(decision_);\n return result == null ? net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision.ACCEPTED : result;\n }",
"public Envelope getEnvelope() {\n return envelope;\n }",
"public BigDecimal getApprovalAmt() {\n if (isReceipt()) {\n return getWriteOffAmt();\n }\n return getPayAmt();\n }",
"public boolean isAxiom() {\n return this.axiom;\n }",
"public EndpointAuthMode authMode() {\n return this.authMode;\n }",
"public IBrowserConnection getSelectedConnection()\n {\n return selectedConnection;\n }",
"abstract public Assoc getAssoc();",
"public boolean hasConversation() {\n return typeCase_ == 2;\n }",
"public String getIntroducerCommission() {\r\n return introducerCommission;\r\n }",
"public String getContactDialogueRecordSessionMechanism() {\n return contactDialogueRecordSessionMechanism;\n }",
"public String getAlg() {\r\n\t\treturn alg;\r\n\t}"
]
| [
"0.6797984",
"0.5647313",
"0.5275164",
"0.5160992",
"0.5138498",
"0.49938875",
"0.49550202",
"0.4862024",
"0.48536724",
"0.48526824",
"0.4815771",
"0.48031563",
"0.4800227",
"0.47949144",
"0.47420034",
"0.47341686",
"0.47175413",
"0.46877828",
"0.46875545",
"0.46760383",
"0.46383432",
"0.4628511",
"0.46270943",
"0.46260217",
"0.4618451",
"0.4617638",
"0.46126723",
"0.46065047",
"0.46012998",
"0.45980018",
"0.45809293",
"0.45570695",
"0.45544112",
"0.454916",
"0.45388293",
"0.4519184",
"0.45167288",
"0.4502108",
"0.44979626",
"0.44951016",
"0.44947696",
"0.44848043",
"0.44791925",
"0.44678044",
"0.44671604",
"0.44665623",
"0.44548777",
"0.4449873",
"0.44480798",
"0.44437563",
"0.44431284",
"0.4433303",
"0.44236562",
"0.44231716",
"0.441167",
"0.44035083",
"0.4402383",
"0.43957147",
"0.43742383",
"0.43700022",
"0.4367582",
"0.4365949",
"0.43594143",
"0.4358378",
"0.435107",
"0.43501475",
"0.4347382",
"0.43459445",
"0.43446574",
"0.43446213",
"0.43414778",
"0.4327526",
"0.43203035",
"0.43118128",
"0.42995802",
"0.42981258",
"0.42929104",
"0.4290154",
"0.42887023",
"0.4287791",
"0.4286623",
"0.42858335",
"0.42851442",
"0.42794847",
"0.42766887",
"0.42737928",
"0.42724866",
"0.42677557",
"0.4266073",
"0.42628995",
"0.42590094",
"0.42549974",
"0.42514402",
"0.42487",
"0.42482904",
"0.424186",
"0.4240509",
"0.42312473",
"0.4231243",
"0.42298433"
]
| 0.6148449 | 1 |
Gets the number of parties that currently agree to the offer. For protocols that either have an agreement or not, you can set this number to 0 until an agreement is found, and then set this value to the number of parties. | int getNumberOfAgreeingParties(Session session, List<NegotiationParty> parties); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getTotalAcceptCount();",
"public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}",
"int getPeerCount();",
"public int getF_NumOfMatchesPayed() {\n return f_numOfMatchesPayed;\n }",
"int getParticipantsCount();",
"int getParticipantsCount();",
"int getPurchasableOffersCount();",
"int getDeliveriesCount();",
"public int getParticipantsCount()\n {\n return participants.size();\n }",
"@Override\n public int getIntraUsersWaitingYourAcceptanceCount() {\n //TODO: falta que este metodo que devuelva la cantidad de request de conexion que tenes\n try {\n\n if (getActiveIntraUserIdentity() != null){\n return getIntraUsersWaitingYourAcceptance(getActiveIntraUserIdentity().getPublicKey(), 100, 0).size();\n }\n\n } catch (CantGetIntraUsersListException e) {\n e.printStackTrace();\n } catch (CantGetActiveLoginIdentityException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }",
"protected double getNumWithdrawals() {\n return numWithdrawals;\n }",
"public Integer getAnswerCount() {\n return answerCount;\n }",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"int getNewlyAvailableQuestsCount();",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"public int getNewlyAvailableQuestsCount() {\n if (newlyAvailableQuestsBuilder_ == null) {\n return newlyAvailableQuests_.size();\n } else {\n return newlyAvailableQuestsBuilder_.getCount();\n }\n }",
"protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}",
"int getDeliveredCount();",
"int getReaultCount();",
"public int getDeliveriesCount() {\n if (deliveriesBuilder_ == null) {\n return deliveries_.size();\n } else {\n return deliveriesBuilder_.getCount();\n }\n }",
"public int getParticipantAmount() {\n\t\treturn Participants;\n\t}",
"public int getDeliveriesCount() {\n return deliveries_.size();\n }",
"public int getNewlyAvailableQuestsCount() {\n return newlyAvailableQuests_.size();\n }",
"private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }",
"public int getAvailableCount();",
"public long numCandidates();",
"@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }",
"@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }",
"int getResponsesCount();",
"public int getNumberOfCorrectAnswers() {\n int correctAnswers = (responses.size() - 1) - incorrectAnswers.size();\r\n if (correctAnswers < 0) {\r\n // FIXME: replace with proper logging?\r\n System.err.println(\"Somehow the number of responses was less than the number of incorrect answers: \"\r\n + responses + \" -- \" + incorrectAnswers);\r\n return 0;\r\n }\r\n return correctAnswers;\r\n }",
"int getNoOfParties();",
"int getInterestsCount();",
"int getRefundToCount();",
"public int numberOfQuestions() { \n\t\ttry {\n\t\t\treturn myQuestions.getNumberOfQuestions();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn 0; \n\t\t} \n\t}",
"public int getNumberOfConnectedPeersToAim() {\n\t\tint max = getNumberOfConnectedPeersToAimIncludingDarknet();\n\t\treturn max - node.peers.countConnectedDarknetPeers();\n\t}",
"public int getReaultCount() {\n if (reaultBuilder_ == null) {\n return reault_.size();\n } else {\n return reaultBuilder_.getCount();\n }\n }",
"public int getReaultCount() {\n return reault_.size();\n }",
"public int countProposalsAboveMine() {\n int count = 0;\n for (ProposalData data : proposals.values()) {\n if (!data.mineAsBig) {\n count++;\n }\n }\n return count;\n }",
"public int getIncidentsResponsibleForCount() {\r\n\t\treturn incidentsResponsibleFor.size();\r\n\t}",
"public int getWaypointsCount() {\n if (waypointsBuilder_ == null) {\n return waypoints_.size();\n } else {\n return waypointsBuilder_.getCount();\n }\n }",
"public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }",
"public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }",
"int getCiphersCount();",
"int getFundsCount();",
"int getFundsCount();",
"int getPeersCount();",
"public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }",
"@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_APPROVATORE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }",
"int getPeerURLsCount();",
"@Override\n\tpublic int getCsclPollsChoicesCount() {\n\t\treturn csclPollsChoicePersistence.countAll();\n\t}",
"public int getNumberCandidatesPerMention() {\n return numberCandidatesPerMention;\n }",
"int getReqCount();",
"public int getDeliveredCount() {\n return delivered_.size();\n }",
"public int getNumofbids() {\n return numofbids;\n }",
"public int getAcksCount() {\n return acks_.size();\n }",
"public int getAcksCount() {\n return acks_.size();\n }",
"long getTotalAcceptCount(long id);",
"public Integer getAttendCount() {\n return attendCount;\n }",
"public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }",
"@Override\n\tpublic Integer getNumberOfPossibleAnswers() {\n\t\treturn null;\n\t}",
"public int getInterestsCount() {\n if (interestsBuilder_ == null) {\n return interests_.size();\n } else {\n return interestsBuilder_.getCount();\n }\n }",
"public Integer getDesiredCount() {\n return this.desiredCount;\n }",
"public int getAcksCount() {\n return acks_.size();\n }",
"public int getAcksCount() {\n return acks_.size();\n }",
"@Nonnegative\n @CheckReturnValue\n public abstract int getRemainingRequests();",
"public int getNumOfRetrievelRequest() {\n return numOfRetrievelRequest_;\n }",
"public int getNumOfRetrievelRequest() {\n return numOfRetrievelRequest_;\n }",
"public int totalParties() {\n return numParties;\n }",
"public int getGoalsCount() {\n if (goalsBuilder_ == null) {\n return goals_.size();\n } else {\n return goalsBuilder_.getCount();\n }\n }",
"int numberOfCandidates();",
"public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public Integer intentsCount() {\n return this.intentsCount;\n }",
"int getNumberOfCavalry();",
"public int numberOfOpenSites() {\n return (openCount);\n }",
"public int getUnreadCount(Player player) {\n QuestionInstance instance = this.getInstance(player);\n if (this.getCbx()) {\n return instance.getActive() && !instance.getValidated() ? 1 : 0;\n } else {\n return instance.getActive() && !instance.getValidated() && instance.getReplies(player).isEmpty() ? 1 : 0;\n }\n }",
"public int getTotalCorrectAnswers() {\r\n\t\treturn totalCorrectAnswers;\r\n\t}",
"public int getNumOfRetrievelRequest() {\n return numOfRetrievelRequest_;\n }",
"public int getNumOfRetrievelRequest() {\n return numOfRetrievelRequest_;\n }",
"@Override\n\tpublic int getParticipationsCount() {\n\t\treturn _participationLocalService.getParticipationsCount();\n\t}",
"int getQuestCount();",
"@Override\n public int howManyActivated(){\n return (gameboardPanel.howManyActivated() + leaderCardsPanel.howManyActivated());\n }",
"public String getCurrentConfirmedCount() {\n return currentConfirmedCount;\n }",
"private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }",
"public int getNumProbes()\r\n\t{\r\n\t\treturn numProbes;\r\n\t}",
"int getTotalBotCount() {\n int t = 0;\n\n for (Integer i : m_botTypes.values())\n t += i;\n\n return t;\n }",
"public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }",
"private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }",
"int getAchieveInfoCount();",
"public static int count() {\n return postEncryptedPaymentRequestCount;\n }",
"public int getNumRobots() {\n return ((Integer)numRobotsSpinner.getValue()).intValue();\n }",
"int getFriendCount();",
"int getFriendCount();",
"public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }",
"public int getNumOfWithdraws() {\n\t\treturn numWithdraws;\n\t}",
"public int getNumRecipients() {\n return recipients.size();\n }",
"public int getResponsesCount() {\n if (responsesBuilder_ == null) {\n return responses_.size();\n } else {\n return responsesBuilder_.getCount();\n }\n }",
"public int getNbDeliveries() {\n\t\treturn nbDeliveries;\n\t}"
]
| [
"0.61010444",
"0.6042512",
"0.6030381",
"0.596651",
"0.58945304",
"0.58945304",
"0.5889483",
"0.5809361",
"0.5746119",
"0.5732521",
"0.57113296",
"0.566449",
"0.56619734",
"0.56619734",
"0.5647002",
"0.5642376",
"0.5642376",
"0.5604266",
"0.5597197",
"0.55588126",
"0.5544106",
"0.5530466",
"0.5526291",
"0.5514049",
"0.55015814",
"0.54676265",
"0.5453595",
"0.5444756",
"0.5429765",
"0.5429765",
"0.54252964",
"0.5425219",
"0.5415901",
"0.5405768",
"0.5381817",
"0.537867",
"0.5370249",
"0.5367661",
"0.5355503",
"0.5344269",
"0.53332615",
"0.5329373",
"0.532296",
"0.532296",
"0.530897",
"0.5308776",
"0.5308776",
"0.53043854",
"0.53042513",
"0.5296483",
"0.52818817",
"0.52735645",
"0.52629507",
"0.52600276",
"0.525979",
"0.5250675",
"0.5248916",
"0.52489054",
"0.52489054",
"0.5241419",
"0.5241049",
"0.5225192",
"0.5221071",
"0.52209157",
"0.5200014",
"0.5199027",
"0.5199027",
"0.51983446",
"0.5197665",
"0.5197665",
"0.5190364",
"0.51875496",
"0.51863337",
"0.51857543",
"0.5182783",
"0.5175209",
"0.5175031",
"0.5171802",
"0.51676154",
"0.5167053",
"0.5167053",
"0.51658213",
"0.51630753",
"0.5162834",
"0.5157741",
"0.51546025",
"0.5143719",
"0.51407653",
"0.51361537",
"0.51340604",
"0.51335466",
"0.512961",
"0.5126269",
"0.51249045",
"0.51249045",
"0.5124129",
"0.51219004",
"0.5120556",
"0.5119138",
"0.5116252"
]
| 0.6809516 | 0 |
Overwrites the rest of the protocol and sets the protocol state to finish | void endNegotiation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void endProtocol()\n throws IOException\n {\n try\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n key.setProtocolReadyOps(fWrite ? SelectionKey.OP_READ : 0);\n key.interestProtocol(fWrite ? SelectionKey.OP_WRITE : 0, 0);\n }\n }\n catch (CancelledKeyException e) {}\n\n if (!m_fValidated && f_engine.getSession().isValid())\n {\n validatePeer();\n m_fValidated = true;\n }\n }",
"protected void continueProtocol()\n {\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n try\n {\n key.setProtocolReadyOps(SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n key.interestProtocol(SelectionKey.OP_READ | SelectionKey.OP_WRITE, 0);\n\n // wakeup the selector so we can continue to run the protocol\n key.selector().wakeup();\n }\n catch (CancelledKeyException e) {}\n }\n }",
"@Override\n\tprotected void runProtocol() throws AtmException\n\t{\n\t\ttrace(\"runProtocol()\");\n\t\twhileConnected();\n\t}",
"public void setProtocol(Protocol protocol)\n \t{\n \t\tthis.protocol = protocol;\n \t}",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase DDef.FINISH_BIND:\n\t\t\t\tmObjProtocol = (Protocol) msg.obj;\n\t\t\t\tInquiry();\n\t\t\t\tbreak;\n\t\t\tcase DDef.AIR_CMD_ID:\n\t\t\t\tsetAirAttr((AirInfo) msg.obj);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public void signalProtocolVerified() {\n // this update order below must stay in reverse order with access order in SingleProtocolEncode#onWrite\n isDecoderVerifiedProtocol = true;\n isDecoderReceivedProtocol = true;\n // This channel can become null when SingleProtocolEncoder is not active handler of the outbound\n // pipeline, when the previous MemberProtocolEncoder doesn't replace itself with SingleProtocolEncoder\n // yet. In this case, this outboundPipeline().wakeup() call can be ignored since it is not possible\n // to enter the blocked state from the path that isDecoderReceivedProtocol check is performed.\n if (channel != null) {\n channel.outboundPipeline().wakeup();\n }\n }",
"public static void setLastProtocolRemoteParametersUpdate(int protocol) {\n\t\t\n\t}",
"@Override\n protected void blockSetupOKAction() {\n makeProtocolPanel(ProcessSelectComboBox.getSelectedIndex());\n\n CurrentStepProtocol = CurrentProcessList;\n super.notifyMicroBlockSetupListeners(this.CurrentStepProtocol);\n\n this.setVisible(false);\n }",
"private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }",
"private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}",
"public Builder clearProtocol() {\n if (protocolBuilder_ == null) {\n protocol_ = null;\n onChanged();\n } else {\n protocol_ = null;\n protocolBuilder_ = null;\n }\n\n return this;\n }",
"@Override\r\n\tpublic void finishDecode(IoSession session, ProtocolDecoderOutput out)\r\n\t\t\tthrows Exception {\n\r\n\t}",
"protected boolean runProtocol()\n throws IOException\n {\n SSLEngine engine = f_engine;\n ByteBuffer[] aBuffEmpty = s_aBuffEmpty;\n final Object oRead = f_aBuffSingleInbound;\n final Object oWrite = f_aBuffSingleOutbound;\n\n while (true)\n {\n switch (engine.getHandshakeStatus())\n {\n case NEED_TASK:\n m_fHandshaking = true;\n final Runnable runnable = engine.getDelegatedTask();\n if (runnable == null)\n {\n synchronized (oWrite)\n {\n if (m_cJobsPending > 0)\n {\n // we are waiting on jobs to finish, ignore\n // the socket state until the job(s) complete\n boolean fWrite = f_buffEncOut.hasRemaining();\n delayProtocol(\n /*nInterest*/ fWrite ? SelectionKey.OP_WRITE : 0,\n /*nExclude*/ fWrite ? 0 : SelectionKey.OP_WRITE,\n /*nReady*/ SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n }\n }\n return true;\n }\n else\n {\n Runnable task = new Runnable()\n {\n public void run()\n {\n try\n {\n runnable.run();\n }\n finally\n {\n synchronized (oWrite)\n {\n --m_cJobsPending;\n continueProtocol();\n }\n }\n }\n };\n\n synchronized (oWrite)\n {\n ++m_cJobsPending;\n }\n\n try\n {\n getSocketProvider().getDependencies().getExecutor()\n .execute(task);\n task = null;\n }\n catch (RejectedExecutionException e) {}\n finally\n {\n if (task != null)\n {\n task.run();\n }\n }\n }\n break;\n\n case NEED_WRAP:\n m_fHandshaking = true;\n synchronized (oWrite)\n {\n int cbEncrypted = encrypt(aBuffEmpty, 0, 0);\n int cbWritten = writeEncrypted();\n // COH-18648:\n // Check to see if we encrypted or wrote anything. We care\n // about this case as in TLS 1.3, half-closes are supported which means\n // the inbound channel can be closed, we can, however, still technically write.\n // If we didn't encrypt or write anything, then treat this situation\n // the same as if there was still encrypted data. If the engine signals\n // that it still needs to wrap, then return to release any locks and allow\n // the channel state to stabilize.\n //\n if (f_buffEncOut.hasRemaining() ||\n /* see comment COH-18648 */ (cbEncrypted == 0 && cbWritten == 0))\n {\n delayProtocol(\n /*nInterest*/ SelectionKey.OP_WRITE,\n /*nExclude*/ 0,\n /*nReady*/ SelectionKey.OP_READ);\n\n if (engine.getHandshakeStatus() == SSLEngineResult.HandshakeStatus.NEED_WRAP)\n {\n return true;\n }\n // else; all engine data encrypted but still not written; continue with next phase in \"parallel\"\n }\n }\n break;\n\n case NEED_UNWRAP:\n m_fHandshaking = true;\n\n int cbRead;\n int cbFill;\n synchronized (oRead)\n {\n synchronized (oWrite)\n {\n cbRead = readEncrypted();\n cbFill = fillClearBuffer();\n\n if (cbRead == 0 && cbFill == 0)\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n delayProtocol(\n /*nInterest*/ SelectionKey.OP_READ | (fWrite ? SelectionKey.OP_WRITE : 0),\n /*nExclude*/ fWrite ? 0 : SelectionKey.OP_WRITE,\n /*nReady*/ SelectionKey.OP_WRITE);\n return true;\n }\n else\n {\n if (f_buffClearIn.hasRemaining() || f_buffEncIn.hasRemaining())\n {\n // COH-21678 - there is more data available for read\n markKeysReadable(true);\n }\n }\n }\n }\n\n if (cbRead == -1)\n {\n // must occur outside of synchronization\n onEndOfStream();\n return false;\n }\n break;\n\n case NOT_HANDSHAKING:\n case FINISHED:\n if (m_fHandshaking) // optimistic read\n {\n synchronized (oWrite)\n {\n endProtocol();\n m_fHandshaking = false;\n }\n }\n return true;\n }\n }\n }",
"@Override\n\tpublic void comeBackToWork() {\n\t\t\n\t}",
"private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\n\t}",
"public void recycle() {\n LOG.trace(\"enter HttpMethodBase.recycle()\");\n\n releaseConnection();\n\n path = null;\n followRedirects = false;\n doAuthentication = true;\n realm = null;\n proxyRealm = null;\n queryString = null;\n getRequestHeaderGroup().clear();\n getResponseHeaderGroup().clear();\n getResponseTrailerHeaderGroup().clear();\n statusLine = null;\n used = false;\n http11 = true;\n responseBody = null;\n recoverableExceptionCount = 0;\n inExecute = false;\n doneWithConnection = false;\n }",
"public void linkUp(){\n\t\tsocket.setGame(game);\n//\t\tframe.setSocket(socket);\n\t}",
"public interface Protocol {\n\n void startup();\n}",
"@Override\n\tpublic void replyOperationCompleted() { ; }",
"private LoanProtocol ProcessTransferAnswer(LoanProtocol protocol)\n\t{\n\t\t// if result in the protocol indicates transfer is accepted by target\n\t\t// bank, then remove loan from the current bank\n\t\tif (protocol.getResult())\n\t\t{\n\t\t\tif (m_server.removeLoan(protocol.getLoanInfo()))\n\t\t\t{\n\t\t\t\tm_lock.countDown();\n\t\t\t\tm_lock = null;\n\t\t\t\tprotocol.setType(messageType.Commit);\n\t\t\t}\n\t\t\t// if something wrong happened during remove loan... then we send\n\t\t\t// roll back message to the other server\n\t\t\telse\n\t\t\t{\n\t\t\t\tprotocol.setType(messageType.RollBack);\n\t\t\t}\n\t\t}\n\n\t\treturn protocol;\n\t}",
"public final synchronized void restart() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t}",
"public void setProtocol(Protocol protocol) {\n\t\tthis.protocol = protocol;\n\t}",
"private boolean sendProtocol() {\n if (!clusterProtocolBuffered) {\n clusterProtocolBuffered = true;\n dst.put(stringToBytes(UNEXPECTED_PROTOCOL));\n return false;\n }\n\n return isProtocolBufferDrained();\n }",
"@Override\n protected void handshakeCompleted()\n {\n if (0 < torrent.pieces.cardinality()) {\n enqueue(pmCache.bitfield((int)torrent.metainfo.pieces, torrent.pieces));\n }\n\n /*\n todo\n if (client.node != null) {\n pc.enqueue(StdPeerMessage.port(client.node.port));\n }\n */\n }",
"private void reset() {\n if (this.dead) return;\n /*this.state = {\n activeFragmentedOperation: null,\n lastFragment: false,\n masked: false,\n opcode: 0,\n fragmentedOperation: false\n };*/\n this.state = new State(-1, false, false, 0, false);\n this.fragmentedBufferPool.reset(true);\n this.unfragmentedBufferPool.reset(true);\n this.expectOffset = 0;\n this.expectBuffer = null;\n this.expectHandler = null;\n this.overflow = new LinkedList<ByteBuffer>();///[];\n this.currentMessage = new LinkedList<Object>();///[];\n}",
"int reInitializeCommunities();",
"Protocol(String var1_1, int var2_2, boolean var3_3, PrintStream var4_4, Properties var5_5, String var6_6, boolean var7_7) throws IOException {\n super();\n this.debug = var3_3;\n this.out = var4_4;\n var8_8 = var5_5.getProperty(String.valueOf((Object)var6_6) + \".apop.enable\");\n var9_9 = var8_8 != null && var8_8.equalsIgnoreCase(\"true\") != false;\n if (var2_2 == -1) {\n var2_2 = 110;\n }\n if (!var3_3) ** GOTO lbl13\n try {\n var4_4.println(\"DEBUG POP3: connecting to host \\\"\" + var1_1 + \"\\\", port \" + var2_2 + \", isSSL \" + var7_7);\nlbl13: // 2 sources:\n this.socket = SocketFetcher.getSocket(var1_1, var2_2, var5_5, var6_6, var7_7);\n this.input = new DataInputStream((InputStream)new BufferedInputStream(this.socket.getInputStream()));\n this.output = new PrintWriter((Writer)new BufferedWriter((Writer)new OutputStreamWriter(this.socket.getOutputStream(), \"iso-8859-1\")));\n var12_10 = this.simpleCommand(null);\n ** if (var12_10.ok) goto lbl20\n }\n catch (IOException var10_11) {\n this.socket.close();\nlbl24: // 1 sources:\n if (var9_9 == false) return;\n var13_12 = var12_10.data.indexOf(60);\n var14_13 = var12_10.data.indexOf(62, var13_12);\n if (var13_12 != -1 && var14_13 != -1) {\n this.apopChallenge = var12_10.data.substring(var13_12, var14_13 + 1);\n }\n if (var3_3 == false) return;\n var4_4.println(\"DEBUG POP3: APOP challenge: \" + this.apopChallenge);\n return;\n }\n finally {\n throw new IOException(\"Connect failed\");\n }\nlbl-1000: // 1 sources:\n {\n this.socket.close();\n }\nlbl20: // 1 sources:\n ** GOTO lbl24\n {\n finally {\n throw var10_11;\n }\n }\n }",
"public void reconnected() { }",
"protected void reset() {\n\t\tresetChannel();\n\t\tthis.connection = null;\n\t}",
"public void unsetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(PROTOCOL$0);\n }\n }",
"private LoanProtocol processRollback(LoanProtocol protocol)\n\t{\n\t\ttransferLock.countDown();\n\t\tshouldRollback = true;\n\t\treturn null;\n\t}",
"public final void beginExecute(Protocol protocol) {\n\t\tbeginExecute( protocol, protocol.getDefaultResultHandler() );\n\t}",
"public interface Protocol {\n\n\n /**\n * Get the last line of text, which has been read from the socket.\n * @return the last line of text, which has been read from the socket.\n */\n String getCurrentLine();\n\n /**\n * Write to the Socket.\n * @param line to write to the socket.\n */\n void putLine(String line);\n\n /**\n * Change the state of the protocol.\n * @param state new state of the protocol.\n */\n void setState(State state);\n\n /**\n * Get the current state of the protocol.\n * @return the current state of the protocol.\n */\n State getState();\n\n\n}",
"public void endUpdateHashMethod() {\n\t\t// ended attempt to update their password hash, reset values to default\n\t\tupdatePasswordHashMethod = false;\n\t\tlastUsername = \"\";\n\t\tlastPassword = \"\";\n\t}",
"@Override\n \tpublic void reconnectionSuccessful() {\n \t}",
"private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }",
"@Override\n public void work() {\n if (!lnd_.isRpcReady())\n return;\n\n if (!started_) {\n // NOTE: start protocol to recover in-flight payments' state:\n // - get all payments w/ 'sending' state from db\n // - get all payments from lnd\n // - find 'sending' payments within lnd payments\n // - update found payments, reset state for not-found\n // - delete all payments from lnd to clear it\n // - started_ = true, can process new payments now\n if (!starting_) {\n starting_ = true;\n List<Job> sendingJobs = dao_.getSendingJobs();\n checkPayments(sendingJobs);\n }\n return;\n }\n\n if (!notified_ && nextWorkTime_ > System.currentTimeMillis())\n return;\n\n // reset\n notified_ = false;\n\n List<Job> pending = dao_.getPendingJobs(System.currentTimeMillis());\n for (Job job: pending) {\n WalletData.SendPayment p = (WalletData.SendPayment)job.objects.get(0);\n if (p.paymentHashHex() != null || p.isKeysend()) {\n queryRoutes(job, p);\n } else if (p.paymentRequest() != null) {\n decodePayment(job, p);\n }\n }\n\n nextWorkTime_ = System.currentTimeMillis() + WORK_INTERVAL;\n }",
"public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }",
"public void setProtocolID(int pid) {\n m_ProtocolID = pid;\n // setChanged(true);\n }",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"void finishSwitching();",
"void finishFrame() {\n\t\tcontrollers[CONTROLLER_OLD].set(controllers[CONTROLLER_NEW]);\n\t}",
"@Override\n protected void prepareHandshakeMessageContents() {\n }",
"public void finished() {\n\n\t\tencodeCounter = 0;\n\t}",
"private void finishWork()\n\t{\n\t\ttry\n\t\t{\n\t\t\tswitch(currentWork.getType())\n\t\t\t{\n\t\t\tcase READ:\n\t\t\t\thandleRead();\n\t\t\t\tbreak;\n\t\t\tcase WRITE: \n\t\t\t\thandleWrite();\n\t\t\t\tbreak;\n\t\t\tcase HASH: \n\t\t\t\thandleHash();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unknown work type\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tServer.getInstance().addWork(new DeregisterWork(currentWork.getSelectionKey()));\n\t\t\treturn;\n\t\t}\n\t}",
"public void reset() {\n actionFlag = true;\n messageFlag = false;\n self.getInputBuffer().clear();\n self.getOutputBuffer().clear();\n self.setCurrentProduct(null);\n self.resetCounters();\n self.getServiceManager().init(getRandom(), template);\n syncUpdate();\n }",
"private void handleGoLauncherFinish() {\n if (curState == 1) {\n curReclaimFailCount = 0;\n lastReclaimFailTime = -1;\n Trace.traceBegin(8, \"goLauncherFinish:openZswapd:\" + defaultSize);\n setBuffer(defaultSize, lowSize, highSize, swapReserve);\n targetBuffer = defaultSize;\n handler.removeMessages(5);\n curState = 0;\n Slog.i(TAG, \"handle launcher finish, reset failCount, targetBuffer:\" + defaultSize);\n Trace.traceEnd(8);\n return;\n }\n Slog.e(TAG, \"invalid go launcher finish msg\");\n }",
"@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"public void setStateComplete() {state = STATUS_COMPLETE;}",
"protected void buildProtocols() {\n\n if (httpProtocol == null) {\n\n RESTProtocol p = new RESTProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n httpProtocol = p;\n\n }\n\n if (legacyProtocol == null) {\n\n LegacyProtocol p = new LegacyProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n legacyProtocol = p;\n\n }\n }",
"public void refuse(Object content){\n\n\t\tif (isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)) {\n\t\t\tsendMessage(content, Performative.REFUSE, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.5\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.6\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public void afterReceive() {\n\t}",
"@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }",
"public void reset() {\n finished = false;\n }",
"public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }",
"@Override\n\tpublic void complete()\n\t{\n\t}",
"public void xsetProtocol(org.apache.xmlbeans.XmlString protocol)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROTOCOL$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROTOCOL$0);\n }\n target.set(protocol);\n }\n }",
"@Override\n public void copyFrom(ProtocolSubmitResponse message) {\n setOperationsApplied(message.getOperationsApplied());\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasErrorMessage()) {\n setErrorMessage(message.getErrorMessage());\n } else {\n clearErrorMessage();\n }\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasHashedVersionAfterApplication()) {\n setHashedVersionAfterApplication(message.getHashedVersionAfterApplication());\n } else {\n clearHashedVersionAfterApplication();\n }\n }",
"@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\tthis.inputStream = socket.getInputStream();\r\n\t\t\tthis.outputStream = socket.getOutputStream();\r\n\t\t\t// Get the peer that is asking me for fragments.\r\n\t\t\tpeerState = torrentClient.getPeerStateList().getByAddress(\r\n\t\t\t\t\tsocket.getInetAddress().getHostAddress(), socket.getPort());\r\n\t\t\t// read handhake\r\n\t\t\tbyte[] received = new byte[68];\r\n\t\t\tinputStream.read(received);\r\n\t\t\t//Parse the handshake received\r\n\t\t\tHandsake handshakeMessage = Handsake\r\n\t\t\t\t\t.parseStringToHandsake(new String(received));\r\n\t\t\t// validate hash\r\n\t\t\tString torrentHash = new String(torrentClient.getMetainf()\r\n\t\t\t\t\t.getInfo().getInfoHash());\r\n\t\t\t//if the received handshake is correct send my handshake\r\n\t\t\tif (Handsake.isValidHandsakeForBitTorrentProtocol(handshakeMessage,\r\n\t\t\t\t\ttorrentHash)) {\r\n\t\t\t\t// send handshake\r\n\t\t\t\tHandsake handShakeToSend = new Handsake(torrentHash,\r\n\t\t\t\t\t\tthis.torrentClient.getPeerId());\r\n\t\t\t\tthis.outputStream.write(handShakeToSend.getBytes());\r\n\t\t\t\t// enviar bitfield\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.sendBitfield();\r\n\t\t\t\t\t// leer\r\n\t\t\t\t\tPeerProtocolMessage message = this.readNormalMessage();\r\n\t\t\t\t\t// Check if I have received an interested message\r\n\t\t\t\t\tif (message.getType().equals(\r\n\t\t\t\t\t\t\tPeerProtocolMessage.Type.INTERESTED)) {\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tpeerState = torrentClient.getPeerStateList()\r\n\t\t\t\t\t\t\t\t\t.getByAddress(\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getInetAddress()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getHostAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getPort());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//Set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setPeer_interested(true);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// send unchoke to the peer\r\n\t\t\t\t\t\tthis.outputStream.write(new UnChokeMsg().getBytes());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setAm_choking(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Continue receiveing messages if the message type is Keep_alive, Request or Have.\r\n\t\t\t\t\t\tboolean continueReading = true;\r\n\t\t\t\t\t\twhile (continueReading) {\r\n\t\t\t\t\t\t\tmessage = this.readNormalMessage();\r\n\t\t\t\t\t\t\tcontinueReading = processMessage(message);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// if I have not received interested send unchoke\r\n\t\t\t\t\t\tthis.outputStream.write(new ChokeMsg().getBytes());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// close connection\r\n\t\t\tthis.inputStream.close();\r\n\t\t\tthis.outputStream.close();\r\n\t\t\tsocket.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Sending thread closed\");\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthis.inputStream.close();\r\n\t\t\t\tthis.outputStream.close();\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected ProtocolControlFrame() {\n super();\n }",
"@Override\r\n\tpublic void done() {\n\t\t\r\n\t}",
"@Override\n\tvoid finishWork() {\n\t\t\n\t}",
"@Override\n\tvoid finishWork() {\n\t\t\n\t}",
"public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }",
"public void finish(){\n\t\tnotfinish = false;\n\t}",
"private ApplicationProtocolConfig()\r\n/* 40: */ {\r\n/* 41: 92 */ this.supportedProtocols = Collections.emptyList();\r\n/* 42: 93 */ this.protocol = Protocol.NONE;\r\n/* 43: 94 */ this.selectorBehavior = SelectorFailureBehavior.CHOOSE_MY_LAST_PROTOCOL;\r\n/* 44: 95 */ this.selectedBehavior = SelectedListenerFailureBehavior.ACCEPT;\r\n/* 45: */ }",
"public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }",
"@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}",
"public final synchronized void reset() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t\tlistenersInline = null;\r\n\t}",
"@Override\r\n\tpublic void complete() {\n\r\n\t}",
"public void setFinished(int order) {\n if(!board.isFinished()){\n disconnected = order;\n }\n finished = true;\n }",
"ProtocolMessage next(ProtocolMessage in) throws ProtocolException;",
"public void reset() {\n this.done = false;\n }",
"void sendFinishMessage();",
"public void sendFinished(LinkLayerMessage message) {\n\t\t\n\t}",
"@Override\n\tpublic void setLastState(STATE state) {\n\n\t}",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgEND(true);\r\n }",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"private LoanProtocol processProtocol(LoanProtocol protocol)\n\t{\n\t\tswitch (protocol.getType())\n\t\t{\n\t\t// if it's a requesting protocol, then generate answer for it\n\t\tcase RequestLoan:\n\t\t\treturn generateAnswer(protocol);\n\t\t\t// if it's an answer from another server, then calculate\n\t\t\t// how many loan the user has on the other server\n\t\tcase LoanAnswer:\n\t\t\tif (protocol.getUser() != null)\n\t\t\t{\n\t\t\t\tm_usedAmount += protocol.getUser().getLoanAmount();\n\t\t\t}\n\t\t\tm_lock.countDown();\n\t\t\treturn null;\n\t\tcase ValidateAdmin:\n\t\t\tboolean result = m_server.validateAdminUser(protocol.getUser().getUsr(), protocol\n\t\t\t\t\t.getUser().getPassword());\n\t\t\tLoanProtocol l = new LoanProtocol(\"\", protocol.getHost(), protocol.getPort(), null,\n\t\t\t\t\tnull);\n\t\t\tl.setResult(result);\n\t\t\treturn l;\n\t\tcase Transfer:\n\t\t\treturn ProcessTransferRequest(protocol);\n\n\t\tcase TransferAnswer:\n\t\t\treturn ProcessTransferAnswer(protocol);\n\t\tcase RollBack:\n\t\t\treturn processRollback(protocol);\n\t\t\t// commit that everything is ok, so now we can release the transfer\n\t\t\t// lock\n\t\tcase Commit:\n\t\t\ttransferLock.countDown();\n\t\t\tshouldRollback = false;\n\t\t\treturn null;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}",
"public void onRestorePendingState() {\n }",
"public void resultState(SubmitObject submit) {\n\t\tLog.i(TAG, \"CommunicationState: \" + submit.getState().toString());\n\t\tmSubmitService.resultState(submit);\n\t}",
"public void action()\n {\n if(timeout > 0 && timeout < 2)\n {\n timeout = 0;\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n counter = 0;\n\n\n }\n //If this is the very first time getting to this state or if the timeout reset the counter to 0\n if(counter < 1)\n {\n //Clean the list of receivers in case there is something\n if(!receivers.isEmpty())\n receivers.removeAllElements();\n //Calculate the duration of the intro\n calculateDurationIntro();\n //Find a receiver\n findAllReceivers();\n constructACLMessage();\n introNegotiation = new IntroNegotiation(agent,msg);\n introNegotiation.setDataStore(getDataStore());\n agent.addBehaviour(introNegotiation);\n }\n\n\n //Handle where I'm heading to from here.\n switch (steps)\n {\n case 0:\n transition = 29;\n break;\n case 1:\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n transition = 17;\n\n }\n\n\n\n }",
"@Override\n public void resetBuffer() {\n\n }",
"@Override\n public void done() {\n }",
"@Override\n public void done() {\n }",
"@Test\r\n\tpublic void testG() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun.reset();\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.commitB());\r\n\t\t\r\n\t\t//analyze the reset\r\n\t\tLogAnalyzer aly = run.getCurrentAnalyzer();\r\n\t\t//The value, the reset occurs\r\n\t\tassertEquals( 200, aly.getCurrentPartValue() );\r\n\t\t//The part is not available\r\n\t\tassertEquals( LogAnalyzer.THE_PART_IS_NOT_KNOWN, aly.getPart() );\r\n\t\t\r\n\t\tassertFalse( aly.isAfterPart0() );\r\n\t\tassertFalse( aly.isAfterPart1() );\r\n\t\t//The parts 0 and 1 run properly\r\n\t\tassertTrue( aly.isAfterPart2() );\r\n\t\t//The part 3 is not reached, because of the reset\r\n\t\tassertFalse( aly.isAfterPart3() );\r\n\t\t\r\n\t\t//There is no part\r\n\t\tassertFalse( aly.isPart1() );\r\n\t\tassertFalse( aly.isPart2() );\r\n\t\tassertFalse( aly.isPart3() );\r\n\t\tassertFalse( aly.isPart4() );\r\n\t\t\r\n\t\t//There are 3 entries in the list.\r\n\t\tassertEquals( 3, aly.getList().size() );\r\n\t\t//The last entry has the RST_FLAG set\r\n\t\tassertEquals( IHandshake.RST_FLAG, aly.getCurrentPartType() );\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-1-100-1-1-101-1-4-200-\");\r\n\t}",
"@Override\n\tpublic void askReset() {\n\t}",
"private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"@Override\n public void BeforeReConnect() {\n nCurrentDownloadNum = 0;\n nCurrentUpload = 0;\n mapDownload.clear();\n }",
"void resetToRest() {\n\t\t\t\tsimulate = false;\n\t\t\t\ttask = null;\n\t\t\t}",
"@Override\n\tpublic void handshakeCompleted(HandshakeCompletedEvent evt) {\n\t\t\n\t}",
"@Override\n public void upcall(ReadMessage message) throws IOException, ClassNotFoundException {\n\t MessageObject readMessage = (MessageObject) message\n .readObject();\n message.finish();\n \tReceivePortIdentifier requestor = readMessage.requestor;\n MessageObject response = new MessageObject();\n if(requestor == null)\n\t \treturn;\n synchronized (masterJobsList){\n if(readMessage.messageType == MessageObject.message_id.JOB_STEALING){\n // Provide slave with one another job\n synchronized (jobListBusy){\n if(masterJobsList.size() > 0){\n response.messageType = MessageObject.message_id.JOB_BOARD;\n response.data = masterJobsList.get(0);\n masterJobsList.remove(0);\n response.maximumBound = solutionsStep;\n }\n }\n\n SendPort replyPort = myIbis.createSendPort(replyPortType);\n replyPort.connect(requestor);\n WriteMessage reply = replyPort.newMessage();\n reply.writeObject((response));\n reply.finish();\n replyPort.close();\n\n\n } else if (readMessage.messageType == MessageObject.message_id.SOLUTIONS_NUM){\n --jobCounter;\n Pair<Integer, Integer> res = (Pair<Integer, Integer>)readMessage.data;\n System.out.println(\"GOT RESULT (\" + res.getKey() + \" ; \" + res.getValue() + \")\");\n synchronized(jobListBusy){\n if(res.getValue() < solutionsStep){\n solutionsNum = res.getKey();\n solutionsStep = res.getValue();\n endTime = System.currentTimeMillis();\n } else if (res.getValue() == solutionsStep){\n solutionsNum += res.getKey();\n endTime = System.currentTimeMillis();\n } else {\n // do nothing\n }\n if(jobCounter == 0)\n jobListBusy.notify();\n }\n\n }\n\n }\n }",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"@Override\n\t\tpublic void done() {\n\n\t\t}"
]
| [
"0.63244444",
"0.6175092",
"0.56199163",
"0.5538314",
"0.5513428",
"0.5511335",
"0.54620427",
"0.54297066",
"0.54052615",
"0.53650796",
"0.52953047",
"0.52832484",
"0.527874",
"0.52553123",
"0.52527136",
"0.52476454",
"0.52465314",
"0.52428085",
"0.52358603",
"0.52323025",
"0.5207574",
"0.5206275",
"0.51983464",
"0.5196848",
"0.51948416",
"0.5193605",
"0.5191575",
"0.5186629",
"0.51855373",
"0.51812625",
"0.5172834",
"0.5169436",
"0.51597357",
"0.51464397",
"0.51402205",
"0.51335573",
"0.51304895",
"0.51290816",
"0.5125801",
"0.5120664",
"0.51106364",
"0.5109801",
"0.51074153",
"0.510734",
"0.50890267",
"0.50861746",
"0.5078638",
"0.5053799",
"0.50517595",
"0.5048411",
"0.5048411",
"0.5048411",
"0.50446725",
"0.5040805",
"0.50391763",
"0.50390065",
"0.5038579",
"0.5036653",
"0.5036297",
"0.50256985",
"0.50248396",
"0.5017733",
"0.5013067",
"0.5010704",
"0.5010341",
"0.5006497",
"0.5006497",
"0.49986836",
"0.4997996",
"0.4997889",
"0.499642",
"0.49838963",
"0.49737594",
"0.49735054",
"0.49684578",
"0.49641183",
"0.4963134",
"0.4947549",
"0.4946071",
"0.49318296",
"0.49186012",
"0.4918072",
"0.49144",
"0.4908671",
"0.48986092",
"0.48881498",
"0.48837107",
"0.487846",
"0.48733282",
"0.48733282",
"0.48670003",
"0.48631167",
"0.486235",
"0.48600483",
"0.48600024",
"0.48564208",
"0.484621",
"0.4842024",
"0.48409784",
"0.48386854"
]
| 0.5492269 | 6 |
Overwrites the rest of the protocol and sets the protocol state to finish | void endNegotiation(String reason); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void endProtocol()\n throws IOException\n {\n try\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n key.setProtocolReadyOps(fWrite ? SelectionKey.OP_READ : 0);\n key.interestProtocol(fWrite ? SelectionKey.OP_WRITE : 0, 0);\n }\n }\n catch (CancelledKeyException e) {}\n\n if (!m_fValidated && f_engine.getSession().isValid())\n {\n validatePeer();\n m_fValidated = true;\n }\n }",
"protected void continueProtocol()\n {\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n try\n {\n key.setProtocolReadyOps(SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n key.interestProtocol(SelectionKey.OP_READ | SelectionKey.OP_WRITE, 0);\n\n // wakeup the selector so we can continue to run the protocol\n key.selector().wakeup();\n }\n catch (CancelledKeyException e) {}\n }\n }",
"@Override\n\tprotected void runProtocol() throws AtmException\n\t{\n\t\ttrace(\"runProtocol()\");\n\t\twhileConnected();\n\t}",
"public void setProtocol(Protocol protocol)\n \t{\n \t\tthis.protocol = protocol;\n \t}",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase DDef.FINISH_BIND:\n\t\t\t\tmObjProtocol = (Protocol) msg.obj;\n\t\t\t\tInquiry();\n\t\t\t\tbreak;\n\t\t\tcase DDef.AIR_CMD_ID:\n\t\t\t\tsetAirAttr((AirInfo) msg.obj);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public void signalProtocolVerified() {\n // this update order below must stay in reverse order with access order in SingleProtocolEncode#onWrite\n isDecoderVerifiedProtocol = true;\n isDecoderReceivedProtocol = true;\n // This channel can become null when SingleProtocolEncoder is not active handler of the outbound\n // pipeline, when the previous MemberProtocolEncoder doesn't replace itself with SingleProtocolEncoder\n // yet. In this case, this outboundPipeline().wakeup() call can be ignored since it is not possible\n // to enter the blocked state from the path that isDecoderReceivedProtocol check is performed.\n if (channel != null) {\n channel.outboundPipeline().wakeup();\n }\n }",
"void endNegotiation();",
"public static void setLastProtocolRemoteParametersUpdate(int protocol) {\n\t\t\n\t}",
"@Override\n protected void blockSetupOKAction() {\n makeProtocolPanel(ProcessSelectComboBox.getSelectedIndex());\n\n CurrentStepProtocol = CurrentProcessList;\n super.notifyMicroBlockSetupListeners(this.CurrentStepProtocol);\n\n this.setVisible(false);\n }",
"private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }",
"private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}",
"public Builder clearProtocol() {\n if (protocolBuilder_ == null) {\n protocol_ = null;\n onChanged();\n } else {\n protocol_ = null;\n protocolBuilder_ = null;\n }\n\n return this;\n }",
"@Override\r\n\tpublic void finishDecode(IoSession session, ProtocolDecoderOutput out)\r\n\t\t\tthrows Exception {\n\r\n\t}",
"protected boolean runProtocol()\n throws IOException\n {\n SSLEngine engine = f_engine;\n ByteBuffer[] aBuffEmpty = s_aBuffEmpty;\n final Object oRead = f_aBuffSingleInbound;\n final Object oWrite = f_aBuffSingleOutbound;\n\n while (true)\n {\n switch (engine.getHandshakeStatus())\n {\n case NEED_TASK:\n m_fHandshaking = true;\n final Runnable runnable = engine.getDelegatedTask();\n if (runnable == null)\n {\n synchronized (oWrite)\n {\n if (m_cJobsPending > 0)\n {\n // we are waiting on jobs to finish, ignore\n // the socket state until the job(s) complete\n boolean fWrite = f_buffEncOut.hasRemaining();\n delayProtocol(\n /*nInterest*/ fWrite ? SelectionKey.OP_WRITE : 0,\n /*nExclude*/ fWrite ? 0 : SelectionKey.OP_WRITE,\n /*nReady*/ SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n }\n }\n return true;\n }\n else\n {\n Runnable task = new Runnable()\n {\n public void run()\n {\n try\n {\n runnable.run();\n }\n finally\n {\n synchronized (oWrite)\n {\n --m_cJobsPending;\n continueProtocol();\n }\n }\n }\n };\n\n synchronized (oWrite)\n {\n ++m_cJobsPending;\n }\n\n try\n {\n getSocketProvider().getDependencies().getExecutor()\n .execute(task);\n task = null;\n }\n catch (RejectedExecutionException e) {}\n finally\n {\n if (task != null)\n {\n task.run();\n }\n }\n }\n break;\n\n case NEED_WRAP:\n m_fHandshaking = true;\n synchronized (oWrite)\n {\n int cbEncrypted = encrypt(aBuffEmpty, 0, 0);\n int cbWritten = writeEncrypted();\n // COH-18648:\n // Check to see if we encrypted or wrote anything. We care\n // about this case as in TLS 1.3, half-closes are supported which means\n // the inbound channel can be closed, we can, however, still technically write.\n // If we didn't encrypt or write anything, then treat this situation\n // the same as if there was still encrypted data. If the engine signals\n // that it still needs to wrap, then return to release any locks and allow\n // the channel state to stabilize.\n //\n if (f_buffEncOut.hasRemaining() ||\n /* see comment COH-18648 */ (cbEncrypted == 0 && cbWritten == 0))\n {\n delayProtocol(\n /*nInterest*/ SelectionKey.OP_WRITE,\n /*nExclude*/ 0,\n /*nReady*/ SelectionKey.OP_READ);\n\n if (engine.getHandshakeStatus() == SSLEngineResult.HandshakeStatus.NEED_WRAP)\n {\n return true;\n }\n // else; all engine data encrypted but still not written; continue with next phase in \"parallel\"\n }\n }\n break;\n\n case NEED_UNWRAP:\n m_fHandshaking = true;\n\n int cbRead;\n int cbFill;\n synchronized (oRead)\n {\n synchronized (oWrite)\n {\n cbRead = readEncrypted();\n cbFill = fillClearBuffer();\n\n if (cbRead == 0 && cbFill == 0)\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n delayProtocol(\n /*nInterest*/ SelectionKey.OP_READ | (fWrite ? SelectionKey.OP_WRITE : 0),\n /*nExclude*/ fWrite ? 0 : SelectionKey.OP_WRITE,\n /*nReady*/ SelectionKey.OP_WRITE);\n return true;\n }\n else\n {\n if (f_buffClearIn.hasRemaining() || f_buffEncIn.hasRemaining())\n {\n // COH-21678 - there is more data available for read\n markKeysReadable(true);\n }\n }\n }\n }\n\n if (cbRead == -1)\n {\n // must occur outside of synchronization\n onEndOfStream();\n return false;\n }\n break;\n\n case NOT_HANDSHAKING:\n case FINISHED:\n if (m_fHandshaking) // optimistic read\n {\n synchronized (oWrite)\n {\n endProtocol();\n m_fHandshaking = false;\n }\n }\n return true;\n }\n }\n }",
"@Override\n\tpublic void comeBackToWork() {\n\t\t\n\t}",
"private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\n\t}",
"public void linkUp(){\n\t\tsocket.setGame(game);\n//\t\tframe.setSocket(socket);\n\t}",
"public void recycle() {\n LOG.trace(\"enter HttpMethodBase.recycle()\");\n\n releaseConnection();\n\n path = null;\n followRedirects = false;\n doAuthentication = true;\n realm = null;\n proxyRealm = null;\n queryString = null;\n getRequestHeaderGroup().clear();\n getResponseHeaderGroup().clear();\n getResponseTrailerHeaderGroup().clear();\n statusLine = null;\n used = false;\n http11 = true;\n responseBody = null;\n recoverableExceptionCount = 0;\n inExecute = false;\n doneWithConnection = false;\n }",
"public interface Protocol {\n\n void startup();\n}",
"@Override\n\tpublic void replyOperationCompleted() { ; }",
"private LoanProtocol ProcessTransferAnswer(LoanProtocol protocol)\n\t{\n\t\t// if result in the protocol indicates transfer is accepted by target\n\t\t// bank, then remove loan from the current bank\n\t\tif (protocol.getResult())\n\t\t{\n\t\t\tif (m_server.removeLoan(protocol.getLoanInfo()))\n\t\t\t{\n\t\t\t\tm_lock.countDown();\n\t\t\t\tm_lock = null;\n\t\t\t\tprotocol.setType(messageType.Commit);\n\t\t\t}\n\t\t\t// if something wrong happened during remove loan... then we send\n\t\t\t// roll back message to the other server\n\t\t\telse\n\t\t\t{\n\t\t\t\tprotocol.setType(messageType.RollBack);\n\t\t\t}\n\t\t}\n\n\t\treturn protocol;\n\t}",
"public final synchronized void restart() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t}",
"public void setProtocol(Protocol protocol) {\n\t\tthis.protocol = protocol;\n\t}",
"private boolean sendProtocol() {\n if (!clusterProtocolBuffered) {\n clusterProtocolBuffered = true;\n dst.put(stringToBytes(UNEXPECTED_PROTOCOL));\n return false;\n }\n\n return isProtocolBufferDrained();\n }",
"@Override\n protected void handshakeCompleted()\n {\n if (0 < torrent.pieces.cardinality()) {\n enqueue(pmCache.bitfield((int)torrent.metainfo.pieces, torrent.pieces));\n }\n\n /*\n todo\n if (client.node != null) {\n pc.enqueue(StdPeerMessage.port(client.node.port));\n }\n */\n }",
"private void reset() {\n if (this.dead) return;\n /*this.state = {\n activeFragmentedOperation: null,\n lastFragment: false,\n masked: false,\n opcode: 0,\n fragmentedOperation: false\n };*/\n this.state = new State(-1, false, false, 0, false);\n this.fragmentedBufferPool.reset(true);\n this.unfragmentedBufferPool.reset(true);\n this.expectOffset = 0;\n this.expectBuffer = null;\n this.expectHandler = null;\n this.overflow = new LinkedList<ByteBuffer>();///[];\n this.currentMessage = new LinkedList<Object>();///[];\n}",
"int reInitializeCommunities();",
"Protocol(String var1_1, int var2_2, boolean var3_3, PrintStream var4_4, Properties var5_5, String var6_6, boolean var7_7) throws IOException {\n super();\n this.debug = var3_3;\n this.out = var4_4;\n var8_8 = var5_5.getProperty(String.valueOf((Object)var6_6) + \".apop.enable\");\n var9_9 = var8_8 != null && var8_8.equalsIgnoreCase(\"true\") != false;\n if (var2_2 == -1) {\n var2_2 = 110;\n }\n if (!var3_3) ** GOTO lbl13\n try {\n var4_4.println(\"DEBUG POP3: connecting to host \\\"\" + var1_1 + \"\\\", port \" + var2_2 + \", isSSL \" + var7_7);\nlbl13: // 2 sources:\n this.socket = SocketFetcher.getSocket(var1_1, var2_2, var5_5, var6_6, var7_7);\n this.input = new DataInputStream((InputStream)new BufferedInputStream(this.socket.getInputStream()));\n this.output = new PrintWriter((Writer)new BufferedWriter((Writer)new OutputStreamWriter(this.socket.getOutputStream(), \"iso-8859-1\")));\n var12_10 = this.simpleCommand(null);\n ** if (var12_10.ok) goto lbl20\n }\n catch (IOException var10_11) {\n this.socket.close();\nlbl24: // 1 sources:\n if (var9_9 == false) return;\n var13_12 = var12_10.data.indexOf(60);\n var14_13 = var12_10.data.indexOf(62, var13_12);\n if (var13_12 != -1 && var14_13 != -1) {\n this.apopChallenge = var12_10.data.substring(var13_12, var14_13 + 1);\n }\n if (var3_3 == false) return;\n var4_4.println(\"DEBUG POP3: APOP challenge: \" + this.apopChallenge);\n return;\n }\n finally {\n throw new IOException(\"Connect failed\");\n }\nlbl-1000: // 1 sources:\n {\n this.socket.close();\n }\nlbl20: // 1 sources:\n ** GOTO lbl24\n {\n finally {\n throw var10_11;\n }\n }\n }",
"public void reconnected() { }",
"protected void reset() {\n\t\tresetChannel();\n\t\tthis.connection = null;\n\t}",
"public void unsetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(PROTOCOL$0);\n }\n }",
"private LoanProtocol processRollback(LoanProtocol protocol)\n\t{\n\t\ttransferLock.countDown();\n\t\tshouldRollback = true;\n\t\treturn null;\n\t}",
"public final void beginExecute(Protocol protocol) {\n\t\tbeginExecute( protocol, protocol.getDefaultResultHandler() );\n\t}",
"public interface Protocol {\n\n\n /**\n * Get the last line of text, which has been read from the socket.\n * @return the last line of text, which has been read from the socket.\n */\n String getCurrentLine();\n\n /**\n * Write to the Socket.\n * @param line to write to the socket.\n */\n void putLine(String line);\n\n /**\n * Change the state of the protocol.\n * @param state new state of the protocol.\n */\n void setState(State state);\n\n /**\n * Get the current state of the protocol.\n * @return the current state of the protocol.\n */\n State getState();\n\n\n}",
"public void endUpdateHashMethod() {\n\t\t// ended attempt to update their password hash, reset values to default\n\t\tupdatePasswordHashMethod = false;\n\t\tlastUsername = \"\";\n\t\tlastPassword = \"\";\n\t}",
"@Override\n \tpublic void reconnectionSuccessful() {\n \t}",
"private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }",
"@Override\n public void work() {\n if (!lnd_.isRpcReady())\n return;\n\n if (!started_) {\n // NOTE: start protocol to recover in-flight payments' state:\n // - get all payments w/ 'sending' state from db\n // - get all payments from lnd\n // - find 'sending' payments within lnd payments\n // - update found payments, reset state for not-found\n // - delete all payments from lnd to clear it\n // - started_ = true, can process new payments now\n if (!starting_) {\n starting_ = true;\n List<Job> sendingJobs = dao_.getSendingJobs();\n checkPayments(sendingJobs);\n }\n return;\n }\n\n if (!notified_ && nextWorkTime_ > System.currentTimeMillis())\n return;\n\n // reset\n notified_ = false;\n\n List<Job> pending = dao_.getPendingJobs(System.currentTimeMillis());\n for (Job job: pending) {\n WalletData.SendPayment p = (WalletData.SendPayment)job.objects.get(0);\n if (p.paymentHashHex() != null || p.isKeysend()) {\n queryRoutes(job, p);\n } else if (p.paymentRequest() != null) {\n decodePayment(job, p);\n }\n }\n\n nextWorkTime_ = System.currentTimeMillis() + WORK_INTERVAL;\n }",
"public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }",
"public void setProtocolID(int pid) {\n m_ProtocolID = pid;\n // setChanged(true);\n }",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"void finishSwitching();",
"@Override\n protected void prepareHandshakeMessageContents() {\n }",
"void finishFrame() {\n\t\tcontrollers[CONTROLLER_OLD].set(controllers[CONTROLLER_NEW]);\n\t}",
"public void finished() {\n\n\t\tencodeCounter = 0;\n\t}",
"private void finishWork()\n\t{\n\t\ttry\n\t\t{\n\t\t\tswitch(currentWork.getType())\n\t\t\t{\n\t\t\tcase READ:\n\t\t\t\thandleRead();\n\t\t\t\tbreak;\n\t\t\tcase WRITE: \n\t\t\t\thandleWrite();\n\t\t\t\tbreak;\n\t\t\tcase HASH: \n\t\t\t\thandleHash();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unknown work type\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tServer.getInstance().addWork(new DeregisterWork(currentWork.getSelectionKey()));\n\t\t\treturn;\n\t\t}\n\t}",
"public void reset() {\n actionFlag = true;\n messageFlag = false;\n self.getInputBuffer().clear();\n self.getOutputBuffer().clear();\n self.setCurrentProduct(null);\n self.resetCounters();\n self.getServiceManager().init(getRandom(), template);\n syncUpdate();\n }",
"@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }",
"private void handleGoLauncherFinish() {\n if (curState == 1) {\n curReclaimFailCount = 0;\n lastReclaimFailTime = -1;\n Trace.traceBegin(8, \"goLauncherFinish:openZswapd:\" + defaultSize);\n setBuffer(defaultSize, lowSize, highSize, swapReserve);\n targetBuffer = defaultSize;\n handler.removeMessages(5);\n curState = 0;\n Slog.i(TAG, \"handle launcher finish, reset failCount, targetBuffer:\" + defaultSize);\n Trace.traceEnd(8);\n return;\n }\n Slog.e(TAG, \"invalid go launcher finish msg\");\n }",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"public void setStateComplete() {state = STATUS_COMPLETE;}",
"protected void buildProtocols() {\n\n if (httpProtocol == null) {\n\n RESTProtocol p = new RESTProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n httpProtocol = p;\n\n }\n\n if (legacyProtocol == null) {\n\n LegacyProtocol p = new LegacyProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n legacyProtocol = p;\n\n }\n }",
"@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }",
"public void refuse(Object content){\n\n\t\tif (isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)) {\n\t\t\tsendMessage(content, Performative.REFUSE, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.5\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.6\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public void afterReceive() {\n\t}",
"public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }",
"public void reset() {\n finished = false;\n }",
"public void xsetProtocol(org.apache.xmlbeans.XmlString protocol)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROTOCOL$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROTOCOL$0);\n }\n target.set(protocol);\n }\n }",
"@Override\n\tpublic void complete()\n\t{\n\t}",
"@Override\n public void copyFrom(ProtocolSubmitResponse message) {\n setOperationsApplied(message.getOperationsApplied());\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasErrorMessage()) {\n setErrorMessage(message.getErrorMessage());\n } else {\n clearErrorMessage();\n }\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasHashedVersionAfterApplication()) {\n setHashedVersionAfterApplication(message.getHashedVersionAfterApplication());\n } else {\n clearHashedVersionAfterApplication();\n }\n }",
"@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\tthis.inputStream = socket.getInputStream();\r\n\t\t\tthis.outputStream = socket.getOutputStream();\r\n\t\t\t// Get the peer that is asking me for fragments.\r\n\t\t\tpeerState = torrentClient.getPeerStateList().getByAddress(\r\n\t\t\t\t\tsocket.getInetAddress().getHostAddress(), socket.getPort());\r\n\t\t\t// read handhake\r\n\t\t\tbyte[] received = new byte[68];\r\n\t\t\tinputStream.read(received);\r\n\t\t\t//Parse the handshake received\r\n\t\t\tHandsake handshakeMessage = Handsake\r\n\t\t\t\t\t.parseStringToHandsake(new String(received));\r\n\t\t\t// validate hash\r\n\t\t\tString torrentHash = new String(torrentClient.getMetainf()\r\n\t\t\t\t\t.getInfo().getInfoHash());\r\n\t\t\t//if the received handshake is correct send my handshake\r\n\t\t\tif (Handsake.isValidHandsakeForBitTorrentProtocol(handshakeMessage,\r\n\t\t\t\t\ttorrentHash)) {\r\n\t\t\t\t// send handshake\r\n\t\t\t\tHandsake handShakeToSend = new Handsake(torrentHash,\r\n\t\t\t\t\t\tthis.torrentClient.getPeerId());\r\n\t\t\t\tthis.outputStream.write(handShakeToSend.getBytes());\r\n\t\t\t\t// enviar bitfield\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.sendBitfield();\r\n\t\t\t\t\t// leer\r\n\t\t\t\t\tPeerProtocolMessage message = this.readNormalMessage();\r\n\t\t\t\t\t// Check if I have received an interested message\r\n\t\t\t\t\tif (message.getType().equals(\r\n\t\t\t\t\t\t\tPeerProtocolMessage.Type.INTERESTED)) {\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tpeerState = torrentClient.getPeerStateList()\r\n\t\t\t\t\t\t\t\t\t.getByAddress(\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getInetAddress()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getHostAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getPort());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//Set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setPeer_interested(true);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// send unchoke to the peer\r\n\t\t\t\t\t\tthis.outputStream.write(new UnChokeMsg().getBytes());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setAm_choking(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Continue receiveing messages if the message type is Keep_alive, Request or Have.\r\n\t\t\t\t\t\tboolean continueReading = true;\r\n\t\t\t\t\t\twhile (continueReading) {\r\n\t\t\t\t\t\t\tmessage = this.readNormalMessage();\r\n\t\t\t\t\t\t\tcontinueReading = processMessage(message);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// if I have not received interested send unchoke\r\n\t\t\t\t\t\tthis.outputStream.write(new ChokeMsg().getBytes());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// close connection\r\n\t\t\tthis.inputStream.close();\r\n\t\t\tthis.outputStream.close();\r\n\t\t\tsocket.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Sending thread closed\");\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthis.inputStream.close();\r\n\t\t\t\tthis.outputStream.close();\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected ProtocolControlFrame() {\n super();\n }",
"@Override\r\n\tpublic void done() {\n\t\t\r\n\t}",
"@Override\n\tvoid finishWork() {\n\t\t\n\t}",
"@Override\n\tvoid finishWork() {\n\t\t\n\t}",
"public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }",
"private ApplicationProtocolConfig()\r\n/* 40: */ {\r\n/* 41: 92 */ this.supportedProtocols = Collections.emptyList();\r\n/* 42: 93 */ this.protocol = Protocol.NONE;\r\n/* 43: 94 */ this.selectorBehavior = SelectorFailureBehavior.CHOOSE_MY_LAST_PROTOCOL;\r\n/* 44: 95 */ this.selectedBehavior = SelectedListenerFailureBehavior.ACCEPT;\r\n/* 45: */ }",
"public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }",
"public void finish(){\n\t\tnotfinish = false;\n\t}",
"@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}",
"public final synchronized void reset() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t\tlistenersInline = null;\r\n\t}",
"@Override\r\n\tpublic void complete() {\n\r\n\t}",
"public void setFinished(int order) {\n if(!board.isFinished()){\n disconnected = order;\n }\n finished = true;\n }",
"ProtocolMessage next(ProtocolMessage in) throws ProtocolException;",
"public void reset() {\n this.done = false;\n }",
"void sendFinishMessage();",
"public void sendFinished(LinkLayerMessage message) {\n\t\t\n\t}",
"@Override\n\tpublic void setLastState(STATE state) {\n\n\t}",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgEND(true);\r\n }",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"private LoanProtocol processProtocol(LoanProtocol protocol)\n\t{\n\t\tswitch (protocol.getType())\n\t\t{\n\t\t// if it's a requesting protocol, then generate answer for it\n\t\tcase RequestLoan:\n\t\t\treturn generateAnswer(protocol);\n\t\t\t// if it's an answer from another server, then calculate\n\t\t\t// how many loan the user has on the other server\n\t\tcase LoanAnswer:\n\t\t\tif (protocol.getUser() != null)\n\t\t\t{\n\t\t\t\tm_usedAmount += protocol.getUser().getLoanAmount();\n\t\t\t}\n\t\t\tm_lock.countDown();\n\t\t\treturn null;\n\t\tcase ValidateAdmin:\n\t\t\tboolean result = m_server.validateAdminUser(protocol.getUser().getUsr(), protocol\n\t\t\t\t\t.getUser().getPassword());\n\t\t\tLoanProtocol l = new LoanProtocol(\"\", protocol.getHost(), protocol.getPort(), null,\n\t\t\t\t\tnull);\n\t\t\tl.setResult(result);\n\t\t\treturn l;\n\t\tcase Transfer:\n\t\t\treturn ProcessTransferRequest(protocol);\n\n\t\tcase TransferAnswer:\n\t\t\treturn ProcessTransferAnswer(protocol);\n\t\tcase RollBack:\n\t\t\treturn processRollback(protocol);\n\t\t\t// commit that everything is ok, so now we can release the transfer\n\t\t\t// lock\n\t\tcase Commit:\n\t\t\ttransferLock.countDown();\n\t\t\tshouldRollback = false;\n\t\t\treturn null;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}",
"public void onRestorePendingState() {\n }",
"public void resultState(SubmitObject submit) {\n\t\tLog.i(TAG, \"CommunicationState: \" + submit.getState().toString());\n\t\tmSubmitService.resultState(submit);\n\t}",
"public void action()\n {\n if(timeout > 0 && timeout < 2)\n {\n timeout = 0;\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n counter = 0;\n\n\n }\n //If this is the very first time getting to this state or if the timeout reset the counter to 0\n if(counter < 1)\n {\n //Clean the list of receivers in case there is something\n if(!receivers.isEmpty())\n receivers.removeAllElements();\n //Calculate the duration of the intro\n calculateDurationIntro();\n //Find a receiver\n findAllReceivers();\n constructACLMessage();\n introNegotiation = new IntroNegotiation(agent,msg);\n introNegotiation.setDataStore(getDataStore());\n agent.addBehaviour(introNegotiation);\n }\n\n\n //Handle where I'm heading to from here.\n switch (steps)\n {\n case 0:\n transition = 29;\n break;\n case 1:\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n transition = 17;\n\n }\n\n\n\n }",
"@Override\n public void resetBuffer() {\n\n }",
"@Override\n public void done() {\n }",
"@Override\n public void done() {\n }",
"@Test\r\n\tpublic void testG() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun.reset();\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.commitB());\r\n\t\t\r\n\t\t//analyze the reset\r\n\t\tLogAnalyzer aly = run.getCurrentAnalyzer();\r\n\t\t//The value, the reset occurs\r\n\t\tassertEquals( 200, aly.getCurrentPartValue() );\r\n\t\t//The part is not available\r\n\t\tassertEquals( LogAnalyzer.THE_PART_IS_NOT_KNOWN, aly.getPart() );\r\n\t\t\r\n\t\tassertFalse( aly.isAfterPart0() );\r\n\t\tassertFalse( aly.isAfterPart1() );\r\n\t\t//The parts 0 and 1 run properly\r\n\t\tassertTrue( aly.isAfterPart2() );\r\n\t\t//The part 3 is not reached, because of the reset\r\n\t\tassertFalse( aly.isAfterPart3() );\r\n\t\t\r\n\t\t//There is no part\r\n\t\tassertFalse( aly.isPart1() );\r\n\t\tassertFalse( aly.isPart2() );\r\n\t\tassertFalse( aly.isPart3() );\r\n\t\tassertFalse( aly.isPart4() );\r\n\t\t\r\n\t\t//There are 3 entries in the list.\r\n\t\tassertEquals( 3, aly.getList().size() );\r\n\t\t//The last entry has the RST_FLAG set\r\n\t\tassertEquals( IHandshake.RST_FLAG, aly.getCurrentPartType() );\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-1-100-1-1-101-1-4-200-\");\r\n\t}",
"@Override\n\tpublic void askReset() {\n\t}",
"private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void BeforeReConnect() {\n nCurrentDownloadNum = 0;\n nCurrentUpload = 0;\n mapDownload.clear();\n }",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"void resetToRest() {\n\t\t\t\tsimulate = false;\n\t\t\t\ttask = null;\n\t\t\t}",
"@Override\n\tpublic void handshakeCompleted(HandshakeCompletedEvent evt) {\n\t\t\n\t}",
"@Override\n public void upcall(ReadMessage message) throws IOException, ClassNotFoundException {\n\t MessageObject readMessage = (MessageObject) message\n .readObject();\n message.finish();\n \tReceivePortIdentifier requestor = readMessage.requestor;\n MessageObject response = new MessageObject();\n if(requestor == null)\n\t \treturn;\n synchronized (masterJobsList){\n if(readMessage.messageType == MessageObject.message_id.JOB_STEALING){\n // Provide slave with one another job\n synchronized (jobListBusy){\n if(masterJobsList.size() > 0){\n response.messageType = MessageObject.message_id.JOB_BOARD;\n response.data = masterJobsList.get(0);\n masterJobsList.remove(0);\n response.maximumBound = solutionsStep;\n }\n }\n\n SendPort replyPort = myIbis.createSendPort(replyPortType);\n replyPort.connect(requestor);\n WriteMessage reply = replyPort.newMessage();\n reply.writeObject((response));\n reply.finish();\n replyPort.close();\n\n\n } else if (readMessage.messageType == MessageObject.message_id.SOLUTIONS_NUM){\n --jobCounter;\n Pair<Integer, Integer> res = (Pair<Integer, Integer>)readMessage.data;\n System.out.println(\"GOT RESULT (\" + res.getKey() + \" ; \" + res.getValue() + \")\");\n synchronized(jobListBusy){\n if(res.getValue() < solutionsStep){\n solutionsNum = res.getKey();\n solutionsStep = res.getValue();\n endTime = System.currentTimeMillis();\n } else if (res.getValue() == solutionsStep){\n solutionsNum += res.getKey();\n endTime = System.currentTimeMillis();\n } else {\n // do nothing\n }\n if(jobCounter == 0)\n jobListBusy.notify();\n }\n\n }\n\n }\n }",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"@Override\n\t\tpublic void done() {\n\n\t\t}"
]
| [
"0.6324738",
"0.6176512",
"0.56206906",
"0.5539019",
"0.5514034",
"0.5511193",
"0.54917765",
"0.54624444",
"0.543098",
"0.5406043",
"0.5365377",
"0.52957964",
"0.5282265",
"0.5277828",
"0.5254034",
"0.52536225",
"0.5248828",
"0.5248526",
"0.52423614",
"0.52362025",
"0.5232",
"0.5207523",
"0.5206589",
"0.51983386",
"0.5197919",
"0.5195105",
"0.5194543",
"0.5191741",
"0.51880866",
"0.518705",
"0.51813024",
"0.5172907",
"0.51687413",
"0.51604575",
"0.5146419",
"0.5141675",
"0.51357317",
"0.5129973",
"0.5129503",
"0.5127231",
"0.51212263",
"0.5110744",
"0.5109764",
"0.5109203",
"0.51082534",
"0.50878567",
"0.5083847",
"0.50800526",
"0.5052899",
"0.5051791",
"0.5047136",
"0.5047136",
"0.5047136",
"0.5044984",
"0.50420266",
"0.5040562",
"0.503975",
"0.50387704",
"0.5037322",
"0.5036113",
"0.50251955",
"0.50244695",
"0.5019328",
"0.50132716",
"0.5012595",
"0.5008981",
"0.5004776",
"0.5004776",
"0.4999109",
"0.4998294",
"0.499655",
"0.4995651",
"0.49852774",
"0.49741742",
"0.49725768",
"0.4969294",
"0.49637708",
"0.49627846",
"0.49469006",
"0.49460605",
"0.4932882",
"0.4919093",
"0.4918131",
"0.49141967",
"0.49088767",
"0.4898852",
"0.48877084",
"0.48847935",
"0.48792735",
"0.48716408",
"0.48716408",
"0.48668802",
"0.48634315",
"0.48625457",
"0.4861521",
"0.4860808",
"0.48562792",
"0.48475713",
"0.48419577",
"0.48413232",
"0.4836862"
]
| 0.0 | -1 |
Constructor for the delete command. | public DeleteCommand(String afterCommand) {
this.afterCommand = afterCommand;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DeleteCommand(String command) {\n super(command);\n }",
"public DeleteCommand(String commandText) {\n super();\n description = commandText;\n }",
"private Delete() {}",
"private Delete() {}",
"public DeleteCommand(int index) {\n this.index = index;\n }",
"public DeleteCommand(int index) {\n this.index = index;\n }",
"public DeleteCommand(int index) {\n this.index = index;\n }",
"public DeleteCommand(String[] temp) {\n this.temp = temp;\n }",
"public DeleteCommand(ToDoList tdl, int index) {\n this.tdl = tdl;\n this.index = index;\n }",
"@Override\n public MyBusinessObjectDeleteCommand getDeleteCommand() {\n return new MyBusinessObjectDeleteCommand(this);\n }",
"public CardDeletedCommand(Card card) {\n this.card = card;\n }",
"public DeleteResource() {\n }",
"public DeleteCommand(String taskNumber) throws DukeException {\n String[] deleteDetails = taskNumber.split(\" \");\n if (deleteDetails.length != 1) {\n throw new DukeException(ERROR_MESSAGE_EXCEED_ONE_ARGUMENT);\n }\n\n try {\n this.taskNumber = Integer.parseInt(taskNumber) - 1;\n } catch (NumberFormatException e) {\n throw new DukeException(ERROR_MESSAGE_DELETE_STRING_PROVIDED);\n }\n }",
"void deleteCommand(String commandID);",
"public DeleteFriendRequestCommand(Username toDelete) {\n requireNonNull(toDelete);\n this.toDelete = toDelete;\n }",
"public MdDeleteClassAttribute() {\n super(\"md_delete_class_attribute\", Kloopzcm.KLOOPZCM);\n\n addInParameter(P_ATTRIBUTE_ID);\n addInParameter(P_DELETE_ALL);\n }",
"public static DeleteCommand buildInstance(String argString) throws DukeException {\n String[] cmdArgs = ParserUtils.getCommandArgs(argString, \"I'm sorry, but delete needs the index of a Task.\");\n\n assert (cmdArgs[0].equals(\"delete\"));\n\n int index = ParserUtils.parseInt(cmdArgs[1], \"The index of the task needs to be an integer.\");\n return new DeleteCommand(index);\n }",
"public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"public DeleteTaskCommand(int index) {\n super();\n this.index = index - 1;\n }",
"@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}",
"@DELETE\n public void delete() {\n }",
"public void delete() {\n\n\t}",
"public void delete()\n {\n call(\"Delete\");\n }",
"public void delete() {\n\n }",
"public void delete(){\r\n\r\n }",
"@Override\n\tpublic void delete() {\n\n\t}",
"@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}",
"private void delete() {\n\n\t}",
"public NodeDeleteCommand(IQNM parent, INode child)\r\n\t\tthrows Exception\r\n\t\t{\r\n\t\tif (parent == null || child == null) \r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"parent is null\");\r\n\t\t\t}\r\n\t\tif (child == null)\r\n\t\t\t{\r\n\t\t\tFinestra.mostraIE(\"child is null\");\r\n\t\t\t}\r\n\t\tsetLabel(\"node deletion\");\r\n\t\tthis.parent = parent;\r\n\t\tthis.child = child;\r\n\t\t}",
"public DeleteBuilder delete() {\n return new DeleteBuilder(this);\n }",
"private Delete(Builder builder) {\n super(builder);\n }",
"public RedoCommand() {\n }",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"@Override\n public void delete() {\n }",
"@Override\n public void delete()\n {\n }",
"public String getCommandName() {\r\n return \"batchDelete\";\r\n }",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n public void delete() {\n\n\n }",
"public DeleteAction(GraphModel graph) {\n super(\"Delete Selection\");\n\n this.graph = graph;\n\n graph.addObserver(this);\n\n setEnabled(false);\n }",
"@Override\r\n\tpublic void delete() {\n\r\n\t}",
"protected JPADeleteClause createDeleteClause() {\n\t\treturn new JPADeleteClause(getEntityManager(), getDslRoot());\n\t}",
"public DynamicDelete() {\n initComponents();\n }",
"private DeleteOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public DeleteUserParameters() {}",
"@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}",
"public void delete(String arg0) {\n\t\t\n\t}",
"public void delete(String arg0) {\n\n\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public Command() {\n }",
"@Override\n\tpublic void delete(String query) {\n\t\t\n\t}",
"private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"public void delete(String so_cd);",
"public Command parseDeleteCommand(String taskInfo) throws DeleteNoIndexException {\n try {\n int taskIndex = Integer.parseInt(taskInfo);\n return new DeleteCommand(taskIndex);\n } catch (NumberFormatException e) {\n throw new DeleteNoIndexException();\n }\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Command : {}\", id);\n commandRepository.deleteById(id);\n }",
"@Exclude\n public abstract void delete();",
"public DeleteMember() {\n\t\tsuper(\"delete_member\", de.piratenpartei.berlin.ldadmin.dbaccess.generated.DefaultSchema.DEFAULT_SCHEMA);\n\t\taddInParameter(MEMBER_ID_P);\n\t}",
"@Override\n\tpublic void delete(String id) {\n\n\t}",
"public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"@Override\r\n\tpublic void delete(String id) {\n\r\n\t}",
"public DeviceDataRequestCommand()\n {\n }",
"public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }",
"public Command() {\n this.arguments = new String[0];\n }",
"public DeleteRecord_Params() \n\t{\n\t\tbatch = null;\n\t}",
"public abstract void delete();",
"public abstract void delete();",
"public ListCommand() {\n super();\n }",
"protected abstract void doDelete();",
"@SuppressWarnings(\"unchecked\")\n\tpublic HttpDeleteRequest<E,String> buildHttpDelete ()\n\t{\n\t\treturn new HttpDeleteRequest<E,String>((HttpBuilder<E, String>) this);\n\t}",
"@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}",
"@Override\n public void delete(int id) {\n }",
"@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"public AppIDDELETEResponse() {\n }",
"public static String deleteCommand(final String[] commandLineArguments) {\n \t\tCommand makeView = new DeleteCommand(commandLineArguments[1],commandLineArguments[2],commandLineArguments[3]);\n \t\treturn makeView.execute();\n \t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteClick(Object id) {\n\t\t\n\t}",
"public PacketDelete(String data) {\n String[] unpackedData = data.split(\",\");\n this.packetID = Integer.parseInt(unpackedData[0]);\n this.gameObject = UUID.fromString(unpackedData[1]);\n }",
"private DeleteAction makeDeleteAction(String input)\r\n throws MakeActionException {\r\n if (params.length == 0) {\r\n throw new MakeActionException(DeleteAction.ERR_INSUFFICIENT_ARGS);\r\n }\r\n DeleteAction da = new DeleteAction(goku);\r\n da.input = input;\r\n\r\n if (params.length == 1) {\r\n try {\r\n int id = Integer.parseInt(params[0]);\r\n da.id = id;\r\n } catch (NumberFormatException e) {\r\n da.id = null;\r\n da.title = params[0];\r\n }\r\n } else {\r\n da.title = Joiner.on(\" \").join(params);\r\n }\r\n return da;\r\n }",
"public abstract void delete(String ID);",
"@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}",
"@Override\n\tpublic String getPreparedDeleteText() {\n\t\treturn SQL_Delete;\n\t}",
"@Override\n\tpublic CommandAction execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\treturn new CommandAction(false, \"delete.jsp\");\n\t}",
"public java.lang.String getDelete() {\n return instance.getDelete();\n }",
"@Override\n\tpublic void delete(Integer arg0) {\n\t\t\n\t}",
"public DeleteService() {\n initComponents();\n }",
"public int delete( Conge conge ) ;"
]
| [
"0.80153906",
"0.7386696",
"0.7310077",
"0.7310077",
"0.6979054",
"0.6979054",
"0.6979054",
"0.6822759",
"0.68051165",
"0.66912377",
"0.66421443",
"0.66375566",
"0.65146905",
"0.6489576",
"0.64695543",
"0.64019877",
"0.6400489",
"0.635328",
"0.62831503",
"0.62831503",
"0.62775934",
"0.6273885",
"0.62610704",
"0.62534916",
"0.62450576",
"0.62362367",
"0.6156367",
"0.6145435",
"0.61338",
"0.6127347",
"0.6116783",
"0.6112668",
"0.6099579",
"0.60809696",
"0.60709876",
"0.6070722",
"0.6056803",
"0.60499185",
"0.6017578",
"0.6017578",
"0.60012436",
"0.59671146",
"0.59615165",
"0.59592295",
"0.595901",
"0.5953212",
"0.594747",
"0.5946879",
"0.5936923",
"0.5929356",
"0.5908947",
"0.5906027",
"0.5903572",
"0.589957",
"0.58831847",
"0.58831847",
"0.58786076",
"0.5877546",
"0.58771515",
"0.5871308",
"0.5859803",
"0.58455944",
"0.58427036",
"0.5831249",
"0.5827687",
"0.58185667",
"0.5817433",
"0.5813012",
"0.5812982",
"0.5812982",
"0.58052963",
"0.58024734",
"0.57961",
"0.5795178",
"0.5792597",
"0.5786676",
"0.5780592",
"0.5780592",
"0.5780592",
"0.5780592",
"0.5780592",
"0.5780592",
"0.5775076",
"0.57718647",
"0.57673824",
"0.57493347",
"0.57493347",
"0.57493347",
"0.57493347",
"0.5747498",
"0.5746024",
"0.5745068",
"0.5742873",
"0.57420385",
"0.57391125",
"0.5737317",
"0.5733061",
"0.572553",
"0.5725367",
"0.5725183"
]
| 0.59898615 | 41 |
needs a valid number | @Override
public String execute(TaskList taskList, Ui ui, DukeStorage storage) {
int taskNo = Integer.parseInt(afterCommand) - 1;
if (taskNo >= taskList.getTasksSize() || taskNo < 0) {
return ui.throwDukeException(new DukeException("Please enter a valid task no!"));
}
Task deletedTask = taskList.get(taskNo);
taskList.delete(taskNo, true);
return ui.displayDeletedTask(deletedTask, taskList.getTasksSize(), false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }",
"private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}",
"void showAlertForInvalidNumber();",
"public void checkInput(TextField number) {\r\n\t\ttry {\r\n\t\t\tlong num = Long.parseLong(number.getText());\r\n\t\t\tif (num < 0) \t\t\t\t\t// ako je negativan broj, pretvorit cemo ga u pozitivan\r\n\t\t\t\tnum = Math.abs(num);\r\n\t\t\tif (isValid(num)) \r\n\t\t\t\tscene2();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\talert(\"Wrong input, try again!\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}",
"public boolean isValid(int number)",
"private static String validateNumber(String number) {\r\n\r\n\t\t/*Checking if the number is null, or if its length is not equals to 16\r\n\t\t * or if the first two digits are not between 51 and 55.\r\n\t\t * If one of the following is not respected, an Illegal Argument\r\n\t\t * Exception with an appropriate message will be thrown.\r\n\t \t */\r\n\t\ttry{\r\n\t\t\tif (number == null \r\n\t\t\t\t\t|| number.length() != 16 \r\n\t\t\t\t\t|| Integer.parseInt(number.substring(0, 2)) < 51\r\n\t\t\t\t\t|| Integer.parseInt(number.substring(0, 2)) > 55)\r\n\t\t\tthrow new IllegalArgumentException(\"The Master card given does not respect the validation.\");\r\n\t\t}catch(NumberFormatException npe){\r\n\t\t\tthrow new IllegalArgumentException(\"The Master card given does not respect the validation.\");\r\n\t\t} \r\n\t\treturn number;\r\n\t}",
"private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: false;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }",
"public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }",
"@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}",
"@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }",
"public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}",
"private void checkPositive(long number, String paramName) {\r\n if (number <= 0) {\r\n throw new IllegalArgumentException(\"The parameter '\" + paramName\r\n + \"' should not be less than or equal to 0.\");\r\n }\r\n }",
"public void testInvalidNumber() {\n\t\t// Arrange\n\t\tString exceptionNumb = null;\n\t\tPhoneNumberDTO dto = new PhoneNumberDTO(INVALID_NUMBER);\n\t\tGetLastMadeCommunicationService service\n\t\t\t= new GetLastMadeCommunicationService(dto);\n\t\t\n\t\t// Act\n\t\ttry {\n\t\t\tservice.execute();\n\t\t\tfail(\"Should have thrown PhoneNumberNotValid\");\n\t\t} catch(PhoneNumberNotValid pnnv) {\n\t\t\texceptionNumb = pnnv.getNumber();\n\t\t}\n\t\t\n\t\t// Assert\n\t\tassertEquals(\"The number in the exception should be \"\n\t\t\t\t+ INVALID_NUMBER + \" but it was \" + exceptionNumb,\n\t\t\t\tINVALID_NUMBER, exceptionNumb);\n\t}",
"static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static int getValidNum() {\n int num;\n\n num = input.nextInt();\n while (num < NUM_MIN || num > NUM_MAX) {\n System.out.print(\"Please enter a valid number from \" + NUM_MIN + \" to \" + NUM_MAX + \": \");\n num = input.nextInt();\n }\n return num;\n }",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testInvalidNumber() throws ParseException {\n\t\tparser(\"<%=-41a%>\").block();\n\t}",
"boolean numberIsLegal (int row, int col, int num) {\n\t\tif (isLegalRow(row, col, num)&&isLegalCol(col, row, num)&&isLegalBox(row,col,num)) {\n\t\t\treturn true;\n\t\t} else if (num == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasNumber();",
"private void processNumber() {\r\n\t\tString number = extractNumber();\r\n\r\n\t\tif ((!number.equals(\"1\")) && (!number.equals(\"0\"))) {\r\n\t\t\tthrow new LexerException(String.format(\"Unexpected number: %s.\", number));\r\n\t\t}\r\n\r\n\t\ttoken = new Token(TokenType.CONSTANT, number.equals(\"1\"));\r\n\t}",
"private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }",
"private void errorCheck(String nonterminal, int number) {\r\n if (nonterminal == null || !isNonTerminal(nonterminal) || number < 0) {\r\n throw new IllegalArgumentException();\r\n }\r\n }",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}",
"private boolean validar_numero(String numero) {\n boolean es_valido;\n es_valido = numero.charAt(0) != '0';\n return es_valido;\n }",
"public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}",
"private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }",
"@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testIllegalArgument() {\n\t\tnew NumberConverter(1242);\n\t}",
"private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }",
"private static int tryParse(String number) {\r\n\t\ttry {\r\n\t\t\treturn Integer.parseInt(number);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tthrow new java.lang.Error(\"Could not convert input to integer.\");\r\n\t\t}\r\n\t}",
"public static boolean numberFormatIsValid(String value) {\n return value.matches(\"^(([0-9]{1,3}[.][0-9]{1,2})|([0-9]{1,3}))$\");\n }",
"private int validateNumber(int data, int defaultValue, int minValue, int maxValue)\n {\n return (data < minValue || data > maxValue) ? defaultValue : data;\n }",
"@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}",
"public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }",
"public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }",
"@Test\n\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}",
"@Test\n\tpublic void caseCostWithWrongInput() {\n\t\tFloat cost = 0f;\n\t\ttry {\n\t\t\tStringNumberUtil.positiveNumberUtil(cost);\n\t\t\tfail();\n\t\t} catch (NumberException e) {\n\t\t}\n\t}",
"public static boolean isGood(int num){\r\n\t\tif ((num<0)||(num>6)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"private boolean isAmountValid(String amount) {\n return Integer.parseInt(amount) > 0;\n }",
"private void validateInteger(String line) throws VectorException{\r\n\t\tif(line.contains(\".\"))\r\n\t\t\tthrow new VectorException(\"Value must be an integer\\nand cannot contain rational number\");\r\n\t}",
"private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }",
"public boolean checkNum(String n,JTextField t,int len) \n\t{\n\t\tboolean number=true;\t\t//We are assuming that name will be a String \n\t\tboolean result=false;\n\t\ttry \n\t\t{\n\t\t\tDouble num=Double.parseDouble(n); //if s contains sting then it will not be parse and it will throw exception\t\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\t\tnumber=false;\t\t}\n\t\t\n\t\tif(number==true) // true\n\t\t{\n\t\t\t//it is a number\n\t\t\tif(n.length()==len)\n\t\t\t{\tresult=true;\t}\n\t\t\telse\n\t\t\t{\tresult=false;\t}\n\t\t}\n\t\telse if(number==false) //it is a String\n\t\t{\tresult=false;\t}\n\t\treturn result;\n}",
"public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}",
"@Test\n public void deve_aceitar_tamanho_com_9_numeros() {\n telefone.setTamanho(9);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }",
"public static boolean isValidNumber(String number) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(\"4\");\n\t set.add(\"7\");\n\t\t\n\t if(number.substring(0, 1).equals(\"3\") && set.contains(number.substring(1, 2)) && number.length() == 15) { return true; }\n\t\treturn false;\n\t}",
"public static boolean checkUnlucky(int num) {\n\t\twhile (num != 0) {\n\t\t\tif (num == 13) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\tnum = num / 10;\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean IsNumber(int par_Numer) {\n return true;\n }",
"private void validateData(String input) {\n String[] inputStringArray = input.split(\" \");\n\n for (String s : inputStringArray) {\n try {\n Integer.parseInt(s);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\n \"Looks like your input - \" + s + \", is not a number. Try again\");\n }\n }\n }",
"public NoDigitException(){\r\n\r\n\t}",
"private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void testNumbersInvalid() throws Exception {\n testLexerSource(\"6x foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6g foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6xsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6gsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n }",
"public static boolean isValid(long number) { \n\t\t\t\treturn (numberOfDigits(number) >= 13 && numberOfDigits(number) <= 16) && \n\t\t\t\t (matchPrefix(number, 4) || matchPrefix(number, 5) || matchPrefix(number, 37) || matchPrefix(number, 6)) && \n\t\t\t\t ((sumOfDoubleEvenPlace(number) + sumOfOddPlace(number)) % 10 == 0); \n\t\t\t}",
"@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_mais_de_9_numeros() {\n telefone.setTamanho(10);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser maior que 9.\", Find.class));\n }",
"protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }",
"boolean hasNum();",
"boolean hasNum();",
"boolean hasNum();",
"public static void stinException(String nameField,Editable number) throws Exceptions {\n if(nameField.equals(\"stock\") && number.toString().isEmpty()){\n numberObtained=0;\n }\n if(nameField.equals(\"stock\") && number.toString().isEmpty()==false) {\n try {\n if (Integer.parseInt(number.toString()) < 0) {\n throw new Exceptions(\"You need to insert positive integer numbers\");\n }\n } catch (Exception e) {\n throw new Exceptions(\"Insert correctly the number of the stock\");\n }\n }\n try {\n if (nameField.equals(\"cost\") && Double.parseDouble(number.toString()) <= 0) {\n throw new Exceptions(\"You need to insert positive decimal numbers\");\n }\n }catch (Exceptions fs){\n throw new Exceptions(\"You need to insert positive decimal numbers\");\n }catch (Exception e){\n throw new Exceptions(\"The cost is a decimal number\");\n }\n\n\n }",
"private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}",
"public static boolean isValid(long number)\n\t{\n\t\tint total = sumOfDoubleEvenPlace(number) + sumOfOddPlace(number);\n\t\tif((total % 10 == 0 && prefixMatched(number, 1) \n\t\t\t\t&& getSize(number) >= 13 && getSize(number) <= 16))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }",
"public static int checkInput() {\r\n\t\tint num = 0;\r\n\t\tboolean error = true; // check for error\r\n\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\t// input has to be an integer and not negative number\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0)\r\n\t\t\t\t\tthrow new InputMismatchException();\r\n\t\t\t\terror = false;\r\n\r\n\t\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\t\tSystem.out.print(\"Wrong input, try again...: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\t// loop continue while there is an error\r\n\t\t} while (error);\r\n\r\n\t\treturn num;\r\n\t}",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"@Test\n public void deve_aceitar_tamanho_com_8_numeros() {\n telefone.setTamanho(8);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }",
"private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }",
"private boolean isValidNumber(String number) {\n if (null == number) {\n return false;\n }\n\n int i = 0;\n for (i = 0; i < number.length(); ++i) {\n if (number.charAt(i) != '+' && number.charAt(i) != '-') {\n if (Character.isDigit(number.charAt(i))) {\n break;\n }\n\n // Found a character that isn't a digit or sign\n return false;\n }\n }\n\n int firstDigitIndex = i;\n\n if (number.length() == i) {\n // The number has only signs\n return false;\n }\n\n return (number.substring(firstDigitIndex).chars().allMatch(Character::isDigit));\n }",
"@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }",
"private static void validate(Card card) throws CardNumberException {\n card.validateNumber();\n }",
"private static boolean isContactNumberValid(String contactNumber) {\n return contactNumber.matches(\"\\\\d{10}\");\n }",
"private boolean isLogNumFieldValid() {\n String count = logFileCount.getText();\n logNumAlert.setText(\"\");\n try {\n int count_num = Integer.parseInt(count);\n if (count_num < 1) {\n logNumAlert.setText(Bundle.AutopsyOptionsPanel_logNumAlert_invalidInput_text());\n return false;\n }\n } catch (NumberFormatException e) {\n logNumAlert.setText(Bundle.AutopsyOptionsPanel_logNumAlert_invalidInput_text());\n return false;\n }\n return true; \n }",
"public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}",
"@Override\n public String checkRule() {\n if (line.matches(\"^\\\\D+$\")) {\n return (\"Complies rule 'Has no numbers' \\n\");\n } else {\n return \"\";\n }\n }",
"public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}",
"public static int inputValidation(Scanner sc) {\n int number;\n do {\n System.out.println(\"enter Postive Number: \");\n while (!sc.hasNextInt()) {\n System.out.println(\"This is not a nuber.Please Enter Positive Number: \");\n sc.next();\n }\n number = sc.nextInt();\n } while (number < 0);\n\n return number;\n }",
"public static boolean isValid(long number) {\r\n int length = getSize(number);\r\n if(!(length >=13 && length <= 16))\r\n return false;\r\n else if (!(prefixMatched(number)))\r\n return false;\r\n int sumOfDouble = sumOfDoubleEvenPlace(number);\r\n int sumOfOdd = sumOfOddPlace(number);\r\n if ((sumOfOdd + sumOfDouble) % 10 == 0)\r\n return true;\r\n return false;\r\n }",
"public BadTrackingNumberFormatException(){\n super(\"That tracking number is not correct.\");\n }",
"private static boolean isValidDigit(String strInput) {\n boolean isValid = true;\n if (isPrimitive(strInput)) {\n int input = Integer.parseInt(strInput);\n if (input < 1 || input > 255) {\n log.debug(\"Wrong config input value: {}\", strInput);\n isValid = false;\n } else {\n isValid = true;\n }\n\n } else {\n isValid = false;\n }\n\n return isValid;\n }",
"public static boolean IsNumber(long par_Number) {\n return true;\n }",
"private int validateIntegerInput(int input) {\n if (input < 1 ) {\n input = -1;\n }\n return input;\n }",
"private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void parseValidNum(XPRParser.Validate_numContext ctx, State rootState) {\n\n String name = ctx.ID_GLOBAL().getText().substring(1);\n Expr val = rootState.getExpr(name);\n if (val == null) {\n val = z3ctx.mkConst(name, z3ctx.mkIntSort());\n rootState.putExpr(name, z3ctx.mkConst(name, z3ctx.mkIntSort()));\n }\n if (!rootState.columns.containsKey(name)) {\n HashMap<String, Expr> field = new HashMap();\n field.put(rootState.getname(), val);\n rootState.columns.put(name, field);\n }\n IntExpr bound = null;\n Invariant inv = null;\n\n if (ctx.all_result().int_result() != null) {\n bound = z3ctx.mkInt(ctx.all_result().int_result().int_t().getText());\n\n }\n if (ctx.all_result().dynamic_result() != null)\n bound = (IntExpr) z3ctx.mkConst(ctx.all_result().dynamic_result().dynamic().id().ID().getText(), z3ctx.mkIntSort());\n\n if (ctx.cond_num().VGE() != null)\n inv = new boundInv(name, bound, \"GE\", rootState.getname());\n else if (ctx.cond_num().VGT() != null)\n inv = new boundInv(name, bound, \"GT\", rootState.getname());\n else if (ctx.cond_num().VLE() != null)\n inv = new boundInv(name, bound, \"LE\", rootState.getname());\n else if (ctx.cond_num().VLT() != null)\n inv = new boundInv(name, bound, \"LT\", rootState.getname());\n db.addInv(inv);\n\n }",
"public static boolean isValid(long num) {\r\n\t\tint sum = sumOfDoubleEvenPlace(num) + sumOfOddPlace(num);\r\n\t\tif (getSize(num) < 13 || getSize(num) > 16) {\t\t\t// duzina broja ne smije biti manja od 13 i veca od 16\r\n\t\t\talert(\"Your credit card number is not long enough!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (prefixMatched(num) == false) {\t\t\t\t\t// ako uslov ne zadovoljava, odnosno ako je false, ispisi poruku\r\n\t\t\talert(\"Your credit card does not start with suitable prefix!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (sum % 10 != 0) {\t\t\t\t\t\t// uslov sume parnih i neparnih brojeva koji mora biti djeljiv sa 10\r\n\t\t\talert(\"Your credit card is invalid!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@org.junit.Test\r\n public void testPositiveScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"+27712612199\");// function should return true\r\n assertEquals(true, result);\r\n\r\n }",
"@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }",
"public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\n }",
"public static void checkWithoutNumbers(String name) throws NumbersNotAllowedException{\n \n if(!name.matches(\"^([^0-9])*$\")) throw new NumbersNotAllowedException(\"The numbers in the name of entity are not allowed!\");\n }",
"private int checkRange(int number,int range){\n return (number+range)%range;\n }",
"private static boolean isSingleDigit(int number) {\n\t\treturn number < 10;\n\t}"
]
| [
"0.76418823",
"0.75547",
"0.7227575",
"0.7205388",
"0.7158003",
"0.7123224",
"0.7114375",
"0.70347387",
"0.7032787",
"0.69563246",
"0.6938965",
"0.6919386",
"0.68159914",
"0.6599945",
"0.65813535",
"0.6550864",
"0.65480256",
"0.65439844",
"0.6509824",
"0.6495265",
"0.64593565",
"0.6447131",
"0.6395607",
"0.6390408",
"0.63884926",
"0.63841486",
"0.6371132",
"0.63227886",
"0.63141316",
"0.63017493",
"0.625197",
"0.62374055",
"0.62236094",
"0.6215809",
"0.62102264",
"0.6198716",
"0.61945045",
"0.61807895",
"0.61680484",
"0.614456",
"0.6133775",
"0.60924697",
"0.60900253",
"0.6068289",
"0.6067128",
"0.6063327",
"0.6051907",
"0.6046536",
"0.60428184",
"0.6036354",
"0.6035058",
"0.60348654",
"0.6025531",
"0.60199773",
"0.601246",
"0.60111594",
"0.6002671",
"0.5996112",
"0.59854513",
"0.5975668",
"0.59704196",
"0.5965588",
"0.59573096",
"0.5955578",
"0.59528476",
"0.59528476",
"0.59528476",
"0.594575",
"0.59322923",
"0.5931568",
"0.59249526",
"0.591782",
"0.59063804",
"0.5905966",
"0.5893899",
"0.58886623",
"0.58834255",
"0.58697146",
"0.58638847",
"0.5861689",
"0.58547664",
"0.5850981",
"0.5833783",
"0.5828816",
"0.5819725",
"0.5817591",
"0.58120185",
"0.5810126",
"0.5809014",
"0.5806511",
"0.580456",
"0.58033407",
"0.5799681",
"0.57978344",
"0.5797587",
"0.5792874",
"0.5792767",
"0.57831275",
"0.57660663",
"0.57623404",
"0.5757686"
]
| 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @When("^password$")
public void password() throws Throwable {
System.out.println("input password");
//Assert.assertEquals(34, 40);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"public void action() {\n }",
"public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}",
"public abstract ActionInMatch act();",
"void determineNextAction();",
"public void executeAction( String actionInfo );",
"interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }",
"public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }",
"public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}",
"public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"abstract public void performAction();",
"IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);",
"String replaceParserMessage(Entity e, String action);",
"private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}",
"public abstract String getIntentActionString();",
"public void action() {\n action.action();\n }",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}",
"public void processAction(CIDAction action);",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"Expression getActionSentence();",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void doAction(){}",
"public void act() {\n\t}",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"public abstract boolean resolveAction(String str, Bundle bundle);",
"public void actionButton(String text);",
"public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }",
"private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}",
"@Override\n public void act() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"void showOthersActions(String message);",
"public void performAction();",
"protected abstract void action(Object obj);",
"public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }",
"String getAction();",
"String getAction();",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public abstract boolean checkAction(String str);",
"public int showPossibleActions(String[] string);",
"public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}",
"private void Log(String action) {\r\n\t}",
"public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }",
"public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}",
"public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"protected abstract void actionExecuted(SUT system, State state, Action action);",
"public void act();",
"static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}",
"public void action(BotInstance bot, Message message);",
"public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }",
"public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}",
"@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }",
"@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }",
"private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}",
"public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}",
"@Override\n protected void doAct() {\n }",
"public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }",
"public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }",
"public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}",
"public void act() \n {\n canSeeAlex();\n }",
"@Override\n public void action(Jugador jugador) {\n\n }",
"public void actionOffered();",
"public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }",
"static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }",
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}",
"public void setAction(String action) { this.action = action; }",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}",
"static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}",
"public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }"
]
| [
"0.6989324",
"0.64658433",
"0.6398834",
"0.6353149",
"0.63501525",
"0.633518",
"0.63232154",
"0.63232154",
"0.63232154",
"0.6317274",
"0.62379014",
"0.61738145",
"0.61690307",
"0.61507595",
"0.6110593",
"0.6071837",
"0.6065073",
"0.6061467",
"0.6035597",
"0.6035597",
"0.6035597",
"0.6035597",
"0.60223806",
"0.6011715",
"0.5994028",
"0.5986706",
"0.5973847",
"0.59363747",
"0.59299153",
"0.59274375",
"0.5925999",
"0.59236354",
"0.5900132",
"0.58874744",
"0.5880966",
"0.5860396",
"0.5858362",
"0.5852421",
"0.5834586",
"0.5807131",
"0.5794122",
"0.57809204",
"0.5775529",
"0.5772291",
"0.57655984",
"0.5762837",
"0.57587755",
"0.5758653",
"0.5752396",
"0.5749633",
"0.5743911",
"0.5743911",
"0.5743657",
"0.5743657",
"0.5740693",
"0.57326096",
"0.5722666",
"0.5708811",
"0.5706221",
"0.57024294",
"0.56944466",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5692927",
"0.5685764",
"0.56807494",
"0.5661615",
"0.5650216",
"0.5650081",
"0.56464934",
"0.5645747",
"0.5641903",
"0.5627175",
"0.5619585",
"0.5615084",
"0.5601284",
"0.5599514",
"0.55944145",
"0.55931157",
"0.55916977",
"0.55916977",
"0.55916977",
"0.5590322",
"0.55799615",
"0.55674374",
"0.55666804",
"0.5555143",
"0.5554079",
"0.55520636",
"0.5545089",
"0.5543725",
"0.55414605",
"0.55311835",
"0.5530412",
"0.55255187",
"0.55118287"
]
| 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @When("^click the submit button$")
public void click_the_submit_button() throws Throwable {
System.out.println("click the button");
//throw new PendingException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"public void action() {\n }",
"public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}",
"public abstract ActionInMatch act();",
"void determineNextAction();",
"public void executeAction( String actionInfo );",
"interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }",
"public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }",
"public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}",
"public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"abstract public void performAction();",
"IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);",
"String replaceParserMessage(Entity e, String action);",
"private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}",
"public abstract String getIntentActionString();",
"public void action() {\n action.action();\n }",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}",
"public void processAction(CIDAction action);",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"Expression getActionSentence();",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void doAction(){}",
"public void act() {\n\t}",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"public abstract boolean resolveAction(String str, Bundle bundle);",
"public void actionButton(String text);",
"public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }",
"private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}",
"@Override\n public void act() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"void showOthersActions(String message);",
"public void performAction();",
"protected abstract void action(Object obj);",
"public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }",
"String getAction();",
"String getAction();",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public abstract boolean checkAction(String str);",
"public int showPossibleActions(String[] string);",
"public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}",
"private void Log(String action) {\r\n\t}",
"public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }",
"public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}",
"public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"protected abstract void actionExecuted(SUT system, State state, Action action);",
"public void act();",
"static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}",
"public void action(BotInstance bot, Message message);",
"public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }",
"public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}",
"@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }",
"@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }",
"private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}",
"public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}",
"@Override\n protected void doAct() {\n }",
"public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }",
"public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }",
"public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}",
"public void act() \n {\n canSeeAlex();\n }",
"@Override\n public void action(Jugador jugador) {\n\n }",
"public void actionOffered();",
"public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }",
"static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }",
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}",
"public void setAction(String action) { this.action = action; }",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}",
"static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}",
"public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }"
]
| [
"0.6989337",
"0.6465871",
"0.6398866",
"0.63531065",
"0.63501644",
"0.63351953",
"0.6323244",
"0.6323244",
"0.6323244",
"0.6317299",
"0.62378716",
"0.6173785",
"0.6169042",
"0.6150738",
"0.6110577",
"0.607182",
"0.6065047",
"0.6061413",
"0.60355884",
"0.60355884",
"0.60355884",
"0.60355884",
"0.6022364",
"0.6011733",
"0.59939706",
"0.5986676",
"0.59738576",
"0.59363896",
"0.5929922",
"0.59274495",
"0.59259266",
"0.5923697",
"0.5900137",
"0.5887472",
"0.5880954",
"0.5860431",
"0.5858371",
"0.5852431",
"0.58345985",
"0.58071107",
"0.5794086",
"0.5780908",
"0.5775541",
"0.57723075",
"0.57655865",
"0.5762813",
"0.57587886",
"0.57586586",
"0.5752407",
"0.57496434",
"0.5743886",
"0.5743886",
"0.5743656",
"0.5743656",
"0.5740663",
"0.57326",
"0.572263",
"0.57088566",
"0.57062304",
"0.57024413",
"0.5694434",
"0.5692921",
"0.5692921",
"0.5692921",
"0.5692921",
"0.5692921",
"0.5692921",
"0.5692921",
"0.5692921",
"0.56857544",
"0.56807435",
"0.5661618",
"0.56502146",
"0.5650082",
"0.5646516",
"0.5645771",
"0.56419265",
"0.5627174",
"0.56195915",
"0.5615071",
"0.5601323",
"0.5599539",
"0.55943614",
"0.55931216",
"0.55917096",
"0.55917096",
"0.55917096",
"0.55902755",
"0.5579945",
"0.5567421",
"0.55666846",
"0.55551535",
"0.55541044",
"0.55520546",
"0.5545143",
"0.5543786",
"0.5541444",
"0.553122",
"0.55303997",
"0.5525518",
"0.5511786"
]
| 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @Then("^display result window$")
public void display_result_window() throws Throwable {
System.out.println("display_result_window");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"public void action() {\n }",
"public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}",
"public abstract ActionInMatch act();",
"void determineNextAction();",
"public void executeAction( String actionInfo );",
"interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }",
"public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }",
"public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}",
"public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"abstract public void performAction();",
"IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);",
"String replaceParserMessage(Entity e, String action);",
"private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}",
"public abstract String getIntentActionString();",
"public void action() {\n action.action();\n }",
"public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}",
"public void processAction(CIDAction action);",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"Expression getActionSentence();",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void doAction(){}",
"public void act() {\n\t}",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"public abstract boolean resolveAction(String str, Bundle bundle);",
"public void actionButton(String text);",
"public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }",
"private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}",
"@Override\n public void act() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"void showOthersActions(String message);",
"public void performAction();",
"protected abstract void action(Object obj);",
"public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }",
"String getAction();",
"String getAction();",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public abstract boolean checkAction(String str);",
"public int showPossibleActions(String[] string);",
"public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}",
"private void Log(String action) {\r\n\t}",
"public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }",
"public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}",
"public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"protected abstract void actionExecuted(SUT system, State state, Action action);",
"public void act();",
"static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}",
"public void action(BotInstance bot, Message message);",
"public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }",
"public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}",
"@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }",
"@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }",
"private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}",
"public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}",
"public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }",
"@Override\n protected void doAct() {\n }",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}",
"public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }",
"public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}",
"public void act() \n {\n canSeeAlex();\n }",
"@Override\n public void action(Jugador jugador) {\n\n }",
"public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }",
"public void actionOffered();",
"static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }",
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}",
"public void setAction(String action) { this.action = action; }",
"@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}",
"CaseAction createCaseAction();"
]
| [
"0.69913816",
"0.6464981",
"0.6399699",
"0.6356175",
"0.63496184",
"0.63362086",
"0.63226557",
"0.63226557",
"0.63226557",
"0.63172126",
"0.6238861",
"0.6175908",
"0.61712754",
"0.615359",
"0.61122066",
"0.6072982",
"0.60656",
"0.606321",
"0.60358083",
"0.60358083",
"0.60358083",
"0.60358083",
"0.6025168",
"0.6012587",
"0.59975",
"0.5988901",
"0.5975251",
"0.5938372",
"0.5930824",
"0.59285116",
"0.5926415",
"0.5925634",
"0.5902004",
"0.5886536",
"0.5883093",
"0.5861157",
"0.585878",
"0.5851496",
"0.5834613",
"0.580974",
"0.57950616",
"0.5783559",
"0.57777065",
"0.57708687",
"0.57677317",
"0.57630754",
"0.57601464",
"0.5759947",
"0.57521445",
"0.5749284",
"0.574564",
"0.574564",
"0.5744052",
"0.5744052",
"0.57430553",
"0.5735269",
"0.5724239",
"0.57098377",
"0.5706746",
"0.5702833",
"0.569788",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56932807",
"0.56863153",
"0.5680045",
"0.56607395",
"0.5651739",
"0.5650233",
"0.5648107",
"0.5646338",
"0.5642188",
"0.56278336",
"0.5621249",
"0.56167895",
"0.5601179",
"0.55998945",
"0.5597639",
"0.5593698",
"0.5593448",
"0.55906177",
"0.55906177",
"0.55906177",
"0.5582284",
"0.5566935",
"0.5566299",
"0.555467",
"0.5554512",
"0.5553822",
"0.5546099",
"0.55451936",
"0.55440366",
"0.5530315",
"0.55297476",
"0.55248684",
"0.5513779"
]
| 0.0 | -1 |
Never called. Disable default constructor | protected GEDCOMType() {/* intentionally empty block */} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}",
"private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }",
"private Instantiation(){}",
"private SystemInfo() {\r\n // forbid object construction \r\n }",
"public Constructor(){\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private Log()\n {\n //Hides implicit constructor.\n }",
"private SingleObject()\r\n {\r\n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private SerializerFactory() {\n // do nothing\n }",
"private Default()\n {}",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"Reproducible newInstance();",
"protected AbstractService() {\n this(false);\n }",
"private SingleObject(){}",
"Constructor() {\r\n\t\t \r\n\t }",
"O() { super(null); }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"private MApi() {}",
"private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }",
"private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}",
"private Supervisor() {\r\n\t}",
"private TMCourse() {\n\t}",
"private XmlFactory() {\r\n /* no-op */\r\n }",
"protected void initialize() {\n \t// literally do nothing\n }",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"private CheckingTools() {\r\n super();\r\n }",
"private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}",
"private TetrisMain() {\r\n //prevents instantiation\r\n }",
"protected VboUtil() {\n }",
"public Pleasure() {\r\n\t\t}",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",
"private Model(){}",
"public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}",
"private Validate(){\n //private empty constructor to prevent object initiation\n }",
"private ClassificationSettings() {\n throw new AssertionError();\n }",
"private AccessorModels() {\n // Private constructor to prevent instantiation\n }",
"private SingleObject(){\n }",
"private Conf() {\n // empty hidden constructor\n }",
"protected Approche() {\n }",
"@SuppressWarnings(\"unused\")\n private Booking() {\n }",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }",
"private PluginAPI() {\r\n\t\tsuper();\r\n\t}",
"@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }",
"private LanguageInterpreterRegistry() {\r\n\t\t// hides default constructor.\r\n\t}",
"private Marinator() {\n }",
"private Marinator() {\n }",
"private Ex() {\n }",
"private ObjectRepository() {\n\t}",
"private Settings()\n {}",
"private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}",
"private DarthSidious(){\n }",
"protected Product()\n\t{\n\t}",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}",
"public no() {}",
"private LOCFacade() {\r\n\r\n\t}",
"public ObjectSerializationEncoder() {\n // Do nothing\n }",
"private ContentUtil() {\n // do nothing\n }",
"public Aanbieder() {\r\n\t\t}",
"private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }",
"private NullSafe()\n {\n super();\n }",
"public Instance() {\n }",
"private JsonUtils() {\n\t\tsuper();\n\t}",
"private Driver(){\n }",
"public Method() {\n }",
"public CSSTidier() {\n\t}",
"public SgaexpedbultoImpl()\n {\n }",
"public Basic() {}",
"public Component() {\n }",
"protected SAXParser() {\n // Does nothing.\n }",
"private Service() {}",
"private FactoryCacheValet() {\n\t\tsuper();\n\t}",
"public MouseCrosstabShuttleVO()\n {\n // Documented empty block - avoid compiler warning - no super constructor\n }",
"public Pasien() {\r\n }",
"@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}",
"public Person()\n {\n //intentionally left empty\n }",
"public lo() {}",
"private NaturePackage() {}",
"protected Settlement() {\n // empty constructor\n }",
"protected Product() {\n\t\t\n\t}",
"private Singleton()\n\t\t{\n\t\t}",
"protected ChildType() {/* intentionally empty block */}",
"private Main() {\n\n super();\n }",
"public Model() {\n\t}",
"public Model() {\n\t}",
"private TechniqueStatesModels() {\n // Private constructor to prevent instantiation\n }",
"public Member() {\n //Empty constructor!\n }",
"protected Doodler() {\n\t}",
"private XLogger() {\n throw new UnsupportedOperationException(\"Do not need instantiate!\");\n }",
"private GeneralServicesImpl() {\r\n\t}",
"public CyanSus() {\n\n }",
"public Lanceur() {\n\t}",
"protected Animal() {\t\r\n\t}",
"private SingleTon() {\n\t}",
"MyEncodeableWithoutPublicNoArgConstructor() {}"
]
| [
"0.82636106",
"0.77236",
"0.7686944",
"0.7671532",
"0.73523057",
"0.7352109",
"0.73282",
"0.7325895",
"0.7254914",
"0.724846",
"0.72438735",
"0.72125626",
"0.71687376",
"0.71400064",
"0.7082318",
"0.707305",
"0.7047531",
"0.7007297",
"0.6998448",
"0.6980861",
"0.69777334",
"0.697566",
"0.6963596",
"0.6961034",
"0.6958791",
"0.6933506",
"0.69254386",
"0.6924745",
"0.68885",
"0.68851775",
"0.68792677",
"0.68523806",
"0.68513584",
"0.6846504",
"0.6830222",
"0.6824886",
"0.6821512",
"0.68208927",
"0.6818069",
"0.681611",
"0.6815404",
"0.68145645",
"0.6811619",
"0.6805181",
"0.6797106",
"0.67965996",
"0.67933017",
"0.6787737",
"0.6786502",
"0.6783261",
"0.67730117",
"0.67730117",
"0.67530614",
"0.6751332",
"0.67510146",
"0.6750981",
"0.67416525",
"0.67349255",
"0.6733752",
"0.6731425",
"0.67311406",
"0.67287374",
"0.67260134",
"0.672592",
"0.6723711",
"0.67030334",
"0.6702283",
"0.66946",
"0.6692288",
"0.6691198",
"0.6690957",
"0.66884685",
"0.66845095",
"0.6683172",
"0.6681788",
"0.66811085",
"0.66801775",
"0.66781765",
"0.66771406",
"0.6674377",
"0.6674295",
"0.66723955",
"0.66714215",
"0.66664666",
"0.6665469",
"0.6664743",
"0.6663679",
"0.6663452",
"0.6659405",
"0.6658074",
"0.6658074",
"0.6657006",
"0.6652339",
"0.6652294",
"0.66505384",
"0.6647848",
"0.6647145",
"0.66466796",
"0.66466486",
"0.66450757",
"0.6642447"
]
| 0.0 | -1 |
Internal constructor used by generator | public GEDCOMType(int addr, TOP_Type type) {
super(addr, type);
readObject();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Generator(){}",
"private CandidateGenerator() {\n\t}",
"public BPELGeneratorImpl() {\r\n \t\tsuper(GENERATOR_NAME);\r\n \t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public PARiverDataGenerator() {\n }",
"public Genret() {\r\n }",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"public Orbiter() {\n }",
"public Constructor(){\n\t\t\n\t}",
"public GseqFactoryImpl() {\n\t\tsuper();\n\t}",
"private PSUniqueObjectGenerator()\n {\n }",
"private Instantiation(){}",
"public Generateur() {\n }",
"public SequenceImpl() {\n super();\n initSequence();\n }",
"public ToZeroRampGenerator() { \r\n }",
"private MappingReader() {\n\t}",
"public PoissonGenerator() {\n\t}",
"private TMCourse() {\n\t}",
"protected StreamParser()\n {\n }",
"private SimpleIdGenerator() {\r\n }",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"Reproducible newInstance();",
"private void __sep__Constructors__() {}",
"private RobotsGenerator() {\n throw new AssertionError();\n }",
"private Rekenhulp()\n\t{\n\t}",
"protected PolicyModelGenerator() {\n // nothing to initialize\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Iterator()\n {\n this(null, null, true);\n }",
"public Iterator()\n {\n this(null, null, true);\n }",
"public Iterator()\n {\n this(null, null, true);\n }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private UniqueChromosomeReconstructor() { }",
"public GenerateurImpl() {\n\t\tsuper();\n\t\tthis.value = 0;\n\t}",
"public Sequence(){\n\n }",
"private HailstoneSequence(){ // This private constructor hides the implicit public one\r\n\r\n}",
"private IndexBitmapObject() {\n\t}",
"private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"private ServiceGenerator() {\n }",
"private Node() {\n\n }",
"public Pitonyak_09_02() {\r\n }",
"public Aanbieder() {\r\n\t\t}",
"public PatternCacheRandom()\r\n/* 26: */ {\r\n/* 27:118 */ this(20);\r\n/* 28: */ }",
"private FlexOrderTransformer() {\n // constructor preventing instantiation.\n }",
"private BookReader() {\n\t}",
"RandomizedIterator(String className, TypeTree tree) {\n\t super(init(className, tree));\n\t}",
"@Override\r\n\tpublic void init() {}",
"private Parser () { }",
"protected AbstractSpliterator(long param1Long, int param1Int) {\n/* 1274 */ this.est = param1Long;\n/* 1275 */ this.characteristics = ((param1Int & 0x40) != 0) ? (param1Int | 0x4000) : param1Int;\n/* */ }",
"protected abstract void construct();",
"@Override\n protected void init() {\n }",
"private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }",
"private Numbers() {\n\t}",
"public AbstractRecombinator() \r\n\t{\r\n\t\tsuper();\r\n\t\tsetPpl();\r\n\t\tsetSpl();\t\t\r\n\t}",
"public RngObject() {\n\t\t\n\t}",
"private Marinator() {\n }",
"private Marinator() {\n }",
"protected ReportGenerator()\r\n {\r\n helperObjects = new HashMap();\r\n }",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"@Override\n public void construct() throws IOException {\n \n }",
"private QueryGenerator() {\n }",
"public PSRelation()\n {\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@Override\n public void init() {}",
"private CustomerReader()\r\n\t{\r\n\t}",
"public TargetGeneratorModel()\n {\n }",
"public Combinators()\n {\n }",
"public Sequence(){\r\n \r\n }",
"private PerksFactory() {\n\n\t}",
"private CoverageParser() {\n }",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public Pleasure() {\r\n\t\t}",
"private TemplateReader() {\n }",
"private SBomCombiner()\n\t{}",
"public Generator() {\n identificationNumbers = new int[100][31];\n }",
"public _355() {\n\n }",
"public Tass4Reader ( ) {\r\n\t\tsuper();\r\n\t}",
"public ICMGenerator() {\n super(Registry.ICM_PRNG);\n }",
"Sequence() {\r\n // this helps with converting bytes back to a string.\r\n }",
"public Spec__1() {\n }",
"private StreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }",
"@Override\n public void init() {\n }",
"private RunLengthEncoder() {\r\n }",
"private ServiceGenerator() {\n }",
"private ServiceGenerator() {\n }",
"public TransformationBuff() {}",
"protected CombinatoricsUtils() {\n super();\n }",
"public Codegen() {\n assembler = new LinkedList<LlvmInstruction>();\n symTab = new SymTab();\n }",
"private void init() {\n }",
"public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }",
"public As21Id27()\n\t{\n\t\tsuper() ;\n\t}",
"protected ASTNode() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public void init() {\n \n }",
"public Self__1() {\n }",
"private CircleSampler() {\n\t}",
"public Sample()\n {\n inputs = new ArrayList<>();\n outputs = new ArrayList<>();\n numberOfInputs = 0;\n numberOfOutputs = 0;\n comment = \"\";\n }"
]
| [
"0.77987987",
"0.7218594",
"0.6958574",
"0.6955659",
"0.6951348",
"0.6911357",
"0.690514",
"0.6874964",
"0.6813423",
"0.6786763",
"0.67684776",
"0.6768307",
"0.67625123",
"0.67621654",
"0.67601484",
"0.67517936",
"0.6711886",
"0.6673867",
"0.66636586",
"0.6662397",
"0.6607948",
"0.66070056",
"0.65943575",
"0.6589429",
"0.6584377",
"0.65810466",
"0.6576449",
"0.6546316",
"0.6546316",
"0.6546316",
"0.6543579",
"0.65394896",
"0.6532891",
"0.653128",
"0.651436",
"0.65090406",
"0.64849144",
"0.64423597",
"0.6431525",
"0.64270556",
"0.6420664",
"0.64165586",
"0.6411222",
"0.6402865",
"0.640282",
"0.64015293",
"0.6393327",
"0.6390853",
"0.6387262",
"0.6386234",
"0.63824916",
"0.6380292",
"0.6378392",
"0.6374127",
"0.6371693",
"0.63667256",
"0.63667256",
"0.6362388",
"0.6358042",
"0.635217",
"0.63412774",
"0.63296086",
"0.63283366",
"0.6320226",
"0.63191676",
"0.63102794",
"0.6308379",
"0.63032836",
"0.630008",
"0.6298159",
"0.6298136",
"0.6297402",
"0.62966317",
"0.62880135",
"0.6285825",
"0.6285805",
"0.6284054",
"0.6278606",
"0.6278328",
"0.62781924",
"0.62739414",
"0.62701",
"0.6265746",
"0.6254195",
"0.6250525",
"0.62433594",
"0.62433594",
"0.6235605",
"0.6231812",
"0.62311834",
"0.62297106",
"0.62258303",
"0.6225604",
"0.6224053",
"0.6223854",
"0.6223854",
"0.6223854",
"0.622247",
"0.6214068",
"0.62116283",
"0.6209896"
]
| 0.0 | -1 |
getter for contactRec gets | public FSArray getContactRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContact() {\r\n return this.contact;\r\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public String getContact() {\n\t\treturn contact;\n\t}",
"public Object getCustomerContactRecord() {\n return customerContactRecord;\n }",
"public Contact getContact() {\n return contact;\n }",
"public Contact getContact() {\n return contact;\n }",
"public ContactRecType getContactRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);\n return (ContactRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i)));}",
"kr.pik.message.Profile.Contact getContact();",
"public SourceContact getContact()\n {\n return contact;\n }",
"com.polytech.spik.protocol.SpikMessages.Contact getContact();",
"public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }",
"@NoProxy\n @NoDump\n public BwContact getContact() {\n Set<BwContact> c = getContacts();\n if ((c == null) || (c.isEmpty())) {\n return null;\n }\n\n return c.iterator().next();\n }",
"public com.vmware.converter.DVSContactInfo getContact() {\r\n return contact;\r\n }",
"int getContactValue();",
"public Object getCustomerContactRecordContactDialogueRecord() {\n return customerContactRecordContactDialogueRecord;\n }",
"public java.lang.String getContactNo() {\r\n return contactNo;\r\n }",
"public int getContactValue() {\n return contact_;\n }",
"public String getContactPhone() {\n return contactPhone;\n }",
"public String getContactPhone() {\n return contactPhone;\n }",
"public String getContacts() {\n return contacts;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.ABContact getABContact();",
"public String getContactTel() {\n return contactTel;\n }",
"public String getContactPerson() {\n return contactPerson;\n }",
"public String getContactPerson() {\n return _contactPerson;\n }",
"public String getPrimaryContact();",
"public ContactInfo[] getContactInfo() {\n return contactInfo;\n }",
"org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);",
"public int getContactID() {\r\n return contactID;\r\n }",
"public abstract ContactId getRemoteContact() throws RcsServiceException;",
"public Object getCustomerContactActivityRecord() {\n return customerContactActivityRecord;\n }",
"public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }",
"public String getCustomerContactRecordReference() {\n return customerContactRecordReference;\n }",
"com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();",
"public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n return contact_;\n }",
"public String getUserContact() {\r\n return userContact;\r\n }",
"public Contact getContactById(int contactId);",
"public ContactInfo getContactInfo() {\n\n return contactInfo;\n }",
"public int getContactValue() {\n return contact_;\n }",
"public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }",
"public int getContactId() {\n return contactId;\n }",
"@Override\n @XmlElement(name = \"contactInfo\")\n public synchronized Contact getContactInfo() {\n return contactInfo;\n }",
"public String getCustomerContactRecordContactDevice() {\n return customerContactRecordContactDevice;\n }",
"public String getContactAddress() {\n\n \n return contactAddress;\n\n }",
"public org.hl7.fhir.Contact getContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().find_element_user(CONTACT$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n if (contactBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contact_);\n } else {\n return contactBuilder_.getMessageList();\n }\n }",
"public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n if (contactBuilder_ != null) {\n return contactBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(contact_);\n }\n }",
"public ArrayList getAccountContact() {\n\t\treturn AccountContact;\n\t}",
"public ArrayList<String> getContacts()\r\n\t{\r\n\t\treturn contacts;\r\n\t}",
"public java.lang.String getContactId() {\r\n return contactId;\r\n }",
"java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();",
"public Observable<Contact> getContact() {\n return RxPaper.book(CONTACT_BOOK).read(ACTIVE_CONTACT_KEY);\n }",
"public String getCustomerContactRecordCustomerReference() {\n return customerContactRecordCustomerReference;\n }",
"public String getContactName() {\r\n return contactName;\r\n }",
"public String getContactName() {\n return contactName;\n }",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"public Contact getContactData(boolean modify) {\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * gettin the first name and giving the user the chance to go back\r\n\t\t * in adding new contacts.\r\n\t\t */ \r\n\t\tString input = Method.getInput(\"\\tLast name : \",1,\"\", false);\r\n\t\tthis.setLastName(input);\r\n\t\tif(!modify)\r\n\t\t\tif ( input.equalsIgnoreCase(\"*back\"))\r\n\t\t\t\treturn this;\r\n\t\t\t\t\r\n\t\t\r\n\t\t// getting first name.\t\r\n\t\tthis.setFirstName(Method.getInput(\"\\tFirst name : \",1,\"\", false));\r\n\t\t\r\n\t\t// gettin the address and city setting them as \"??\" if they were blanks .\r\n\t\tthis.setAddress(Method.getInput(\"\\t*Address : \", 5, \"\", false).trim()) ;\t\t\r\n\t\tthis.setCity(Method.getInput(\"\\t*City : \", 5, \"\", false).trim());\t\r\n\t\t\r\n\t\t// getting the phone number.\t\t\r\n\t\tthis.setPhoneNumber(Method.getInput(\"\\tPhone Number : \",2,\"\", true));\t\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"public Collection<Contact> getContacts();",
"public String getContactId() {\n return this.contactId;\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n return contact_.get(index);\n }",
"public long getContactId() {\n return contactId;\n }",
"public String getContacto() {\r\n\t\treturn contacto;\r\n\t}",
"public String getContactString() {\n Logger.d(TAG, \"getContactString() entry mContactString is \"\n + mContactString);\n return mContactString;\n }",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"private Vector getContactItems() {\n return protocol.getContactItems();\n }",
"public String getContactDialogueRecordCustomerReference() {\n return contactDialogueRecordCustomerReference;\n }",
"public String getCustomerContactResult() {\n return customerContactResult;\n }",
"public void setContactRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public BwContact getContact() {\n if (contact == null) {\n contact = new BwContact();\n }\n\n return contact;\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n if (contactBuilder_ == null) {\n return contact_.get(index);\n } else {\n return contactBuilder_.getMessage(index);\n }\n }",
"public String getContactPhone2() {\n return contactPhone2;\n }",
"public String getContactFirstName() {\n\n \n return contactFirstName;\n\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSubcontact();",
"public com.polytech.spik.protocol.SpikMessages.Contact getContact() {\n if (contactBuilder_ == null) {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n } else {\n if (typeCase_ == 1) {\n return contactBuilder_.getMessage();\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }\n }",
"public String getArchiverContact();",
"public com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder() {\n if ((typeCase_ == 1) && (contactBuilder_ != null)) {\n return contactBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }\n }",
"@Override\n\tpublic Set<Contact> getContacts(){\n\t\treturn contacts;\n\t}",
"public String getContacto() {\n return contacto;\n }",
"public String getContacto() {\n return contacto;\n }",
"public com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder() {\n if (typeCase_ == 1) {\n return (com.polytech.spik.protocol.SpikMessages.Contact) type_;\n }\n return com.polytech.spik.protocol.SpikMessages.Contact.getDefaultInstance();\n }",
"public Long getContactId() {\n return contactId;\n }",
"public List<contact> contact_get_all() {\n \treturn contact_get(null, KEY_CONTACT_LASTACT + \" DESC\");\n }",
"public TreeSet<String> getContacts() {\n if (mIsGroupChat) {\n Logger.d(TAG, \"getContacts() this is a group chat\");\n if (null != mChatMap) {\n Object obj = mChatMap.get(ChatListFragment.NUMBER);\n Logger.d(TAG, \"getContacts() the obj is \" + obj);\n if (obj instanceof List) {\n TreeSet<String> result = new TreeSet<String>();\n List<String> numbers = (List<String>) obj;\n for (String number : numbers) {\n result.add(number);\n }\n Logger.d(TAG, \"getContacts() the result is \" + result);\n return result;\n } else {\n Logger.e(TAG, \"getContacts() obj is not a List\");\n return null;\n }\n } else {\n Logger.e(TAG,\n \"getContacts() this is a group chat, but mChatMap is null\");\n return null;\n }\n } else {\n Logger.d(TAG, \"getContacts() this is a 1-2-1 chat\");\n return null;\n }\n }",
"public java.lang.String getStudent_contactRelationship() {\n\t\treturn _primarySchoolStudent.getStudent_contactRelationship();\n\t}",
"public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }",
"public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }",
"public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }",
"public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }"
]
| [
"0.7241103",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7057637",
"0.70566",
"0.7021533",
"0.70076907",
"0.6992305",
"0.6977108",
"0.6977108",
"0.69381076",
"0.69221646",
"0.6908357",
"0.68871236",
"0.6871385",
"0.68356776",
"0.666976",
"0.6663433",
"0.6656233",
"0.65903664",
"0.659007",
"0.65327436",
"0.65327436",
"0.6532499",
"0.653247",
"0.6531842",
"0.6528332",
"0.6511876",
"0.65109146",
"0.6498402",
"0.649823",
"0.648016",
"0.6473477",
"0.64251286",
"0.6395849",
"0.63894325",
"0.6370771",
"0.63648814",
"0.635679",
"0.63341296",
"0.6325126",
"0.63103193",
"0.62805915",
"0.62586045",
"0.62538236",
"0.6222804",
"0.6221431",
"0.61990696",
"0.6192396",
"0.61896443",
"0.61857975",
"0.6180031",
"0.6175471",
"0.61714077",
"0.61619884",
"0.6159711",
"0.6158785",
"0.6121936",
"0.6120056",
"0.6120056",
"0.6120056",
"0.6120056",
"0.61117756",
"0.6107162",
"0.60968536",
"0.6091299",
"0.60878724",
"0.6085206",
"0.60792136",
"0.60771036",
"0.60771036",
"0.60771036",
"0.60771036",
"0.6068429",
"0.60574394",
"0.6041659",
"0.6028567",
"0.60284626",
"0.6028417",
"0.6013425",
"0.60074025",
"0.59808916",
"0.5978092",
"0.5971939",
"0.5970496",
"0.5970359",
"0.5967911",
"0.5967911",
"0.59663093",
"0.5965054",
"0.5964726",
"0.59607834",
"0.5955125",
"0.5943939",
"0.5943939",
"0.5943939",
"0.5943939"
]
| 0.7482134 | 0 |
indexed getter for contactRec gets an indexed value | public ContactRecType getContactRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);
return (ContactRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);",
"public int getIndex() {\r\n\t\treturn personToContact;\r\n\t}",
"int getContactValue();",
"public int getContactValue() {\n return contact_;\n }",
"public int getContactValue() {\n return contact_;\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n return contact_.get(index);\n }",
"public Contact getContactById(int contactId);",
"public int getContactID() {\r\n return contactID;\r\n }",
"public FSArray getContactRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));}",
"kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"@NoProxy\n @NoDump\n public BwContact getContact() {\n Set<BwContact> c = getContacts();\n if ((c == null) || (c.isEmpty())) {\n return null;\n }\n\n return c.iterator().next();\n }",
"public int getContactId() {\n return contactId;\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n if (contactBuilder_ == null) {\n return contact_.get(index);\n } else {\n return contactBuilder_.getMessage(index);\n }\n }",
"org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index);",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index) {\n return contact_.get(index);\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getPrimaryContact();",
"cb.Careerbuilder.Company.PhoneNumber getPhone(int index);",
"public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return author;\n case 1: return content;\n case 2: return timestamp;\n case 3: return location;\n case 4: return tags;\n case 5: return mentions;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@VTID(10)\n int getIndex();",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public IndexRecord getIndexRecord(int RecNo) {\n IndexRecord ir = new IndexRecord();\n if (RecNo >= 0) {\n return ir = indexArray[RecNo];\n } \n return ir;\n }",
"public String getContact() {\r\n return this.contact;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public Object getValue(int index);",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"com.demo.springprotobuff.Demoproto.Student.PhoneNumber getPhone(int index);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"@Override\r\n\tpublic ContactInfo getContactInfo(int index) {\r\n\t\tContactInfo cInfo = new ContactInfo();\r\n\t\tmCursor.moveToPosition(index);\r\n\t\tcInfo.setDisplayName(mCursor.getString(NAME));\r\n\t\tcInfo.setPhoneNumber(mCursor.getString(NUMBER));\r\n\t\tcInfo.setPhone_ID(mCursor.getString(PHONE_ID));\r\n\t\tcInfo.set_ID(mCursor.getString(_ID));\r\n\t\t\r\n\t\tcInfo.setIndex(index);\r\n\t\t\r\n\t\tString type;\r\n\t\tint phoneType = Integer.parseInt(mCursor.getString(TYPE));\r\n\t\tswitch(phoneType) {\r\n\t\tcase PhonesColumns.TYPE_HOME:\r\n\t\t\ttype = \"home\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_MOBILE:\r\n\t\t\ttype = \"mobile\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_WORK:\r\n\t\t\ttype = \"work\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_OTHER:\r\n\t\t\ttype = \"other\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_CUSTOM:\r\n\t\t\ttype = \"custom\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\ttype = \"\";\r\n\t\t\tbreak;\t\t\t\t\r\n\t\t}\r\n\t\tcInfo.setPhoneType(type);\r\n\t\t\r\n\t\treturn cInfo;\r\n\t}",
"public long getContactId() {\n return contactId;\n }",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public Object getCustomerContactRecord() {\n return customerContactRecord;\n }",
"public java.lang.String getContactNo() {\r\n return contactNo;\r\n }",
"public Object get(int index);",
"public Object get(int index);",
"public native Record get(int pos) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordJS = self.get(pos);\r\n return recordJS == null || recordJS === undefined ? null : @com.smartgwt.client.data.Record::getOrCreateRef(Lcom/google/gwt/core/client/JavaScriptObject;)(recordJS);\r\n }-*/;",
"public int getFieldIndex() { return _fldIndex; }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return shipmentId;\n case 1: return address;\n case 2: return shippingServiceOption;\n case 3: return trackingDetails;\n case 4: return recipientName;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getContact() {\n\t\treturn contact;\n\t}",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"int get(int idx);",
"public java.lang.String getContactId() {\r\n return contactId;\r\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public kr.pik.message.Profile.Contact getContact() {\n kr.pik.message.Profile.Contact result = kr.pik.message.Profile.Contact.valueOf(contact_);\n return result == null ? kr.pik.message.Profile.Contact.UNRECOGNIZED : result;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index) {\n if (contactBuilder_ == null) {\n return contact_.get(index); } else {\n return contactBuilder_.getMessageOrBuilder(index);\n }\n }",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"public int getIndex() { return this.index; }",
"@Override\n public Person lookup(final int i) {\n if(i >= size() || i < 0) throw new IndexOutOfBoundsException();\n return mData.get(i);\n }",
"public Object getValueForColumnIndex(int _index) {\n Object value = null;\n if ( this.attData != null ) {\n int count = -1;\n String lastRetValue = null;\n Iterator<String> it = this.attData.keySet().iterator();\n while ((it.hasNext()) && (_index != count)) {\n lastRetValue = (String)it.next();\n count++;\n }\n value = this.attData.get(lastRetValue);\n }\n return value;\n }",
"private int findContact(Contact contact) {\n return this.myContacts.indexOf(contact); //If exists in the ArrayList, will return 0 or greater. If not, will return a number less than 0.\n }",
"public abstract long getIndex();",
"public int get(int index);",
"public String getContactId() {\n return this.contactId;\n }",
"Object get(int index);",
"Object get(int index);",
"abstract public Object getValue(int index);",
"public Long getContactId() {\n return contactId;\n }",
"abstract int get(int index);",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return username;\n case 2: return email_address;\n case 3: return phone_number;\n case 4: return first_name;\n case 5: return last_name;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getIndex()\n {\n return m_index;\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public Contact getContact() {\n return contact;\n }",
"public Contact getContact() {\n return contact;\n }",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"com.polytech.spik.protocol.SpikMessages.Contact getContact();",
"public Object get(int fieldPos) {\n switch (fieldPos) {\n case 0: return this.orderId;\n case 1: return this.mobilePhone;\n case 2: return this.eid;\n default: throw new BaijiRuntimeException(\"Bad index \" + fieldPos + \" in get()\");\n }\n }",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public int getIndexNumber(){\n return id;\r\n }",
"public Object getValueAt(int index);",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public String getAllContactId() {\n return getContact().getUid();\n }",
"public native int indexOf(Record record) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.indexOf([email protected]::getJsObj()());\r\n }-*/;",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();"
]
| [
"0.69708234",
"0.6961213",
"0.6832376",
"0.6711267",
"0.6545687",
"0.63397515",
"0.6278416",
"0.616218",
"0.61426663",
"0.6116383",
"0.61051476",
"0.61051476",
"0.61051476",
"0.61051476",
"0.6070834",
"0.60595083",
"0.6022741",
"0.6001166",
"0.5902055",
"0.5899367",
"0.58724463",
"0.5841679",
"0.581582",
"0.58112735",
"0.58091164",
"0.58019793",
"0.5785538",
"0.57826686",
"0.5759935",
"0.574564",
"0.57445234",
"0.57445234",
"0.57445234",
"0.5733428",
"0.57329607",
"0.5720817",
"0.57179713",
"0.57124877",
"0.57098186",
"0.5707002",
"0.5691075",
"0.5691075",
"0.568575",
"0.5679884",
"0.5678514",
"0.5677147",
"0.56629854",
"0.5659852",
"0.5658164",
"0.56528187",
"0.56528187",
"0.56528187",
"0.56528187",
"0.56528187",
"0.5650868",
"0.56382525",
"0.5635377",
"0.56240165",
"0.5622558",
"0.56215304",
"0.5619653",
"0.56080943",
"0.5607403",
"0.56049204",
"0.56004345",
"0.5599675",
"0.55992645",
"0.55992645",
"0.5589252",
"0.5574539",
"0.55717766",
"0.5562117",
"0.5561715",
"0.5555763",
"0.5555763",
"0.55553055",
"0.5548242",
"0.5548242",
"0.5543876",
"0.5543876",
"0.554251",
"0.5536435",
"0.5535842",
"0.5529439",
"0.55284",
"0.5516869",
"0.55162936",
"0.5509444",
"0.5507851",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304",
"0.54955304"
]
| 0.65017575 | 5 |
Feature: headerRec getter for eventRec gets | public FSArray getEventRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VCFHeader getHeader();",
"java.lang.String getHeader();",
"public Object getHeader() {\n return header;\n }",
"@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }",
"@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"public HeaderRecType getHeaderRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)\n jcasType.jcas.throwFeatMissing(\"headerRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (HeaderRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec)));}",
"ComponentHeaderType getHeader();",
"public String getHeader();",
"public ChildMessage getHeader(){return header;}",
"com.didiyun.base.v1.Header getHeader();",
"public std_msgs.msg.dds.Header getHeader()\n {\n return header_;\n }",
"public byte[] getHeader() {\n\treturn header;\n }",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"String[] getHeader(String key);",
"public Map<String, List<String>> getHeaderFields() {\n/* 262 */ return this.delegate.getHeaderFields();\n/* */ }",
"String getHeader(String headerName);",
"Event getEvent();",
"@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }",
"public String getHeaderField(int paramInt) {\n/* 278 */ return this.delegate.getHeaderField(paramInt);\n/* */ }",
"FS2ObjectHeaders getHeaders();",
"public ElementHeader getCalled()\n {\n return called;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"EventType getEvent();",
"public void onHeaderRefresing();",
"public String getHeaderNames(){return header.namesText;}",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public ListIterator getHeaders()\n { return headers.listIterator(); }",
"public String getHeaderField(String paramString) {\n/* 270 */ return this.delegate.getHeaderField(paramString);\n/* */ }",
"public\t CSeqHeader getCSeq()\n { return (CSeqHeader) cSeqHeader ; }",
"@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"public Header getHeader() {\n\t\treturn this.header;\n\t}",
"public Header[] getRequestHeaders();",
"com.didiyun.base.v1.HeaderOrBuilder getHeaderOrBuilder();",
"XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException;",
"public TempTableHeader getHeader1() { return header1; }",
"private String receiveHeaders (SelectionKey clientKey)\r\n {\r\n // Local Variable Declaration \r\n int bytesRead = 0; byte[] trimedHeader;\r\n String rawHeaders = null; SocketChannel clientSC; \r\n \r\n try \r\n {\r\n // Get the socket channel from the key passed \r\n clientSC = (SocketChannel)clientKey.channel();\r\n\r\n // Clear the buffer before each read\r\n headerBuff.clear();\r\n\r\n // Read the header in from the socket channel\r\n bytesRead = clientSC.read(headerBuff);\r\n\r\n // Initialize the header byte array to the amount of bytes read\r\n trimedHeader = new byte[bytesRead];\r\n\r\n // Trim off any white space \r\n System.arraycopy(headerBuff.array(), 0, trimedHeader, 0, bytesRead);\r\n\r\n // Convert bytes to String for parsing \r\n rawHeaders = new String(trimedHeader, Charset.forName(\"UTF-8\"));\r\n\r\n // Trim trailing whitespace \r\n rawHeaders = rawHeaders.trim();\r\n }\r\n catch(IOException ioe)\r\n {\r\n ioe.printStackTrace();\r\n }\r\n finally\r\n {\r\n return rawHeaders;\r\n }\r\n }",
"public String[] getHeader(String name) throws MessagingException {\n/* 363 */ if (this.headers == null)\n/* 364 */ loadHeaders(); \n/* 365 */ return this.headers.getHeader(name);\n/* */ }",
"public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"Headers getHeaders();",
"public RTCMHeader getRtcmHeader()\n {\n\treturn this.rtcmHeader;\n }",
"protected ResponseHeader getHeader() {\n return this.header;\n }",
"TupleHeader getHeader() {\n return header;\n }",
"private Thing headers(String methodName, Thing[] args, Evaller evaller,\n\t\t\tFramelike frame, Syntax src) throws FisherException {\n\t\tcheckNumberOfArgs(0, 1, methodName, args, evaller, frame, src);\n\t\tif(args.length == 0)\n\t\t\treturn http.getHeaders();\n\t\telse{\n\t\t\t// FIXME: how much checking of args?\n\t\t\tcheckArg(args[0], RecordTh.class, null);\n\t\t\treturn http.setHeaders((RecordTh)args[0]);\n\t\t\t}\n\t}",
"public String[] getHeaders()\n\t{\n\t\tString[] lines = this.header.split(\"\\\\r\\\\n\");\n\t\treturn lines;\n\t}",
"public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}",
"public byte[] getBuffer() {\r\n return this.header;\r\n }",
"java.lang.String getEventType();",
"ArgosHeader extractArgosHeaderFromXMLEventReader(XMLEventReader argosRequestEvents) throws XMLStreamException {\n ArgosHeader argosHeader = new ArgosHeader();\n while (argosRequestEvents.hasNext()) {\n final XMLEvent nextEvent = argosRequestEvents.nextEvent();\n if (isArgosStartElement(nextEvent)) {\n extractNextValue(nextEvent, argosRequestEvents, argosHeader);\n }\n }\n return argosHeader;\n }",
"public List<Map<String, Map<String, Object>>> getHeader(){\n return headerDescription;\n }",
"@Override\r\n public String getMessageHeaderValueInOccurrence(int occurrence, String hdr) {\n return null;\r\n }",
"public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"List<? extends Header> getHeaders(String name);",
"@Override\n public RaftNode getHeader() {\n return allNodes.getHeader();\n }",
"public String getHeader() {\n\t\t\treturn header;\n\t\t}",
"public\t RecordRouteList getRecordRouteHeaders()\n { return (RecordRouteList) this.getSIPHeaderList(RecordRouteHeader.NAME) ; }",
"com.google.speech.logs.timeline.InputEvent.Event getEvent();",
"public String headerLine() {\n return headerLine;\n }",
"public TempTableHeader getHeader2() { return header2; }",
"public PHeader getHeader() {\n\t\treturn header;\n\t}",
"private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }",
"public Object getEvent() {\r\n return event;\r\n }",
"public String getHeader1() {\n return header1;\n }",
"@Override\n\tprotected Boolean isHeader(String[] fields) {\n\t\t//check\n return (isValid(fields) && fields[0].equals(\"event\") && fields[1].equals(\"yes\") && fields[2].equals(\"maybe\") && fields[3].equals(\"invited\") && fields[4].equals(\"no\"));\n\t}",
"public String getEvent() {\n return this.event;\n }",
"public IMAGE_FILE_HEADER getFileHeader() { return peHeader; }",
"public java.lang.String getHeaderName() {\r\n return headerName;\r\n }",
"protected String getTraceFileUserHeaderData() { return userHeader; }",
"public abstract String header();",
"public abstract String[] getMimeHeader(String name);",
"public EventEntry getEventEntry();",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"public FromHeader getFrom() {\n return (FromHeader) fromHeader;\n }",
"public abstract String getHeaderRow();",
"public String getCustomHeader() {\n return this.customHeader;\n }",
"public ElementHeader getCaller()\n {\n return caller;\n }",
"public String getEventSeq() {\r\n\t\treturn eventSeq;\r\n\t}",
"@Override\n public Object[] getSections() {\n return sectionHeaders;\n }",
"org.apache.xmlbeans.XmlString xgetHeader();",
"private void readHeader() {\n version = \"\";\n XmlNode node = _document.SelectSingleNode(\"//ovf:Envelope\", _xmlNS);\n if (node != null) {\n version = node.attributes.get(\"ovf:version\").getValue();\n }\n }",
"public HeaderData get(String key){\r\n\t\treturn map.get(key);\r\n\t}",
"public String getHeader() {\n\t\treturn header.toString();\n\t}",
"stockFilePT102.StockHeaderDocument.StockHeader getStockHeader();",
"@Override\n\tpublic FileItemHeaders getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public SAMFileHeader getFileHeader() {\n return dest.getFileHeader();\n }",
"public List<VCFFilterHeaderLine> headerLines();",
"public List<String> get(Object key)\r\n/* 396: */ {\r\n/* 397:564 */ return (List)this.headers.get(key);\r\n/* 398: */ }",
"public List<Header> getHeaderList() {\n return mHeaderList;\n }",
"public EventOccurrence getReceiveEvent();",
"public abstract SOAPHeader getSOAPHeader() throws SOAPException;",
"public List<String> getHeader(String key) {\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders.get(key);\n }",
"public Header getHeaderByKey(String key);",
"public String fieldHeader(int fld_i) { return flds[fld_i]; }",
"@Override\n public synchronized LttngEventField getField(String name) {\n \n // Check for generic table header fields\n if (name.equals(LttngEventType.CONTENT_LABEL) || name.equals(ITmfEvent.EVENT_FIELD_CONTENT)) {\n return new LttngEventField(LttngEventType.CONTENT_LABEL, toString());\n } else if (name.equals(LttngEventType.MARKER_LABEL) || name.equals(ITmfEvent.EVENT_FIELD_TYPE)) {\n return new LttngEventField(LttngEventType.MARKER_LABEL, fParentEvent.getType().getName());\n } else if (name.equals(LttngEventType.TRACE_LABEL) || name.equals(ITmfEvent.EVENT_FIELD_REFERENCE)) {\n return new LttngEventField(LttngEventType.TRACE_LABEL, fParentEvent.getReference());\n } else if (name.equals(LttngEventType.TIMESTAMP_LABEL) || name.equals(ITmfEvent.EVENT_FIELD_TIMESTAMP)) {\n return new LttngEventField(LttngEventType.TIMESTAMP_LABEL, fParentEvent.getTimestamp().toString());\n } else if (name.equals(ITmfEvent.EVENT_FIELD_SOURCE)) {\n return new LttngEventField(ITmfEvent.EVENT_FIELD_SOURCE, fParentEvent.getSource());\n }\n \n \t// *** VERIFY ***\n // Should we check if the field exists in LttngType before parsing? \n // It could avoid calling parse for non-existent fields but would waste some cpu cycle on check?\n LttngEventField returnedField = fFieldsMap.get(name);\n \n if ( returnedField == null ) {\n // *** VERIFY ***\n // Should we really make sure we didn't get null before creating/inserting a field?\n \tJniEvent tmpEvent = ((LttngEvent)getEvent()).convertEventTmfToJni();\n \t\n \tif ( tmpEvent != null) {\n \t \tObject newValue = tmpEvent.parseFieldByName(name);\n \t \n \t if ( newValue!= null ) {\n returnedField = new LttngEventField(name, newValue);\n \t fFieldsMap.put(name, returnedField );\n \t }\n \t}\n }\n \n return returnedField;\n }",
"@JsonGetter(\"event\")\r\n public String getEvent ( ) { \r\n return this.event;\r\n }",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"public String getHeaderFieldKey(int paramInt) {\n/* 286 */ return this.delegate.getHeaderFieldKey(paramInt);\n/* */ }"
]
| [
"0.6388764",
"0.63424367",
"0.6273967",
"0.62419236",
"0.6212298",
"0.6177799",
"0.6164654",
"0.61249316",
"0.6124051",
"0.60822105",
"0.60432357",
"0.6016238",
"0.600201",
"0.5997179",
"0.59810954",
"0.5957264",
"0.59544146",
"0.59478855",
"0.59194845",
"0.58658576",
"0.5863595",
"0.5850664",
"0.58369905",
"0.5818527",
"0.5805762",
"0.5798638",
"0.5790281",
"0.5790281",
"0.5774142",
"0.5760426",
"0.57577",
"0.5745616",
"0.5733314",
"0.5731294",
"0.5730764",
"0.57191193",
"0.57158124",
"0.57143116",
"0.5711759",
"0.57012016",
"0.5696963",
"0.5682472",
"0.5674825",
"0.5657309",
"0.5643166",
"0.5639515",
"0.56391156",
"0.56334305",
"0.56254137",
"0.5566765",
"0.55661076",
"0.5563366",
"0.55530083",
"0.5551207",
"0.55446",
"0.5542871",
"0.5522116",
"0.55101657",
"0.5505109",
"0.5494884",
"0.54916155",
"0.548692",
"0.5477456",
"0.547729",
"0.54433477",
"0.5442096",
"0.5430946",
"0.54237634",
"0.54173195",
"0.54146045",
"0.5414131",
"0.5412237",
"0.5407912",
"0.53922266",
"0.53834724",
"0.53830177",
"0.5375762",
"0.5375311",
"0.53716516",
"0.5368396",
"0.5347312",
"0.5346701",
"0.5346003",
"0.53382343",
"0.53375596",
"0.5332195",
"0.53294665",
"0.5329314",
"0.5329063",
"0.53271186",
"0.5321718",
"0.5302217",
"0.53003263",
"0.5297838",
"0.52919793",
"0.5284107",
"0.528216",
"0.5278394",
"0.5273285",
"0.5271681"
]
| 0.596772 | 15 |
indexed getter for eventRec gets an indexed value | public EventRecType getEventRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);
return (EventRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Object getValue(int index);",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getIndex() { return this.index; }",
"public int getEventValue() {\n return event_;\n }",
"abstract public Object getValue(int index);",
"public int getIndex(){\r\n \treturn index;\r\n }",
"@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }",
"public E get(int index);",
"public abstract E get(int index);",
"public int getEventValue() {\n return event_;\n }",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public EventLogEntry getEventLogEntry(int index);",
"int getEventValue();",
"@Override\n public E get(final int index) {\n return array[index];\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getValue() {\r\n return index;\r\n }",
"@Override\n\tpublic IBasicObject getAccessedAtIdx() {\n\t\treturn heldObj.getAccessedAtIdx();\n\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"public synchronized final int getIndex() {\r\n return f_index;\r\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"E get( int index );",
"public synchronized E get(int index) {\n return this.array.get(index);\n }",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int get(int index) {\n return array[index];\n }",
"abstract int get(int index);",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"E getData(int index);",
"public abstract long getIndex();",
"Event getEvent();",
"public final int getIndex(){\n return index_;\n }",
"public int getIndex()\n {\n return m_index;\n }",
"public int get(int index);",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public @Override E get(int index) {\n \treturn getNode(index).data;\n }",
"public int getIndex()\n {\n return index;\n }",
"tendermint.abci.EventAttribute getAttributes(int index);",
"public int getIndex(\n )\n {return index;}",
"public E get(int index) {\n return this.elements[index];\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return time;\n case 1: return frequency;\n case 2: return convolution;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int index();",
"public FSArray getEventRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));}",
"int getIndex() {\n\t\treturn index;\n\t}",
"public Object get(int index);",
"public Object get(int index);",
"public Object getValueForColumnIndex(int _index) {\n Object value = null;\n if ( this.attData != null ) {\n int count = -1;\n String lastRetValue = null;\n Iterator<String> it = this.attData.keySet().iterator();\n while ((it.hasNext()) && (_index != count)) {\n lastRetValue = (String)it.next();\n count++;\n }\n value = this.attData.get(lastRetValue);\n }\n return value;\n }",
"public int getIndex() {\n return index;\n }",
"public Index getIndex() {\n return this.arr.getIndex();\n }",
"@VTID(10)\n int getIndex();",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"public int getIndex() {\n \t\treturn index;\n \t}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@Override\n public E get(int index) {\n this.rangeCheck(index);\n return (E) this.values[index];\n }",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex()\n {\n return index;\n }",
"public int getIndex() {\r\n return index;\r\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"public abstract int getIndex();",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public Object getValueAt(int index);",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public int getEventID() {\r\n return eventID;\r\n }",
"public int getEventID()\n {\n return eventID;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return localId;\n case 2: return serviceId;\n case 3: return args;\n case 4: return inputs;\n case 5: return outputs;\n case 6: return timestamp;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Integer index() {\n return this.index;\n }",
"int get(int index)\n\t{\n\t\treturn inputArray[index];\n\t}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"int get(int idx);",
"public Object getValue()\n {\n Object[] a = (Object[]) getArray().getValue();\n int i = ((Number) getIndex().getValue()).intValue();\n\n return a[i];\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public E index(int idx) throws IndexOutOfBoundsException {\n return indexNode(idx).val;\n }",
"public int getIndex() {\n\t\treturn this.index;\n\t}"
]
| [
"0.6467807",
"0.63067025",
"0.63016284",
"0.62927455",
"0.62924105",
"0.6273516",
"0.62735087",
"0.625125",
"0.6243402",
"0.6232981",
"0.62176657",
"0.62030095",
"0.6195487",
"0.6184174",
"0.6183507",
"0.61602074",
"0.61602074",
"0.6155253",
"0.6147143",
"0.6144044",
"0.61338466",
"0.6123959",
"0.6123959",
"0.6122677",
"0.6119959",
"0.60996246",
"0.60994524",
"0.60994524",
"0.60994524",
"0.6083018",
"0.6083018",
"0.6083018",
"0.6078815",
"0.60703623",
"0.6068107",
"0.6059226",
"0.6050476",
"0.60503113",
"0.60448223",
"0.6026144",
"0.60258085",
"0.60220814",
"0.6017535",
"0.60117525",
"0.6006948",
"0.59812576",
"0.59791666",
"0.59720534",
"0.59695876",
"0.5957952",
"0.59578776",
"0.5946271",
"0.59436035",
"0.59436035",
"0.5943143",
"0.5939859",
"0.59382397",
"0.5932011",
"0.5928997",
"0.59280103",
"0.59135795",
"0.59013355",
"0.590112",
"0.590112",
"0.5898706",
"0.58972704",
"0.5884342",
"0.5884342",
"0.5884342",
"0.5883447",
"0.58805066",
"0.58730966",
"0.5872127",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.5864171",
"0.58620375",
"0.5859076",
"0.58574367",
"0.5855754",
"0.5854664",
"0.58519655",
"0.58519655",
"0.58519655",
"0.5844259",
"0.5838401",
"0.5828749",
"0.5825517",
"0.58220756",
"0.58186054"
]
| 0.6326517 | 1 |
Feature: familyRec getter for familyRec gets | public FSArray getFamilyRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Family getFamily() {\n return family;\n }",
"public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"String getFamily();",
"String getFamily();",
"public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }",
"public SubFamily getSubFamily() {\r\n return pic_.getSubFamily();\r\n }",
"public String getFamilyPerson(String familyId);",
"@Override\n\tpublic void getFamilyById(int id) {\n\n\t}",
"Get<K, C> addFamily(String family);",
"public String getFamily()\n {\n return _family;\n }",
"public Vertex getFamily() {\n\t\treturn family;\n\t}",
"@Override\r\n\tpublic List<ProductFamily> findProductFamily() {\n\t\treturn iImportSalesRecordDao.findProductFamily();\r\n\t}",
"public Family getFamily() {\r\n return pic_.getFamily();\r\n }",
"public FamilyRecType getFamilyRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n return (FamilyRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i)));}",
"public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n return family2;\n }",
"public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n return family2;\n }",
"public String getFamily() {\n return this.family;\n }",
"public String family() {\n return this.family;\n }",
"String family();",
"public final int getFamily() {\n return family;\n }",
"public Integer getFamilyId() {\r\n return familyId;\r\n }",
"public String getFamilyName()\r\n {\r\n return familyName;\r\n }",
"com.zzsong.netty.protobuff.two.ProtoData.Person.Gender getGender();",
"Map<String, TypeInformation<?>> getFamilyInfo(String family) {\n\t\treturn familyMap.get(family);\n\t}",
"public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }",
"public void setFamilyRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public String familyId() {\n return this.familyId;\n }",
"com.zzsong.netty.protobuff.two.ProtoData.Person getPerson();",
"void receiveMyFamily() {\r\n\t\t// 부모 또는 자식의 구성원을 받음\r\n\t}",
"private ConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> getFamilyData(\n\t\t\t\tString family) {\n\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> ret = this.elements\n\t\t\t\t\t.get(family);\n\t\t\tif (ret == null) {\n\t\t\t\tret = new ConcurrentHashMap<String, ConcurrentNavigableMap<Long, Object>>();\n\t\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> put = this.elements\n\t\t\t\t\t\t.putIfAbsent(family, ret);\n\t\t\t\tif (put != null)\n\t\t\t\t\tret = put;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}",
"public ArrayList<Familymember> getMyFamilymembers() {\n\t\treturn myFamilymembers;\n\t}",
"private static Cursor getFamilyInfo(Context context, String id)\n\t{\n\t\tString whereName = ContactsContract.Data.MIMETYPE + \" = ? AND \" + ContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY + \" = ?\";\n\t\tString[] whereNameParams = new String[] { ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE, id };\n\t return context.getContentResolver().query(\n\t \t\tContactsContract.Data.CONTENT_URI,\n\t \t\tnew String[] {\tContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME\n\t \t\t\t\t\t\t},\n\t\t\t whereName, \n\t \t\twhereNameParams, \n\t \t\tnull);\n\t \n\t}",
"public SemanticType[] family() {\n return values();\n }",
"public String getFamilyName() {\n return familyName;\n }",
"String[] getFamilyNames() {\n\t\treturn this.familyMap.keySet().toArray(new String[this.familyMap.size()]);\n\t}",
"public RecordDefinition getRecDef () {\n return recDef;\n }",
"Reference getPatient();",
"public java.lang.String getFamilyName() {\n return FamilyName;\n }",
"ImmutableList<SchemaOrgType> getIsFamilyFriendlyList();",
"public String getFamilyRoot(String familyId);",
"Collection<Feature> getReference();",
"public String getFamilyName() {\n return familyName;\n }",
"public FSArray getIndividualRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec)));}",
"com.zzsong.netty.protobuff.two.ProtoData.PersonOrBuilder getPersonOrBuilder();",
"public FSArray getContactRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));}",
"ILitePackFamily getFamily();",
"public RecordLedger getLedger();",
"private void addFeatureFieldGetSet(FeatureImpl fi) {\n this.fi = fi;\n featureFieldName = getFeatureFieldName(fi);\n rangeJavaDescriptor = fi.getRangeAsJavaDescriptor();\n \n addFeatureField(); // add declares for fields\n addFeatureGetSet();\n TypeImpl range = (TypeImpl) fi.getRange();\n if (range.isArray()) {\n rangeArrayElementJavaDescriptor = fi.getRangeArrayElementAsJavaDescriptor();\n addArrayFeatureGetSet();\n }\n }",
"RestaurantFullInfo getFullRestaurant();",
"protocol.Data.Friend.FriendItem getFriend(int index);",
"@Override\n\tpublic void getAllFamilies() {\n\n\t}",
"int familySize();",
"public boolean hasFamily2() {\n return fieldSetFlags()[7];\n }",
"@Override\n public EClass getClarityGetBatchResult() {\n \treturn this.clarityGetBatchResultEClass;\n }",
"public father getFather() {\n return this.father;\n }",
"String getMemberOf();",
"public com.hps.july.persistence.People getPeople() throws java.rmi.RemoteException, javax.ejb.FinderException {\n\treturn (com.hps.july.persistence.People)this.getPeopleLink().value();\n}",
"public RecordFlagEnum getFlag();",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg();",
"ContactGroup getServerStoredContactListRoot();",
"grpc.messages.Messages.Employee getEmployee();",
"grpc.messages.Messages.Employee getEmployee();",
"public String getFamilyName() throws PDFNetException {\n/* 550 */ return GetFamilyName(this.a);\n/* */ }",
"com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder getReturnFlightLegOrBuilder();",
"public FSArray getEventRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));}",
"String getRefPartnerSideA();",
"public void setFamily(String family) {\n this.family = family;\n }",
"public Object getRecord(int key) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;",
"kr.pik.message.Profile.Contact getContact();",
"java.lang.String getField1008();",
"java.lang.String getField1421();",
"public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }",
"@Override\n public com.gensym.util.Sequence getRelationships() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_);\n return (com.gensym.util.Sequence)retnValue;\n }",
"String getRefPartnerSideB();",
"public FSArray getGroupRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec)));}",
"@Override\r\n\tpublic ProductFamily findByProductFamilyName(String familyName) {\n\t\treturn iImportSalesRecordDao.findByProductFamilyName(familyName);\r\n\t}",
"public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}",
"public int \r\nomStudent_dAdvisorFullName( View mStudent,\r\n String InternalEntityStructure,\r\n String InternalAttribStructure,\r\n Integer GetOrSetFlag )\r\n{\r\n String szFullName = null;\r\n\r\n\r\n //:CASE GetOrSetFlag\r\n switch( GetOrSetFlag )\r\n { \r\n //:OF zDERIVED_GET:\r\n case zDERIVED_GET :\r\n\r\n //:GetPersonFullName( szFullName, mStudent, \"AdvisorPerson\" )\r\n //:StoreStringInRecord ( mStudent,\r\n //: InternalEntityStructure, InternalAttribStructure, szFullName )\r\n StoreStringInRecord( mStudent, InternalEntityStructure, InternalAttribStructure, szFullName );\r\n break ;\r\n\r\n //: /* end zDERIVED_GET */\r\n //:OF zDERIVED_SET:\r\n case zDERIVED_SET :\r\n break ;\r\n } \r\n\r\n\r\n //: /* end zDERIVED_SET */\r\n //:END /* case */\r\n return( 0 );\r\n// END\r\n}",
"public Person[] getPerson() {\n\t\treturn person;\n\t}",
"private void getrec() {\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00010 Product not found on Contract_Detail\n\t\tif (nmfkpinds.pgmInd36()) {\n\t\t\tmsgObjIdx = setMsgObj(\"OES0115\", \"XWABCD\", msgObjIdx, messages);\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t\telse {\n\t\t\tif (nmfkpinds.pgmInd66()) {\n\t\t\t\tif (fileds.filests == 1218) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y3U9999\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalidt();\n\t\t\t}\n\t\t}\n\t}",
"public String getFamilyName() {\n\t\treturn familyName;\n\t}",
"public String getFamilyPrefix() {\n return familyPrefix;\n }",
"com.polytech.spik.protocol.SpikMessages.Contact getContact();",
"java.lang.String getField1472();",
"java.lang.String getField1491();",
"FeatureCall getFec();",
"public String getFamilyname() {\n\t\treturn this.family_name;\n\t}",
"@Override\r\n\tpublic List<Product> findProductByFName(String familyName) {\n\t\treturn iImportSalesRecordDao.findProductByFName(familyName);\r\n\t}",
"java.lang.String getField1419();",
"public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }",
"com.ljzn.grpc.personinfo.PersoninfoMessage getPersonInfo(int index);",
"java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();",
"java.lang.String getField1021();",
"@Override\n public Class<UcFamilyIdcardRecord> getRecordType() {\n return UcFamilyIdcardRecord.class;\n }",
"com.demo.springprotobuff.Demoproto.Student.PhoneNumberOrBuilder getPhoneOrBuilder(int index);",
"com.zzsong.netty.protobuff.two.ProtoData.Car getCar();",
"public abstract ContactId getRemoteContact() throws RcsServiceException;",
"java.lang.String getField1467();"
]
| [
"0.6839077",
"0.65934926",
"0.6527069",
"0.6527069",
"0.6493213",
"0.636588",
"0.63430727",
"0.63207483",
"0.63071406",
"0.6184922",
"0.61440307",
"0.6116584",
"0.61110103",
"0.6050121",
"0.60463876",
"0.59907407",
"0.59881",
"0.591205",
"0.58990633",
"0.5851159",
"0.5765972",
"0.576351",
"0.5755387",
"0.57367676",
"0.5721368",
"0.56698126",
"0.5661046",
"0.5652703",
"0.56068635",
"0.55492723",
"0.55233824",
"0.5437494",
"0.5415035",
"0.5410937",
"0.5380937",
"0.53762245",
"0.5375204",
"0.53378993",
"0.53238577",
"0.5308795",
"0.53060573",
"0.53003633",
"0.5281049",
"0.5273337",
"0.5253208",
"0.5232673",
"0.5227577",
"0.5209759",
"0.519622",
"0.51673913",
"0.51626384",
"0.5153592",
"0.514189",
"0.5118934",
"0.51051074",
"0.50986296",
"0.507791",
"0.5055108",
"0.5052132",
"0.50472033",
"0.504658",
"0.504658",
"0.5037783",
"0.5030887",
"0.5029423",
"0.5028836",
"0.50249743",
"0.5021886",
"0.50204957",
"0.50088274",
"0.50047034",
"0.50040597",
"0.5003296",
"0.4988676",
"0.49858922",
"0.49852437",
"0.4978093",
"0.49734837",
"0.4963775",
"0.49631026",
"0.4962501",
"0.49541935",
"0.49507254",
"0.49507087",
"0.49481687",
"0.49475124",
"0.49363914",
"0.49351606",
"0.49325255",
"0.49267188",
"0.49234715",
"0.49219733",
"0.49217865",
"0.49193335",
"0.4916233",
"0.4915232",
"0.49126768",
"0.49097538",
"0.49049807",
"0.4903512"
]
| 0.6848212 | 0 |
indexed getter for familyRec gets an indexed value | public FamilyRecType getFamilyRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);
return (FamilyRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"@Override\n public Person lookup(final int i) {\n if(i >= size() || i < 0) throw new IndexOutOfBoundsException();\n return mData.get(i);\n }",
"@VTID(10)\n int getIndex();",
"public Object getValue(int index);",
"public abstract long getIndex();",
"abstract public Object getValue(int index);",
"public abstract int getIndex();",
"int get(int idx);",
"public Vertex getFamily() {\n\t\treturn family;\n\t}",
"abstract int get(int index);",
"protocol.Data.Friend.FriendItem getFriend(int index);",
"public int index();",
"public Object get(int index);",
"public Object get(int index);",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getSpecifiedGetter(Forme forme, int index) {\r\n\t\tif(index == 1)\r\n\t\t\treturn forme.getGrandeur();\r\n\t\telse if(index == 2)\r\n\t\t\treturn forme.getLargeur();\r\n\t\telse if(index == 3)\r\n\t\t\treturn forme.getNoSeq();\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"public Occ get( int index )\n {\n if ( index < 0 || index >= size ) throw new IndexOutOfBoundsException( \"\"+index+\" >= \"+size );\n return data[index];\n }",
"public int get(int index);",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"E get( int index );",
"public abstract E get(int index);",
"Object get(int index);",
"Object get(int index);",
"public Integer getFamilyId() {\r\n return familyId;\r\n }",
"public int getIndex() { return this.index; }",
"public int getIndex() {\r\n\t\treturn personToContact;\r\n\t}",
"public Family getFamily() {\n return family;\n }",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public Object getProperty (String index) ;",
"StorableIndexInfo getIndexInfo();",
"public E get(int index);",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"public int getIndex()\n {\n return m_index;\n }",
"public Type get(int index);",
"public int getFieldIndex() { return _fldIndex; }",
"public abstract int indexFor(Object obj);",
"public String getFamilyPerson(String familyId);",
"float get(int idx);",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public @Override E get(int index) {\n \treturn getNode(index).data;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"E getData(int index);",
"public abstract T get(int index);",
"public synchronized final int getIndex() {\r\n return f_index;\r\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public int getIndex(\n )\n {return index;}",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"public E index(int idx) throws IndexOutOfBoundsException {\n return indexNode(idx).val;\n }",
"@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }",
"int getIndex() {\n\t\treturn index;\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return _2420DREF01ReferenceIdentificationQualifier;\n case 1: return _2420DREF02SupervisingProviderSecondaryIdentifier;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }",
"public int getIndex()\n {\n return index;\n }",
"public FSArray getFamilyRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec)));}",
"public T get(int aIndex);",
"public int getIndexNumber(){\n return id;\r\n }",
"String getFamily();",
"String getFamily();",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n \t\treturn index;\n \t}",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public Object getValueAt(int index);",
"public int get(int index) {\n return array[index];\n }",
"public final int getFamily() {\n return family;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String familyId() {\n return this.familyId;\n }",
"public int getIndex() {\n return index;\n }"
]
| [
"0.6154765",
"0.6154765",
"0.6154765",
"0.6150127",
"0.6128209",
"0.6072555",
"0.6063769",
"0.6018189",
"0.59847665",
"0.5981872",
"0.5976206",
"0.5970076",
"0.5952809",
"0.5950337",
"0.59244657",
"0.59244657",
"0.5923129",
"0.58857673",
"0.5881365",
"0.5872258",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.58637184",
"0.584532",
"0.58426404",
"0.58390605",
"0.58390605",
"0.5814046",
"0.5813774",
"0.57976866",
"0.5777541",
"0.57639587",
"0.57529837",
"0.5743037",
"0.5735134",
"0.5725401",
"0.57134944",
"0.57134396",
"0.57010925",
"0.57009524",
"0.5700003",
"0.5699019",
"0.56974524",
"0.56974524",
"0.56848574",
"0.5677659",
"0.5674344",
"0.5668961",
"0.5667688",
"0.5667412",
"0.5664591",
"0.5664591",
"0.56599706",
"0.56595534",
"0.5653017",
"0.56511366",
"0.5643442",
"0.56402564",
"0.5629678",
"0.56289536",
"0.5626773",
"0.562061",
"0.5615341",
"0.56130326",
"0.56130326",
"0.56130326",
"0.5606928",
"0.5601204",
"0.5598429",
"0.5597691",
"0.55880225",
"0.5576749",
"0.5576749",
"0.55745506",
"0.55634177",
"0.55634177",
"0.55634177",
"0.5558729",
"0.55572087",
"0.55572087",
"0.55572087",
"0.55514276",
"0.55499285",
"0.55459994",
"0.554401",
"0.554401",
"0.554401",
"0.55403274",
"0.5535997",
"0.552113"
]
| 0.5712325 | 48 |
getter for groupRec gets | public FSArray getGroupRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getGroup(int groupPosition);",
"public long getGroup()\r\n { return group; }",
"Object getGroupID(String groupName) throws Exception;",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"@Override\n\t\tpublic Object getGroup(int groupPosition) {\n\t\t\treturn data.get(groupPosition);\n\t\t}",
"public String getGroup();",
"java.lang.String getGroup();",
"GroupOpt getGroup();",
"public Group getGroupData(String groupName);",
"ZigBeeGroup getGroup(int groupId);",
"@Override\r\n public Object getGroup(int groupPosition) {\n return mDataList.get(\"\" + groupPosition);\r\n }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }",
"public Group getGroup_1() { return cGroup_1; }"
]
| [
"0.71911925",
"0.69957453",
"0.6967821",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.6930805",
"0.68879926",
"0.68542475",
"0.6775011",
"0.6728274",
"0.66830134",
"0.6682202",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484",
"0.65990484"
]
| 0.70677215 | 1 |
indexed getter for groupRec gets an indexed value | public GroupRecType getGroupRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);
return (GroupRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getGroup(int groupPosition);",
"@java.lang.Override\n public int getGroupIndex() {\n return instance.getGroupIndex();\n }",
"@Override\r\n public Object getGroup(int groupPosition) {\n return mDataList.get(\"\" + groupPosition);\r\n }",
"@java.lang.Override\n public int getGroupIndex() {\n return groupIndex_;\n }",
"@Override\n\t\tpublic Object getGroup(int groupPosition) {\n\t\t\treturn data.get(groupPosition);\n\t\t}",
"@Override\n public Object getGroup(int groupPosition) {\n return Grade[groupPosition];\n }",
"public long getGroup()\r\n { return group; }",
"int getGroupIndex(int position);",
"Collection getIndexesInGroup(Object groupID) throws Exception;",
"public ArrayList<Integer> getIndexGroupList() {\r\n\t\treturn indexGroupList;\r\n\t}",
"@Override\r\n\tpublic String getBind_group_ind() {\n\t\treturn super.getBind_group_ind();\r\n\t}",
"public int getGroup() throws StandardException;",
"@Override\r\n\tpublic Object getGroup(int groupPosition) {\n\t\treturn groupPosition;\r\n\t}",
"public int getGroup() {\n return group;\n }",
"public int getIdGroup() {\n return idGroup;\n }",
"BigInteger getReportGroup();",
"public Object getValue(int index);",
"Object getGroupID(String groupName) throws Exception;",
"public String getResultGroupFieldsAttr () {\r\n\r\n //code descriptiom\r\n\r\n return this.resultGroup;\r\n\r\n }",
"abstract public Object getValue(int index);",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public int getFieldIndex() { return _fldIndex; }",
"@Override\r\n\tpublic Object getGroup(int groupPosition) {\n\t\treturn arrSongHeader.get(groupPosition);\r\n\t}",
"public String getGroup();"
]
| [
"0.6785903",
"0.67301166",
"0.66291946",
"0.6555067",
"0.6476363",
"0.6452364",
"0.6443038",
"0.6385858",
"0.6383868",
"0.615866",
"0.61505854",
"0.6108234",
"0.6084879",
"0.6050917",
"0.60340565",
"0.60191005",
"0.5930555",
"0.59115726",
"0.5886939",
"0.5878983",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.586296",
"0.58526736",
"0.58290523",
"0.58268523"
]
| 0.5937266 | 16 |
Feature: individualRec getter for headerRec gets | public HeaderRecType getHeaderRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)
jcasType.jcas.throwFeatMissing("headerRec", "net.myerichsen.gedcom.GEDCOMType");
return (HeaderRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.didiyun.base.v1.Header getHeader();",
"java.lang.String getHeader();",
"public VCFHeader getHeader();",
"@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }",
"@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }",
"FS2ObjectHeaders getHeaders();",
"String getHeader(String headerName);",
"public Object getHeader() {\n return header;\n }",
"public TempTableHeader getHeader1() { return header1; }",
"public ListIterator getHeaders()\n { return headers.listIterator(); }",
"public String getHeaderField(int paramInt) {\n/* 278 */ return this.delegate.getHeaderField(paramInt);\n/* */ }",
"public String getHeader();",
"com.didiyun.base.v1.HeaderOrBuilder getHeaderOrBuilder();",
"public Map<String, List<String>> getHeaderFields() {\n/* 262 */ return this.delegate.getHeaderFields();\n/* */ }",
"public String getHeaderNames(){return header.namesText;}",
"Headers getHeaders();",
"public\t CSeqHeader getCSeq()\n { return (CSeqHeader) cSeqHeader ; }",
"TupleHeader getHeader() {\n return header;\n }",
"public byte[] getHeader() {\n\treturn header;\n }",
"public TempTableHeader getHeader2() { return header2; }",
"public RTCMHeader getRtcmHeader()\n {\n\treturn this.rtcmHeader;\n }",
"ComponentHeaderType getHeader();",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"List<? extends Header> getHeaders(String name);",
"public ChildMessage getHeader(){return header;}",
"public String getHeaderField(String paramString) {\n/* 270 */ return this.delegate.getHeaderField(paramString);\n/* */ }",
"public Header getHeader() {\n\t\treturn this.header;\n\t}",
"private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }",
"public String getHeader1() {\n return header1;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"public std_msgs.msg.dds.Header getHeader()\n {\n return header_;\n }",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"String[] getHeader(String key);",
"public abstract String getHeaderRow();",
"@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }",
"public abstract String header();",
"public String fieldHeader(int fld_i) { return flds[fld_i]; }",
"public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}",
"public List<Map<String, Map<String, Object>>> getHeader(){\n return headerDescription;\n }",
"public IMAGE_FILE_HEADER getFileHeader() { return peHeader; }",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"protected ResponseHeader getHeader() {\n return this.header;\n }",
"public String headerLine() {\n return headerLine;\n }",
"public interface Header {\n\n short getId();\n\n String getPhone();\n\n short getNo();\n\n short getLength();\n\n EncryptType getEncryptType();\n}",
"public\t RecordRouteList getRecordRouteHeaders()\n { return (RecordRouteList) this.getSIPHeaderList(RecordRouteHeader.NAME) ; }",
"@Override\n public Object getGroup(int groupPosition)\n {\n return headers.get(groupPosition);\n }",
"public PHeader getHeader() {\n\t\treturn header;\n\t}",
"List<? extends Header> getAllHeaders();",
"@Override\n public RaftNode getHeader() {\n return allNodes.getHeader();\n }",
"public abstract Iterator getAllMimeHeaders();",
"public Header getHeaderByKey(String key);",
"@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"public Header[] getRequestHeaders();",
"public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}",
"public DnsHeader header() {\n return header;\n }",
"@Override\n\tpublic FileItemHeaders getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public abstract String[] getMimeHeader(String name);",
"public HeaderData get(String key){\r\n\t\treturn map.get(key);\r\n\t}",
"public String getCustomHeader() {\n return this.customHeader;\n }",
"List<Header> headers();",
"public String getHeader() {\n\t\t\treturn header;\n\t\t}",
"public List<Header> getHeaderList() {\n return mHeaderList;\n }",
"public String[] getHeader(String name) throws MessagingException {\n/* 363 */ if (this.headers == null)\n/* 364 */ loadHeaders(); \n/* 365 */ return this.headers.getHeader(name);\n/* */ }",
"public String getFirst(String headerName)\r\n/* 336: */ {\r\n/* 337:496 */ List<String> headerValues = (List)this.headers.get(headerName);\r\n/* 338:497 */ return headerValues != null ? (String)headerValues.get(0) : null;\r\n/* 339: */ }",
"public byte[] getBuffer() {\r\n return this.header;\r\n }",
"public bf.com.misys.eqf.types.header.RsHeader getRsHeader()\n\t{\n\t\treturn this._rsHeader;\n\t}",
"PageHeader getPageHeader();",
"PageHeader getPageHeader();",
"public Class<?> header() {\n return header;\n }",
"PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);",
"org.apache.xmlbeans.XmlString xgetHeader();",
"public String[] getHeaders()\n\t{\n\t\tString[] lines = this.header.split(\"\\\\r\\\\n\");\n\t\treturn lines;\n\t}",
"public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }",
"Map<String, List<String>> getHeaders();",
"public SAMFileHeader getFileHeader() {\n return dest.getFileHeader();\n }",
"stockFilePT102.StockHeaderDocument.StockHeader getStockHeader();",
"public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }",
"public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"public interface Header extends Tuple {\n\n /**\n * {@inheritDoc}\n */\n @Override\n default boolean equatable(Object obj) {\n return obj instanceof Header;\n }\n\n /**\n * Return an attribute by the given index position.\n *\n * @param index the index position of the value\n * @return an attribute by the given index position\n * @throws IndexOutOfBoundsException if the index is out of range ({@code index < 0 || index >= size()})\n * @throws RdbmsException an exception in case of attribute obtaining error\n */\n @Override\n KeyValue<String, ? extends Type<?>> get(int index);\n\n /**\n * Return the RDBMS data type of the relation attribute by the given name.\n *\n * @param name the given relation attribute name\n * @return the RDBMS data type of the relation attribute by the given name\n * @throws IllegalArgumentException an exception in case of absence of the given attribute name\n * @throws RdbmsException an exception in case of attribute type obtaining error\n */\n Type<?> get(String name);\n\n /**\n * Return the width of the RDBMS relation.\n *\n * @return the width of the RDBMS relation\n * @throws RdbmsException an exception in case of the width obtaining error\n */\n @Override\n int width();\n}",
"@Override\n public String getColumnName(int iCol) {\n return ARR_STR_HEADERS[iCol];\n }",
"public boolean getHeader() {\n return isHeader;\n }",
"public List<VCFFilterHeaderLine> headerLines();",
"public String getHeader() {\n\t\treturn header.toString();\n\t}",
"private String getHeaders(int index, int myArrayLength) {\n\t\t\n\t\tString myHeaders[] = new String[myArrayLength];\n\t\t\n\t\tmyHeaders[0] = \"Elements\";\n\t\tmyHeaders[1] = \" \";\n\t\tmyHeaders[2] = \"Lineal Search\";\n\t\tmyHeaders[3] = \" \";\n\t\tmyHeaders[4] = \"Binary Search\";\n\t\t\n\t\treturn myHeaders[index];\n\t\t\n\t}",
"public MultiMap getHeaders() {\n return headers;\n }",
"public String getHeader(String name, String delimiter) throws MessagingException {\n/* 382 */ if (this.headers == null)\n/* 383 */ loadHeaders(); \n/* 384 */ return this.headers.getHeader(name, delimiter);\n/* */ }",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"public void setHeaderRec(HeaderRecType v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)\n jcasType.jcas.throwFeatMissing(\"headerRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public String[] composeHeader() {\n\t\treturn null;\n\t}",
"private String receiveHeaders (SelectionKey clientKey)\r\n {\r\n // Local Variable Declaration \r\n int bytesRead = 0; byte[] trimedHeader;\r\n String rawHeaders = null; SocketChannel clientSC; \r\n \r\n try \r\n {\r\n // Get the socket channel from the key passed \r\n clientSC = (SocketChannel)clientKey.channel();\r\n\r\n // Clear the buffer before each read\r\n headerBuff.clear();\r\n\r\n // Read the header in from the socket channel\r\n bytesRead = clientSC.read(headerBuff);\r\n\r\n // Initialize the header byte array to the amount of bytes read\r\n trimedHeader = new byte[bytesRead];\r\n\r\n // Trim off any white space \r\n System.arraycopy(headerBuff.array(), 0, trimedHeader, 0, bytesRead);\r\n\r\n // Convert bytes to String for parsing \r\n rawHeaders = new String(trimedHeader, Charset.forName(\"UTF-8\"));\r\n\r\n // Trim trailing whitespace \r\n rawHeaders = rawHeaders.trim();\r\n }\r\n catch(IOException ioe)\r\n {\r\n ioe.printStackTrace();\r\n }\r\n finally\r\n {\r\n return rawHeaders;\r\n }\r\n }",
"public Header parseHeader(CharArrayBuffer buffer) throws ParseException {\n/* 445 */ return (Header)new BufferedHeader(buffer);\n/* */ }",
"@Override\n\t\tpublic Enumeration getHeaders(String name) {\n\t\t\treturn null;\n\t\t}",
"@JsonProperty(PROTECTED_HEADER)\n public H getHeader();",
"public List<String> get(Object key)\r\n/* 396: */ {\r\n/* 397:564 */ return (List)this.headers.get(key);\r\n/* 398: */ }",
"public\t ContactList getContactHeaders()\n { return (ContactList) this.getSIPHeaderList(ContactHeader.NAME); }",
"Map<String, String> getHeaders();",
"public abstract SOAPHeader getSOAPHeader() throws SOAPException;",
"public String getHeaderFieldKey(int paramInt) {\n/* 286 */ return this.delegate.getHeaderFieldKey(paramInt);\n/* */ }",
"public abstract boolean isFirstLineHeader();"
]
| [
"0.6931232",
"0.69125557",
"0.68746036",
"0.6788047",
"0.6767711",
"0.6758982",
"0.67442155",
"0.6671503",
"0.66409564",
"0.66276157",
"0.6513777",
"0.6512467",
"0.64786977",
"0.64418495",
"0.64155984",
"0.63988745",
"0.63912183",
"0.63812643",
"0.6369065",
"0.6354078",
"0.63435787",
"0.63258797",
"0.63163114",
"0.62945056",
"0.6258112",
"0.62465054",
"0.62305474",
"0.6220676",
"0.620181",
"0.61818695",
"0.6179032",
"0.61786705",
"0.61786705",
"0.6170061",
"0.6144673",
"0.61345315",
"0.6120344",
"0.61147726",
"0.61122286",
"0.6073958",
"0.60687435",
"0.60409874",
"0.6029404",
"0.602547",
"0.6014051",
"0.59911364",
"0.59856105",
"0.59574956",
"0.5948903",
"0.59307253",
"0.59263617",
"0.5916797",
"0.5904417",
"0.58972734",
"0.587696",
"0.5872995",
"0.5870442",
"0.5862714",
"0.5845191",
"0.5842787",
"0.584265",
"0.583483",
"0.58305746",
"0.58141553",
"0.58105594",
"0.5810387",
"0.57908183",
"0.5790043",
"0.5790043",
"0.57851213",
"0.578404",
"0.57766175",
"0.5768199",
"0.5767703",
"0.5766601",
"0.5757254",
"0.5757075",
"0.5749492",
"0.5733902",
"0.57283986",
"0.57248574",
"0.57146853",
"0.57051104",
"0.5691609",
"0.568996",
"0.56863946",
"0.56815296",
"0.5661123",
"0.56560695",
"0.56548446",
"0.56461066",
"0.5645745",
"0.56405324",
"0.56386137",
"0.5630847",
"0.5628001",
"0.5627579",
"0.56190115",
"0.5609592",
"0.5587861"
]
| 0.71213853 | 0 |
getter for individualRec gets | public FSArray getIndividualRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRecId() {\n return recId;\n }",
"public Integer getREC_ID() {\n return REC_ID;\n }",
"public OpenERPRecord get() {\r\n\t\tif (records == null)\r\n\t\t\treturn null;\r\n\t\tif (records.size() == 0)\r\n\t\t\treturn null;\r\n\t\treturn records.elementAt(0);\r\n\t}",
"public IndividualRecType getIndividualRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n return (IndividualRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i)));}",
"public StringWithCustomFacts getRecIdNumber() {\n return recIdNumber;\n }",
"public int getReadedRecordNumber();",
"public RecordDefinition getRecDef () {\n return recDef;\n }",
"public Record getRecord() {\n return record;\n }",
"public Record getRecord() {\n return record;\n }",
"public EventRecType getEventRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);\n return (EventRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i)));}",
"private void getrec() {\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00010 Product not found on Contract_Detail\n\t\tif (nmfkpinds.pgmInd36()) {\n\t\t\tmsgObjIdx = setMsgObj(\"OES0115\", \"XWABCD\", msgObjIdx, messages);\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t\telse {\n\t\t\tif (nmfkpinds.pgmInd66()) {\n\t\t\t\tif (fileds.filests == 1218) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y3U9999\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalidt();\n\t\t\t}\n\t\t}\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Object getRecord(int key) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"public int getAtt(){ \r\n return att;\r\n }",
"@Override\r\n\tpublic String getRecordById(CollectionMedicalRecord collectionMedicalRecord) {\n\t\treturn collectionMedicalRecordDao.getRecordById(collectionMedicalRecord);\r\n\t}",
"public Recibo getRecibo() {\r\n\t\treturn recibo;\r\n\t}",
"public ContactRecType getContactRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);\n return (ContactRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i)));}",
"@Override\n\tpublic void addRec() {\n\t\t\n\t}",
"public String getAnotherDetail();",
"public int getLBR_DocLine_Details_ID();",
"public int getR_id() { return r_id; }",
"@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn mRecords.get(arg0);\n\t\t}",
"public Record get(int n)\n\t{\n\t\treturn recordList.get(n);\n\t}",
"public String getRecord() {\n return (long)S + \" \" + (long)I + \" \" + (long)R;\n }",
"public class_1048 method_2258() {\r\n return this.field_1859;\r\n }",
"public Date getRecTime() {\n return recTime;\n }",
"public FSArray getEventRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));}",
"public Requisition getRequisitionByID(int requisitionID);",
"@Override\n\tpublic java.lang.String getField1() {\n\t\treturn _second.getField1();\n\t}",
"public Date getRecdate() {\n return recdate;\n }",
"public int getRecordNum() {\n return RecordNum;\n }",
"private List<String> readRecord(JsonObject workItem) throws AutomicException {\n List<String> record = new ArrayList<String>(resultFields.size());\n for (String field : resultFields) {\n JsonElement jeObj = workItem.get(field);\n String value = null;\n if (jeObj != null && jeObj.isJsonPrimitive()) {\n value = jeObj.getAsString();\n } else if (jeObj != null && jeObj.isJsonObject()) {\n JsonObject jObj = (JsonObject) jeObj;\n if (jObj.has(\"_refObjectName\")) {\n value = jObj.get(\"_refObjectName\").getAsString();\n }\n }\n record.add(value);\n }\n return record;\n }",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"java.lang.String getField1001();",
"private StudentRecord[] getList() {\r\n\t\treturn this.list;\r\n\t}",
"java.lang.String getField1021();",
"public int getRecordNumber () {\n return recordNumber;\n }",
"public FSArray getContactRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));}",
"public java.lang.String getRadiologyOrderID(){\n return localRadiologyOrderID;\n }",
"public java.lang.String getRadiologyOrderID(){\n return localRadiologyOrderID;\n }",
"public void setRecId(Integer recId) {\n this.recId = recId;\n }",
"java.lang.String getField1078();",
"public RecordLedger getLedger();",
"public RecordField getSubfield() {\n return getSubfield(0);\n }",
"@Override\r\n\tpublic CustomerRec getCustomerRecById(String id) {\n\t\tCustomerRec rec = customerRecDao.selectByPrimaryKey(id);\r\n\t\treturn rec;\r\n\t}",
"java.lang.String getField1044();",
"public void setREC_ID(Integer REC_ID) {\n this.REC_ID = REC_ID;\n }",
"public StringWithCustomFacts getRecFileNumber() {\n return recFileNumber;\n }",
"public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public SourceRecType getSourceRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);\n return (SourceRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i)));}",
"java.lang.String getField1088();",
"java.lang.String getField1067();",
"java.lang.String getField1051();",
"String getField();",
"public String getRecordText();",
"public String getRecordText();",
"@Override\r\n\tpublic String getDetails() {\r\n\t\tString result = \"\";\r\n\t\tresult += \"Vehicle ID: \t\t\t\" + getID() + \"\\n\" + \"Year:\t\t\t\t\" + getYear() + \"\\n\"\r\n\t\t\t\t+ \"Make:\t\t\t\t\" + getMake() + \"\\n\" + \"Model:\t\t\t\t\" + getModel() + \"\\n\"\r\n\t\t\t\t+ \"Number of seats:\t\t\" + getNumOfSeats() + \"\\n\" + \"Status:\t\t\t\t\" + getStatus() + \"\\n\"\r\n\t\t\t\t+ \"RENTAL RECORD:\t\t\" + \"\\n\";\r\n\r\n\t\tList<RentalRecord> carRecorder = databaseHandle.getAllRecordsByVehicleID(ID);\r\n\t\tfor (int i = 0; i < carRecorder.size() && i < 10; i++) {\r\n\t\t\tif (i == 0 && status == Status.RENTED) {\r\n\r\n\t\t\t\tRentalRecord temp = carRecorder.get(carRecorder.size() - 1);\r\n\t\t\t\tresult += \"Record ID: \t\t\t \" + temp.getId() + \"\\n\" + \"Rent date:\t\t\t \" + temp.getRentDate()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Estimated Return Date: \" + temp.getEstimatedReturnDate() + \"\\n\";\r\n\r\n\t\t\t} else {\r\n\t\t\t\tresult += \"------------------------------------\" + \"\\n\";\r\n\t\t\t\tRentalRecord temp = carRecorder.get(carRecorder.size() - 1 - i);\r\n\t\t\t\tresult += \"Record ID: \t\t\t \" + temp.getId() + \"\\n\" + \"Rent date:\t \t\t \" + temp.getRentDate()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Estimated Return Date: \" + temp.getEstimatedReturnDate() + \"\\n\"\r\n\t\t\t\t\t\t+ \"Actual Return Date: \" + temp.getActualReturnDate() + \"\\n\" + \"Rental Fee: \t\t\t \"\r\n\t\t\t\t\t\t+ temp.getRentalFee() + \"\\n\" + \"Late Fee: \" + temp.getLateFee() + \"\\n\";\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tresult += \"====================================\" + \"\\n\";\r\n\t\treturn result;\r\n\t}",
"java.lang.String getField1069();",
"Object getRefid();",
"public int getRaterId();",
"public RecordField getField() {\n return field;\n }",
"public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"java.lang.String getField1094();",
"java.lang.String getField1087();",
"public MedicalRecordDO[] getMedicalRecordPath(Integer uid);",
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"String getRemediationDetail();",
"public Integer getRegbyid()\n {\n return regbyid; \n }",
"java.lang.String getField1055();",
"public native Record get(int pos) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordJS = self.get(pos);\r\n return recordJS == null || recordJS === undefined ? null : @com.smartgwt.client.data.Record::getOrCreateRef(Lcom/google/gwt/core/client/JavaScriptObject;)(recordJS);\r\n }-*/;",
"java.lang.String getField1091();",
"java.lang.String getField1059();",
"public java.lang.String getRefTrackRecord(){\r\n return this.refTrackRecord;\r\n }",
"java.lang.String getField1008();",
"java.lang.String getField1076();",
"java.lang.String getField1049();",
"public String getRecordName();",
"java.lang.String getField1421();",
"java.lang.String getField1015();",
"java.lang.String getField1019();",
"java.lang.String getField1212();",
"java.lang.String getField1057();",
"java.lang.String getField1339();",
"java.lang.String getField1491();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return rideid;\n case 1: return userid;\n case 2: return driverid;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getField1074();",
"public Object getCustomerContactRecord() {\n return customerContactRecord;\n }",
"java.lang.String getField1243();",
"java.lang.String getField1288();",
"java.lang.String getField1337();",
"java.lang.String getField1244();",
"java.lang.String getField1291();",
"java.lang.String getField1488();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getField1144();",
"public @NonNull R getFoundRecord() {\n if (!foundItems.isEmpty()) {\n return foundItems.get(recordIndex);\n// assert foundRecord != null;\n// return Objects.requireNonNull(foundRecord);\n }\n R emptyRecord = createNewEmptyRecord();\n foundItems.add(emptyRecord);\n fireModelListChanged(); // Is it dangerous to fire the listener before returning the record?\n return emptyRecord;\n }",
"java.lang.String getField1046();",
"java.lang.String getField1188();"
]
| [
"0.6676077",
"0.6488878",
"0.6205884",
"0.6185884",
"0.60873514",
"0.60274345",
"0.6012491",
"0.60048735",
"0.60048735",
"0.58966124",
"0.5878544",
"0.58734125",
"0.5861221",
"0.58158696",
"0.5803023",
"0.57806504",
"0.5744848",
"0.5712893",
"0.5692206",
"0.5670022",
"0.56603813",
"0.56001955",
"0.55891293",
"0.55772537",
"0.55649227",
"0.55560076",
"0.55534166",
"0.5552717",
"0.5549553",
"0.55202717",
"0.54990137",
"0.5492693",
"0.54922837",
"0.54922837",
"0.54837346",
"0.54794097",
"0.54726917",
"0.54693526",
"0.5467821",
"0.54657865",
"0.54657865",
"0.5458198",
"0.5457129",
"0.5454902",
"0.5447495",
"0.5446663",
"0.54404527",
"0.54352486",
"0.54312193",
"0.5428051",
"0.5421886",
"0.5417468",
"0.5413213",
"0.5408948",
"0.54039526",
"0.5403134",
"0.5403134",
"0.54015774",
"0.5400377",
"0.5398609",
"0.5395151",
"0.5394335",
"0.5388455",
"0.538813",
"0.53836197",
"0.5382832",
"0.5374527",
"0.5374172",
"0.5371502",
"0.5370998",
"0.537098",
"0.53691214",
"0.5366835",
"0.5366556",
"0.5365175",
"0.53647465",
"0.53580713",
"0.53574586",
"0.53495115",
"0.5348099",
"0.5343112",
"0.533907",
"0.5338655",
"0.53352916",
"0.53315777",
"0.5330636",
"0.53291625",
"0.5328932",
"0.53273296",
"0.53257465",
"0.53253704",
"0.53239995",
"0.5320019",
"0.5315337",
"0.53147024",
"0.5313637",
"0.5312645",
"0.5312637",
"0.531015",
"0.53088903"
]
| 0.61628634 | 4 |
indexed getter for individualRec gets an indexed value | public IndividualRecType getIndividualRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);
return (IndividualRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public Object getValue(int index);",
"public Object getValue(int index);",
"@VTID(10)\n int getIndex();",
"public abstract long getIndex();",
"abstract int get(int index);",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"int get(int idx);",
"public Object get(int index);",
"public Object get(int index);",
"public IndexRecord getIndexRecord(int RecNo) {\n IndexRecord ir = new IndexRecord();\n if (RecNo >= 0) {\n return ir = indexArray[RecNo];\n } \n return ir;\n }",
"public int getIndex() { return this.index; }",
"public int get(int index);",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public Object getValueAt(int index);",
"Object get(int index);",
"Object get(int index);",
"public T get(int aIndex);",
"public abstract int getIndex();",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"public abstract T get(int index);",
"E get( int index );",
"public int index();",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public int getIndex()\n {\n return m_index;\n }",
"public int getIndexNumber(){\n return id;\r\n }",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public abstract E get(int index);",
"public int getValue() {\r\n return index;\r\n }",
"public int getFieldIndex() { return _fldIndex; }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return name;\n case 2: return sampleId;\n case 3: return variantSetIds;\n case 4: return created;\n case 5: return updated;\n case 6: return info;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(\n )\n {return index;}",
"public int get(int index) {\n return array[index];\n }",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public final int getIndex(){\n return index_;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"public int getIndex()\n {\n return index;\n }",
"Nda<V> get( int i );",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"StorableIndexInfo getIndexInfo();",
"public <U> U index() {\n return this.index;\n }",
"E getData(int index);",
"int getIndex() {\n\t\treturn index;\n\t}",
"public abstract int indexFor(Object obj);",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return rideid;\n case 1: return userid;\n case 2: return driverid;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public IndexON getIndex() {\n return _index;\n }",
"public E get(int index);",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n \t\treturn index;\n \t}",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public Object getValueForColumnIndex(int _index) {\n Object value = null;\n if ( this.attData != null ) {\n int count = -1;\n String lastRetValue = null;\n Iterator<String> it = this.attData.keySet().iterator();\n while ((it.hasNext()) && (_index != count)) {\n lastRetValue = (String)it.next();\n count++;\n }\n value = this.attData.get(lastRetValue);\n }\n return value;\n }",
"public int getIndex()\n {\n return index;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public synchronized final int getIndex() {\r\n return f_index;\r\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return author;\n case 1: return content;\n case 2: return timestamp;\n case 3: return location;\n case 4: return tags;\n case 5: return mentions;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public Item get(int i);",
"public Type get(int index);",
"short getKeyIx();",
"@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"public Integer index() {\n return this.index;\n }",
"public long getElem(int index) {\r\n return a[index];\r\n }"
]
| [
"0.6661186",
"0.665734",
"0.663647",
"0.655234",
"0.6498366",
"0.6462844",
"0.64251",
"0.64251",
"0.64251",
"0.6411894",
"0.63963014",
"0.63963014",
"0.6387874",
"0.6377782",
"0.6353067",
"0.6345027",
"0.6341789",
"0.63198644",
"0.63073194",
"0.63073194",
"0.6296823",
"0.6278083",
"0.6267932",
"0.62630904",
"0.62630904",
"0.6236135",
"0.62094116",
"0.62058586",
"0.6200097",
"0.61962837",
"0.61962837",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.6151762",
"0.614738",
"0.6143018",
"0.61402583",
"0.6138879",
"0.6135067",
"0.6132608",
"0.6128393",
"0.6118399",
"0.61160576",
"0.61160576",
"0.61160576",
"0.6108774",
"0.6094036",
"0.6094036",
"0.6094036",
"0.6090721",
"0.60906875",
"0.6085413",
"0.6079241",
"0.6077727",
"0.6069316",
"0.6066768",
"0.6066444",
"0.606595",
"0.6063593",
"0.6052647",
"0.6049492",
"0.6045683",
"0.6030018",
"0.602078",
"0.6010913",
"0.6008415",
"0.60072833",
"0.6005985",
"0.59943",
"0.59782207",
"0.59688425",
"0.59681445",
"0.59681445",
"0.59657204",
"0.5964075",
"0.59627587",
"0.59597796",
"0.5956941",
"0.5951285",
"0.59486467",
"0.5946581",
"0.59436274",
"0.5942183",
"0.594037",
"0.5935068",
"0.5935068",
"0.5935068",
"0.5935068",
"0.5935068",
"0.5933083",
"0.59265304"
]
| 0.0 | -1 |
getter for lDSOrdRec gets | public FSArray getLDSOrdRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LDSOrdRecType getLDSOrdRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);\n return (LDSOrdRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i)));}",
"io.dstore.values.IntegerValue getSortNo();",
"public void setLDSOrdRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public final int getOrdnum() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"ordnum\");\n\t}",
"io.dstore.values.IntegerValue getMoveSortNo();",
"public int getOrder() {\n \treturn ord;\n }",
"java.lang.String getOrderByDataItem();",
"public Integer getCellLineSortOrder()\n {\n return this.cellLineSortOrder;\n }",
"io.dstore.values.IntegerValueOrBuilder getSortNoOrBuilder();",
"public Integer getOrder();",
"public Integer get_ldcount()\r\n\t{\r\n\t\treturn this.ldcount;\r\n\t}",
"abstract String getSortKey();",
"@VTID(10)\r\n int getOrder();",
"public int getOrder();",
"public int getSortNo() {\n return sortNo;\n }",
"public String getOrderNo()\n\t{\n\t\treturn getColumn(OFF_ORDER_NO, LEN_ORDER_NO) ;\n\t}",
"public int getLBR_DocLine_Details_ID();",
"ColumnSortList.ColumnSortInfo getSortInfo();",
"public int getC_OrderLine_ID();",
"public String[] getsSortDirCol() {\r\n\t\treturn sSortDirCol;\r\n\t}",
"public String getSortOrder();",
"public void setLDSOrdRec(int i, LDSOrdRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public final native String getSortOrder() /*-{\n return this.getSortOrder();\n }-*/;",
"public io.dstore.values.IntegerValueOrBuilder getSortNoOrBuilder() {\n return getSortNo();\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public Long getRows_sorted() {\n return rows_sorted;\n }",
"public int getSort() {\n/* 350 */ return this.value >>> 24;\n/* */ }",
"java.lang.String getField1098();",
"java.lang.String getField1043();",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public void setRcdOrderBy( Long rcdOrderBy ) {\n this.rcdOrderBy = rcdOrderBy;\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"hProject\");\n FieldOrder.add(\"serverJobHandle\");\n FieldOrder.add(\"logData\");\n FieldOrder.add(\"logDataLen\");\n FieldOrder.add(\"logDataPsn\");\n return FieldOrder;\n }",
"java.lang.String getField1094();",
"public Integer getCellTypeSortOrder()\n {\n return this.cellTypeSortOrder;\n }",
"java.lang.String getField1091();",
"String getSortColumn();",
"java.lang.String getField1059();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return ORDER_TYPE;\n case 1: return ORDER_DESCRIPTION;\n case 2: return OT_USAGE_IND;\n case 3: return OT_DFLT_LENGTH_CODE;\n case 4: return OT_DFLT_ROS_SR_IND;\n case 5: return OT_DFLT_UPFNT_SCAT_IND;\n case 6: return REVENUE_REPORT_IND;\n case 7: return REVENUE_DEFAULT_IND;\n case 8: return REVENUE_SEQUENCE;\n case 9: return INVALID_NORMAL_ORDERS;\n case 10: return ORDER_TYPES_ID;\n case 11: return OT_AVAIL_CACHE_IND;\n case 12: return SRC_KEY_VAL;\n case 13: return SRC_CDC_OPER_NM;\n case 14: return SRC_COMMIT_DT_UTC;\n case 15: return TRG_CRT_DT_PART_UTC;\n case 16: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"java.lang.String getField1079();",
"public Integer getRecId() {\n return recId;\n }",
"@Override\r\n public int compare(Object o1, Object o2){\r\n return ((Record)o1).getField2().compareTo(((Record)o2).getField2());\r\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"java.lang.String getField1074();",
"java.lang.String getField1084();",
"java.lang.String getField1049();",
"protected String getFieldOrderForReadList() {\n\t\treturn \"o.OwnerAccountId, o.ProjectCode ASC\";\n\t}",
"java.lang.String getField1069();",
"java.lang.String getField1076();",
"int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}",
"public int getLendBookNum(int rdID) {\n\t\treturn ((BorrowDAL)dal).getLendBookNum(rdID);\r\n\t}",
"public int getReadedRecordNumber();",
"java.lang.String getField1021();",
"java.lang.String getField1051();",
"com.google.protobuf.ByteString getOrderByDataItemBytes();",
"java.lang.String getField1088();",
"java.lang.String getField1095();",
"@VTID(25)\n com.exceljava.com4j.excel.XlSlicerSort getSortItems();",
"java.lang.String getField1073();",
"java.lang.String getField1093();",
"java.lang.String getField1061();",
"public int getLC() {\n\treturn lc;\n }",
"public Long getOrderNo () {\r\n\t\treturn orderNo;\r\n\t}",
"java.lang.String getField1029();",
"public java.util.List<java.lang.Integer> getDependLineIDList()\n {\n final class DependLineIDList extends java.util.AbstractList<java.lang.Integer>\n {\n public java.lang.Integer get(int i)\n { return OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i); }\n \n public java.lang.Integer set(int i, java.lang.Integer o)\n {\n java.lang.Integer old = OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i);\n OOSOrderLineItemTypeImpl.this.setDependLineIDArray(i, o);\n return old;\n }\n \n public void add(int i, java.lang.Integer o)\n { OOSOrderLineItemTypeImpl.this.insertDependLineID(i, o); }\n \n public java.lang.Integer remove(int i)\n {\n java.lang.Integer old = OOSOrderLineItemTypeImpl.this.getDependLineIDArray(i);\n OOSOrderLineItemTypeImpl.this.removeDependLineID(i);\n return old;\n }\n \n public int size()\n { return OOSOrderLineItemTypeImpl.this.sizeOfDependLineIDArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new DependLineIDList();\n }\n }",
"public abstract BoundCodeDt<?> getComparatorElement();",
"public final native String getOrderBy() /*-{\n return this.getOrderBy();\n }-*/;",
"java.lang.String getField1099();",
"java.lang.String getField1087();",
"public Integer\t\tgetOrderID();",
"io.dstore.values.IntegerValueOrBuilder getMoveSortNoOrBuilder();",
"java.lang.String getField1078();",
"java.lang.String getField1047();",
"java.lang.String getField1085();",
"java.lang.String getField1491();",
"public int getOrder() {\n return mOrder;\n }",
"public synchronized final ColumnSort getSort() {\r\n return f_sort;\r\n }",
"java.lang.String getField1067();",
"java.lang.String getField1097();",
"public java.lang.Integer getFieldOrder() {\n return fieldOrder;\n }",
"java.lang.String getField1198();",
"java.lang.String getField1391();",
"java.lang.String getField1194();",
"@Override\r\n\tprotected List<String> getFieldOrder() {\r\n\t\treturn Arrays.asList(\"n\", \"nalloc\", \"refcount\", \"x\", \"y\");\r\n\t}",
"public int getLC() {\n return this.lc;\n }",
"java.lang.String getField1459();",
"public int compareTo(Object obj) throws ClassCastException {\n return this.startPos - ((SqlField) obj).startPos;\n }",
"public DateOrder getDateOrder()\r\n {\r\n return (m_dateOrder);\r\n }",
"java.lang.String getField1044();",
"public java.lang.String getRadiologyOrderID(){\n return localRadiologyOrderID;\n }",
"public java.lang.String getRadiologyOrderID(){\n return localRadiologyOrderID;\n }",
"public OrdEOImpl getOrdEO() {\r\n return (OrdEOImpl)getEntity(0);\r\n }",
"public Short getSort() {\n return sort;\n }",
"public Integer getSort() {\r\n return sort;\r\n }",
"@Override\r\n\tpublic int getSeq() {\n\t\treturn pdsdao.getSeq();\r\n\t}",
"java.lang.String getField1027();",
"java.lang.String getField1293();",
"int getOrdinalPosition();",
"java.lang.String getField1489();",
"java.lang.String getField1479();"
]
| [
"0.7162016",
"0.6310241",
"0.61570364",
"0.6072755",
"0.60421735",
"0.5942011",
"0.5865049",
"0.57299525",
"0.57206655",
"0.56593674",
"0.5657895",
"0.56479067",
"0.56448007",
"0.563703",
"0.5594025",
"0.5570464",
"0.55417615",
"0.5488691",
"0.54653573",
"0.5464288",
"0.54597914",
"0.5454272",
"0.54444325",
"0.541043",
"0.540992",
"0.54071903",
"0.5394752",
"0.5389041",
"0.5365363",
"0.5363107",
"0.53245074",
"0.53210855",
"0.5319639",
"0.5309462",
"0.5304362",
"0.52889544",
"0.52857965",
"0.52842087",
"0.5283795",
"0.5283388",
"0.5281139",
"0.52609694",
"0.52609694",
"0.5254383",
"0.52529293",
"0.5251871",
"0.52438164",
"0.5241145",
"0.5223849",
"0.5212473",
"0.5212447",
"0.52085626",
"0.5204712",
"0.5200449",
"0.5187142",
"0.518695",
"0.51864517",
"0.5182816",
"0.5182529",
"0.5181891",
"0.51802856",
"0.51714534",
"0.51691675",
"0.51672614",
"0.51653075",
"0.5159483",
"0.5153386",
"0.51497555",
"0.51482445",
"0.51366544",
"0.51355845",
"0.5135427",
"0.51352745",
"0.51333874",
"0.51316905",
"0.513064",
"0.5128974",
"0.5127053",
"0.51215553",
"0.511731",
"0.51167506",
"0.5116124",
"0.5116082",
"0.51129526",
"0.5109478",
"0.51093155",
"0.51063937",
"0.51023555",
"0.51009953",
"0.5100728",
"0.5100728",
"0.5100309",
"0.51002383",
"0.5099739",
"0.50996506",
"0.5099426",
"0.5098278",
"0.50969636",
"0.50965714",
"0.5096512"
]
| 0.7671592 | 0 |
Feature: eventRec indexed getter for lDSOrdRec gets an indexed value | public LDSOrdRecType getLDSOrdRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);
return (LDSOrdRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));}",
"public abstract long getIndex();",
"io.dstore.values.IntegerValue getSortNo();",
"public int fieldIndex(String fld) { if (flds_lu.containsKey(fld)) return flds_lu.get(fld); else return -1; }",
"public IndexRecord getIndexRecord(int RecNo) {\n IndexRecord ir = new IndexRecord();\n if (RecNo >= 0) {\n return ir = indexArray[RecNo];\n } \n return ir;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"short getKeyIx();",
"public int getFieldIndex() { return _fldIndex; }",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public EventLogEntry getEventLogEntry(int index);",
"public int getRecordId(int reschtid){\r\n\r\n\t\tIndex ind = chtidA.getIndex();\r\n\t\tfor (int i=0; i<(int)ind.getSize(); i++){\r\n\t\t\tint chtid = chtidA.getInt(ind.set(i));\r\n\t\t\tif (chtid == reschtid) return i;\r\n\t\t}\t\r\n\t\t\t \r\n\t\treturn -1;\r\n\t}",
"long getFirstLogIndex();",
"public native int getEventRow() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.getEventRow();\r\n }-*/;",
"public native int getEventColumn() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.getEventColumn();\r\n }-*/;",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public Comparable get( int index ) {\n \treturn _data[index]; }",
"public EventRecType getEventRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);\n return (EventRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i)));}",
"E getData(int index);",
"@Override\n\tpublic IBasicObject getAccessedAtIdx() {\n\t\treturn heldObj.getAccessedAtIdx();\n\t}",
"public native int indexOf(Record record) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.indexOf([email protected]::getJsObj()());\r\n }-*/;",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"public int getRecordOffset(int RecNo) {\n if (RecNo >= 0) {\n return indexArray[RecNo].offset;\n }\n return -1;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return ORDER_TYPE;\n case 1: return ORDER_DESCRIPTION;\n case 2: return OT_USAGE_IND;\n case 3: return OT_DFLT_LENGTH_CODE;\n case 4: return OT_DFLT_ROS_SR_IND;\n case 5: return OT_DFLT_UPFNT_SCAT_IND;\n case 6: return REVENUE_REPORT_IND;\n case 7: return REVENUE_DEFAULT_IND;\n case 8: return REVENUE_SEQUENCE;\n case 9: return INVALID_NORMAL_ORDERS;\n case 10: return ORDER_TYPES_ID;\n case 11: return OT_AVAIL_CACHE_IND;\n case 12: return SRC_KEY_VAL;\n case 13: return SRC_CDC_OPER_NM;\n case 14: return SRC_COMMIT_DT_UTC;\n case 15: return TRG_CRT_DT_PART_UTC;\n case 16: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"@VTID(10)\r\n int getOrder();",
"public native int getEventColumn(int x) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.getEventColumn(x);\r\n }-*/;",
"io.dstore.values.IntegerValue getMoveSortNo();",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"public IndexON getIndex() {\n return _index;\n }",
"public int getIndex() { return this.index; }",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getRowIndex(T obj) {\r\n\t\tlogger.trace(\"Enter getRowIndex\");\r\n\t\tlogger.trace(\"Exit getRowIndex\");\r\n\t\treturn data.indexOf(obj);\r\n\t}",
"short getFirstOpenIndexInArgument(UUID id);",
"public abstract int getIndex();",
"Expression getIndexExpr();",
"int get(int idx);",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public int getLBR_DocLine_Details_ID();",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);",
"public int index();",
"private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }",
"public synchronized final int getIndex() {\r\n return f_index;\r\n }",
"public Object get(int fieldPos) {\n switch (fieldPos) {\n case 0: return this.orderId;\n case 1: return this.mobilePhone;\n case 2: return this.eid;\n default: throw new BaijiRuntimeException(\"Bad index \" + fieldPos + \" in get()\");\n }\n }",
"public int getIndx() {\n return this.indx;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kd_kelas;\n case 1: return hari_ke;\n case 2: return jam_mulai;\n case 3: return jam_selesai;\n case 4: return tgl_mulai_otomatis_buat_jadwal;\n case 5: return tgl_berakhir_otomatis_buat_jadwal;\n case 6: return aktif;\n case 7: return kd_mk;\n case 8: return nama_mk;\n case 9: return nama_kelas;\n case 10: return nama_hari;\n case 11: return ts_update;\n case 12: return kd_org;\n case 13: return thn;\n case 14: return term;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"io.dstore.values.IntegerValue getOrderPersonId();",
"abstract String getSortKey();",
"public abstract int indexFor(Object obj);",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getDataIndex() {\n\t\treturn dataIndex;\n\t}",
"abstract int get(int index);",
"public int getIndexNumber(){\n return id;\r\n }",
"public native int getEventRow(int y) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.getEventRow(y);\r\n }-*/;",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return localId;\n case 2: return serviceId;\n case 3: return args;\n case 4: return inputs;\n case 5: return outputs;\n case 6: return timestamp;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public int getIntLE(int index)\r\n/* 383: */ {\r\n/* 384:397 */ ensureAccessible();\r\n/* 385:398 */ return _getIntLE(index);\r\n/* 386: */ }",
"int getOrdinalPosition();",
"public long [] getData(Long index);",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public native Record get(int pos) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordJS = self.get(pos);\r\n return recordJS == null || recordJS === undefined ? null : @com.smartgwt.client.data.Record::getOrCreateRef(Lcom/google/gwt/core/client/JavaScriptObject;)(recordJS);\r\n }-*/;",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public Object getRecord(int key) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"protected int _getIntLE(int index)\r\n/* 389: */ {\r\n/* 390:403 */ return HeapByteBufUtil.getIntLE(this.array, index);\r\n/* 391: */ }",
"public int getIndex(\n )\n {return index;}",
"public int getFieldIndex(String strFieldName) {\n\treturn 0;\n}",
"protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"@JsProperty(name = \"index\")\n\tnative int getNativeIndex();",
"public FSArray getEventRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));}",
"public abstract E get(int index);",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return DEAL_PNT_FEAT_LN_ID;\n case 1: return LAST_MODIFIED_BY;\n case 2: return LAST_MODIFIED_DT;\n case 3: return CNCRNCY_VRSN;\n case 4: return DEAL_PNT_FEAT_ID;\n case 5: return FLIGHT_ID;\n case 6: return EXCLSVTY_TYP_ID;\n case 7: return OTLT_EXT_ID;\n case 8: return SLLNG_RTTN_ID;\n case 9: return DEAL_PNT_FEAT_LN_CMNT_TXT;\n case 10: return SRC_KEY_VAL;\n case 11: return SRC_CDC_OPER_NM;\n case 12: return SRC_COMMIT_DT_UTC;\n case 13: return TRG_CRT_DT_PART_UTC;\n case 14: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"StorableIndexInfo getIndexInfo();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return rideid;\n case 1: return userid;\n case 2: return driverid;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public long getNodeIndex();",
"public Object getValue(int index);",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"int readerIndex();"
]
| [
"0.61134064",
"0.60112643",
"0.5683974",
"0.5673571",
"0.5645156",
"0.5628075",
"0.5609071",
"0.55920094",
"0.5554338",
"0.5543229",
"0.54229105",
"0.5412905",
"0.53991926",
"0.5397474",
"0.53762275",
"0.53661287",
"0.53661287",
"0.53661287",
"0.53464586",
"0.5340134",
"0.53198624",
"0.5316403",
"0.5309087",
"0.5300357",
"0.5295441",
"0.5290135",
"0.52875245",
"0.52786833",
"0.52766716",
"0.5271896",
"0.5263607",
"0.5259794",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.52562076",
"0.5253467",
"0.523645",
"0.520751",
"0.5201818",
"0.5195421",
"0.5188284",
"0.51854044",
"0.51836336",
"0.51739943",
"0.5164475",
"0.5164475",
"0.5161498",
"0.51547706",
"0.51479745",
"0.5142649",
"0.5136506",
"0.5122537",
"0.5120404",
"0.511572",
"0.51121205",
"0.51055926",
"0.5098957",
"0.50908494",
"0.50902885",
"0.50881195",
"0.5080358",
"0.5079975",
"0.50671166",
"0.5037188",
"0.5037188",
"0.5032691",
"0.5030683",
"0.5029182",
"0.5028439",
"0.5027496",
"0.50186926",
"0.5016477",
"0.50157624",
"0.50157374",
"0.50101",
"0.5008456",
"0.50066644",
"0.50066644",
"0.50066644",
"0.5005796",
"0.5002305",
"0.49960828",
"0.49934304",
"0.4988322",
"0.4986341",
"0.49834082",
"0.4979421",
"0.49781057",
"0.49779874",
"0.49768457"
]
| 0.57905596 | 2 |
getter for repositoryRec gets | public FSArray getRepositoryRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RepositoryRecType getRepositoryRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n return (RepositoryRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i)));}",
"public File getRepo() {\n return _repo;\n }",
"@Override\n\tprotected IGenericRepo<Estudiante, Integer> getRepo() {\n\t\treturn repo;\n\t}",
"public Repository getRepository() {\n return mRepository;\n }",
"public String getRepository() {\n return repository;\n }",
"public String getRepository() {\n return repository;\n }",
"Repository getRepository();",
"String getRepoType();",
"public void setRepositoryRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public String getRepos() {\n return repos;\n }",
"@Nullable\n public String getRepositoryType() {\n return myRepoType;\n }",
"public String getLocalRepository() {\r\n return localRepository;\r\n }",
"@Override\n\tpublic GenericRepository<Consulta, Long> getRepository() {\n\t\treturn this.consultaRepository;\n\t}",
"synchronized Repository getRepository(String name) {\n\t\treturn repositoryMap.get(name);\n\t}",
"protected SVNRepository getRepository() {\n\t\treturn repository;\n\t}",
"ArtifactRepository getRepository();",
"Object getRev();",
"protected SlingRepository getRepository() {\n return repository;\n }",
"public com.sun.org.omg.CORBA.Repository get_ir ()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try {\n org.omg.CORBA.portable.OutputStream _out = _request (\"get_ir\", true);\n _in = _invoke (_out);\n com.sun.org.omg.CORBA.Repository __result = com.sun.org.omg.CORBA.RepositoryHelper.read (_in);\n return __result;\n } catch (org.omg.CORBA.portable.ApplicationException _ex) {\n _in = _ex.getInputStream ();\n String _id = _ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException _rm) {\n return get_ir ();\n } finally {\n _releaseReply (_in);\n }\n }",
"public abstract String getRevision();",
"public org.jboss.com.sun.org.omg.CORBA.Repository get_ir()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try\n {\n org.omg.CORBA.portable.OutputStream _out = _request(\"get_ir\", true);\n _in = _invoke(_out);\n org.jboss.com.sun.org.omg.CORBA.Repository __result = org.jboss.com.sun.org.omg.CORBA.RepositoryHelper\n .read(_in);\n return __result;\n }\n catch (org.omg.CORBA.portable.ApplicationException _ex)\n {\n _in = _ex.getInputStream();\n String _id = _ex.getId();\n throw new org.omg.CORBA.MARSHAL(_id);\n }\n catch (org.omg.CORBA.portable.RemarshalException _rm)\n {\n return get_ir();\n }\n finally\n {\n _releaseReply(_in);\n }\n }",
"public List<Repo> getRepos() {\n return repos;\n }",
"public String getClientRepository() {\r\n return clientRepository;\r\n }",
"public abstract RepoDao getRepoDao();",
"public @Nullable String getRepositoryDescription() {\n return this.repositoryDescription;\n }",
"public GitRemote getRemote() { return getRemote(\"origin\"); }",
"public interface Repository {\n public void addPrg(PrgState prg);\n public List<PrgState> getAll();\n public void setAll(List<PrgState> _newPrgs);\n public void removeCurrent();\n public void logPrgStateExec() throws FileNotFoundException, UnsupportedEncodingException;\n public void logPrgStateExec(PrgState p) throws FileNotFoundException;\n public void serialize(PrgState prgState,String fname);\n public PrgState deserialize(String fname);\n PrgState getCurrent();\n}",
"public String getRepositoryName() {\n return this.repositoryName;\n }",
"public Git.Entry getObject() { return ent; }",
"public interface CRAccess {\n\n\t/**\n\t * Returns the node for the given path - The path must be a simple canonical path.\n\t * (No filters, relative paths, etc.)\n\t */\n\tNode getNode(String path);\n\n\t/**\n\t * Returns all nodes in the given path (e.g. /cmsblog/articles/ will return\n\t * { Node(/cmsblog), Node(/articles) }\n\t */\n\tNode[] getNodesInPath(String path);\n\t\n\tNodeType getNodeType(String path);\n\n\tNode getParentNode(Node node);\n\n\tNode resolveNode(Node currentNodeContext, String ref);\n\t\n\t/**\n\t * Returns all direct children of the current node.\n\t */\n\tNode[] getChildren(Node node);\n\t\n\t/* Node[] filterNode() */\n\t\n\t/**\n\t * close the repository/transaction, if the repository is writable this will also commit the changes\n\t */\n\tvoid close();\n\t\n\t/**\n\t * @return <code>true</code> if the repository supports transactions, otherwhise return <code>false</code>.\n\t */\n\tboolean supportsTransaction();\n\t\n\tpublic <T extends CRAdapter> T getAdapter(Class<T> adapterInterface);\n}",
"Repo get(Coordinates coords);",
"RepositoryConfiguration getRepositoryConfiguration();",
"public String getLastDocRepository() {\n return \"\";\n }",
"public interface ReviewRepository extends CrudRepository<Review,Integer> {\n public Iterable<Review> findByPublishid(int publishid);\n}",
"static RepositoryConnection getRepositoryConnection(Repository rep)\n {\n RepositoryConnection connection = null;\n \n try\n {\n connection = rep.getConnection();\n }\n catch (RepositoryException e)\n {\n System.err.println(\"Could not obtain repository connection!\");\n System.exit(1);\n }\n \n return connection;\n }",
"String getId() throws RepositoryException;",
"public interface Repo {\n /**\n * Gets the url property: The url to access the repository.\n *\n * @return the url value.\n */\n String url();\n\n /**\n * Gets the fullName property: The name of the repository.\n *\n * @return the fullName value.\n */\n String fullName();\n\n /**\n * Gets the branches property: Array of branches.\n *\n * @return the branches value.\n */\n List<String> branches();\n\n /**\n * Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.RepoInner object.\n *\n * @return the inner object.\n */\n RepoInner innerModel();\n}",
"TRepo createRepo();",
"Git getGit();",
"String getRepositoryPath();",
"public String getRepoURL() {\n return repoURL;\n }",
"@Override\n public GeneralRepositoryConfig getGeneralRepositoryConfig(){\n outObject = \"getGeneralRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (GeneralRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (GeneralRepositoryConfig) inObject;\n }",
"public @Nullable String getRepositoryName() {\n return this.repositoryName;\n }",
"public void setRepositoryRec(int i, RepositoryRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public final CompletableFuture<GetRepositoryResponse> getRepository(\n\t\t\tFunction<GetRepositoryRequest.Builder, ObjectBuilder<GetRepositoryRequest>> fn) throws IOException {\n\t\treturn getRepository(fn.apply(new GetRepositoryRequest.Builder()).build());\n\t}",
"@Override\n public GetRepositoryResult getRepository(GetRepositoryRequest request) {\n request = beforeClientExecution(request);\n return executeGetRepository(request);\n }",
"public interface GithubRepository {\n\n Single<List<GithubModel>> getRepo();\n\n}",
"RepositoryPackage getRepositoryPackage();",
"public Object caseRRepository(RRepository object) {\n\t\treturn null;\n\t}",
"public interface IRevisionRepository extends IAdaptable, IWorkbookComponent {\n\n /**\n * Gets the revision manager with corresponding resource ID. If no revision\n * manager is related to the specified resource ID, a new one will be\n * created with the specified content type.\n * \n * @param resourceId\n * the ID of the resource\n * @param contentType\n * the content type of the resource, see {@link IRevision} for\n * all available content types\n * @return the corresponding revision manager with the specified resource ID\n * @see IRevision\n * @see IRevisionManager\n */\n IRevisionManager getRevisionManager(String resourceId, String contentType);\n\n}",
"public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}",
"public interface RepoDataView {\n}",
"static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }",
"public static SubmissionRepository current() {\n return theRepository;\n }",
"public interface RenLogEntityRepository extends JpaRepository<RenLogEntity, String> {\n\n List<RenLogEntity> findRenLogEntitiesByRtid(String rtid);\n\n}",
"public String getImageRepositoryType() {\n return this.imageRepositoryType;\n }",
"public ParameterDefinitionGrammarAccess.ParamDefRepoImportElements getParamDefRepoImportAccess() {\n\t\treturn gaParameterDefinition.getParamDefRepoImportAccess();\n\t}",
"RepoInner innerModel();",
"@Override\n\tpublic LogRepository<CreditrepayplanLog> getLogRepository() {\n\t\treturn creditrepayplanLogRepository;\n\t}",
"public Data getData(String repository,String id) {\n\n Data result = null;\n\n //Check if the repository is there\n if(doesDataExist(repository,id)){\n //Fetch the data\n result = storage.get(repository).get(id);\n }\n\n return result;\n }",
"@Override\n\tprotected List<Change> getJournalImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn changes;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve journal from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"String getRepositoryUUID();",
"public interface ProjectMilestoneRepository extends MongoRepository<ProjectMilestone,String> {\n\n}",
"String getRepositoryPath(String name);",
"public interface Repository {}",
"public QcRecsExtImpl getqr() {\n return (QcRecsExtImpl) getEntity(1);\n }",
"public Path getRemoteRepositoryBaseDir();",
"public interface BillInfoRepository extends MongoRepository<BillInfo, String>{\n\n BillInfo findByBillRefNo(String BillRefNo);\n\n}",
"String repoUrl();",
"ISModificationRepository createISModificationRepository();",
"public interface TradeRepository extends MongoRepository<TradeRec, String> {\n\n}",
"public RevisionDTO getRevision(Integer revision);",
"public GitRef getHead() { return getRef(Constants.HEAD); }",
"public Gitlet getMyGit(){\n\t\treturn myGit;\n\t}",
"public RepositoryManager getRepositoryManager() {\n return repositoryManager;\n }",
"public interface ResumeRepository extends MongoRepository<Personal, String> {\n}",
"public AccountRepository getAccountRepository() {\n\t\treturn this.accountRepository;\n\t}",
"Response get(String repoName, String repoPath, String range, String ifModifiedSince, String ifNoneMatch,\r\n String version, UriInfo baseURI);",
"private RevObject getRevObject(ObjectId anId)\n{\n RevWalk rwalk = new RevWalk(getRepo());\n try { return rwalk.parseAny(anId); }\n catch(Exception e) { throw new RuntimeException(e); }\n}",
"public interface IRepo {\r\n\t//current state of the repository\r\n\tPrgState getCurrentState() throws RepoException;\r\n\t\r\n\t//writes log of execution to log file\r\n\tvoid logPrgStateExec() throws FileNotFoundException, IOException;\r\n}",
"private FormatRevision<TargetType, ReaderType> get(int revisionId) {\n return revisionId < this.revisions.size() ? this.revisions.get(revisionId) : null;\n }",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"@Nullable\n synchronized Status getChangeFor(String filePath) {\n return records.get(filePath);\n }",
"@Override\n\tpublic List<GitResponseVO> getRepositoryList(String repoUrl) throws GitException {\n\t\t\n\t\tlogger.info(\"getRepositoryList method Begins\");\n\t\t//String repoUrl=null;\n\t\tList<GitResponseVO> gitResponseList =null;\n\t\t\n\t\tlogger.info(\"Repo URL ->>> \"+repoUrl);\n\t\ttry {\n\t\t\t// Fetches the repository list post fetching the repo URL\n\t\t\tif(!repoUrl.equalsIgnoreCase(GitConstants.NOT_FOUND)) {\n\t\t\t\t\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\t\t\tHttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n\n\t\t\t\tResponseEntity<String> result = restTemplate.exchange(repoUrl, HttpMethod.GET, entity, String.class);\n\t\t\t\t\n\t\t\t\tgitResponseList = JsonMapperUtil.getRepositoryDetails(result.getBody());\n\n\t\t\t\tlogger.info(\"Repo List -> \"+gitResponseList.size());\n\n\t\t\t\tfor(GitResponseVO res: gitResponseList) {\n\t\t\t\t\tSystem.out.println(res.toString());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tlogger.info(\"User Id not Found\");\n\t\t\t}\n\t\t\t\t\t\t\n\n\t\t}catch (Exception e) {\n\t\t\tthrow new GitException(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t\treturn gitResponseList;\n\t}",
"public abstract RepositoryOperation getAddOperation(URI repoLocation);",
"@Nullable\n public ObjectId getRevision() {\n return ObjectIds.copyOrNull(revision);\n }",
"public RevisionID getRevision() {\r\n\t\treturn revision;\r\n\t}",
"public String getRepositoryFileName() {\n return repositoryFileName;\n }",
"public interface GithubRepoCommentsRequst {\n @GET(\"/repos/{owner}/{repo}/comments\")\n List<Comment> getCommentsForRepo(@Path(\"owner\") String owner, @Path(\"repo\") String repo);\n}",
"public Integer getRecId() {\n return recId;\n }",
"public interface LookupsRepository extends MongoRepository<Lookup,String> {\n\n public Lookup findByTitle(String Guard);\n}",
"public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }",
"@Override\r\n\tpublic CrudRepository<SeatJunction, Integer> getRepo() {\n\t\treturn seatJunctionRepository;\r\n\t}",
"public interface UserInfoRepostory extends JpaRepository<UserInfo, String> {\n\n\tUserInfo findByOpenid(String openid);\n}",
"public synchronized Repository getRepository(String currentUser, String name)\n\t\t\tthrows UserAccessException {\n\n\t\tif (!isAnonymousUser(currentUser)) {\n\t\t\tvalidateUser(currentUser);\n\t\t}\n\n\t\tRepository rep = repositoryMap.get(name);\n\t\tif (rep != null) {\n\t\t\trep.validateReadPrivilege(currentUser);\n\t\t}\n\t\treturn rep;\n\t}",
"public Integer getRevision()\r\n {\r\n return (m_revision);\r\n }",
"public RepositoryItem getItem() {\n\t\t\treturn item;\n\t\t}",
"public interface TResourceContentCache extends LeCrudRepository<TResourceContent, Long> {\r\n}",
"protected String getRetrievalQuery()\n {\n return immutableGetRetrievalQuery();\n }"
]
| [
"0.7128849",
"0.65912527",
"0.645456",
"0.6440163",
"0.6307179",
"0.6307179",
"0.6305621",
"0.59846514",
"0.59427",
"0.5938978",
"0.59097934",
"0.5907365",
"0.59009933",
"0.58443624",
"0.58328587",
"0.58051693",
"0.5791317",
"0.5766635",
"0.57318056",
"0.57222915",
"0.5676272",
"0.5672643",
"0.5637867",
"0.56309915",
"0.55940175",
"0.55772996",
"0.5538396",
"0.5537328",
"0.552953",
"0.5510883",
"0.54821485",
"0.5480918",
"0.54700756",
"0.54609436",
"0.54476833",
"0.54443604",
"0.5433036",
"0.541837",
"0.54183435",
"0.540971",
"0.54038996",
"0.54031426",
"0.53772736",
"0.5372213",
"0.5350511",
"0.5315717",
"0.5312834",
"0.5291902",
"0.5289356",
"0.5282629",
"0.52764475",
"0.52714366",
"0.5266607",
"0.5265459",
"0.52652025",
"0.5260639",
"0.52510875",
"0.5251065",
"0.5250737",
"0.52208614",
"0.5220046",
"0.5214167",
"0.5205827",
"0.5197872",
"0.5190895",
"0.5187952",
"0.5186304",
"0.5178474",
"0.5176548",
"0.5176319",
"0.5173773",
"0.5169272",
"0.51605725",
"0.5152515",
"0.5151691",
"0.5150354",
"0.5136789",
"0.5135146",
"0.5134625",
"0.5133253",
"0.5131482",
"0.5127881",
"0.5127881",
"0.51242596",
"0.51220655",
"0.51139265",
"0.5109185",
"0.5106953",
"0.5101949",
"0.50919104",
"0.5083954",
"0.50838923",
"0.50799525",
"0.5078248",
"0.5074263",
"0.50690085",
"0.50561327",
"0.50544894",
"0.50525886",
"0.5049484"
]
| 0.72961986 | 0 |
indexed getter for repositoryRec gets an indexed value | public RepositoryRecType getRepositoryRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);
return (RepositoryRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"public abstract long getIndex();",
"StorableIndexInfo getIndexInfo();",
"abstract int get(int index);",
"abstract public Object getValue(int index);",
"public Object getValue(int index);",
"int get(int idx);",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"Nda<V> get( int i );",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public Expression getIndex()\n {\n return index;\n }",
"public T get(int aIndex);",
"public int getIndex() { return this.index; }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public abstract int getIndex();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return driverId;\n case 2: return carId;\n case 3: return state;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"E get( int index );",
"Expression getIndexExpr();",
"public Object get(int index);",
"public Object get(int index);",
"public int index();",
"Object get(int index);",
"Object get(int index);",
"public int get(int index);",
"public abstract T get(int index);",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public <U> U index() {\n return this.index;\n }",
"public int getIndexNumber(){\n return id;\r\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return author;\n case 1: return content;\n case 2: return timestamp;\n case 3: return location;\n case 4: return tags;\n case 5: return mentions;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return name;\n case 2: return sampleId;\n case 3: return variantSetIds;\n case 4: return created;\n case 5: return updated;\n case 6: return info;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public abstract int indexFor(Object obj);",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public IndexON getIndex() {\n return _index;\n }",
"Nda<V> getAt( int i );",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public int getValue() {\r\n return index;\r\n }",
"int getIndex() {\n\t\treturn index;\n\t}",
"public Object getProperty (String index) ;",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return rideid;\n case 1: return userid;\n case 2: return driverid;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Item get(int i);",
"public ATExpression base_indexExpression();",
"public int getIndex(\n )\n {return index;}",
"public int getIndex()\n {\n return index;\n }",
"@JsProperty(name = \"index\")\n\tnative int getNativeIndex();",
"public abstract E get(int index);",
"public Index getIndex() {\n return index;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public final int getIndex(){\n return index_;\n }",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kullaniciTur_id;\n case 1: return kullanici_adi;\n case 2: return kullanici_id;\n case 3: return kullanici_soyadi;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public Integer index() {\n return this.index;\n }",
"io.dstore.values.IntegerValue getSearchPersonTypeId();",
"public int getIndex() {\n return index;\n }",
"@java.lang.Override\n public int getIndex() {\n return index_;\n }",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public int get(int index) {\n return array[index];\n }",
"public int getIndex()\n {\n return index;\n }",
"public String getIndex() {\n return this.index;\n }",
"public Integer getIndex() {\n return index;\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}",
"public Object getValueAt(int index);",
"Nda<V> get( Number i );",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}"
]
| [
"0.6699744",
"0.63765705",
"0.63504523",
"0.6262587",
"0.62066716",
"0.6194351",
"0.61084723",
"0.6099446",
"0.6090753",
"0.6087525",
"0.604773",
"0.6046021",
"0.6046021",
"0.6046021",
"0.604013",
"0.60364",
"0.5997423",
"0.5981136",
"0.59779805",
"0.5939149",
"0.5932154",
"0.5932154",
"0.59301305",
"0.5919715",
"0.59124386",
"0.5911616",
"0.59102243",
"0.59102243",
"0.5906715",
"0.5894456",
"0.5894456",
"0.58936906",
"0.5883971",
"0.5876013",
"0.5876013",
"0.58733064",
"0.58690345",
"0.58686477",
"0.5867318",
"0.58667904",
"0.58617556",
"0.5850315",
"0.58459574",
"0.58433247",
"0.58274096",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5814665",
"0.5801739",
"0.5795466",
"0.57752174",
"0.57670105",
"0.57601756",
"0.5750854",
"0.5743984",
"0.5743517",
"0.5733451",
"0.5730972",
"0.5730725",
"0.57289475",
"0.5724856",
"0.57009214",
"0.57009214",
"0.57009214",
"0.57009214",
"0.57009214",
"0.56995773",
"0.56995773",
"0.56995773",
"0.5695723",
"0.5695723",
"0.5695723",
"0.569489",
"0.5694109",
"0.56926113",
"0.5687262",
"0.5665364",
"0.56651497",
"0.5657389",
"0.5642412",
"0.5642412",
"0.5636648",
"0.56349623",
"0.56337273",
"0.56312215",
"0.56311476",
"0.5628727",
"0.5621626",
"0.5620726",
"0.56103355"
]
| 0.60907483 | 9 |
getter for sourceRec gets | public FSArray getSourceRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getSource() {return source;}",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public SourceRecType getSourceRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);\n return (SourceRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i)));}",
"@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}",
"public String sourceField() {\n return this.sourceField;\n }",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public abstract Object getSource();",
"protected Source getSource() {\r\n return source;\r\n }",
"public Object getSourceReference() { return this._sourceRef; }",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() { return this.s; }",
"public Object getSource() {\n return source;\n }",
"@Override\n\tpublic EList<SourceRef> getSource() {\n\t\treturn adaptee.getSource();\n\t}",
"public String get_source() {\n\t\treturn source;\n\t}",
"public String getSource() {\n return this.source;\n }",
"public String getSource ();",
"public long getSource()\r\n { return src; }",
"Source getSrc();",
"public abstract Source getSource();",
"public String getSource() {\r\n return source;\r\n }",
"public String getSource() {\n return mSource;\n }",
"public String getSource() {\n return source;\n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}",
"public String getSource() {\r\n return Source;\r\n }",
"public abstract String getSource();",
"DatasetFileService getSource();",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public T getSource() {\n return source;\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"@Override\n public String getSource() {\n return this.src;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"public abstract T getSource();",
"java.lang.String getAssociatedSource();",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n }\n }",
"public String getSource();",
"public int getSource(){\r\n\t\treturn this.source;\r\n\t}",
"protected String getFromSource() {\n return sourceTable;\n }",
"java.lang.String getSource();",
"java.lang.String getSource();",
"java.lang.String getSrc();",
"String getSource();",
"public List<String> getSource() {\n return this.source;\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public URI getSource() {\n return source;\n }",
"public org.LexGrid.commonTypes.Source[] getSource() {\n return source;\n }",
"public String getSource() {\n\n return source;\n }",
"public NativeEntity getSourceEntity() \n\t{\n\treturn fSource;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getSource() {\n\t\treturn source;\n\t}",
"public java.lang.Object getSourceID() {\n return sourceID;\n }",
"public Optional<String> getSource() {\n\t\treturn Optional.ofNullable(_source);\n\t}",
"final RenderedImage getSource() {\n return sources[0];\n }",
"public Entity.ID getSourceID() {\n return sourceID;\n }",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public String getSource() {\n Object ref = source_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }",
"public OMCollection getSource() {\r\n return IServer.associationHasSource().dr(this).range();\r\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Object getSource()\n {\n return this;\n }",
"public Object getSource()\n {\n return this;\n }",
"public String getSource() {\n Object ref = source_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public T getObjSource() {\n return objSource;\n }",
"public Vertex getSource() {\n return source;\n }",
"public SourceElements getSourceAccess() {\n\t\treturn (pSource != null) ? pSource : (pSource = new SourceElements());\n\t}",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n source_ = s;\n return s;\n }\n }",
"public void setSourceRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public final ObservableList<? extends F> getSource() {\n return source;\n }",
"Type getSource();",
"public char[] getSource() {\n\t\treturn source;\n\t}",
"@Override\n public Vertex getSource() {\n return sourceVertex;\n }",
"public String getSouce() {\n\t\treturn source;\n\t}",
"public edu.umich.icpsr.ddi.FileTxtType.Source xgetSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_default_attribute_value(SOURCE$30);\n }\n return target;\n }\n }",
"public StrColumn getSource() {\n return delegate.getColumn(\"source\", DelegatingStrColumn::new);\n }",
"public String method_110() {\r\n String[] var10000 = field_5917;\r\n return \"FlatLevelSource\";\r\n }",
"public int getSourceResId() {\n return sourceResId;\n }",
"public Node getSource() {\n return this.source;\n }",
"public Class<?> getSource() {\r\n \t\treturn source;\r\n \t}",
"State getSource();",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public FVEventHandler getSrc() {\n\t\treturn src;\n\t}",
"public File getSource() {\n return source;\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public List<String> getSourceList() {\n return this.sourceList; \n }",
"Optional<String> getSource();",
"String getSourceID();",
"public edu.umich.icpsr.ddi.FileTxtType.Source.Enum getSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SOURCE$30);\n }\n if (target == null)\n {\n return null;\n }\n return (edu.umich.icpsr.ddi.FileTxtType.Source.Enum)target.getEnumValue();\n }\n }",
"@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }",
"public String getSource() {\n\t\treturn this.uri.toString();\n\t}",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"String getSrc();"
]
| [
"0.6997312",
"0.6871524",
"0.682278",
"0.6810714",
"0.68093634",
"0.6762419",
"0.6748618",
"0.67142344",
"0.6659936",
"0.6632461",
"0.6632461",
"0.65968335",
"0.6569231",
"0.6568603",
"0.6555643",
"0.6511462",
"0.6480966",
"0.64731205",
"0.6461585",
"0.64611614",
"0.6453715",
"0.6436583",
"0.6419757",
"0.6412467",
"0.64055884",
"0.64014345",
"0.6389181",
"0.638554",
"0.63801926",
"0.63554007",
"0.63551474",
"0.63506556",
"0.6342739",
"0.6342739",
"0.6342739",
"0.6337446",
"0.63282925",
"0.6326805",
"0.63209754",
"0.631577",
"0.63045937",
"0.63045144",
"0.6289364",
"0.6275025",
"0.6275025",
"0.6266491",
"0.62488675",
"0.62452483",
"0.62401867",
"0.6200676",
"0.61850816",
"0.61844826",
"0.6182503",
"0.6174576",
"0.61700356",
"0.6160972",
"0.6160199",
"0.6154301",
"0.6152036",
"0.6144936",
"0.6138531",
"0.6130033",
"0.6113763",
"0.6113763",
"0.6113141",
"0.6113141",
"0.6111845",
"0.6106335",
"0.6098976",
"0.60849315",
"0.6081835",
"0.6067557",
"0.6065581",
"0.6062243",
"0.60619515",
"0.6042234",
"0.60421896",
"0.60384864",
"0.6026119",
"0.6010761",
"0.59894484",
"0.59842014",
"0.5966059",
"0.5956312",
"0.5952045",
"0.5948584",
"0.5948584",
"0.59365803",
"0.5935397",
"0.5932875",
"0.5920086",
"0.5920086",
"0.5897895",
"0.5892933",
"0.5885532",
"0.5868974",
"0.585442",
"0.58505505",
"0.5850433",
"0.58485615"
]
| 0.7386607 | 0 |
Feature: lDSOrdRec indexed getter for sourceRec gets an indexed value | public SourceRecType getSourceRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);
return (SourceRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"@DISPID(-2147417088)\n @PropGet\n int sourceIndex();",
"public abstract int getSourceIndex(int index);",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public abstract long getIndex();",
"public IndexRecord getIndexRecord(int RecNo) {\n IndexRecord ir = new IndexRecord();\n if (RecNo >= 0) {\n return ir = indexArray[RecNo];\n } \n return ir;\n }",
"public FSArray getSourceRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec)));}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return ORDER_TYPE;\n case 1: return ORDER_DESCRIPTION;\n case 2: return OT_USAGE_IND;\n case 3: return OT_DFLT_LENGTH_CODE;\n case 4: return OT_DFLT_ROS_SR_IND;\n case 5: return OT_DFLT_UPFNT_SCAT_IND;\n case 6: return REVENUE_REPORT_IND;\n case 7: return REVENUE_DEFAULT_IND;\n case 8: return REVENUE_SEQUENCE;\n case 9: return INVALID_NORMAL_ORDERS;\n case 10: return ORDER_TYPES_ID;\n case 11: return OT_AVAIL_CACHE_IND;\n case 12: return SRC_KEY_VAL;\n case 13: return SRC_CDC_OPER_NM;\n case 14: return SRC_COMMIT_DT_UTC;\n case 15: return TRG_CRT_DT_PART_UTC;\n case 16: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return DEAL_PNT_FEAT_LN_ID;\n case 1: return LAST_MODIFIED_BY;\n case 2: return LAST_MODIFIED_DT;\n case 3: return CNCRNCY_VRSN;\n case 4: return DEAL_PNT_FEAT_ID;\n case 5: return FLIGHT_ID;\n case 6: return EXCLSVTY_TYP_ID;\n case 7: return OTLT_EXT_ID;\n case 8: return SLLNG_RTTN_ID;\n case 9: return DEAL_PNT_FEAT_LN_CMNT_TXT;\n case 10: return SRC_KEY_VAL;\n case 11: return SRC_CDC_OPER_NM;\n case 12: return SRC_COMMIT_DT_UTC;\n case 13: return TRG_CRT_DT_PART_UTC;\n case 14: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"public int getFieldIndex() { return _fldIndex; }",
"StorableIndexInfo getIndexInfo();",
"public native Record get(int pos) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordJS = self.get(pos);\r\n return recordJS == null || recordJS === undefined ? null : @com.smartgwt.client.data.Record::getOrCreateRef(Lcom/google/gwt/core/client/JavaScriptObject;)(recordJS);\r\n }-*/;",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return _2420DREF01ReferenceIdentificationQualifier;\n case 1: return _2420DREF02SupervisingProviderSecondaryIdentifier;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"int get(int idx);",
"io.dstore.values.IntegerValue getSortNo();",
"public int fieldIndex(String fld) { if (flds_lu.containsKey(fld)) return flds_lu.get(fld); else return -1; }",
"public Object getRecord(int key) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"short getKeyIx();",
"abstract int get(int index);",
"abstract public Object getValue(int index);",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return businessDocumentId;\n case 1: return containingParentId;\n case 2: return containingParentType;\n case 3: return containingParentLevel;\n case 4: return controlNumber;\n case 5: return controlNumberLevel1;\n case 6: return controlNumberLevel2;\n case 7: return contentKeys;\n case 8: return documentId;\n case 9: return documentStandard;\n case 10: return documentStandardVersion;\n case 11: return documentType;\n case 12: return envelopeVersion;\n case 13: return eventId;\n case 14: return eventTimestamp;\n case 15: return fileInfo;\n case 16: return introspectionSource;\n case 17: return introspectionType;\n case 18: return processId;\n case 19: return receiverAddress;\n case 20: return senderAddress;\n case 21: return sentDate;\n case 22: return sentTime;\n case 23: return taskId;\n case 24: return transactionId;\n case 25: return senderAddressEnvelopeLevel1;\n case 26: return receiverAddressEnvelopeLevel1;\n case 27: return functionalCodeEnvelopeLevel1;\n case 28: return senderAddressEnvelopeLevel2;\n case 29: return receiverAddressEnvelopeLevel2;\n case 30: return functionalCodeEnvelopeLevel2;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));}",
"public abstract int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public Comparable get( int index ) {\n \treturn _data[index]; }",
"public native int indexOf(Record record) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.indexOf([email protected]::getJsObj()());\r\n }-*/;",
"public abstract int indexFor(Object obj);",
"Expression getIndexExpr();",
"private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }",
"public int getLBR_DocLine_Details_ID();",
"java.lang.String getField1339();",
"E getData(int index);",
"public ATExpression base_indexExpression();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return kd_kelas;\n case 1: return hari_ke;\n case 2: return jam_mulai;\n case 3: return jam_selesai;\n case 4: return tgl_mulai_otomatis_buat_jadwal;\n case 5: return tgl_berakhir_otomatis_buat_jadwal;\n case 6: return aktif;\n case 7: return kd_mk;\n case 8: return nama_mk;\n case 9: return nama_kelas;\n case 10: return nama_hari;\n case 11: return ts_update;\n case 12: return kd_org;\n case 13: return thn;\n case 14: return term;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"Nda<V> get( int i );",
"java.lang.String getField1293();",
"java.lang.String getField1001();",
"java.lang.String getField1019();",
"java.lang.String getField1094();",
"public IndexON getIndex() {\n return _index;\n }",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public Object getValue(int index);",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: return fullPriceTableRef;\n case 8: return relatedIMEventMsg;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"Nda<V> getAt( List<?> key );",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return specificDiseaseTitle;\n case 1: return panelVersion;\n case 2: return ensemblVersion;\n case 3: return dataModelCatalogueVersion;\n case 4: return geneIds;\n case 5: return Transcripts;\n case 6: return relevantRegions;\n case 7: return clinicalRelevantVariants;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getField1169();",
"java.lang.String getField1073();",
"public int get(int rowIndex, int columnIndex) { return target.get(index.get(rowIndex), columnIndex); }",
"java.lang.String getField1193();",
"java.lang.String getField1084();",
"public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }",
"java.lang.String getField1093();",
"io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);",
"private int correspondingIndex(ObjectID oid, ObjectID[] id_seq_at_replica, int start)\r\n\t{\n\t\tint iadj = start;\r\n\t\tint index = -1;\r\n\t\twhile (index == -1) {\r\n\t\t\tindex = indexOf(id_seq_at_replica[iadj++]);\r\n\t\t}\r\n\t\treturn index;\r\n\t}",
"io.dstore.values.IntegerValue getOrderPersonId();",
"java.lang.String getField1273();",
"java.lang.String getField1194();",
"java.lang.String getField1098();",
"String getCursorRecAccessSql(String fieldName);",
"public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}",
"public int getRowIndex(T obj) {\r\n\t\tlogger.trace(\"Enter getRowIndex\");\r\n\t\tlogger.trace(\"Exit getRowIndex\");\r\n\t\treturn data.indexOf(obj);\r\n\t}",
"public T get(int aIndex);",
"java.lang.String getField1291();",
"java.lang.String getField1131();",
"java.lang.String getField1049();",
"java.lang.String getField1294();",
"java.lang.String getField1338();",
"java.lang.String getField1284();",
"java.lang.String getField1493();",
"Coverage getSource( int sourceDataIndex )\n throws IndexOutOfBoundsException;",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return shipmentId;\n case 1: return address;\n case 2: return shippingServiceOption;\n case 3: return trackingDetails;\n case 4: return recipientName;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getField1473();",
"java.lang.String getField1018();",
"java.lang.String getField1074();",
"int getSrcId(int index);",
"private int getFieldId(VectorAccessible accessible, LogicalExpression expr) {\n return getFieldIds(accessible, expr)[0];\n }",
"java.lang.String getField1051();",
"java.lang.String getField1391();",
"java.lang.String getField1184();",
"java.lang.String getField1491();",
"java.lang.String getField1393();",
"java.lang.String getField1091();",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return BUS_UNIT;\n case 1: return DESCRIPTION;\n case 2: return BASE_CURRENCY_ID;\n case 3: return IMPLEMENT_FX;\n case 4: return BUS_UNIT_ID;\n case 5: return CL_APPROVAL;\n case 6: return CL_MAIL_GROUP;\n case 7: return AUTO_RECEIPT_APPL;\n case 8: return ADDRESS_IND;\n case 9: return ALLOW_MISC_INV_CREATION;\n case 10: return ALLOW_ABC_REV_SPLIT_TO_RUN;\n case 11: return ALLOW_MTM_TO_RUN;\n case 12: return GLPOST_DETAILS;\n case 13: return GL_INTERFACE;\n case 14: return ALLOW_AIS_UNBILLED_TO_RUN;\n case 15: return SRC_KEY_VAL;\n case 16: return SRC_CDC_OPER_NM;\n case 17: return SRC_COMMIT_DT_UTC;\n case 18: return TRG_CRT_DT_PART_UTC;\n case 19: return SRC_SCHEMA_NM;\n default: throw new IndexOutOfBoundsException(\"Invalid index: \" + field$);\n }\n }",
"public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}",
"java.lang.String getField1337();"
]
| [
"0.610772",
"0.6055",
"0.5818924",
"0.566941",
"0.56395316",
"0.55989915",
"0.55908585",
"0.5573585",
"0.55010706",
"0.54633236",
"0.5380102",
"0.5368563",
"0.5364194",
"0.53561616",
"0.5331001",
"0.532223",
"0.52962434",
"0.52771926",
"0.52611",
"0.52504957",
"0.52435994",
"0.5242733",
"0.5236154",
"0.5233043",
"0.5229111",
"0.5229111",
"0.5229111",
"0.5222559",
"0.52157664",
"0.5209445",
"0.5204355",
"0.51913095",
"0.5186456",
"0.51737905",
"0.516852",
"0.5161943",
"0.515547",
"0.51426435",
"0.5139112",
"0.51350677",
"0.5133729",
"0.51137346",
"0.5111152",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51109624",
"0.51097125",
"0.510782",
"0.51077616",
"0.5106763",
"0.51027477",
"0.5101004",
"0.5099423",
"0.50983936",
"0.5094808",
"0.509295",
"0.5088869",
"0.50850403",
"0.5084134",
"0.50819206",
"0.50784326",
"0.5076676",
"0.50737214",
"0.5070366",
"0.5069308",
"0.5066158",
"0.5064124",
"0.50636786",
"0.5058536",
"0.5058065",
"0.50576067",
"0.5056825",
"0.5055477",
"0.50553524",
"0.5055335",
"0.50553274",
"0.5052752",
"0.5051235",
"0.5048966",
"0.504826",
"0.5047667",
"0.5047544",
"0.50466",
"0.5043099",
"0.5039749",
"0.5039143",
"0.5036798",
"0.50333154",
"0.5033201",
"0.5032495"
]
| 0.5949867 | 2 |
Write your own initialization here | private void readObject() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\n \n }",
"private void init() {\n\n\t}",
"private void init() {\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"protected void init() {\n // to override and use this method\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public void init() {\n\t\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"public void init() {\r\n\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"public void init() {}",
"public void init() {}",
"public void init() {\n\t\n\t}",
"protected void init() {\n }",
"protected void initialize() {\n \t\n }",
"public void init(){\n \n }",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public void init() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"public static void init() {\n\t\t\n\t}",
"protected void init() {\n\t}",
"protected void init() {\n\t}",
"private void init() {\n\n\n\n }",
"public static void init() {}",
"public static void init() {\n\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"public static void init() {\n }",
"public static void init() {\n }",
"static void init() {}",
"private void initialize() {\n }",
"public void initialize()\n {\n }",
"protected void _init(){}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n public void init() {\n }",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"protected void initialize() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() { }",
"public void init() { }",
"public void init(){}",
"private void initialize() {\n\t\t\n\t}",
"protected void init(){\n }",
"private void initialize() {\n\t}",
"@Override\n void init() {\n }",
"protected void initialize() {\r\n }",
"protected void initialize() {\r\n }",
"protected void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"private void _init() {\n }",
"@Override\n public void init() {\n }",
"protected void initialize()\r\n {\n }",
"@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}",
"@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}",
"@Override\n public void initialize() {\n \n }",
"public void initialize() {\n // empty for now\n }"
]
| [
"0.8046896",
"0.8013116",
"0.79832983",
"0.79692423",
"0.79692423",
"0.7965268",
"0.7936825",
"0.7915556",
"0.7915556",
"0.7915556",
"0.7915556",
"0.7907737",
"0.78831923",
"0.7881762",
"0.78815913",
"0.78537464",
"0.78494436",
"0.78494436",
"0.78494436",
"0.7838897",
"0.783607",
"0.781946",
"0.781946",
"0.77926713",
"0.778402",
"0.7782594",
"0.77712184",
"0.77644217",
"0.77539265",
"0.77539265",
"0.77539265",
"0.77333826",
"0.77273864",
"0.7726864",
"0.7720509",
"0.7720509",
"0.7708423",
"0.7700047",
"0.7683682",
"0.76666456",
"0.76666456",
"0.76666456",
"0.7666155",
"0.76653486",
"0.76653486",
"0.765256",
"0.76485604",
"0.7645808",
"0.76431537",
"0.7641323",
"0.7629542",
"0.762739",
"0.762739",
"0.762739",
"0.76175815",
"0.76093626",
"0.76093626",
"0.76093626",
"0.76093626",
"0.76093626",
"0.76087177",
"0.76087177",
"0.76087177",
"0.76087177",
"0.76074785",
"0.76074785",
"0.76023656",
"0.7600544",
"0.75923634",
"0.75866276",
"0.7570912",
"0.75643367",
"0.75643367",
"0.7561889",
"0.7561889",
"0.7558878",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7539409",
"0.7537246",
"0.7531707",
"0.7530192",
"0.7525512",
"0.7522468",
"0.7507059",
"0.7507032"
]
| 0.0 | -1 |
setter for contactRec sets | public void setContactRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NoProxy\n public void setContact(final BwContact val) {\n Set<BwContact> c = getContacts();\n if ((c != null) && (!c.isEmpty())) {\n c.clear();\n }\n\n if (val != null) {\n addContact(val);\n }\n }",
"protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = contacts;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }",
"public void setContactRec(int i, ContactRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n\tpublic void setValue(String setContactValue) {\n\n\t}",
"public void setABContact(entity.ABContact value);",
"public void setAllContactId(final String val) {\n if (Util.checkNull(val) != null) {\n ctctId.setA(val);\n }\n }",
"public void setContacts(String contacts) {\n this.contacts = contacts == null ? null : contacts.trim();\n }",
"public void setContact(Contact contact) {\n this.contact = contact;\n }",
"public void setContact(Contact contact) {\n this.contact = contact;\n }",
"public void setContact(org.hl7.fhir.Contact contact)\n {\n generatedSetterHelperImpl(contact, CONTACT$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"void set(Contact contact) {\n this.x = contact.x;\n this.y = contact.y;\n this.normalx = contact.normalx;\n this.normaly = contact.normaly;\n separation = contact.separation;\n accumulatedNormalImpulse = contact.accumulatedNormalImpulse;\n accumulatedTangentImpulse = contact.accumulatedTangentImpulse;\n massNormal = contact.massNormal;\n massTangent = contact.massTangent;\n bias = contact.bias;\n restitution = contact.restitution;\n\n inEdge1 = contact.inEdge1;\n outEdge1 = contact.outEdge1;\n inEdge2 = contact.inEdge2;\n outEdge2 = contact.outEdge2;\n }",
"public void setFamilyRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }",
"public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }",
"public void assignAddingContact(final boolean val) {\n addingContact = val;\n }",
"public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }",
"void setList(ArrayList<UserContactInfo> contactDeatailsList);",
"public Builder setContact(kr.pik.message.Profile.Contact value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contact_ = value.getNumber();\n onChanged();\n return this;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContactUid(final String val) {\n contactUid = val;\n }",
"public void setSelectedContactDTO(ContactDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"selectedContact\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"selectedContact\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"selectedContact\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setSelectedContactDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setContactRole(typekey.APDExposureContactRole value);",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"public Builder setContactValue(int value) {\n contact_ = value;\n onChanged();\n return this;\n }",
"public void setContact(com.vmware.converter.DVSContactInfo contact) {\r\n this.contact = contact;\r\n }",
"public void setOtherContacts(long[] contactIds) {\n\t\tcontactIdsArray = contactIds;\n\t}",
"public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setFamilyRec(int i, FamilyRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setInterpretedBy(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}",
"public void setContact(String contact) {\n\t\tthis.contact = contact;\n\t}",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setContact(String contact) {\r\n this.contact = contact.trim();\r\n }",
"private void setPeopleFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t// Set the contact id\n\t\tselectedColumn = cur.getColumnIndex(RawContacts._ID);\n\t\tlong nid = cur.getLong(selectedColumn);\n\t\t_id = String.valueOf(nid);\n\n\t\t// TODO: note and birthday\n\t\t// selectedColumn = cur.getColumnIndex(Contacts.People.NOTES);\n\t\t// notes = cur.getString(selectedColumn);\n\t\t// if (notes != null) {\n\t\t// Matcher ppm = birthdayPattern.matcher(notes);\n\t\t//\n\t\t// if (ppm.find()) {\n\t\t// birthday = ppm.group(1);\n\t\t// notes = ppm.replaceFirst(\"\");\n\t\t// }\n\t\t// }\n\t}",
"public void setTxtrShowContactsHere(String contacts);",
"public void setContact(String email){ contact = email; }",
"public synchronized void setContactInfo(final Contact newValue) {\n checkWritePermission();\n contactInfo = newValue;\n }",
"public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }",
"public void setIndividualRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n public void onChanged(@Nullable final Contact contactFromDb) {\n contact = contactFromDb;\n notifyContactChanged();\n }",
"public void setSubcontact(java.lang.String value);",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"public void setPrimaryContact(String contact);",
"public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }",
"public void setEventRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setContact(String contact) {\n this.contact = contact == null ? null : contact.trim();\n }",
"public void setContactPosition(String contactPosition) {\n this.contactPosition = contactPosition;\n }",
"public void setContactPhone(String contactPhone) {\n this.contactPhone = contactPhone;\n }",
"public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }",
"public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }",
"void resetData(ReadOnlyAddressBook newData);",
"public void setSourceRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setEncodedBy(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}",
"public Builder setContact(com.polytech.spik.protocol.SpikMessages.Contact value) {\n if (contactBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n type_ = value;\n onChanged();\n } else {\n contactBuilder_.setMessage(value);\n }\n typeCase_ = 1;\n return this;\n }",
"public void setContactCommunication(Collection<ContactCommunication> contactCommunication){\r\n\t\tthis.contactCommunication = contactCommunication;\r\n\t}",
"@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}",
"public void setContactPerson(String newValue) {\n String oldValue = _contactPerson;\n if (!oldValue.equals(newValue)) {\n _contactPerson = newValue;\n firePropertyChange(CONTACT_PERSON_PROP, oldValue, newValue);\n }\n }",
"public void SetRecord(int index, Record rec){\n\t}",
"public Builder setContact(\n com.polytech.spik.protocol.SpikMessages.Contact.Builder builderForValue) {\n if (contactBuilder_ == null) {\n type_ = builderForValue.build();\n onChanged();\n } else {\n contactBuilder_.setMessage(builderForValue.build());\n }\n typeCase_ = 1;\n return this;\n }",
"@Override\n\tpublic Set<Contact> getContacts(){\n\t\treturn contacts;\n\t}",
"public abstract void setPhone1(String sValue);",
"private void setContactHeaders(\n \t\t\tfinal List<String> contactHeaderSet,\n \t\t\tfinal SipServletRequestImpl newSipServletRequest,\n \t\t\tContactHeader contactHeader) throws ParseException {\n \t\t// we parse and add the contact headers defined in the map\n \t\tRequest newRequest = (Request) newSipServletRequest.getMessage();\n \t\tfor (String contactHeaderValue : contactHeaderSet) {\n \t\t\tnewSipServletRequest.addHeaderInternal(ContactHeader.NAME, contactHeaderValue, true);\n \t\t}\n \t\t// we set up a list of contact headers to be added to the request\n \t\tList<ContactHeader> newContactHeaders = new ArrayList<ContactHeader>();\n \t\t\n \t\tListIterator<ContactHeader> contactHeaders = newRequest.getHeaders(ContactHeader.NAME);\n \t\twhile (contactHeaders.hasNext()) {\n \t\t\t// we clone the default Mobicents Sip Servlets Contact Header\n \t\t\tContactHeader newContactHeader = (ContactHeader) contactHeader.clone();\n \t\t\t\n \t\t\tContactHeader newRequestContactHeader = contactHeaders.next();\n \t\t\tfinal URI newURI = newRequestContactHeader.getAddress().getURI();\n \t\t\tnewContactHeader.getAddress().setDisplayName(newRequestContactHeader.getAddress().getDisplayName());\n \t\t\t// and reset its user part and params accoridng to 4.1.3 The Contact Header Field\n \t\t\tif(newURI instanceof SipURI) {\n \t\t\t\tSipURI newSipURI = (SipURI) newURI;\n \t\t\t\tSipURI newContactSipURI = (SipURI) newContactHeader.getAddress().getURI();\n \t\t\t\t((SipURI)newContactHeader.getAddress().getURI()).setUser(newSipURI.getUser());\t\t\t\t\t\t\t\t\n \t\t\t\tIterator<String> uriParameters = newSipURI.getParameterNames();\n \t\t\t\twhile (uriParameters.hasNext()) {\n \t\t\t\t\tString parameter = uriParameters.next();\n \t\t\t\t\tif(!CONTACT_FORBIDDEN_PARAMETER.contains(parameter)) {\n \t\t\t\t\t\tString value = newSipURI.getParameter(parameter);\n \t\t\t\t\t\tnewContactSipURI.setParameter(parameter, \"\".equals(value) ? null : value);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// reset the header params according to 4.1.3 The Contact Header Field\n \t\t\tIterator<String> headerParameters = newRequestContactHeader.getParameterNames();\n \t\t\twhile (headerParameters.hasNext()) {\n \t\t\t\tString parameter = headerParameters.next();\n \t\t\t\tString value = newRequestContactHeader.getParameter(parameter);\n \t\t\t\tnewContactHeader.setParameter(parameter, \"\".equals(value) ? null : value);\n \t\t\t}\n \t\t\tnewContactHeaders.add(newContactHeader);\n \t\t}\n \t\t// we remove the previously added contact headers\n \t\tnewRequest.removeHeader(ContactHeader.NAME);\t\n \t\t// and set the new correct ones\n \t\tfor (ContactHeader newContactHeader : newContactHeaders) {\n \t\t\tnewRequest.addHeader(newContactHeader);\n \t\t}\n \t}",
"public Builder clearContact() {\n \n contact_ = 0;\n onChanged();\n return this;\n }",
"private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}",
"protected void setKids(ArrayList<Contact> kids){\n this.kids = kids;\n }",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"public void setContactTel(String contactTel) {\n this.contactTel = contactTel == null ? null : contactTel.trim();\n }",
"@Override\r\n\tpublic void updateContact(Contact contact) {\n\t\tsuper.update(contact);\r\n\t}",
"public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }",
"public void setContactInfo(ContactInfo contactInfo) {\n\n this.contactInfo = contactInfo;\n this.needToSave = Boolean.TRUE;\n }",
"@Override\n public void onChanged(List<Contact> contacts) {\n adapter.setContacts(contacts);\n }",
"public void setMailReadflag(int v) \n {\n \n if (this.mailReadflag != v)\n {\n this.mailReadflag = v;\n setModified(true);\n }\n \n \n }",
"public abstract void setPhone2(String sValue);",
"public Builder addAllContact(\n java.lang.Iterable<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> values) {\n if (contactBuilder_ == null) {\n ensureContactIsMutable();\n super.addAll(values, contact_);\n onChanged();\n } else {\n contactBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public boolean setRacun(Racun racun){ // info da li je racun postavljen uspesno\n if(this.racun!=null){\n System.out.println(\"za osobu \"+this.ime+ \" je vec registrovan racun.\");\n return false;\n }\n this.racun=racun; //this->return\n return true;\n }",
"public void setUserContact(String userContact) {\r\n this.userContact = userContact;\r\n }",
"public void setContactPhoneNumber(java.lang.String contactPhoneNumber)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTPHONENUMBER$0);\r\n }\r\n target.setStringValue(contactPhoneNumber);\r\n }\r\n }",
"public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }",
"public void setGroupRec(int i, GroupRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public String getContact() {\r\n return this.contact;\r\n }",
"public Builder setContact(\n int index, org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact value) {\n if (contactBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactIsMutable();\n contact_.set(index, value);\n onChanged();\n } else {\n contactBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void setContactWay(Integer contactWay) {\n this.contactWay = contactWay;\n }",
"public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }",
"public void setConductor(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), CONDUCTOR, value);\r\n\t}",
"public void setContactFilter(Filter filter);",
"public void set (int r, int c, Student value) {\r\n\t\t// sets the given value to the item at row r, column c for field s1\r\n\t\ts1[r*cols+c] = value;\r\n\t\t// sets the given value to the item at row r, column c for field s2\r\n\t\ts2[r][c] = value;\r\n\t\t// sets the given value to the item at row r, column c for field s3\r\n\t\ts3.set(r*cols+c, value);\r\n\t\t// sets the given value to the item at row r, column c for field s4\r\n\t\ts4.get(r).set(c, value);\r\n\t}",
"public abstract void setPhone3(String sValue);",
"public FSArray getContactRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));}",
"void setPhone(int phone);",
"public void setIndividualRec(int i, IndividualRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setComposer(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), COMPOSER, value);\r\n\t}",
"public void setEventRec(int i, EventRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void updateContact(View v){\n\n receivedPersonInfo.name = nameField.getText().toString();\n receivedPersonInfo.address = addressField.getText().toString();\n receivedPersonInfo.business = primbusiness.getItemAtPosition(primbusiness.getSelectedItemPosition()).toString();\n receivedPersonInfo.province = province.getItemAtPosition(province.getSelectedItemPosition()).toString();\n receivedPersonInfo.toMap(); // update hash\n appState.firebaseReference.child(receivedPersonInfo.uid).setValue(receivedPersonInfo);\n }",
"public void setSourceRec(int i, SourceRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);",
"void setRecensione(String recensione);",
"public String getContacts() {\n return contacts;\n }"
]
| [
"0.68528366",
"0.67955214",
"0.66399705",
"0.66039324",
"0.65056205",
"0.6454203",
"0.62513554",
"0.61455125",
"0.6018255",
"0.6018255",
"0.5940031",
"0.5923024",
"0.58422357",
"0.5820748",
"0.5759957",
"0.5732963",
"0.57231504",
"0.56931424",
"0.56480926",
"0.5601903",
"0.5601903",
"0.5601903",
"0.5601903",
"0.5586494",
"0.55862474",
"0.55645615",
"0.5558075",
"0.55281967",
"0.5522688",
"0.5513278",
"0.5483933",
"0.54691243",
"0.54663634",
"0.54574573",
"0.54299796",
"0.54258186",
"0.5418296",
"0.540402",
"0.5381002",
"0.53744584",
"0.536674",
"0.5345022",
"0.53366464",
"0.53033954",
"0.5284419",
"0.5274898",
"0.5271872",
"0.52633107",
"0.5260526",
"0.5249846",
"0.5244271",
"0.52393764",
"0.52238744",
"0.5223495",
"0.5220809",
"0.52186877",
"0.52139723",
"0.5210812",
"0.52038664",
"0.5189281",
"0.5185988",
"0.5166361",
"0.51636124",
"0.5156371",
"0.51466477",
"0.51363957",
"0.51141953",
"0.5100783",
"0.50956655",
"0.50876534",
"0.5087075",
"0.50776523",
"0.5077067",
"0.50758797",
"0.50695145",
"0.5051161",
"0.50474364",
"0.5046243",
"0.5034239",
"0.502827",
"0.50216365",
"0.5012771",
"0.5005279",
"0.4999503",
"0.49953413",
"0.49929872",
"0.49826106",
"0.49791017",
"0.49759686",
"0.49727756",
"0.4966255",
"0.49599674",
"0.49598524",
"0.49441013",
"0.49316254",
"0.49120983",
"0.490855",
"0.4901386",
"0.489011",
"0.48857087"
]
| 0.7318608 | 0 |
Feature: contactRec indexed setter for contactRec sets an indexed value | public void setContactRec(int i, ContactRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void setABContact(entity.ABContact value);",
"@Override\n\tpublic void setValue(String setContactValue) {\n\n\t}",
"public void set(long index);",
"public Builder setContact(\n int index, org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact value) {\n if (contactBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactIsMutable();\n contact_.set(index, value);\n onChanged();\n } else {\n contactBuilder_.setMessage(index, value);\n }\n return this;\n }",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"public void setContactRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));}",
"void set(int idx, int val);",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"@NoProxy\n public void setContact(final BwContact val) {\n Set<BwContact> c = getContacts();\n if ((c != null) && (!c.isEmpty())) {\n c.clear();\n }\n\n if (val != null) {\n addContact(val);\n }\n }",
"void setRef(int index, Ref value) throws SQLException;",
"public Builder setContact(\n int index, org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact.Builder builderForValue) {\n if (contactBuilder_ == null) {\n ensureContactIsMutable();\n contact_.set(index, builderForValue.build());\n onChanged();\n } else {\n contactBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"void setIdx(int i);",
"public void setElementAt(Object obj, int index);",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"public Builder setContactValue(int value) {\n contact_ = value;\n onChanged();\n return this;\n }",
"public void setIndexedVariable() {\n indexed = true;\n }",
"void set(int index, Object element);",
"public abstract <T> void set(int index, T value);",
"void set(int index, T data);",
"public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact value) {\n if (contactListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactListIsMutable();\n contactList_.set(index, value);\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact value) {\n if (contactListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactListIsMutable();\n contactList_.set(index, value);\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact value) {\n if (contactListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactListIsMutable();\n contactList_.set(index, value);\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact value) {\n if (contactListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactListIsMutable();\n contactList_.set(index, value);\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}",
"public void setPrimaryContact(String contact);",
"public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }",
"public abstract E set(int index, E e);",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = contacts;\n }",
"public void setIndividualRec(int i, IndividualRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public int getIndex() {\r\n\t\treturn personToContact;\r\n\t}",
"void setObject(int index, Object value) throws SQLException;",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"public synchronized void setContactInfo(final Contact newValue) {\n checkWritePermission();\n contactInfo = newValue;\n }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"void setArray(int index, Array value) throws SQLException;",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"BinaryArrayReadWrite set(int index, byte x);",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"public void setIndex(int index) { this.index = index; }",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"public static native void SetAt(long lpjFbxArrayVector2, int pIndex, long pElement);",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"public void setFamilyRec(int i, FamilyRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public E set(int index, E element);",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void setContact(Contact contact) {\n this.contact = contact;\n }",
"public void setContact(Contact contact) {\n this.contact = contact;\n }",
"public abstract void setIndex(int i, boolean b);",
"public void setAllContactId(final String val) {\n if (Util.checkNull(val) != null) {\n ctctId.setA(val);\n }\n }",
"@Override\n\tpublic void update(Contact contact) throws Exception {\n\t\tObject[] params = contact.toEditArray();\n\t\tparams = ArrayUtils.add(params, contact.getId());\n\t\tupdate(\"update contact set customer=?, gender=?, age=?, position=?, phone=?, relation=? where id = ?\",\n\t\t\t\tparams);\n\t}",
"public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"protected synchronized void overrideEntityIndex(String entity, int index) { ent_2_i.put(entity,index); }",
"public void setContactPosition(String contactPosition) {\n this.contactPosition = contactPosition;\n }",
"public int getContactValue() {\n return contact_;\n }",
"void setContactMeansArray(int i, org.apache.xmlbeans.XmlObject contactMeans);",
"public abstract void updateIndex();",
"@Override\r\n\tpublic void updateContact(Contact contact) {\n\t\tsuper.update(contact);\r\n\t}",
"private void setFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.set(index, value);\n }",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"public void setTargetValue(int idx, Object value);",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public void setContactRole(typekey.APDExposureContactRole value);",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"void setInt(int index, int value) throws SQLException;",
"public void setInterpretedBy(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"public void setContact(org.hl7.fhir.Contact contact)\n {\n generatedSetterHelperImpl(contact, CONTACT$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"public void setContact(String contact) {\n this.contact = contact;\n }",
"@Override\n\t\tpublic Community set(int index, Community element) {\n\t\t\treturn null;\n\t\t}",
"public void setEventRec(int i, EventRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact.Builder builderForValue) {\n if (contactListBuilder_ == null) {\n ensureContactListIsMutable();\n contactList_.set(index, builderForValue.build());\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact.Builder builderForValue) {\n if (contactListBuilder_ == null) {\n ensureContactListIsMutable();\n contactList_.set(index, builderForValue.build());\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setContactList(\n int index, com.ubtrobot.phone.PhoneCall.Contact.Builder builderForValue) {\n if (contactListBuilder_ == null) {\n ensureContactListIsMutable();\n contactList_.set(index, builderForValue.build());\n onChanged();\n } else {\n contactListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }"
]
| [
"0.6680044",
"0.6654548",
"0.6177304",
"0.6119076",
"0.6045356",
"0.6024012",
"0.59170705",
"0.59170705",
"0.58904296",
"0.58676183",
"0.5838935",
"0.578222",
"0.5775439",
"0.5770135",
"0.5755457",
"0.5753623",
"0.5739284",
"0.5718584",
"0.5662755",
"0.5661926",
"0.56577325",
"0.563498",
"0.56302005",
"0.5615583",
"0.56111026",
"0.5575898",
"0.5575478",
"0.5575478",
"0.5575478",
"0.5575478",
"0.55734",
"0.5552894",
"0.5544477",
"0.5543217",
"0.5531692",
"0.5523789",
"0.5523366",
"0.55202115",
"0.55113",
"0.55109024",
"0.54980516",
"0.54613036",
"0.5458845",
"0.5453567",
"0.5450929",
"0.54502046",
"0.54431677",
"0.5438536",
"0.5433604",
"0.54243386",
"0.54194397",
"0.5419045",
"0.54080176",
"0.54025555",
"0.5397404",
"0.53961873",
"0.53956896",
"0.5390915",
"0.53897494",
"0.5381628",
"0.53498477",
"0.53498477",
"0.53493035",
"0.53430796",
"0.5336511",
"0.5335579",
"0.53320813",
"0.5326811",
"0.532668",
"0.5321351",
"0.53071314",
"0.5300313",
"0.5289033",
"0.5275313",
"0.52750117",
"0.52663237",
"0.5263319",
"0.5258891",
"0.5256133",
"0.5251759",
"0.52306026",
"0.52216494",
"0.5220311",
"0.52144724",
"0.5213648",
"0.5201064",
"0.52004194",
"0.5189306",
"0.5189306",
"0.5189306",
"0.5189306",
"0.5181816",
"0.51712686",
"0.517031",
"0.5167941",
"0.5167941",
"0.5166405",
"0.51621324",
"0.51621324",
"0.51621324"
]
| 0.6437619 | 2 |
setter for eventRec sets | public void setEventRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEventRec(int i, EventRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setReceiveEvent(EventOccurrence receiveEvent);",
"public void assignEventDates(EventDates val) {\n eventDates = val;\n }",
"@Override\n\tpublic void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}",
"public abstract void setEvents(Map<String, Event> events);",
"void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);",
"public void setEventKey(final EventKey val) {\n eventKey = val;\n }",
"public void setValue(T r) {\n\t\tthis.r = r;\n\t\t// needToNotify = false;\n\t\tmController.onRecordModified(this);\n\t}",
"private void set(){\n resetBuffer();\n }",
"@Override\n\tpublic void setEvent(java.lang.String event) {\n\t\t_dlSyncEvent.setEvent(event);\n\t}",
"private void setEventType(String eventType)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.eventType = eventType;\n\t}",
"public void setEvents(final SessionContext ctx, final Collection<SapEvent> value)\n\t{\n\t\tEVENTSHANDLER.setValues( ctx, this, value );\n\t}",
"public void assignSavedEvent(final BwEvent val) {\n savedEvent = val;\n }",
"public void assignAddingEvent(final boolean val) {\n addingEvent = val;\n }",
"public void setEventSeq(String eventSeq) {\r\n\t\tthis.eventSeq = eventSeq;\r\n\t}",
"@NoProxy\n @NoWrap\n public void setOverrides(final Collection<BwEventAnnotation> val) {\n overrides = val;\n }",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"public void setSendEvent(EventOccurrence sendEvent);",
"private void setEventThread() {\n setEventThread(Thread.currentThread());\n }",
"public void setEvent(String event) {\r\n\t\tthis.event = event;\r\n\t}",
"@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}",
"public void setEventName(String name);",
"@Override\n\tpublic void set(T e) {\n\t\t\n\t}",
"public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }",
"public void setEvent(String event) {\n this.event = event;\n }",
"public void setEvents(AbstractList<Event> events) {\r\n\t\tthis.events = (ArrayList<Event>) events;\r\n\t}",
"protected abstract void regEvent(boolean regEvent);",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"public void setLastChangedEvent(MultiTouchCursorEvent lastChangedEvent) {\r\n\t\tthis.lastChangedEvent = lastChangedEvent;\r\n\t}",
"@JsonSetter(\"event\")\r\n public void setEvent (String value) { \r\n this.event = value;\r\n }",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.VALARM,\n jname = \"alarm\",\n adderName = \"alarm\",\n eventProperty = true,\n todoProperty = true)\n public void setAlarms(final Set<BwAlarm> val) {\n alarms = val;\n }",
"private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}",
"private void setEventDescription(String eventDescription)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.eventDescription = eventDescription;\n\t}",
"void setPassedHabitEvent(HabitEvent passedHabitEvent);",
"public void assignAlertEvent(final boolean val) {\n alertEvent = val;\n }",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }",
"@ReactMethod\n public void setInvocationEvents(final ReadableArray invocationEventValues) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n final ArrayList<String> keys = ArrayUtil.parseReadableArrayOfStrings(invocationEventValues);\n final ArrayList<InstabugInvocationEvent> parsedInvocationEvents = ArgsRegistry.invocationEvents.getAll(keys);\n BugReporting.setInvocationEvents(parsedInvocationEvents.toArray(new InstabugInvocationEvent[0]));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"public void setEvents(final Collection<SapEvent> value)\n\t{\n\t\tsetEvents( getSession().getSessionContext(), value );\n\t}",
"void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}",
"@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}",
"public void controlEvent(ControlEvent theEvent) {\n\n\n\n if (theEvent.isGroup()) {\n // an event from a group e.g. scrollList\n println(theEvent.group().value()+\" from \"+theEvent.group());\n }\n \n if(theEvent.isFrom(r)) {\n print(\"got an event from \"+theEvent.getName()+\"\\t\");\n for(int i=0;i<theEvent.getGroup().getArrayValue().length;i++) {\n print(PApplet.parseInt(theEvent.getGroup().getArrayValue()[i]));\n }\n println(\"\\t \"+theEvent.getValue());\n mode = theEvent.getValue();\n }\n\n if(theEvent.isFrom(s)) {\n print(\"got an event from \"+theEvent.getName()+\"\\t\");\n for(int i=0;i<theEvent.getGroup().getArrayValue().length;i++) {\n print(PApplet.parseInt(theEvent.getGroup().getArrayValue()[i]));\n }\n println(\"\\t \"+theEvent.getValue());\n soundmodevar = theEvent.getValue();\n }\n\n}",
"public boolean setEventsEnabled(boolean enabled);",
"private void setListeners() {\n\n }",
"@Test\n public void testSetEbXmlEventListener() {\n System.out.println(\"setEbXmlEventListener\");\n instance.setEbXmlEventListener(ebXmlEventListener);\n }",
"public void setEvent(@NonNull EventModel event) {\n mEvent = event;\n mSwitchAllDay.setChecked(event.isAllDay());\n setCalendarId(mEvent.getCalendarId());\n setDate(true);\n setDate(false);\n setTime(true);\n setTime(false);\n }",
"protected void setReceiveMessage(byte[] rmsg)\n\t{\n\t\t//#CM29519\n\t\t// Sets data to communication message buffer\n\t\tfor (int i=0; i < LEN_ID27; i++)\n\t\t{\n\t\t\twLocalBuffer[i] = rmsg[i] ;\n\t\t}\n\t\twDataBuffer = wLocalBuffer ;\n\t}",
"public void setEvents(Event[] event) {\n\n setEventID(event[0].getEventID());\n\n //Store keys as EventID for later use to put it all in order\n Map<String, ArrayList<Event>> listMap = new HashMap<>();\n\n for (int i = 0; i < event.length; i++) {\n\n events.put(event[i].getEventID(), event[i]);\n eventTypes.add(event[i].getEventType().toLowerCase());\n\n if(!listMap.containsKey(event[i].getPersonID())) {\n ArrayList<Event> newEventList = new ArrayList<>();\n listMap.put(event[i].getPersonID(), newEventList);\n }\n listMap.get(event[i].getPersonID()).add(event[i]);\n }\n\n // Chronologically order for events\n for (String key : listMap.keySet()) {\n Set birthSet = new HashSet<>(); // birth events come first\n Set deathSet = new HashSet<>(); // death events come last (obviously)\n ArrayList<Event> eventList = new ArrayList<Event>();\n\n // Adding events in chronological order based on events\n for(int i = 0; i < listMap.get(key).size(); i++) {\n Event currEvent = listMap.get(key).get(i);\n\n if(currEvent.getEventType().toLowerCase().equals(\"birth\")) {\n birthSet.add(currEvent);\n } else if (currEvent.getEventType().toLowerCase().equals(\"death\")) {\n deathSet.add(currEvent);\n } else { // get events by year and sort them\n if(eventList.size() > 0) {\n if (currEvent.getYear() < eventList.get(0).getYear()) {\n eventList.add(0, currEvent);\n } else if (currEvent.getYear() >= eventList.get(eventList.size() - 1).getYear()) {\n eventList.add(currEvent);\n } else {\n for (int j = 0; j < eventList.size() - 1; j++) {\n if(eventList.get(j).getYear() <= currEvent.getYear() && eventList.get(j + 1).getYear() > currEvent.getYear()) {\n eventList.add(j + 1, currEvent);\n }\n }\n }\n } else {\n eventList.add(currEvent);\n }\n }\n }\n\n ArrayList<Event> orderedList = new ArrayList<Event>(); // will store ordered list for events\n\n orderedList.addAll(birthSet);\n orderedList.addAll(eventList);\n orderedList.addAll(deathSet);\n\n personEvents.put(key, orderedList);\n }\n }",
"public void setRowOffSet(int newVal, ObjectChangeSink sink)\n {\n if(newVal==getRowOffSet()) return;\n\n if(rootObj.isAutoValidate())\n _get_objectmanager().validate_rowOffSet(new ObjectManagerContextImpl(Action.SET), newVal, this);\n\n ((TableReadCapabilityAttributesExtension)_imfObject).setRowOffSet(newVal);\n Utils.setBitCascade(sink, getAdaptee());\n if (sink != null) {\n ObjectChange change = createPropertyChange(getAdaptee(), TableReadCapabilityAttributesExtension.Properties.ROW_OFF_SET);\n sink.addObjectChange(getAdaptee(), change);\n }\n\n\n }",
"public void setEventID(Long eventID)\n/* */ {\n/* 123 */ this.eventID = eventID;\n/* */ }",
"public void setAutoEvent(org.opennms.netmgt.config.vacuumd.AutoEvent[] autoEventArray)\n {\n //-- copy array\n _autoEventList.clear();\n for (int i = 0; i < autoEventArray.length; i++) {\n _autoEventList.add(autoEventArray[i]);\n }\n }",
"public void setOnKnobValuesChangedListener (KnobValuesChangedListener l) {\r\n\t\tknobValuesChangedListener = l;\r\n\t}",
"protected void onSetOnTimerReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"protected void onSetOnTimerReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}",
"public void newValueBinding(BGMEvent e);",
"public void dataWasSet();",
"private void setListener() {\n\t}",
"public void setReceber(Receber r){\r\n\t\tthis.temp = r;\r\n\t}",
"protected synchronized void setChanged() {\n changed = true;\n }",
"@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}",
"public abstract void setEventType(Context context, NAEventType type);",
"public void setOptEvent(Integer optEvent) {\n\t\tthis.optEvent = optEvent;\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"public void record(Event evt) {\n record0(evt);\n }",
"void setStart(Object[] newStart);",
"private void setStartOrEnd(MouseEvent e) {\n\t\tif (startX == null) {\n\t\t\tstartX = e.getX();\n\t\t\tstartY = e.getY();\n\t\t} else if (endX == null) {\n\t\t\tendX = e.getX();\n\t\t\tendY = e.getY();\n\t\t\tsetData();\n\t\t}\n\t}",
"public void setMarioEvents() {\n\t\tCollisionEvent event1, event2, event4, event98, event6, event7, event8, event9;\n\t\tAdvancedCollisionEvent event_1LandsTop4, event_1Touches4NotTop, event5;\n\t\ttry {\n\t\t\t// player with block\n\t\t\tevent1 = new CollisionEvent(\n\t\t\t\t\tArrays.asList(new String[] { \"0\", \"1\" }),\n\t\t\t\t\tPLAYER_LANDING_ON_BLOCK_STRING);\n\t\t\t// enemy with block\n\t\t\tevent2 = new CollisionEvent(Arrays.asList(\"1\", \"2\"),\n\t\t\t\t\tENEMY_ON_BLOCK_STRING);\n\t\t\t// player killing enemy\n\t\t\tevent_1LandsTop4 = new AdvancedCollisionEvent(Arrays.asList(\"0\",\n\t\t\t\t\t\"2\", \"true\", \"false\", \"false\", \"false\", \"false\"),\n\t\t\t\t\tPLAYER_JUMPING_ON_ENEMY_STRING);\n\t\t\t// enemy kills player\n\t\t\tevent_1Touches4NotTop = new AdvancedCollisionEvent(Arrays.asList(\n\t\t\t\t\t\"0\", \"2\", \"false\", \"true\", \"true\", \"true\", \"false\"),\n\t\t\t\t\tENEMY_KILLING_PLAYER_STRING);\n\t\t\t// player reaches goal\n\t\t\tevent4 = new CollisionEvent(Arrays.asList(\"0\", \"3\"),\n\t\t\t\t\tPLAYER_HITTING_GOAL_STRING);\n\t\t\t// player collects coin\n\t\t\tevent98 = new CollisionEvent(Arrays.asList(\"0\", \"5\"),\n\t\t\t\t\tPLAYER_COLLECTING_COIN_STRING);\n\t\t\t// bullet hits enemy\n\t\t\tevent5 = new AdvancedCollisionEvent(Arrays.asList(\"2\", \"150\",\n\t\t\t\t\t\"true\", \"true\", \"true\", \"true\", \"true\"),\n\t\t\t\t\tBULLET_HITTING_ENEMY_STRING);\n\t\t\t// player gets gun power up\n\t\t\tevent6 = new CollisionEvent(Arrays.asList(\"0\", \"6\"),\n\t\t\t\t\tPLAYER_HITS_GUN_POWERUP_STRING);\n\t\t\t// player gets invincibility power up\n\t\t\tevent7 = new CollisionEvent(Arrays.asList(\"0\", \"7\"),\n\t\t\t\t\tPLAYER_HITS_INVINCIBILITY_POWERUP_STRING);\n\t\t\t// player gets size power up\n\t\t\tevent8 = new CollisionEvent(Arrays.asList(\"0\", \"8\"),\n\t\t\t\t\tPLAYER_HITS_SIZE_POWER_UP_STRING);\n\t\t\t// player gets speed power up\n\t\t\tevent9 = new CollisionEvent(Arrays.asList(\"0\", \"9\"),\n\t\t\t\t\tPLAYER_HITS_SPEED_POWERUP_STRING);\n\t\t\tAddPowerUpAction action13 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"8\",\n\t\t\t\t\t\t\tSIZE_POWER_UP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action12 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"9\",\n\t\t\t\t\t\t\tSPEED_POWER_UP_STRING, \"10\", \"bullet\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action14 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"8\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action15 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"9\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action9 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"6\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action11 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"7\", \"0\")));\n\t\t\tAddPowerUpAction action7 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"6\",\n\t\t\t\t\t\t\tGUN_POWERUP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action8 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"7\",\n\t\t\t\t\t\t\tINVINCIBILITY_POWERUP_STRING, \"10\", \"mobile\")));\n\t\t\tCollideSolidAction action = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(0, 1).toListString());\n\t\t\tCollideSolidAction action2 = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(2, 1).toListString());\n\t\t\tKillPlayerAction action3 = new KillPlayerAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action10 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action5 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"150\", \"2\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action6 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"150\")));\n\t\t\tEndLevelAction action4 = new EndLevelAction(new ArrayList<String>());\n\n\t\t\tChangeScoreAction action98 = new ChangeScoreAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action_1Kills4 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"0\")));\n\n\t\t\tevent1.addAction(action);\n\t\t\tevent2.addAction(action2);\n\t\t\tevent_1Touches4NotTop.addAction(action3);\n\t\t\tevent_1LandsTop4.addAction(action_1Kills4);\n\t\t\tevent4.addAction(action4);\n\t\t\tevent98.addAction(action98);\n\t\t\tevent98.addAction(action10);\n\t\t\tevent5.addAction(action5, action6);\n\t\t\tevent6.addAction(action7, action9);\n\t\t\tevent7.addAction(action8, action11);\n\t\t\tevent9.addAction(action12, action15);\n\t\t\tevent8.addAction(action13, action14);\n\t\t\tmyLevel.addEvent(event1, event2, event_1Touches4NotTop, event4,\n\t\t\t\t\tevent98, event_1LandsTop4, event5, event6, event7, event8,\n\t\t\t\t\tevent9);\n\t\t\tmyLevelObjectBar.initializeEventsMap(myLevel.getEvents());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.ATTENDEE,\n jname = \"attendee\",\n adderName = \"attendee\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VOTER,\n jname = \"voter\",\n adderName = \"voter\",\n vpollProperty = true)})\n public void setAttendees(final Set<BwAttendee> val) {\n attendees = val;\n }",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"public native final EditorBaseEvent changedEvent(EventFacade val) /*-{\n\t\tthis.changedEvent = val;\n\t\treturn this;\n\t}-*/;",
"public void SetRecord(int index, Record rec){\n\t}",
"public synchronized void setReceived() {\n\t\t_received = true;\n\t\tthis.notifyAll();\n\t}",
"private void restoreTransientEventSets()\n throws ActiveXException\n {\n Hashtable interfaces;\n Enumeration e, e2;\n PersistentEventLink p;\n ActiveXEventSetDescriptor eventSet;\n ActiveXEventListener l;\n\n e = listeners.elements();\n\n while(e.hasMoreElements())\n {\n interfaces = (Hashtable) e.nextElement();\n\n e2 = interfaces.keys();\n\n while(e2.hasMoreElements())\n {\n l = (ActiveXEventListener) e2.nextElement();\n\n p = (PersistentEventLink) interfaces.get(l);\n \n p.restoreActiveXEventSetDescriptor();\n\n }\n } \n }",
"void eventChanged();",
"void setTaskmonitorrecordArray(noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord[] taskmonitorrecordArray);",
"public void setEventID(int value) {\r\n this.eventID = value;\r\n }",
"public void setEVENT_CODE(java.lang.String value)\n {\n if ((__EVENT_CODE == null) != (value == null) || (value != null && ! value.equals(__EVENT_CODE)))\n {\n _isDirty = true;\n }\n __EVENT_CODE = value;\n }",
"public void setSPEventID(Long SPEventID)\n/* */ {\n/* 76 */ this.SPEventID = SPEventID;\n/* */ }",
"public void setEvents(JsonCallbackEvents externalEvents) {\n\t\tevents = externalEvents;\n\t}",
"public void setColor(Color color) {\n for (int i = 0; i < this.size(); i++) {\n DrawEvent event = (DrawEvent) this.elementAt(i);\n event.getShape().setColor(color);\n }\n }",
"private void setInfo(MouseEvent evt, EventType evtType)\n {\n CustomEvent newEvent = new CustomEvent(evtType, evt.getPoint());\n\n if (evt.isShiftDown())\n newEvent.addKey(ModifierKey.SHIFT);\n\n if (evt.isControlDown())\n newEvent.addKey(ModifierKey.CTRL);\n\n if (evt.isMetaDown())\n newEvent.addKey(ModifierKey.META);\n\n if (evt.isAltDown())\n newEvent.addKey(ModifierKey.ALT);\n\n switch (evt.getButton())\n {\n case MouseEvent.BUTTON1:\n newEvent.setButton(MouseButton.LEFT);\n break;\n case MouseEvent.BUTTON2:\n newEvent.setButton(MouseButton.MIDDLE);\n break;\n case MouseEvent.BUTTON3:\n newEvent.setButton(MouseButton.RIGHT);\n break;\n default:\n newEvent.setButton(MouseButton.NONE);\n break;\n }\n\n currentEvent = newEvent;\n\n repaint();\n }",
"@Override\n public void eventsChanged() {\n }",
"public void setOperation(Set<String> sel) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> new_sel = new HashSet<String>(), old_sel;\n if (last_shft_down && last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.retainAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if (last_shft_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.removeAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if ( last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.addAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else new_sel = sel;\n getRTParent().setSelectedEntities(new_sel);\n }",
"public void gxlAttrValueChanged(GXLAttrValueModificationEvent e) {\n\t}",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"public void init() {\r\n setEventType(4);\r\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"void setReminder(int eventId, String eventEndDate, String eventType);",
"public Setter reqSetOnTimerReservationSetting(byte[] edt) {\n\t\t\treqSetProperty(EPC_ON_TIMER_RESERVATION_SETTING, edt);\n\t\t\treturn this;\n\t\t}",
"public void setdat()\n {\n }",
"@DISPID(-2147412072)\n @PropPut\n void ondatasetchanged(\n java.lang.Object rhs);",
"public void setRecordListener(DBRecordListener<gDBR> rcdListener)\n {\n this.recordListener = rcdListener;\n }",
"public void setEventLayer (EventLayer l) {\r\n\t\tif (_eventLayer != null) {\r\n\t\t\t_eventLayer.removeLayerListener(this);\r\n\t\t\t}\r\n \t_eventLayer = l;\r\n\t\t_eventLayer.addLayerListener(this);\r\n }",
"protected void onSetOnTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"@Override\r\n public void set(E e) {\r\n if (lastRetrieved == null) {\r\n throw new IllegalStateException();\r\n }\r\n if (e == null) {\r\n throw new NullPointerException();\r\n }\r\n\r\n lastRetrieved.data = e;\r\n }",
"void setEventEndDate(Date endEventDate);"
]
| [
"0.63942003",
"0.6313779",
"0.60043836",
"0.58545196",
"0.5754402",
"0.57400566",
"0.55623156",
"0.55179083",
"0.5459717",
"0.5444678",
"0.5361982",
"0.53486764",
"0.5335217",
"0.5317738",
"0.5286798",
"0.5286739",
"0.5267717",
"0.5244859",
"0.5243523",
"0.52365786",
"0.5213745",
"0.52019536",
"0.5172048",
"0.5155143",
"0.51350856",
"0.51132",
"0.51128006",
"0.51071054",
"0.5102411",
"0.5090071",
"0.50802505",
"0.508023",
"0.50800824",
"0.5071738",
"0.5060913",
"0.5038316",
"0.5012019",
"0.4996725",
"0.49904317",
"0.49749678",
"0.49712032",
"0.49584565",
"0.49398065",
"0.49380714",
"0.49373424",
"0.49243116",
"0.49224538",
"0.4920949",
"0.49206784",
"0.4919017",
"0.49117818",
"0.49116093",
"0.49102032",
"0.49102032",
"0.49101803",
"0.49097094",
"0.49060142",
"0.4898962",
"0.48971778",
"0.48881954",
"0.48723567",
"0.48662534",
"0.48615602",
"0.4859955",
"0.4859955",
"0.48563412",
"0.48496637",
"0.48472157",
"0.4840989",
"0.48394158",
"0.48374954",
"0.4833499",
"0.4833499",
"0.4828297",
"0.48216835",
"0.48198757",
"0.47951484",
"0.4788146",
"0.47845116",
"0.47822863",
"0.4781918",
"0.47793263",
"0.47774374",
"0.4776855",
"0.47751883",
"0.47554642",
"0.4752564",
"0.4747845",
"0.47436047",
"0.47295898",
"0.47229132",
"0.4719097",
"0.47160965",
"0.47139913",
"0.47121584",
"0.47116703",
"0.47111315",
"0.4707983",
"0.470735",
"0.46983007"
]
| 0.69242454 | 0 |
indexed setter for eventRec sets an indexed value | public void setEventRec(int i, EventRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract E set(int index, E e);",
"public void SetRecord(int index, Record rec){\n\t}",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"void setIndexed(boolean indexed);",
"public void setEventIndex(int index) {\n eventIndex = index;\n }",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"public void set(long index);",
"public void setEventArray(int i, org.hl7.fhir.CodeableConcept event)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(EVENT$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(event);\n }\n }",
"public abstract <T> void set(int index, T value);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void set(int index, E e) {\r\n if (index < 0 || index > +data.length)\r\n throw new IllegalArgumentException(\"Index is illegal.\");\r\n\r\n set(0, 0, data.length - 1, index, e);\r\n }",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"void set(int idx, int val);",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public void setTargetValue(int idx, Object value);",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"void set(int index, T data);",
"public void setIndex(int index) { this.index = index; }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"BinaryArrayReadWrite set(int index, byte x);",
"void setIdx(int i);",
"void set(int i, E e) {\r\n arr[i] = e;\r\n }",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"public E set(int index, E element);",
"public void setIndexedVariable() {\n indexed = true;\n }",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"public void onIndexUpdate();",
"void set(int index, Object element);",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }",
"void update(int index, int val) {\n\t\tarray[index] = val;\n\t}",
"protected final void fireIndexedPropertyChange(\n String propertyName, int index, Object oldValue, Object newValue) {\n PropertyChangeSupport aChangeSupport = this.changeSupport;\n if (aChangeSupport == null) {\n return;\n }\n aChangeSupport.fireIndexedPropertyChange(propertyName, index, oldValue, newValue);\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setElementAt(Object obj, int index);",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"public synchronized boolean set(int index, E value) {\n return this.array.set(index, value);\n }",
"E set(int i , E e) throws IndexOutOfBoundsException;",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"E set(int i, E e) throws IndexOutOfBoundsException;",
"@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}",
"public abstract void updateIndex();",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"public void onIndexReset();",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"public void set(int i,T e){\n if(rangeCheck(i)){\n data[i] = e;\n }\n }",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"public abstract void setIndex(int i, boolean b);",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"public void setEventRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }",
"protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }",
"public E set(int index, E newValue){\n if (index < 0 || index >= size){\n throw new ArrayIndexOutOfBoundsException(index);\n }\n E oldValue = theData[index];\n theData[index] = newValue;\n\n return oldValue;\n }",
"public void setEmployee(int index, Person emp) {\n if (index >= 0 && index < employees.length) {\n employees[index] = emp;\n }\n }"
]
| [
"0.6679578",
"0.6643948",
"0.6532302",
"0.64062506",
"0.63903004",
"0.6361289",
"0.63394564",
"0.63277113",
"0.6280693",
"0.6252907",
"0.6191104",
"0.6191104",
"0.61832404",
"0.6170948",
"0.6146438",
"0.6121409",
"0.6081014",
"0.6071448",
"0.6066108",
"0.6013144",
"0.5992419",
"0.59878284",
"0.5973238",
"0.5962734",
"0.59509885",
"0.5943783",
"0.59385014",
"0.59346783",
"0.5931697",
"0.5918942",
"0.5915689",
"0.58813673",
"0.5871949",
"0.587045",
"0.5855372",
"0.58420795",
"0.5840826",
"0.5830965",
"0.5829691",
"0.5819735",
"0.5817523",
"0.5804563",
"0.58043337",
"0.579227",
"0.5767244",
"0.5762011",
"0.5736513",
"0.5736014",
"0.5720929",
"0.57164353",
"0.5704205",
"0.56816626",
"0.56786513",
"0.5676101",
"0.5670603",
"0.56698674",
"0.56698674",
"0.56698674",
"0.56698674",
"0.5668562",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.5662647",
"0.565686",
"0.565686",
"0.56515753",
"0.56515753",
"0.56291497",
"0.5622295",
"0.5622295",
"0.5608325",
"0.560024",
"0.5589489",
"0.5565509",
"0.5563924",
"0.5563604",
"0.55628866",
"0.55548555",
"0.5554115",
"0.5554115",
"0.55395615",
"0.55329984",
"0.55069196",
"0.54939884",
"0.5491659",
"0.54878867",
"0.5473922",
"0.54726124",
"0.54612565"
]
| 0.6574894 | 2 |
setter for familyRec sets | public void setFamilyRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFamily(Vertex family) {\n\t\tthis.family = family;\n\t}",
"protected abstract Set method_1559();",
"public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public void setFamilyInfo(FamilyInfo[] familyInfo) {\n this.familyInfo = familyInfo;\n }",
"public void setFamily(String family) {\n this.family = family;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }",
"public void setFamilyRec(int i, FamilyRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setFamilyTree() {\n\n //Set Father's Side\n if(user.getFatherID() != null) {\n Person father = people.get(user.getFatherID());\n paternalAncestorsMales.add(father.getPersonID());\n childrenMap.put(user.getFatherID(), user);\n\n setFatherSide(father);\n }\n\n //Set Mother's Side\n if(user.getMotherID() != null) {\n Person mother = people.get(user.getMotherID());\n maternalAncestorsFemales.add(mother.getPersonID());\n childrenMap.put(user.getMotherID(), user);\n\n setMotherSide(mother);\n }\n }",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n validate(fields()[7], value);\n this.family2 = value;\n fieldSetFlags()[7] = true;\n return this; \n }",
"protected abstract void setFaces();",
"void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }",
"public abstract void setLocations(java.util.Set locations);",
"public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Set lookup groups:\");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tl.append(\" \"+groups[i] );\n\t\t}\n\t\tlog.log(Level.CONFIG, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdata.groups = groups;\n\t\t\tio.writeState( data );\n\t\t\tdisco.setGroups(data.groups);\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public void addQualifierKeysToSet(com.webobjects.foundation.NSMutableSet qualKeys){\n return; //TODO codavaj!!\n }",
"public void setMyFamilymembers(ArrayList<Familymember> myFamilymembers) {\n\t\tthis.myFamilymembers = myFamilymembers;\n\t}",
"@Override\n\tpublic void getAllFamilies() {\n\n\t}",
"public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }",
"public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }",
"public void setHobbies(Set<String> h){\n }",
"public void setFamilyColorlist(LinkedList<Integer> familyColorList) {\n\t\tthis.familyColorList = familyColorList;\n\t}",
"public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n this.family2 = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyMapWrapper(value);\n setDirty(7);\n }",
"public Set<IS> getFreItemSet();",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"public void setLast(Set<F> keys) {\n\t\tfor(F s : keys) {\n\t\t\tthis.backingStore.get(s).k = this.count;\n\t\t}\n\t}",
"public void setFrequencies(Set<Frequency> arg0) {\n \n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void setChain(Set chain) \n\t{\n\t\tfor(Object c : chain)\n\t\t{\n\t\t\tthis.cars.add(c);\n\t\t}\n\t}",
"public Family getFamily() {\n return family;\n }",
"void setDisjoint(DisjointSet disjoint);",
"private void setSet(int[] set){\n this.set = set;\n }",
"public void setCsRelationship(Object endNode, BioRelTypes relType) {\n if (csRelationship == null) {\n csRelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n csRelationship.add(rel);\n }",
"@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }",
"public void setPartOfSet( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PARTOFSET, value);\r\n\t}",
"@Override\n\tpublic String updateBatch(List<Familynames> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"public void setFamily( String f )\n {\n family = f.toLowerCase( Locale.ENGLISH );\n }",
"public Set<String>[] getFollow();",
"@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}",
"public void set(String[] as);",
"public void initHashSetPlayers(Set<String> newSet) {\n this.primary = newSet;\n }",
"private void toString(StringBuffer sb, HashSet set) {\n if (this._field == null) sb.append(\"[]\");\n else sb.append(this._field.getName());\n if (this._last) sb.append(\"<e>\");\n sb.append(\"->(\");\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (set.contains(ap)) {\n sb.append(\"<backedge>\");\n } else {\n set.add(ap);\n ((AccessPath)ap.getObject()).toString(sb, set);\n }\n }\n sb.append(')');\n }",
"public synchronized void setFeatureInstances(final Set<? extends FeatureType> newValues) {\n featureInstances = copySet(newValues, featureInstances, FeatureType.class);\n }",
"BSet createBSet();",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"@Override\n\tpublic String saveBatch(List<Familynames> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }",
"@Test\n\tpublic void testSetValueOkMult1toN() {\n\n\t\t// create 1 Address and 2 Persons\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// create a new collection and use the collection\n\t\t// property's setter\n\t\tCollection<Person> persons = new ArrayList<Person>();\n\t\tpersons.add(martin);\n\t\tpersons.add(jojo);\n\t\tadr.setInhabitants(persons);\n\n\t\t// assert the Persons being linked to the Address\n\t\tAssert.assertEquals(2, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(jojo, iter.next());\n\t\t// assert the Address being linked to both Persons implicitely\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertSame(adr, jojo.getAddress());\n\t}",
"public abstract void setPhoneTypes(Vector vecPhoneTypes, Vector vecPhoneTypeKeys);",
"public void recordSetRefReprsForNode(HIR pSubtree,\n List pSetRefReprList, BBlock pBBlock)\n {\n int lNodeIndexMin = getIrIndexMin();\n SetRefRepr lSetRefRepr;\n int lOpCode;\n int lDefIndex, lNodeIndex;\n int lChildCount = pSubtree.getChildCount();\n //##65 if (lChildCount <= 0)\n if ((lChildCount <= 0)&&(! (pSubtree instanceof VarNode))) //##65\n return;\n if (fDbgLevel > 3) //##67\n ioRoot.dbgFlow.printObject(5, \"\\n recordSetRefReprsForNode\",\n pSubtree.toStringShort() + \" \" + getExpId(pSubtree));\n lOpCode = pSubtree.getOperator();\n /* //##63\n if (fDbgFlow > 0) {\n switch (lOpCode) {\n case HIR.OP_ASSIGN:\n case HIR.OP_RETURN:\n case HIR.OP_EXP_STMT:\n case HIR.OP_CALL:\n ioRoot.dbgFlow.printObject(4, \"\\n record to SetRefReprsList\",\n pSubtree.toStringShort() + \" \" + fSubpFlow.getExpId(pSubtree));\n }\n }\n */ //##63\n switch (lOpCode) {\n case HIR.OP_ASSIGN:\n //##60 lSetRefRepr=(SetRefRepr)(new SetRefReprHirImpl((HIR)lSubtree, this));\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, true, null)); //##65\n pSetRefReprList.add(lSetRefRepr);\n //##62 fSetRefReprTable[pSubtree.getIndex() - ((SubpFlowImpl)fSubpFlow).getIrIndexMin()] = lSetRefRepr; //##60\n //##62 fSetRefReprTable[pSubtree.getIndex() - lNodeIndexMin] = lSetRefRepr; //##62\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##62\n if (lSetRefRepr.sets()) {\n //##62 lDefIndex = fSubpFlow.getDefPoint(pSubtree.getIndex()).getIndex() - lNodeIndexMin;\n //##62 lDefIndex = fSubpFlow.incrementDefCount(); //##62\n //##62 lNodeIndex = lSetRefRepr.getIR().getIndex();\n //##62 fNodeIndexTable[lDefIndex] = lNodeIndex;\n //##62 fDefNodeIndexTable[lDefIndex] = lNodeIndex; //##62\n //##62 fDefSetRefReprNoTable[lNodeIndex - lNodeIndexMin] = lDefIndex; //##60\n //##62 flow.dbg(4, \" lDefIndex \" + lDefIndex); //##62\n }\n break;\n case HIR.OP_RETURN:\n case HIR.OP_EXP_STMT:\n //##62 BEGIN\n HIR lChild1 = (HIR)pSubtree.getChild1();\n if (lChild1 != null) {\n if (lChild1.getOperator() == HIR.OP_CALL) {\n recordSetRefReprsForNode((HIR)pSubtree.getChild1(),\n pSetRefReprList, pBBlock);\n }\n else {\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(lChild1,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n }\n }\n break;\n //##62 END\n case HIR.OP_CALL:\n //##60 lSetRefRepr=(SetRefRepr)(new SetRefReprHirImpl((HIR)lSubtree, this));\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null)); //##60\n pSetRefReprList.add(lSetRefRepr);\n //##62 fSetRefReprTable[pSubtree.getIndex() - lNodeIndexMin] = lSetRefRepr; //##62\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##70\n break;\n //##70 BEGIN\n case HIR.OP_ASM:\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n setSetRefReprOfIR(lSetRefRepr, pSubtree);\n break;\n //##70 END\n case HIR.OP_JUMP:\n break;\n case HIR.OP_LABELED_STMT:\n break;\n default:\n //##63 BEGIN\n if (pSubtree instanceof Exp) { // Conditional expression\n // and switch-selection expression. //##65\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##62\n }\n //##63 END\n break;\n } // End of switch\n }",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"public void setRoster(String[][] roster){\r\n\t\tthis.roster = roster;\r\n\t}",
"static void arrayToSet()\n\t{\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\tString arr[] = {\"A\",\"B\",\"C\",\"D\",\"E\",\"A\"};\n\t\t\t\n\t\t\toList = Arrays.asList(arr);\n\t\t\tSystem.out.println(\"List: \"+oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>(oList);\n\t\t\t\n\t\t\tSystem.out.println(\"Set: \"+oSet);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}",
"private void markbases(Set<GdlSentence> contents){\r\n\t\tMap<GdlSentence, Proposition> props = propNet.getBasePropositions();\r\n\t\tfor (GdlSentence p : contents) {\r\n\t\t\tprops.get(p).setValue(true);\r\n\t\t}\r\n }",
"public synchronized void setFeatures(final Set<? extends FeatureType> newValues) {\n features = copySet(newValues, features, FeatureType.class);\n }",
"public void setRegistry(Set<DataFeed> registry) {\n this.registry = registry;\n }",
"private Set buildSet(String attrName, Map attributes, Set resultSet) {\n Set vals = (Set) attributes.get(attrName);\n if ((vals != null) && !vals.isEmpty()) {\n resultSet.addAll(vals);\n }\n return (resultSet);\n }",
"@Override\n public void newBundlesAdded(Set<Bundle> set) {\n// System.err.println(\"newBundlesAdded(set.size = \" + set.size() + \")\");\n Bundles as_bundles = getRTParent().getRootBundles().subset(set);\n for (int i=0;i<active_relationships.size();i++) {\n// System.err.println(\" newBundlesAdded(): Adding In Relationship \" + i + \" \\\"\" + active_relationships.get(i) + \"\\\"... bundles.size() = \" + as_bundles.size());\n addRelationship(active_relationships.get(i), false, as_bundles);\n }\n }",
"public SemanticType[] family() {\n return values();\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder clearFamily2() {\n family2 = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public boolean setAttributes(Set<String> foundAttributes);",
"public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }",
"void setFields(Set<F> fields);",
"protected void setSpecializations(Set<AlfClass> specializations) \r\n\t{\tthis.specializations = specializations;\t}",
"Set createSet();",
"private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }",
"private HashSet addGranteeAndRoles(HashSet set) {\n\n RoleManager rm = getRoleManager();\n String candidateRole;\n\n set.add(sName);\n\n Iterator it = roles.iterator();\n\n while (it.hasNext()) {\n candidateRole = (String) it.next();\n\n if (!set.contains(candidateRole)) {\n try {\n rm.getGrantee(candidateRole).addGranteeAndRoles(set);\n } catch (HsqlException he) {\n throw new RuntimeException(he.getMessage());\n }\n }\n }\n\n return set;\n }",
"protected void setKids(ArrayList<Contact> kids){\n this.kids = kids;\n }",
"public org.ga4gh.models.CallSet.Builder setVariantSetIds(java.util.List<java.lang.String> value) {\n validate(fields()[3], value);\n this.variantSetIds = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setAvailableRangeSet(HTTPRangeSet newRangeSet)\r\n {\r\n // dont do anything if we have no range set and the scope list is\r\n // uninitialized\r\n if ( (newRangeSet == null || newRangeSet.getRangeSet().size() == 0)\r\n && availableScopeList == null )\r\n {\r\n return;\r\n }\r\n \r\n if ( newRangeSet == null )\r\n {\r\n // not only clear existing scope list but set it to NULL\r\n availableScopeList = null;\r\n return;\r\n }\r\n \r\n // lazy initialize if necessary\r\n if ( availableScopeList == null )\r\n {\r\n availableScopeList = new DownloadScopeList();\r\n }\r\n else\r\n {\r\n // clear known ranges.\r\n availableScopeList.clear();\r\n }\r\n\r\n // add..\r\n long fileSize = downloadFile.getTotalDataSize();\r\n Iterator iterator = newRangeSet.getIterator();\r\n while ( iterator.hasNext() )\r\n {\r\n Range range = (Range) iterator.next();\r\n DownloadScope scope = new DownloadScope( \r\n range.getStartOffset(fileSize),\r\n range.getEndOffset(fileSize) );\r\n availableScopeList.add( scope );\r\n }\r\n availableRangeSetTime = System.currentTimeMillis();\r\n \r\n NLogger.debug( NLoggerNames.Download_File_RangePriority,\r\n \"Added new rangeset for \" + downloadFile.getDestinationFileName() \r\n + \": \" + newRangeSet);\r\n \r\n }",
"public void setStudents(Set<Student> students) {\n this.students = students;\n }",
"protected void setValuesFromAlignment(final SAMRecord rec, final SAMRecord alignment) {\n for (final SAMRecord.SAMTagAndValue attr : alignment.getAttributes()) {\n // Copy over any non-reserved attributes.\n if (RESERVED_ATTRIBUTE_STARTS.indexOf(attr.tag.charAt(0)) == -1) {\n rec.setAttribute(attr.tag, attr.value);\n }\n }\n rec.setReadUnmappedFlag(alignment.getReadUnmappedFlag());\n rec.setReferenceIndex(alignment.getReferenceIndex());\n rec.setAlignmentStart(alignment.getAlignmentStart());\n rec.setReadNegativeStrandFlag(alignment.getReadNegativeStrandFlag());\n if (!alignment.getReadUnmappedFlag()) {\n // only aligned reads should have cigar and mapping quality set\n rec.setCigar(alignment.getCigar()); // cigar may change when a\n // clipCigar called below\n rec.setMappingQuality(alignment.getMappingQuality());\n }\n if (rec.getReadPairedFlag()) {\n rec.setProperPairFlag(alignment.getProperPairFlag());\n rec.setInferredInsertSize(alignment.getInferredInsertSize());\n rec.setMateUnmappedFlag(alignment.getMateUnmappedFlag());\n rec.setMateReferenceIndex(alignment.getMateReferenceIndex());\n rec.setMateAlignmentStart(alignment.getMateAlignmentStart());\n rec.setMateNegativeStrandFlag(alignment.getMateNegativeStrandFlag());\n }\n \n // If it's on the negative strand, reverse complement the bases\n // and reverse the order of the qualities\n if (rec.getReadNegativeStrandFlag()) {\n SAMRecordUtil.reverseComplement(rec);\n }\n \n if (clipAdapters && rec.getAttribute(ReservedTagConstants.XT) != null){\n CigarUtil.softClip3PrimeEndOfRead(rec, rec.getIntegerAttribute(ReservedTagConstants.XT));\n }\n }",
"protected abstract void setShapes();",
"@Override\n\tpublic String saveSelective(Familynames record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public void setRefid(Reference r) throws BuildException {\n if (!elements.isEmpty()) {\n throw tooManyAttributes();\n }\n super.setRefid(r);\n }",
"@Override\n\tpublic ArrayList<String> setValues() {\n\t\tList<String> str = new ArrayList<String>();\n\t\tstr.add(\"PcMan\");\n\t\tstr.add(\"gcMan\");\n\t\tstr.add(\"ycMan\");\n\t\tstr.add(\"kcMan\");\n\t\tstr.add(\"NoMan\");\n\t\treturn (ArrayList<String>) str;\n\t\t\n\t}",
"static Set get_mapping(HashMap callee_to_caller, Node callee_n) {\n Set s = (Set)callee_to_caller.get(callee_n);\n if (s != null) return s;\n s = NodeSet.FACTORY.makeSet(); s.add(callee_n);\n return s;\n }",
"public abstract String getSetSpec();",
"public abstract void set(M newValue);",
"public static Set getValidFamilies()\n {\n if ( validFamilies != null )\n {\n return validFamilies;\n }\n\n Set valid = new HashSet();\n valid.add( FAMILY_DOS );\n valid.add( FAMILY_MAC );\n valid.add( FAMILY_NETWARE );\n valid.add( FAMILY_NT );\n valid.add( FAMILY_OPENVMS );\n valid.add( FAMILY_OS2 );\n valid.add( FAMILY_OS400 );\n valid.add( FAMILY_TANDEM );\n valid.add( FAMILY_UNIX );\n valid.add( FAMILY_WIN9X );\n valid.add( FAMILY_WINDOWS );\n valid.add( FAMILY_ZOS );\n\n return Collections.unmodifiableSet( valid );\n }",
"@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}",
"public void setGenders(final SessionContext ctx, final List<EnumerationValue> value)\r\n\t{\r\n\t\tsetProperty(ctx, GENDERS,value == null || !value.isEmpty() ? value : null );\r\n\t}",
"void receiveMyFamily() {\r\n\t\t// 부모 또는 자식의 구성원을 받음\r\n\t}",
"@Override\n\tpublic void getFamilyById(int id) {\n\n\t}",
"final void setRemove(){\n getDocument().removeSpan(this);\n for (T child: this){\n if (child instanceof SpanBranch) ((SpanBranch)child).setRemove();\n }\n }",
"public void setFriends(List<DocumentReference> friends) {\n this.friends = friends;\n if (this.friendsManager != null && friends != null) {\n this.friendsManager.updateRefList(friends);\n }\n }",
"protected void setRDFforSemSimSubmodelAnnotations(){\n\t\t\n\t\tfor(Submodel sub : semsimmodel.getSubmodels()){\n\t\t\tsetRDFforSubmodelAnnotations(sub);\n\t\t}\n\t}",
"public void setGroup(entity.Group value);",
"private void traverseSets() {\n\t\tArrayList<PayloadBuilderSet> sets = new ArrayList<PayloadBuilderSet>();\n\t\tArrayList<PayloadBuilder> builders = new ArrayList<PayloadBuilder>();\n\n\t\tfor (PayloadSetConfiguration payloadSetConfiguration : workloadConfiguration.getPayloadSetConfigurations()) {\n\t\t\tConcurrentLinkedQueue<PayloadSetConfiguration> queue = new ConcurrentLinkedQueue<PayloadSetConfiguration>();\n\t\t\tqueue.offer(payloadSetConfiguration);\n\n\t\t\twhile (!queue.isEmpty()) {\n\t\t\t\tPayloadSetConfiguration setConfiguration = queue.poll();\n\n\t\t\t\t// If the configuration has payloads, create a new set and add it.\n\t\t\t\tif (setConfiguration.getNumPayloads() > 0) {\n\t\t\t\t\tPayloadBuilderSet set = new PayloadBuilderSet(setConfiguration, this);\n\n\t\t\t\t\tsets.add(set);\n\n\t\t\t\t\tfor (PayloadBuilder builder : set.getBuilders())\n\t\t\t\t\t\tbuilders.add(builder);\n\t\t\t\t}\n\n\t\t\t\t// Enqueue child sets for traversal\n\t\t\t\tfor (PayloadSetConfiguration childSetConfiguration : setConfiguration\n\t\t\t\t\t\t.getChildPayloadSetConfigurations()) {\n\t\t\t\t\tqueue.offer(childSetConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.sets = sets.toArray(new PayloadBuilderSet[0]);\n\t\tthis.builders = builders.toArray(new PayloadBuilder[0]);\n\n\t}",
"public void setFather(RMITreeNode father) throws RemoteException;",
"public Builder addSetListData(final String val) {\n mSetListData = val;\n return this;\n }",
"Substituent(final int setBondCount, final int setChainLength, final String setFormula, final String setType) {\n bondCount = setBondCount;\n chainLength = setChainLength;\n formula = setFormula;\n type = setType;\n }",
"public void setIsARelationship(Object endNode, BioRelTypes relType) {\n if (isARelationship == null) {\n isARelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n isARelationship.add(rel);\n }",
"public abstract void setNodes();",
"public void setMarks(int[] newMarks){\n marks = newMarks;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }",
"public /* bridge */ /* synthetic */ void mo9977a(LinkedHashSet linkedHashSet) {\n super.mo9977a(linkedHashSet);\n }"
]
| [
"0.5998366",
"0.574861",
"0.5675352",
"0.5669088",
"0.5631978",
"0.5610054",
"0.55110985",
"0.54804707",
"0.54739356",
"0.54187596",
"0.5265184",
"0.5261326",
"0.5186961",
"0.5179253",
"0.5177421",
"0.5169563",
"0.5160973",
"0.51607966",
"0.5099998",
"0.5072262",
"0.505623",
"0.50529534",
"0.50396085",
"0.50210303",
"0.5012761",
"0.49973765",
"0.4993448",
"0.49884492",
"0.49515998",
"0.49507728",
"0.49477407",
"0.49424508",
"0.49347642",
"0.49154192",
"0.49119872",
"0.49035937",
"0.48896644",
"0.48750812",
"0.48746678",
"0.48665085",
"0.48580995",
"0.48572183",
"0.48512006",
"0.4830548",
"0.48290518",
"0.48184597",
"0.48150477",
"0.48117754",
"0.48075682",
"0.47950613",
"0.4783318",
"0.47819084",
"0.47815856",
"0.47771788",
"0.47764233",
"0.47697172",
"0.47683856",
"0.47644737",
"0.4759419",
"0.47535828",
"0.47501615",
"0.4749511",
"0.47455764",
"0.47418782",
"0.4740134",
"0.47378838",
"0.47349995",
"0.4724039",
"0.4723894",
"0.47224748",
"0.47187015",
"0.4715628",
"0.4711599",
"0.47101787",
"0.47087604",
"0.47054246",
"0.47025853",
"0.47025746",
"0.4695871",
"0.46858186",
"0.46709406",
"0.46598148",
"0.46589604",
"0.46563426",
"0.4655627",
"0.4652556",
"0.46516773",
"0.4651448",
"0.4648521",
"0.46475473",
"0.46446496",
"0.46389222",
"0.46350366",
"0.46341434",
"0.46307623",
"0.46293297",
"0.46239787",
"0.46233582",
"0.46223104",
"0.46154162"
]
| 0.61987257 | 0 |
Feature: sourceRec indexed setter for familyRec sets an indexed value | public void setFamilyRec(int i, FamilyRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setIndexed(boolean indexed);",
"public void SetRecord(int index, Record rec){\n\t}",
"public void setTargetValue(int idx, Object value);",
"public abstract E set(int index, E e);",
"void set(int idx, int val);",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public void set(long index);",
"public abstract <T> void set(int index, T value);",
"void setFeature(int index, Feature feature);",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"BinaryArrayReadWrite set(int index, byte x);",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"void setIdx(int i);",
"void set(int index, T data);",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"void setRef(int index, Ref value) throws SQLException;",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"public void setElementAt(Object obj, int index);",
"public void setSourceRec(int i, SourceRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"void set(int index, int value) {\n array[index] = value;\n }",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"void set(int index, Object element);",
"public void set(int rowIndex, int columnIndex, int value) { target.set(index.get(rowIndex), columnIndex, value); }",
"public abstract void updateIndex();",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"public E set(int index, E element);",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public void setObject(Spatial objChange, int index, int parentIndex) {\n toChange[index]=objChange;\n parentIndexes[index]=parentIndex;\n }",
"private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }",
"void setArray(int index, Array value) throws SQLException;",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}",
"E set(int i , E e) throws IndexOutOfBoundsException;",
"@Override\n public void alterColumnByIndex(int index, XPropertySet descriptor) throws SQLException, IndexOutOfBoundsException {\n \n }",
"public void setIndexedVariable() {\n indexed = true;\n }",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"void setObject(int index, Object value) throws SQLException;",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void set(int index, E newValue)\n {\n if (index >= 0 && index < size)\n data[index] = newValue;\n else\n throw new NoSuchElementException();\n }",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"public void setSourceDataArray(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData sourceData)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().find_element_user(SOURCEDATA$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(sourceData);\r\n }\r\n }",
"public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"E set(int i, E e) throws IndexOutOfBoundsException;",
"public abstract void setIndex(int i, boolean b);",
"public E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}",
"public void param_index_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 2); }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public void setIndex(int index) { this.index = index; }",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }",
"@Override\n public void setField(int id, int value) {\n \n }",
"@Test\r\n\tpublic void setRelatedFieldError() {\r\n\t\ttry {\r\n\t\t\ttestObj.setRelatedField(0, 1);\r\n\t\t \tfail(\"Expected an IndexOutOfBoundsException to be thrown for setRelatedField\");\r\n\t\t} \r\n\t\tcatch (IndexOutOfBoundsException anIndexOutOfBoundsException) {\r\n\t\t \treturn;\r\n\t\t}\r\n\t}",
"DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );",
"private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }",
"public E set(int index, E obj)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.set(obj);\r\n return result;\r\n }",
"@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"public void setFamily(Vertex family) {\n\t\tthis.family = family;\n\t}",
"@Override\n\tpublic void setRef(int parameterIndex, Ref x) throws SQLException {\n\t\t\n\t}",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;"
]
| [
"0.62829375",
"0.6279383",
"0.62697715",
"0.61555886",
"0.6088088",
"0.59902614",
"0.59132624",
"0.58514947",
"0.58478093",
"0.5818023",
"0.5814284",
"0.57900184",
"0.5771642",
"0.5762299",
"0.5747706",
"0.5733512",
"0.5692393",
"0.56883794",
"0.56883794",
"0.567662",
"0.5655489",
"0.5640205",
"0.5617131",
"0.5614669",
"0.55904496",
"0.5550863",
"0.5528599",
"0.5527578",
"0.54956406",
"0.54896134",
"0.5483557",
"0.54813737",
"0.5465997",
"0.54659414",
"0.54659414",
"0.5459777",
"0.54341763",
"0.54299235",
"0.5360102",
"0.5357847",
"0.53492",
"0.5330029",
"0.5330029",
"0.53292465",
"0.53153414",
"0.5309168",
"0.5308513",
"0.5303968",
"0.53021556",
"0.52927613",
"0.52920693",
"0.52768004",
"0.5275201",
"0.52677804",
"0.5259805",
"0.5259336",
"0.5251732",
"0.5249875",
"0.52462906",
"0.52398205",
"0.5238065",
"0.52350396",
"0.52329373",
"0.5226026",
"0.52217925",
"0.5219521",
"0.52152836",
"0.5211283",
"0.52103233",
"0.5209718",
"0.5208447",
"0.52044815",
"0.51755697",
"0.5169145",
"0.5168864",
"0.5162923",
"0.51603246",
"0.51453954",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.5144836",
"0.514342",
"0.514342",
"0.514342",
"0.514342",
"0.51389474",
"0.51363254",
"0.5129052",
"0.5128259"
]
| 0.5451116 | 36 |
setter for groupRec sets | public void setGroupRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void setGroup(entity.Group value);",
"public void setGroupRec(int i, GroupRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setGrpDetail(HashMap<String, String> d, String grp, String prev, int type) {\n if(grp.equals(prev)){\n grpD.remove(prev);\n grpD.put(grp, d);\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n\t} else{\n grpD.put(grp, d);\n grpD.remove(prev);\n List li = (List) grpUsrs.get(prev);\n grpUsrs.remove(prev);\n grpUsrs.put(grp, li);\n List li2 = (List) grpRls.get(prev);\n grpRls.remove(prev);\n grpRls.put(grp, li);\n\n for (Label l : allGrps) {\n if (prev.equals((String) l.getValue())) {\n l.setContentMode(Label.CONTENT_TEXT);\n l.setValue(grp);\n\n }\n\n }\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n db.removeGroup(prev);\n\t}\n updateAllUsrs();\n updateAllRls();\n\n comapp1.grpListBuild();\n }",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Set lookup groups:\");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tl.append(\" \"+groups[i] );\n\t\t}\n\t\tlog.log(Level.CONFIG, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdata.groups = groups;\n\t\t\tio.writeState( data );\n\t\t\tdisco.setGroups(data.groups);\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public void setGroups(Collection groups)\n\t\t{\n\t\t\tif(groups == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\tm_groups.clear();\n\t\t\tIterator it = groups.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tObject obj = it.next();\n\t\t\t\tif(obj instanceof Group && ! hasGroup(((Group) obj).getReference()))\n\t\t\t\t{\n\t\t\t\t\tm_groups.add(obj);\n\t\t\t\t}\n\t\t\t\telse if(obj instanceof String && ! hasGroup((String) obj))\n\t\t\t\t{\n\t\t\t\t\taddGroup((String) obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void setCurrentGroups(final Collection<BwGroup> val) {\n currentGroups = val;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_dictData.setGroupId(groupId);\n\t}",
"public void overrideGroup(String group) {\n this.group = group;\n }",
"public void assignOneGroup(final boolean val) {\n oneGroup = val;\n }",
"public void setInheritedGroups(Collection groups)\n\t\t{\n\t\t\tif(groups == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(m_oldInheritedGroups == null)\n\t\t\t{\n\t\t\t\tm_oldInheritedGroups = new Vector();\n\t\t\t}\n\t\t\tm_oldInheritedGroups.clear();\n\t\t\tIterator it = groups.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tObject obj = it.next();\n\t\t\t\tif(obj instanceof Group && ! inheritsGroup(((Group) obj).getReference()))\n\t\t\t\t{\n\t\t\t\t\tm_oldInheritedGroups.add(obj);\n\t\t\t\t}\n\t\t\t\telse if(obj instanceof String && ! hasGroup((String) obj))\n\t\t\t\t{\n\t\t\t\t\taddInheritedGroup((String) obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public boolean setLightForGroupingToGroup(LinkedList<Light> group) {\n Log.i(tag, \"setLightForGroupingToGroup\");\n if (group.contains(this.lightForGrouping)) {\n Log.i(tag, \"dropped into its own group, dont do anything\");\n } else {\n if ((this.lightForGrouping instanceof DreamScreen) && ((Light) group.get(0)).getGroupNumber() != 0) {\n Iterator it = group.iterator();\n while (true) {\n if (it.hasNext()) {\n if (((Light) it.next()) instanceof DreamScreen) {\n Toast.makeText(this, \"Warning, multiple DreamScreens in the same group may cause unexpected behavior.\", 1).show();\n break;\n }\n } else {\n break;\n }\n }\n }\n Iterator it2 = this.groups.iterator();\n while (it2.hasNext()) {\n ((LinkedList) it2.next()).remove(this.lightForGrouping);\n }\n this.lightForGrouping.setGroupName(((Light) group.get(0)).getGroupName(), false);\n this.lightForGrouping.setGroupNumber(((Light) group.get(0)).getGroupNumber(), false);\n if (this.lightForGrouping instanceof DreamScreen) {\n group.addFirst(this.lightForGrouping);\n } else {\n group.add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n setToolbarTitle();\n }\n for (int i = 0; i < this.groups.size(); i++) {\n if (i != 0 && ((LinkedList) this.groups.get(i)).isEmpty()) {\n this.groups.remove(i);\n Log.i(tag, \"removed group\");\n }\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n Log.i(tag, \"redrawing currentLight sidekick dreamscreenfragment\");\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_paper.setGroupId(groupId);\n\t}",
"public void setGroupEnabled(int group, boolean enabled);",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"public void setGroup(final Group group) {\n this.group = group;\n }",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public Set getGroups() { return this.groups; }",
"public void setMarriageGrp(String marriageGrp) {\n this.marriageGrp = marriageGrp;\n }",
"public void setGroups(Set<SymbolGroup> groups) {\n this.groups = groups;\n }",
"@Override\r\n\tprotected void setData(GroupMember t) {\n\r\n\t}",
"private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }",
"@Test\n public void testSetGroupNotes() {\n System.out.println(\"setGroupNotes\");\n CharterDto instance = new CharterDto(\"Test name\");\n GroupNote[] expResult = {new GroupNote(\"S1\"), new GroupNote(\"S2\"), new GroupNote(\"S1\"), new GroupNote(\"S2\"), new GroupNote(\"S1\"), new GroupNote(\"S2\")};\n\n instance.setGroupNotes(expResult);\n\n GroupNote[] result = instance.getGroupNotes();\n assertArrayEquals(expResult, result);\n\n }",
"protected abstract Set getUserGroups();",
"private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_changesetEntry.setGroupId(groupId);\n\t}",
"private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_second.setGroupId(groupId);\n\t}",
"void doResetGroups( long start_id )\n {\n // Log.v(\"DistoX\", \"Reset CID \" + mApp.mCID + \" from gid \" + start_id );\n mApp_mDData.resetAllGMs( mApp.mCID, start_id ); // reset all groups where status=0, and id >= start_id\n }",
"public DataNormalizerImpl (Integer... groupIds) {\n\t\tthis.groupIds = groupIds;\n\t}",
"public void setGroup (int col)\n\t{\n\t\tlog.config( \"RModel.setGroup col=\" + col);\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn;\n\t\tInteger ii = new Integer(col);\n\t\tif (!m_data.groups.contains(ii))\n\t\t\tm_data.groups.add(ii);\n\t}",
"public void setGroups(com.hps.july.persistence.GroupAccessBean newGroups) throws Exception {\n\tif (newGroups == null) {\n\t\tgroupcode = null;\n\t\tgroupname = \"\";\n\t}\n\telse {\n\t\tgroupcode = new Integer(newGroups.getDivision());\n\t\tgroupname = newGroups.getName();\n\t}\n}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"public void setGroupId(String newValue);",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public void setLevelSet(double[][] ls) {\r\n\t\t_levelSet = ls;\r\n\t}",
"public boolean setLightForGroupingUnassigned() {\n Log.i(tag, \"setLightForGroupingUnassigned\");\n if (this.groups.isEmpty()) {\n this.groups.add(new LinkedList());\n }\n if (this.lightForGrouping.getGroupNumber() == 0) {\n Log.i(tag, \"already unassigned, dont do anything\");\n } else {\n LinkedList<Light> groupToRemove = null;\n boolean afterFirstGroup = false;\n Iterator it = this.groups.iterator();\n while (it.hasNext()) {\n LinkedList<Light> group = (LinkedList) it.next();\n group.remove(this.lightForGrouping);\n if (afterFirstGroup && group.isEmpty()) {\n groupToRemove = group;\n }\n afterFirstGroup = true;\n }\n if (groupToRemove != null) {\n Log.i(tag, \"removed group \");\n this.groups.remove(groupToRemove);\n }\n this.lightForGrouping.setGroupName(\"unassigned\", false);\n this.lightForGrouping.setGroupNumber(0, false);\n if (!((LinkedList) this.groups.get(0)).isEmpty() && ((Light) ((LinkedList) this.groups.get(0)).get(0)).getGroupNumber() != 0) {\n this.groups.addFirst(new LinkedList());\n }\n if (this.lightForGrouping instanceof DreamScreen) {\n ((LinkedList) this.groups.getFirst()).addFirst(this.lightForGrouping);\n } else {\n ((LinkedList) this.groups.getFirst()).add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n this.broadcastingToGroup = false;\n setToolbarTitle();\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"public void setGroup(String group) throws InvalidIDException {\r\n\t\tif (group == null) { return; }\r\n\r\n\t\tif (Arrays.binarySearch(Projects.GROUPS, group) < 0) {\r\n\t\t\tthrow new InvalidIDException(\"Attempt to insert an invalid group.\");\r\n\t\t}\r\n\r\n\t\tif (this.groups == null) { this.groups = new HashSet(); }\r\n\t\r\n\t\tthis.groups.add(group);\r\n\t}",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"@Override\n public void setGroupId(long groupId) {\n _partido.setGroupId(groupId);\n }",
"public void setGroup (String columnName)\n\t{\n\t\tsetGroup(getColumnIndex(columnName));\n\t}",
"@Deprecated\n @Override\n public void setParentGroup(Group group) {\n if (isImmutable())\n throw new IllegalStateException(\"Cant modify\");\n super.setParentGroup(group);\n if (members != null) {\n for (Variable v : members) {\n v.setParentGroup(group);\n }\n }\n }",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"GroupQueryBuilder reset();",
"@Override\n public void setGroupActive(int group, boolean value) {\n assert 0 <= group && group < active.length;\n \n active[group] = value;\n for (XYDatasetWithGroups dataset : datasets) {\n dataset.setGroupActive(group, value);\n }\n recalculateMaxCounts();\n notifyListeners(new DatasetChangeEvent(this, this));\n }",
"@Override\n\tpublic void setGroupId(long groupId);",
"@Override\n\tpublic void setGroupId(long groupId);",
"protected void setGroupKey(Key key)\n\t{\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableColumn().equals(key.getTableColumn()))\n\t\t\t{\n\t\t\t\tky.setTableGroup(key.getTableGroup()) ;\n\t\t\t\t_searchKeyList.set(i, ky) ;\n\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}",
"public void setPeerGroupID(PeerGroupID gid) {\n this.gid = gid;\n incModCount();\n }",
"public void setEEGroups(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = EE_GROUPS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\tthis.ee_groups = comboItems;\r\n\t}",
"void setGroupInfo(String groupName, int groupNumber, char insertionCode,\n\t\t\tString groupType, int atomCount, int bondCount, char singleLetterCode, \n\t\t\tint sequenceIndex, int secondaryStructureType);",
"void set(String group, String name, String style);",
"public void setDefgrp_name(CArrayFacade<Byte> defgrp_name) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 128;\n\t\t} else {\n\t\t\t__dna__offset = 108;\n\t\t}\n\t\tif (__io__equals(defgrp_name, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, defgrp_name)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, defgrp_name);\n\t\t} else {\n\t\t\t__io__generic__copy( getDefgrp_name(), defgrp_name);\n\t\t}\n\t}",
"public void setGroupName(String groupName){\r\n if (this.errorInString(groupName)) {\r\n this.addErrorMessage(0, \"Group name is incorrect.\");\r\n } else {\r\n this.groupName = Validator.escapeJava(groupName);\r\n setValidData(0, true);\r\n }\r\n }",
"public boolean setToExtend(AccessGroup group)\n {\n if (!isParent(group))\n {\n this.extendGroup = group;\n if (this.extendGroup != null)\n {\n this.extendGroup_name = this.extendGroup.getName();\n }\n return true;\n }\n return false;\n }",
"public void setGroup (int g) throws PPException{\n\t\t// this test is required because it is not tested in Unit_SetGroup(...)\n\t\tif (g < 0)\n\t\t\tthrow new PPException (\"setGroup -> invalid group, must be upper 0\");\n\t\telse\n\t\t\tif (PPNative.Unit_SetGroup (id, g) == -1)\n\t\t\t\tthrow new PPException (\"setGroup -> \"+PPNative.GetError());\n\t}",
"public void setGroup(UserGroup group) {\n this.group = group;\n }",
"public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}",
"@RequestMapping(value=\"/FUNE0050/setGroup\", method={RequestMethod.GET}, produces=APPLICATION_JSON)\n\tpublic CommonListResponseParams.ListResponse getSetGrouplist(\n\t\t\t@RequestParam(value=\"partCode\", required=false, defaultValue=\"\") String partCode, \n\t\t\t@RequestParam(value=\"setCode\", required=false, defaultValue=\"\") String setCode, \n\t\t\t@RequestParam(value=\"setName\", required=false, defaultValue=\"\") String setName){\n\t\tList<SetGroup> list = setGroupService.findByPartCodeStartingWithAndSetCodeStartingWithAndSetNameContainingOrderBySortNoAsc(\n\t\t\t\tpartCode, setCode, setName\n\t\t\t\t);\n\t\treturn CommonListResponseParams.ListResponse.of(list);\n\t}",
"public int getIdGroup() {\n return idGroup;\n }",
"void add(R group);",
"public void saveSelectedGroup(Elem group) {\n if (prefs == null) return;\n if (group == null) return;\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SettingsActivity.GROUP_ID_PREF, group.id);\n editor.putString(SettingsActivity.GROUP_NAME_PREF, group.name);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) editor.apply();\n else editor.commit();\n }",
"public synchronized void updateGroup() {\n RaftGroup newGroup = getCurrentGroup();\n if (!newGroup.equals(mRaftGroup)) {\n LOG.info(\"Raft group updated: old {}, new {}\", mRaftGroup, newGroup);\n mRaftGroup = newGroup;\n }\n }",
"Set<Group> getGroups();",
"public void setLabResults(Set<Cdss4NsarLabor> patLabor);",
"public void visitGroup(Group group) {\n\t}",
"public FSArray getGroupRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec)));}",
"public void setGroup(String column, int num)\n\t{\n\t\t//#CM708946\n\t\t// Disregard it when the key which does not exist in Effective is specified. \n\t\tKey Eky = getKey(column) ;\n\t\tif (Eky == null)\n\t\t\treturn ;\n\n\t\tEky.setTableGroup(num) ;\n\t\tsetGroupKey(Eky) ;\n\t}",
"void setGroupId(String groupId);",
"public void setRequiredGroupType(typekey.GroupType value);",
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"public void setBookGroup(java.lang.String value);",
"public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}",
"public void recordButtonGroup(String tag, String[] set) {\n\t\tArrayList<String> internalSet = new ArrayList<String>();\n\n\t\tfor (String s : set) {\n\t\t\tinternalSet.add(s);\n\t\t}\n\n\t\tbuttonSets.put(tag, internalSet);\n\t}",
"public void setGroup(String group) {\n if (group != null && group.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Group name cannot be an empty string.\");\n }\n\n if(group == null) {\n group = Scheduler.DEFAULT_GROUP;\n }\n\n this.group = group;\n this.key = null;\n }",
"protected void setTableGroup(int num)\n\t\t{\n\t\t\tGroup = num ;\n\t\t}",
"public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}",
"private RecordSet armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos) {\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada Accesos: \" + rAccesos); \n \n //String sAccesos = null; \n for ( int i = 0; i < r.getRowCount(); i++)\n { /*sAccesos = \"\";\n for(int z = 0;z<rAccesos.getRowCount();z++)\n {\n if(rAccesos.getValueAt(z,0).equals(r.getValueAt(i,1)))\n sAccesos += ((!\"\".equals(sAccesos))?\" - \":\"\").concat((String)rAccesos.getValueAt(z,1)); \n }*/\n String sAccesos = (String) rAccesos.getValueAt(i,1); \n r.setValueAt(sAccesos,i,6);\n }\n UtilidadesLog.debug(\" Record Final: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Salida\"); \n return r;\n }",
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"public void fillCourse(Group group);",
"public void resetGroup(List<ItemGroup> reset) {\n\t\treset.forEach(item -> {\n\t\t\titem.setGroup(null);\n\t\t});\n\t\titemGroupRepository.save(reset);\n\t}",
"private void fillCacheGroupState(CheckpointRecord cpRec) throws IgniteCheckedException {\n GridCompoundFuture grpHandleFut = asyncRunner == null ? null : new GridCompoundFuture();\n\n for (CacheGroupContext grp : cctx.cache().cacheGroups()) {\n if (grp.isLocal() || !grp.walEnabled())\n continue;\n\n Runnable r = () -> {\n ArrayList<GridDhtLocalPartition> parts = new ArrayList<>(grp.topology().localPartitions().size());\n\n for (GridDhtLocalPartition part : grp.topology().currentLocalPartitions())\n parts.add(part);\n\n CacheState state = new CacheState(parts.size());\n\n for (GridDhtLocalPartition part : parts) {\n state.addPartitionState(\n part.id(),\n part.dataStore().fullSize(),\n part.updateCounter(),\n (byte)part.state().ordinal()\n );\n }\n\n synchronized (cpRec) {\n cpRec.addCacheGroupState(grp.groupId(), state);\n }\n };\n\n if (asyncRunner == null)\n r.run();\n else\n try {\n GridFutureAdapter<?> res = new GridFutureAdapter<>();\n\n asyncRunner.execute(U.wrapIgniteFuture(r, res));\n\n grpHandleFut.add(res);\n }\n catch (RejectedExecutionException e) {\n assert false : \"Task should never be rejected by async runner\";\n\n throw new IgniteException(e); //to protect from disabled asserts and call to failure handler\n }\n }\n\n if (grpHandleFut != null) {\n grpHandleFut.markInitialized();\n\n grpHandleFut.get();\n }\n }",
"public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}",
"public void setFamilyRec(int i, FamilyRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setSimilarGenes(String name, String[] groups) {\r\n\t\tif(!similarGeneGroups.containsKey(name)) {\r\n\t\tsimilarGeneGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void setGroupVisible(int group, boolean visible);",
"public void newGroup() {\n addGroup(null, true);\n }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"void syncGroup();",
"private void addGroupsToGroupCache(ModelGroupReader modelGroupReader,\n\t\t ResourceHandler resourceHandler)\n throws OfbizDataException {\n\t\tif(modelGroupReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null timereport group reader or resource \" +\n\t\t\t\t\t \"handler in addGroupsToGroupCache() method.\" +\n\t\t\t\t\t \" Model reader: %s resource handler: %s\",\n\t\t\t\t\t modelGroupReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tMap<?, ?> groupCache = modelGroupReader.getGroupCache();\n Document document;\n\n\t\t\tsynchronized (ModelGroupReader.class) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n\t\t\t\t\tString msg = \"Error loading entity group timereport\";\n\t\t\t\t\tLOG.error(msg, e);\n\t\t\t\t\tthrow new OfbizDataException(msg, e);\n\t\t\t\t}\n\t\t\t\tif (document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n String msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tif (curChild.getNodeType() == Node.ELEMENT_NODE &&\n\t\t\t\t\t\t\t\"entity-group\".equals(curChild.getNodeName())) {\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n UtilXml.checkEmpty(curEntity.getAttribute(\"entity\"));\n\t\t\t\t\t\t\tString groupName =\n UtilXml.checkEmpty(curEntity.getAttribute(\"group\"));\n\n\t\t\t\t\t\t\tif(groupName == null ||\n\t\t\t\t\t\t\t entityName == null) {\n\t\t\t\t\t\t\t continue;\n }\n safelyMapAdd(groupCache, entityName, groupName);\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"[addGroupsToGroupCache()] No child nodes found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding groups \" +\n\t\t\t\t\t \"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"public String getMarriageGrp() {\n return marriageGrp;\n }",
"@VisibleForTesting\n void updateGroups(List<String> groupUnids) {\n final String METHOD = \"updateGroups\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n int count = 0;\n for (String unid : groupUnids) {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n NotesDocument groupDoc = getDocumentByUnid(directoryDatabase, unid);\n if (groupDoc == null) {\n LOGGER.log(Level.FINEST, \"Group document [{0}] is not found\", unid);\n } else {\n String groupName = null;\n try {\n groupName = groupDoc.getItemValueString(NCCONST.GITM_LISTNAME);\n if (Strings.isNullOrEmpty(groupName)) {\n continue;\n }\n // Only process groups\n if (!isAccessControlGroup(groupDoc)) {\n LOGGER.log(Level.FINEST,\n \"Not a group/access control group: '{0}'\", groupName);\n continue;\n }\n updateGroup(groupDoc, groupName);\n } catch (RepositoryException e) {\n LOGGER.log(Level.WARNING, \"Failed to update group cache\"\n + (groupName != null ? \" for \" + groupName : \"\"), e);\n } finally {\n Util.recycle(groupDoc);\n }\n }\n }\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINE, \"Update groups: {0}ms\", timeFinish - timeStart);\n }"
]
| [
"0.6935825",
"0.64161366",
"0.6323428",
"0.6251037",
"0.5956906",
"0.5914883",
"0.5810028",
"0.57718194",
"0.57387275",
"0.5594111",
"0.5573192",
"0.55608594",
"0.5500175",
"0.5470491",
"0.5461764",
"0.54516476",
"0.5443237",
"0.537548",
"0.537086",
"0.5364666",
"0.5353811",
"0.534524",
"0.5343844",
"0.53262323",
"0.5322527",
"0.5318428",
"0.5316525",
"0.53161806",
"0.53138655",
"0.5302944",
"0.53008074",
"0.529231",
"0.5285196",
"0.52782273",
"0.52763987",
"0.52438694",
"0.52438694",
"0.52438694",
"0.5240231",
"0.52348566",
"0.5207006",
"0.5198065",
"0.51850915",
"0.51811105",
"0.51775825",
"0.5173691",
"0.51622814",
"0.5161437",
"0.5157473",
"0.5151973",
"0.5138157",
"0.5125157",
"0.5125157",
"0.5122943",
"0.5115969",
"0.51090646",
"0.5106876",
"0.51036465",
"0.51015955",
"0.50945956",
"0.5076945",
"0.5068911",
"0.50667584",
"0.50664157",
"0.5059621",
"0.5057719",
"0.50457907",
"0.50425535",
"0.50405633",
"0.5035423",
"0.502121",
"0.50115836",
"0.4992676",
"0.49794453",
"0.49783614",
"0.4974285",
"0.4973879",
"0.49710134",
"0.49696743",
"0.4957848",
"0.49568236",
"0.49557433",
"0.49504203",
"0.49407777",
"0.4939229",
"0.49374503",
"0.49369282",
"0.49315616",
"0.49301627",
"0.49258655",
"0.49246094",
"0.4909889",
"0.4898587",
"0.48964846",
"0.48964846",
"0.48964846",
"0.48926204",
"0.48910826",
"0.48890793",
"0.4888263"
]
| 0.6633792 | 1 |
indexed setter for groupRec sets an indexed value | public void setGroupRec(int i, GroupRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"public Builder setGroupIndex(int value) {\n copyOnWrite();\n instance.setGroupIndex(value);\n return this;\n }",
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"void setIdx(int i);",
"public void set(long index);",
"void set(int idx, int val);",
"public void setColgroupArray(int i, com.walgreens.rxit.ch.cda.StrucDocColgroup colgroup)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocColgroup target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocColgroup)get_store().find_element_user(COLGROUP$4, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(colgroup);\n }\n }",
"public void setGroup(entity.Group value);",
"@java.lang.Override\n public int getGroupIndex() {\n return groupIndex_;\n }",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public abstract E set(int index, E e);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"public void setIndexedVariable() {\n indexed = true;\n }",
"void set(int index, Object element);",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public void setIndex(int index) { this.index = index; }",
"public void setIndexGroupList(ArrayList<Integer> indexGroupList) {\r\n\t\tthis.indexGroupList = indexGroupList;\r\n\t}",
"public E set(int index, E element);",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void setGroup (String columnName)\n\t{\n\t\tsetGroup(getColumnIndex(columnName));\n\t}",
"public abstract <T> void set(int index, T value);",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"public abstract void setIndex(int i, boolean b);",
"public void setGroup(String column, int num)\n\t{\n\t\t//#CM708946\n\t\t// Disregard it when the key which does not exist in Effective is specified. \n\t\tKey Eky = getKey(column) ;\n\t\tif (Eky == null)\n\t\t\treturn ;\n\n\t\tEky.setTableGroup(num) ;\n\t\tsetGroupKey(Eky) ;\n\t}",
"public void setIndividualRec(int i, IndividualRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"@java.lang.Override\n public int getGroupIndex() {\n return instance.getGroupIndex();\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));}",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"public void setIndex(int i) {\n\t\t\n\t}",
"void set(int index, T data);",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"public void setElementAt(Object obj, int index);",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"int updateByPrimaryKeySelective(SeGroup record);",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"@Override\r\n\tpublic String getBind_group_ind() {\n\t\treturn super.getBind_group_ind();\r\n\t}",
"public void setGroup (int col)\n\t{\n\t\tlog.config( \"RModel.setGroup col=\" + col);\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn;\n\t\tInteger ii = new Integer(col);\n\t\tif (!m_data.groups.contains(ii))\n\t\t\tm_data.groups.add(ii);\n\t}",
"int updateByPrimaryKey(SeGroup record);",
"int updateByPrimaryKeySelective(SbGroupDetail record);",
"public void setTargetValue(int idx, Object value);",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"@Override\n public void setGroupActive(int group, boolean value) {\n assert 0 <= group && group < active.length;\n \n active[group] = value;\n for (XYDatasetWithGroups dataset : datasets) {\n dataset.setGroupActive(group, value);\n }\n recalculateMaxCounts();\n notifyListeners(new DatasetChangeEvent(this, this));\n }",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void addOrUpdate(Group group) throws SearchIndexException {\n logger.debug(\"Adding group {} to search index\", group.getIdentifier());\n\n // Add the resource to the index\n SearchMetadataCollection inputDocument = GroupIndexUtils.toSearchMetadata(group);\n List<SearchMetadata<?>> resourceMetadata = inputDocument.getMetadata();\n ElasticsearchDocument doc = new ElasticsearchDocument(inputDocument.getIdentifier(),\n inputDocument.getDocumentType(), resourceMetadata);\n try {\n update(doc);\n } catch (Throwable t) {\n throw new SearchIndexException(\"Cannot write resource \" + group + \" to index\", t);\n }\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"public void setFamilyRec(int i, FamilyRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"public Builder clearGroupIndex() {\n copyOnWrite();\n instance.clearGroupIndex();\n return this;\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"public abstract void updateIndex();",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }",
"private void clearGroupIndex() {\n bitField0_ &= ~0x00000001;\n groupIndex_ = 0;\n }",
"@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }",
"public void setCharacteristicArray(int i, org.hl7.fhir.GroupCharacteristic characteristic)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.GroupCharacteristic target = null;\n target = (org.hl7.fhir.GroupCharacteristic)get_store().find_element_user(CHARACTERISTIC$12, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(characteristic);\n }\n }",
"public void overrideGroup(String group) {\n this.group = group;\n }",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }",
"E set(int i , E e) throws IndexOutOfBoundsException;",
"@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}"
]
| [
"0.6878057",
"0.6527909",
"0.649488",
"0.6299633",
"0.6252381",
"0.6115271",
"0.6085507",
"0.6003749",
"0.5874276",
"0.5851839",
"0.5833939",
"0.57945746",
"0.5779892",
"0.5779892",
"0.5776614",
"0.57564276",
"0.56940717",
"0.56830233",
"0.5674549",
"0.5666672",
"0.5651554",
"0.5648741",
"0.5648262",
"0.5618471",
"0.5607289",
"0.56071466",
"0.5592671",
"0.55807483",
"0.5576448",
"0.55690247",
"0.556746",
"0.5566115",
"0.55639464",
"0.5539316",
"0.5510626",
"0.5505884",
"0.5505238",
"0.5498201",
"0.5497582",
"0.5496188",
"0.5493065",
"0.5492596",
"0.5482605",
"0.5473106",
"0.5467383",
"0.54662657",
"0.5463728",
"0.545109",
"0.5444372",
"0.54358816",
"0.5428921",
"0.54256725",
"0.54168093",
"0.5416776",
"0.54153025",
"0.54039514",
"0.5389255",
"0.5376261",
"0.53625554",
"0.5355884",
"0.5355425",
"0.53539383",
"0.5340271",
"0.5320343",
"0.5307148",
"0.5301941",
"0.53009486",
"0.53009486",
"0.53009486",
"0.53009486",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5298375",
"0.5292404",
"0.52791816",
"0.52650565",
"0.52650565",
"0.5242627",
"0.5224314",
"0.52222407",
"0.5219681",
"0.5216919",
"0.52163684",
"0.52153915",
"0.5214251",
"0.52063805",
"0.52047956",
"0.5198349",
"0.5197554"
]
| 0.65298635 | 1 |
setter for headerRec sets | public void setHeaderRec(HeaderRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)
jcasType.jcas.throwFeatMissing("headerRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setHeader(String arg0, String arg1) {\n\n }",
"void setHeader(java.lang.String header);",
"public void setHeader(JMSControl.HeaderType type,Object value);",
"public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}",
"void setHeader(String headerName, String headerValue);",
"@Override\n public void setHeaderIndices() {\n }",
"public void setHeader(String header) {\n this.header = header;\n }",
"public void setHeader(String header) {\n\t\t_header = header;\n\t}",
"public void setHeader(final Header header) {\n mHeader=header;\n updateFields();\n }",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t}",
"protected void updateHeader() {\n\t}",
"public void setHeader(ResChunkHeader header) {\n this.header = header;\n }",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t\tthis.handleConfig(\"header\", header);\n\t}",
"public void setHeader1(TempTableHeader header1) { this.header1 = header1; }",
"@Override\n public void setIntHeader(String arg0, int arg1) {\n\n }",
"public void setHeader(String header) {\n this.header = header == null ? null : header.trim();\n }",
"public abstract void setMimeHeader(String name, String value);",
"public void set(String headerName, String headerValue)\r\n/* 353: */ {\r\n/* 354:526 */ List<String> headerValues = new LinkedList();\r\n/* 355:527 */ headerValues.add(headerValue);\r\n/* 356:528 */ this.headers.put(headerName, headerValues);\r\n/* 357: */ }",
"public void setCSeq\n (CSeqHeader cseqHeader) {\n this.setHeader(cseqHeader);\n }",
"public void setHeader2(TempTableHeader header2) { this.header2 = header2; }",
"private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }",
"public void setRsHeader(final bf.com.misys.eqf.types.header.RsHeader rsHeader)\n\t{\n\t\tthis._rsHeader = rsHeader;\n\t}",
"public static void header(String s) {\n\t\t// header2.set(s);\n\t}",
"@Override\n public void setDateHeader(String arg0, long arg1) {\n\n }",
"protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }",
"protected void setTraceFileUserHeaderData(String s) { userHeader = s; }",
"public void setHeader(String key, String value) {\n\t\tmHeaderParams.put(key, value);\n\t}",
"void setHeaderRaw(String rawHeaderData) throws ParsingException, RuntimeException {\n String key=null;\n String value=null;\n\n final int SP = 0x20; // 32 Space\n int i=0;\n int start=-1;\n boolean keySet = false;\n boolean keySetHard = false;\n while(i < rawHeaderData.length()){\n if(rawHeaderData.charAt(i)==':' && !keySet) {\n keySet = true;\n }\n else if(rawHeaderData.charAt(i)==SP && keySet){\n if(!keySetHard) {\n key = rawHeaderData.substring(0, i - 1); // begin and end index\n start = i + 1;\n }\n keySetHard = true;\n }\n\n i++;\n }\n\n if(keySet && start != -1){\n value = rawHeaderData.substring(start, i);\n }\n setHeader(key, value);\n }",
"public void headerRecord(RecordInput recordInput) {\n }",
"public void setHeaders(java.util.List headers) {\n ListIterator listIterator = headers.listIterator();\n while(listIterator.hasNext()) {\n SIPHeader sipHeader = (SIPHeader) listIterator.next();\n try {\n this.attachHeader(sipHeader,false);\n } catch (SIPDuplicateHeaderException ex) {}\n }\n }",
"@Override\n\tpublic void setHeaders(final FileItemHeaders pHeaders)\n\t{\n\t\theaders = pHeaders;\n\t}",
"public void setHeader(boolean isHeader) {\n this.isHeader = isHeader;\n }",
"public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }",
"private void setContactHeaders(\n \t\t\tfinal List<String> contactHeaderSet,\n \t\t\tfinal SipServletRequestImpl newSipServletRequest,\n \t\t\tContactHeader contactHeader) throws ParseException {\n \t\t// we parse and add the contact headers defined in the map\n \t\tRequest newRequest = (Request) newSipServletRequest.getMessage();\n \t\tfor (String contactHeaderValue : contactHeaderSet) {\n \t\t\tnewSipServletRequest.addHeaderInternal(ContactHeader.NAME, contactHeaderValue, true);\n \t\t}\n \t\t// we set up a list of contact headers to be added to the request\n \t\tList<ContactHeader> newContactHeaders = new ArrayList<ContactHeader>();\n \t\t\n \t\tListIterator<ContactHeader> contactHeaders = newRequest.getHeaders(ContactHeader.NAME);\n \t\twhile (contactHeaders.hasNext()) {\n \t\t\t// we clone the default Mobicents Sip Servlets Contact Header\n \t\t\tContactHeader newContactHeader = (ContactHeader) contactHeader.clone();\n \t\t\t\n \t\t\tContactHeader newRequestContactHeader = contactHeaders.next();\n \t\t\tfinal URI newURI = newRequestContactHeader.getAddress().getURI();\n \t\t\tnewContactHeader.getAddress().setDisplayName(newRequestContactHeader.getAddress().getDisplayName());\n \t\t\t// and reset its user part and params accoridng to 4.1.3 The Contact Header Field\n \t\t\tif(newURI instanceof SipURI) {\n \t\t\t\tSipURI newSipURI = (SipURI) newURI;\n \t\t\t\tSipURI newContactSipURI = (SipURI) newContactHeader.getAddress().getURI();\n \t\t\t\t((SipURI)newContactHeader.getAddress().getURI()).setUser(newSipURI.getUser());\t\t\t\t\t\t\t\t\n \t\t\t\tIterator<String> uriParameters = newSipURI.getParameterNames();\n \t\t\t\twhile (uriParameters.hasNext()) {\n \t\t\t\t\tString parameter = uriParameters.next();\n \t\t\t\t\tif(!CONTACT_FORBIDDEN_PARAMETER.contains(parameter)) {\n \t\t\t\t\t\tString value = newSipURI.getParameter(parameter);\n \t\t\t\t\t\tnewContactSipURI.setParameter(parameter, \"\".equals(value) ? null : value);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// reset the header params according to 4.1.3 The Contact Header Field\n \t\t\tIterator<String> headerParameters = newRequestContactHeader.getParameterNames();\n \t\t\twhile (headerParameters.hasNext()) {\n \t\t\t\tString parameter = headerParameters.next();\n \t\t\t\tString value = newRequestContactHeader.getParameter(parameter);\n \t\t\t\tnewContactHeader.setParameter(parameter, \"\".equals(value) ? null : value);\n \t\t\t}\n \t\t\tnewContactHeaders.add(newContactHeader);\n \t\t}\n \t\t// we remove the previously added contact headers\n \t\tnewRequest.removeHeader(ContactHeader.NAME);\t\n \t\t// and set the new correct ones\n \t\tfor (ContactHeader newContactHeader : newContactHeaders) {\n \t\t\tnewRequest.addHeader(newContactHeader);\n \t\t}\n \t}",
"protected void setINS(byte ins) {\n\theader[1] = ins;\n }",
"public void setHeaders(Map headers);",
"void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);",
"void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }",
"public Encoding setHeaders(Map<String, HeaderInfo> value) {\n\t\theaders = copyOf(value);\n\t\treturn this;\n\t}",
"void setHeader(HttpServletResponse response, String name, String value);",
"@Override\n\tpublic void setIntHeader(String name, int value) {\n\t}",
"public void parseHeader() {\n\t\tthis.release = (Integer) this.headerData.get(0);\n\t\tthis.endian = (ByteOrder) this.headerData.get(1);\n\t\tthis.K = (Short) this.headerData.get(2);\n\t\tthis.datasetLabel = (String) this.headerData.get(4);\n\t\tthis.datasetTimeStamp = (String) this.headerData.get(5);\n\t\tthis.mapOffset = (Integer) this.headerData.get(6);\n\t}",
"@SuppressWarnings(\"rawtypes\")\n private void setHeaders(BaseRequest request, Builder builder, HashMap<String, String> headerInformation) {\n try {\n Set set = headerInformation.entrySet();\n Iterator iter = set.iterator();\n\n while (iter.hasNext()) {\n Map.Entry mapEntry = (Map.Entry) iter.next();\n builder.addHeader((String) mapEntry.getKey(), (String) mapEntry.getValue());\n }\n } catch (Exception ex) {\n LOG.warn(request.getLogUtil().getLogMessage(\"Unable to set header: \" + ex.getMessage(), LogEventType.System));\n }\n }",
"public void fillHeader(ByteBuffer buffer) {\n buffer.put((byte) (this.version << 4 | this.internetHeaderLen));\n buffer.put((byte) this.DSCP);\n buffer.putShort((short) this.headerLen);\n\n buffer.putInt(this.whyAreFlags3Bits);\n\n buffer.put((byte) this.timeToLive);\n buffer.put((byte) this.protocol);\n buffer.putShort((short) this.checksum);\n\n buffer.put(this.source.getAddress());\n buffer.put(this.target.getAddress());\n }",
"public void setDateHeader(String s, long l) {\n\t\t\n\t}",
"public void setRequestHeaders(Header[] requestHeaders);",
"public void clearHeader() {\n\t\theader.setLength(0);\n\t}",
"public void setRequestHeader(Header header) {\n \n Header[] headers = getRequestHeaderGroup().getHeaders(header.getName());\n \n for (int i = 0; i < headers.length; i++) {\n getRequestHeaderGroup().removeHeader(headers[i]);\n }\n \n getRequestHeaderGroup().addHeader(header);\n \n }",
"abstract void setHeaderPadding(boolean headerPadding);",
"private static void setHeaderFields (String senderOID, String receiverOID) {\n result.setITSVersion(HL7Constants.ITS_VERSION);\n result.setId(HL7MessageIdGenerator.GenerateHL7MessageId(localDeviceId));\n result.setCreationTime(HL7DataTransformHelper.CreationTimeFactory());\n result.setInteractionId(HL7DataTransformHelper.IIFactory(HL7Constants.INTERACTION_ID_ROOT, \"PRPA_IN201302UV\"));\n result.setProcessingCode(HL7DataTransformHelper.CSFactory(\"T\"));\n result.setProcessingModeCode(HL7DataTransformHelper.CSFactory(\"T\"));\n result.setAcceptAckCode(HL7DataTransformHelper.CSFactory(\"AL\"));\n \n // Create the Sender\n result.setSender(HL7SenderTransforms.createMCCIMT000100UV01Sender(senderOID));\n\n // Create the Receiver\n result.getReceiver().add(HL7ReceiverTransforms.createMCCIMT000100UV01Receiver(receiverOID));\n }",
"public FileHeader(RandomAccessFile rafShp_, boolean newHeader) throws IOException {\n\n rafShp = rafShp_; \n\n initHeader(newHeader); \n }",
"public void setHeader(String name, String value) throws MessagingException {\n/* 402 */ throw new IllegalWriteException(\"POP3 messages are read-only\");\n/* */ }",
"protected void setP1(byte p1) {\n\theader[2] = p1;\n }",
"public boolean modifyHeaderContent(Header header);",
"public final void setChaining() {\n\theader[0] = (byte) (header[0] | 0x10);\n }",
"public void setRc (jkt.hms.masters.business.RcHeader rc) {\n\t\tthis.rc = rc;\n\t}",
"public void setDateHeader(String header, long date)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setDateHeader(header, date);\n\t\t}\n\t}",
"void setStockHeader(stockFilePT102.StockHeaderDocument.StockHeader stockHeader);",
"private void clearHeader(){\n\t\theader = new ChildMessage();\n\t}",
"public void parseHeader()\n {\n\n Hashtable table = new Hashtable();\n String[] lines = Utilities.splitString(header, \"\\r\\n\"); //Break everything into lines\n String[] line1 = Utilities.splitString(header, \" \"); //Break the 1st header line Ex: GET / HTTP/1.1\n method = line1[0].trim();\n file = line1[1].trim();\n Utilities.debugLine(\"WebServer.parseHeader(): \" + lines[0], DEBUG);\n\n //For the remainder of the headers, parse the requestFields.\n for (int i = 1; i < lines.length - 1; i++)\n {\n String[] tempLine = Utilities.splitStringOnce(lines[i], \":\");\n table.put(tempLine[0].trim(), tempLine[1].trim());\n }\n headerFields = table;\n }",
"private void rewriteRepHeader() {\r\n\t\t// assume that the value of headVersionNum has been \r\n\t\t// incremented before coming here\r\n\t\ttry {\r\n\t\t\t// 1. delete current header\r\n\t\t\tif (client==null) this.initAnnoteaClient();\r\n\t\t\tclient.delete(this.repHeaderLoc);\r\n\t\t\t// 2. post new header\r\n\t\t\tDescription header = new Description();\r\n\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\theaderURI[0] = new URI(this.repositoryURI.toString() + \"#header\");\r\n\t\t\theader.setAnnotates(headerURI);\r\n\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t// 3. update new header location URL\r\n\t\t\trepHeaderLoc = client.post(header);\r\n\t\t\t// 4. update value in versionDescriptions array and update swoopModel' versionRepository\r\n\t\t\tthis.versionDescriptions[0] = header;\r\n\t\t\tswoopModel.updateVersionRepository(this.repositoryURI, versionDescriptions);\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"public void setHeader(SIPHeaderList sipHeaderList) {\n this.setHeader((Header)sipHeaderList);\n }",
"public ResourceClient setHeaderOverride( String theName, String theValue ) {\r\n\t\t// this implementation may seem heavy-weight BUT it should be called very\r\n\t\t// rarely and when it does it cannot interfere with any existing calls \r\n\t\t// that may be using/iterating over the collection\r\n\t\tPreconditions.checkArgument( !Strings.isNullOrEmpty( theName ), \"need a header name\" );\r\n\r\n\t\ttheName = \"override.header.\" + theName; // tales does this by having 'override.header.' prepended to the header name\r\n\t\tsynchronized( this.overrideLock ) {\r\n\t\t\tMap<String,String > newOverrides = new HashMap<String, String>( this.headerOverrides );\r\n\t\t\tif( theValue == null ) {\r\n\t\t\t\tnewOverrides.remove( theName );\r\n\t\t\t} else {\r\n\t\t\t\tnewOverrides.put( theName, theValue );\r\n\t\t\t}\r\n\t\t\tthis.headerOverrides = newOverrides;\r\n\t\t\tthis.externalHeaderOverrides = Collections.unmodifiableMap( newOverrides );\r\n\t\t}\r\n\t\treturn this;\r\n\t}",
"@Override\n protected void writeStreamHeader() throws IOException {\n reset();\n }",
"protected void setHeaderInfo(String header)\n throws AbnormalTerminationException {\n // strip comment and unnecessary spaces\n String actualLine = StringUtils.trimSpaces(Comment.stripComment(header));\n // split off the name\n int nameEnd = 0;\n\n while (nameEnd < actualLine.length() && ! StringUtils.isSpace(actualLine.charAt(nameEnd))) {\n nameEnd += 1;\n }\n\n String name = actualLine.substring(0, nameEnd);\n String params = actualLine.substring(nameEnd);\n\n if (! Name.isName(name)) {\n throw new AbnormalTerminationException(\"Ongeldige macronaam: \" + name);\n }\n\n this.setName(name);\n // parse the formal parameters\n StringTokenizer tokenizer = new StringTokenizer(params, \",\");\n List formalParams = new ArrayList();\n\n while (tokenizer.hasMoreTokens()) {\n String param = StringUtils.trimSpaces(tokenizer.nextToken());\n\n if (! Name.isName(param)) {\n throw new AbnormalTerminationException(\"Geen aanvaardbare naam voor een \"\n + \"formele parameter: \" + param);\n }\n\n formalParams.add(param);\n }\n\n this.setFormalParameters(formalParams);\n }",
"RequestBuilder setHeaderParameters(Map<String, List<String>> headerParams);",
"public void onHeaderRefresing();",
"public HttpsConnection setHeader(final String key, final String value) {\n log.log(Level.INFO, \"Set Header: \" + key + \": \" + value);\n this.mHeaders.put(key, value);\n return this;\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"protected void updateHeaders() throws MessagingException {\n/* 121 */ super.updateHeaders();\n/* 122 */ MimeBodyPart.setEncoding(this, this.encoding);\n/* */ }",
"public <T> void setHeaderOrFooter(boolean header, @Nullable T data,\n @Nullable IViewHolderGenerator<T> generator) {\n if (generator == null) {\n mHolderGenerators.remove(data.getClass().hashCode());\n if (header) {\n mHeader = null;\n } else {\n mFooter = null;\n }\n return;\n }\n mHolderGenerators.put(data.getClass().hashCode(), generator);\n if (header) {\n mHeader = data;\n } else {\n mFooter = data;\n }\n }",
"public void setHeader(Header sipHeader) {\n SIPHeader header = (SIPHeader) sipHeader;\n if (header == null)\n throw new IllegalArgumentException(\"null header!\");\n try {\n if (header instanceof SIPHeaderList) {\n SIPHeaderList hl = (SIPHeaderList) header;\n // Ignore empty lists.\n if (hl.isEmpty()) return;\n }\n this.removeHeader(header.getHeaderName());\n attachHeader(header,true,false);\n } catch ( SIPDuplicateHeaderException ex) {\n InternalErrorHandler.handleException(ex);\n }\n }",
"public void resetHdrState() {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"reset hdr state to : \");\n stringBuilder.append(this.mHdrState);\n Log.d(tag, stringBuilder.toString());\n this.mAppController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR, this.mHdrState);\n }",
"public void setHeaderFlag(boolean flag) {\n configuration.put(ConfigTag.HEADER, flag);\n }",
"@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }",
"@Override\n public void setElementHeader(ElementHeader elementHeader)\n {\n this.elementHeader = elementHeader;\n }",
"@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }",
"public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }",
"public void setHeaderView(int headerResId) {\r\n\t\tthis.headerResId = headerResId;\r\n\t}",
"public void setPageHeader(String header)\n {\n // ignore\n }",
"protected void addDynamicHeaders() {\n }",
"void setHeaderMargin(double headermargin);",
"public void clearHeaderOverrides( ) {\r\n\t\t// this implementation may seem heavy-weight BUT it should be called very\r\n\t\t// rarely and when it does it cannot interfere with any existing calls \r\n\t\t// that may be using/iterating over the collection\r\n\t\tsynchronized( this.overrideLock ) {\r\n\t\t\tMap<String,String > newOverrides = new HashMap<String, String>( );\r\n\t\t\tthis.headerOverrides = newOverrides;\r\n\t\t\tthis.externalHeaderOverrides = Collections.unmodifiableMap( newOverrides );\r\n\t\t}\r\n\t}",
"public void setFromTag(String tag){\n try{\n fromHeader.setTag(tag);\n }\n catch(ParseException e) {}\n }",
"public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }",
"public void setHeaderText(String headerText) {\n this.headerText = headerText;\n }",
"public void setContentType(Header contentType) {\n/* 114 */ this.contentType = contentType;\n/* */ }",
"void setHeaderAccessibility(String firstName, String am, String shot);",
"private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }",
"private void addRecordHeader()\n {\n addIndent();\n openStartTag(RECORD);\n addSpace();\n addKeyValuePair(RECORD_PROFILE_ID, \"\" + m_recProf.getId());\n addSpace();\n addKeyValuePair(SEQ_NUM, \"SN\" + m_seqNum++);\n closeTag();\n }",
"protected synchronized void updateHeaders() throws MessagingException {\n/* 417 */ parse();\n/* 418 */ for (int i = 0; i < this.parts.size(); i++) {\n/* 419 */ ((MimeBodyPart)this.parts.elementAt(i)).updateHeaders();\n/* */ }\n/* */ }",
"public void setReqHeaders(java.lang.String value) {\n this.req_headers = value;\n }",
"@attribute(value = \"\", required = false, defaultValue = \"default value is false\")\r\n\tpublic void setHeader(Boolean isHeader) {\r\n\t\tthis.header = isHeader;\r\n\t}",
"@Override\n\tpublic final void setFieldLengths(int... fieldLengths) {\n\t\tArgs.notEmpty(fieldLengths, \"Field length sequence\");\n\n\t\tsuper.validateHeaders(headers, identifiers, fieldLengths);\n\n\t\tsetFieldsPerRecord(fieldLengths.length);\n\n\t\tfor (int i = 0; i < fieldLengths.length; i++) {\n\t\t\taddField(fieldLengths[i]);\n\t\t}\n\t}",
"void xsetHeader(org.apache.xmlbeans.XmlString header);",
"private void resetHeaderSmoothly() {\n if (null != mViewHandler) {\n isChanging = true;\n Message message = new Message();\n message.what = ViewHandler.SMOOTH_CHANGE_START;\n message.arg1 = ViewHandler.SMOOTH_TYPE_HEADER;\n mViewHandler.sendMessage(message);\n } else\n resetHeaderState();\n }",
"void setPageHeader(PageHeader pageHeader);",
"void setPageHeader(PageHeader pageHeader);",
"protected void writeRecordData(RecordHeader header, RecordWriter rw) throws IOException {\n if (rw.getDataLength() > header.dataCapacity) {\n throw new IOException (\"Record data does not fit\");\n }\n header.dataCount = rw.getDataLength();\n file.seek(header.dataPointer);\n rw.writeTo(file);\n }"
]
| [
"0.6849452",
"0.6797677",
"0.6688706",
"0.6612498",
"0.65872395",
"0.6566276",
"0.65144604",
"0.65094566",
"0.6499121",
"0.64244175",
"0.6358065",
"0.63396096",
"0.62747175",
"0.622941",
"0.6224547",
"0.6118151",
"0.6110426",
"0.6083347",
"0.60642457",
"0.6033934",
"0.6005909",
"0.59910196",
"0.59364766",
"0.59239465",
"0.5897787",
"0.58937025",
"0.5889273",
"0.5861321",
"0.5825982",
"0.58042616",
"0.5799435",
"0.57889867",
"0.5788833",
"0.5782646",
"0.5769609",
"0.5765582",
"0.5754422",
"0.57390976",
"0.5719155",
"0.5715545",
"0.5715418",
"0.5715302",
"0.57139003",
"0.57019144",
"0.5689846",
"0.56773484",
"0.56701404",
"0.5654869",
"0.5650569",
"0.5646677",
"0.56275517",
"0.56234926",
"0.560969",
"0.55939084",
"0.5589606",
"0.5582518",
"0.55785316",
"0.5551901",
"0.5541105",
"0.553096",
"0.5523469",
"0.5516225",
"0.5513541",
"0.5511507",
"0.5510044",
"0.55048054",
"0.5480986",
"0.54800683",
"0.5478606",
"0.5478606",
"0.5473192",
"0.5467214",
"0.5465489",
"0.5460517",
"0.54591405",
"0.54490435",
"0.5444095",
"0.5442204",
"0.5431945",
"0.5427018",
"0.54180485",
"0.54034543",
"0.538889",
"0.53789556",
"0.5374215",
"0.5371804",
"0.5368795",
"0.53662044",
"0.5349366",
"0.5347566",
"0.53390527",
"0.5334896",
"0.53344864",
"0.5330864",
"0.5318659",
"0.5312365",
"0.53106064",
"0.5291636",
"0.5291636",
"0.5288313"
]
| 0.729197 | 0 |
Feature: repositoryRec setter for individualRec sets | public void setIndividualRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRepositoryRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setRepositoryRec(int i, RepositoryRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public FSArray getRepositoryRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec)));}",
"public RepositoryRecType getRepositoryRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n return (RepositoryRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i)));}",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"void setRepository(Repository repository);",
"protected abstract Set method_1559();",
"ISModificationRepository createISModificationRepository();",
"@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}",
"public UMarkerSetDTO(UMarkerSetRemote mr, UserRemote ur, SpeciesRemote sr) {\n try{\n umsid = mr.getUmsid();\n name = mr.getName();\n comm = mr.getComm();\n updated = mr.getTs();\n user = ur.getUsr();\n species = sr.getName();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"Restaurant setRestaurant(Restaurant modifiedRest);",
"<T> Setter<R> set(Projection<T> projection, T value);",
"<T> Setter<R> set(Projection<T> projection, T value);",
"private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"void setLibroCollection1(Collection<Libro> libroCollection1);",
"public interface FriendRelationshipRepositoryCustom {\n Set<Long> getFriendSet(Long uid);\n Set<Long> getOnlineFriendSet(Long uid);\n Set<Long> getOfflineFriendSet(Long uid);\n}",
"@Override\n public void setRepository(final ModelRepository repository) throws InternalErrorException {\n }",
"@Override\r\n\tpublic void updatedri(DriverVO driverVO) {\n\t\t\r\n\t}",
"public void setRepoData(String[] repoData) {\n mRepoData = repoData;\n notifyDataSetChanged();\n }",
"public void populate(){\n salesRepRepository.save(new SalesRep(\"Maddy\"));\n salesRepRepository.save(new SalesRep(\"Jegor\"));\n salesRepRepository.save(new SalesRep(\"Natalia\"));\n salesRepRepository.save(new SalesRep(\"Joao\"));\n }",
"public interface DemoRepositoryCustom {\n\n List<Demo> findInSet(Collection<Long> ids);\n}",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setSalesRep_ID (int SalesRep_ID);",
"void setRID(RID rid);",
"public void setRepository(Repository repo) {\n\t\tthis.repo = repo;\n\t}",
"public ReviewRepository(Review ...reviewsToAdd) {\n for(Review review: reviewsToAdd) {\n reviewList.put(review.getId(), review);\n }\n }",
"public abstract void setCntRod(int cntRod);",
"public void setLabResults(Set<Cdss4NsarLabor> patLabor);",
"public void dependencyUpdateVal(Set updatingObjects);",
"public void setRepository(CollisionRepository repo) \n\t{ \n\t\tmRepo = repo; \n\t}",
"public ContributorTrackingSet(NavigatorContentService aContentService, Object[] elements) {\n for (int i = 0; i < elements.length; i++) super.add(elements[i]);\n contentService = aContentService;\n }",
"public void setValue(T r) {\n\t\tthis.r = r;\n\t\t// needToNotify = false;\n\t\tmController.onRecordModified(this);\n\t}",
"protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)\n {\n super.doGetRestorableState(rs, context);\n\n Iterable<? extends LatLon> iterable = this.getLocations();\n if (iterable != null)\n rs.addStateValueAsLatLonList(context, \"locationList\", iterable);\n }",
"void setROIs(Object rois);",
"public AbstractMetamodelRepository(Set<T> items) {\n setItems(items);\n }",
"public abstract boolean manipulateRepositories();",
"public void setModified();",
"void setLibroCollection(Collection<Libro> libroCollection);",
"public interface IRevisionRepository extends IAdaptable, IWorkbookComponent {\n\n /**\n * Gets the revision manager with corresponding resource ID. If no revision\n * manager is related to the specified resource ID, a new one will be\n * created with the specified content type.\n * \n * @param resourceId\n * the ID of the resource\n * @param contentType\n * the content type of the resource, see {@link IRevision} for\n * all available content types\n * @return the corresponding revision manager with the specified resource ID\n * @see IRevision\n * @see IRevisionManager\n */\n IRevisionManager getRevisionManager(String resourceId, String contentType);\n\n}",
"public void setReceber(Receber r){\r\n\t\tthis.temp = r;\r\n\t}",
"@Override\n public ReplicateRecord record (DomainRecord record) {\n this.record = record;\n return this;\n }",
"@Test\n public void testGetLrs() {\n System.out.println(\"getLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public void recordSetRefReprsForNode(HIR pSubtree,\n List pSetRefReprList, BBlock pBBlock)\n {\n int lNodeIndexMin = getIrIndexMin();\n SetRefRepr lSetRefRepr;\n int lOpCode;\n int lDefIndex, lNodeIndex;\n int lChildCount = pSubtree.getChildCount();\n //##65 if (lChildCount <= 0)\n if ((lChildCount <= 0)&&(! (pSubtree instanceof VarNode))) //##65\n return;\n if (fDbgLevel > 3) //##67\n ioRoot.dbgFlow.printObject(5, \"\\n recordSetRefReprsForNode\",\n pSubtree.toStringShort() + \" \" + getExpId(pSubtree));\n lOpCode = pSubtree.getOperator();\n /* //##63\n if (fDbgFlow > 0) {\n switch (lOpCode) {\n case HIR.OP_ASSIGN:\n case HIR.OP_RETURN:\n case HIR.OP_EXP_STMT:\n case HIR.OP_CALL:\n ioRoot.dbgFlow.printObject(4, \"\\n record to SetRefReprsList\",\n pSubtree.toStringShort() + \" \" + fSubpFlow.getExpId(pSubtree));\n }\n }\n */ //##63\n switch (lOpCode) {\n case HIR.OP_ASSIGN:\n //##60 lSetRefRepr=(SetRefRepr)(new SetRefReprHirImpl((HIR)lSubtree, this));\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, true, null)); //##65\n pSetRefReprList.add(lSetRefRepr);\n //##62 fSetRefReprTable[pSubtree.getIndex() - ((SubpFlowImpl)fSubpFlow).getIrIndexMin()] = lSetRefRepr; //##60\n //##62 fSetRefReprTable[pSubtree.getIndex() - lNodeIndexMin] = lSetRefRepr; //##62\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##62\n if (lSetRefRepr.sets()) {\n //##62 lDefIndex = fSubpFlow.getDefPoint(pSubtree.getIndex()).getIndex() - lNodeIndexMin;\n //##62 lDefIndex = fSubpFlow.incrementDefCount(); //##62\n //##62 lNodeIndex = lSetRefRepr.getIR().getIndex();\n //##62 fNodeIndexTable[lDefIndex] = lNodeIndex;\n //##62 fDefNodeIndexTable[lDefIndex] = lNodeIndex; //##62\n //##62 fDefSetRefReprNoTable[lNodeIndex - lNodeIndexMin] = lDefIndex; //##60\n //##62 flow.dbg(4, \" lDefIndex \" + lDefIndex); //##62\n }\n break;\n case HIR.OP_RETURN:\n case HIR.OP_EXP_STMT:\n //##62 BEGIN\n HIR lChild1 = (HIR)pSubtree.getChild1();\n if (lChild1 != null) {\n if (lChild1.getOperator() == HIR.OP_CALL) {\n recordSetRefReprsForNode((HIR)pSubtree.getChild1(),\n pSetRefReprList, pBBlock);\n }\n else {\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(lChild1,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n }\n }\n break;\n //##62 END\n case HIR.OP_CALL:\n //##60 lSetRefRepr=(SetRefRepr)(new SetRefReprHirImpl((HIR)lSubtree, this));\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null)); //##60\n pSetRefReprList.add(lSetRefRepr);\n //##62 fSetRefReprTable[pSubtree.getIndex() - lNodeIndexMin] = lSetRefRepr; //##62\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##70\n break;\n //##70 BEGIN\n case HIR.OP_ASM:\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n setSetRefReprOfIR(lSetRefRepr, pSubtree);\n break;\n //##70 END\n case HIR.OP_JUMP:\n break;\n case HIR.OP_LABELED_STMT:\n break;\n default:\n //##63 BEGIN\n if (pSubtree instanceof Exp) { // Conditional expression\n // and switch-selection expression. //##65\n lSetRefRepr = (SetRefRepr)(new SetRefReprHirEImpl(pSubtree,\n pBBlock, false, null));\n pSetRefReprList.add(lSetRefRepr);\n setSetRefReprOfIR(lSetRefRepr, pSubtree); //##62\n }\n //##63 END\n break;\n } // End of switch\n }",
"public AbstractEstProxy(Est dto) {\n super(dto);\n\n // Setter arrays\n readObjectSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n }",
"@Override\n\tprotected IGenericRepo<Estudiante, Integer> getRepo() {\n\t\treturn repo;\n\t}",
"public void set(Object requestor, String field);",
"public void set(Reader reader, ReaderList readerlist, BookList booklist) {\n this.booklist = booklist;\n this.readerlist = readerlist;\n this.reader = reader;\n load();\n\n }",
"public interface TradeRepository extends MongoRepository<TradeRec, String> {\n\n}",
"public OrglRoot setAllOwners(ID owner) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9676:OrglRoot methodsFor: 'accessing'!\n{OrglRoot} setAllOwners: owner {ID}\n\t\"Return the portiong whose owner couldn't be changed.\"\n\t\t\n\tself subclassResponsibility!\n*/\n}",
"public void setOwner(ResultSetImpl rs) {\n/* 443 */ this.owner = rs;\n/* */ }",
"@Override\n public void setRecords() {\n fields = recordNotifier.getFields();\n recordCount = recordNotifier.getRowCount();\n \n createComponents();\n \n }",
"public HashSet<Part> getPartRepositoryParts() throws RemoteException;",
"void setRepoType(String repoType);",
"public void SetRecord(int index, Record rec){\n\t}",
"public void addtorepository() {\n ClientModel widget = new ClientModel();\n widget.setAddress(\"123 Fake Street\");\n widget.setCurrentInvoice(10000);\n widget.setName(\"Widget Inc\");\n clientrepository.save(widget);\n //next client\n ClientModel foo = new ClientModel();\n foo.setAddress(\"456 Attorney Drive\");\n foo.setCurrentInvoice(20000);\n foo.setName(\"Foo LLP\");\n clientrepository.save(foo);\n //next client\n ClientModel bar = new ClientModel();\n bar.setAddress(\"111 Bar Street\");\n bar.setCurrentInvoice(30000);\n bar.setName(\"Bar and Food\");\n clientrepository.save(bar);\n //next client\n ClientModel dog = new ClientModel();\n dog.setAddress(\"222 Dog Drive\");\n dog.setCurrentInvoice(40000);\n dog.setName(\"Dog Food and Accessories\");\n clientrepository.save(dog);\n //next client\n ClientModel cat = new ClientModel();\n cat.setAddress(\"333 Cat Court\");\n cat.setCurrentInvoice(50000);\n cat.setName(\"Cat Food\");\n clientrepository.save(cat);\n //next client\n ClientModel hat = new ClientModel();\n hat.setAddress(\"444 Hat Drive\");\n hat.setCurrentInvoice(60000);\n hat.setName(\"The Hat Shop\");\n clientrepository.save(hat);\n //next client\n ClientModel hatB = new ClientModel();\n hatB.setAddress(\"445 Hat Drive\");\n hatB.setCurrentInvoice(60000);\n hatB.setName(\"The Hat Shop B\");\n clientrepository.save(hatB);\n //next client\n ClientModel hatC = new ClientModel();\n hatC.setAddress(\"446 Hat Drive\");\n hatC.setCurrentInvoice(60000);\n hatC.setName(\"The Hat Shop C\");\n clientrepository.save(hatC);\n //next client\n ClientModel hatD = new ClientModel();\n hatD.setAddress(\"446 Hat Drive\");\n hatD.setCurrentInvoice(60000);\n hatD.setName(\"The Hat Shop D\");\n clientrepository.save(hatD);\n //next client\n ClientModel hatE = new ClientModel();\n hatE.setAddress(\"447 Hat Drive\");\n hatE.setCurrentInvoice(60000);\n hatE.setName(\"The Hat Shop E\");\n clientrepository.save(hatE);\n //next client\n ClientModel hatF = new ClientModel();\n hatF.setAddress(\"448 Hat Drive\");\n hatF.setCurrentInvoice(60000);\n hatF.setName(\"The Hat Shop F\");\n clientrepository.save(hatF);\n }",
"H enrichRepo(RepoType repoType);",
"void setAutoreCollection(Collection<Autore> autoreCollection);",
"public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }",
"public ORM setI(String field, String val) {\n if (this.fields_values == \"\") {\n this.fields_values = field + \"=\" + val;\n } else {\n this.fields_values = this.fields_values + \",\" + field + \"=\" + val;\n }\n // System.out.println(\"after setI: \" + this.fields_values); \n return this;\n }",
"protected void refreshFromRepository() {\n\t\t\r\n\t\tObject[] elements = new Object[]{};\r\n\t\tmodelObject.eContainer();\r\n\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\t\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements(elements);\r\n\t\t\tfFilteredList.setEnabled(true);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (fTreeViewer != null) {\r\n\t\t\tfTreeViewer.setInput(null);\r\n\t\t}\t\t\r\n\t}",
"@Override\n\tpublic void setRepertoire(String r) {\n\t\t\n\t}",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }",
"@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(\"test23\", ref.getAuthor());\n ref.setEditor(\"test23\");\n assertEquals(\"test23\", ref.getEditor());\n ref.setTitle(\"test23\");\n assertEquals(\"test23\", ref.getTitle());\n ref.setBooktitle(\"test23\");\n assertEquals(\"test23\", ref.getBooktitle());\n ref.setYear(\"1839\");\n assertEquals(\"1839\", ref.getYear());\n ref.setPublisher(\"Otava\");\n assertEquals(\"Otava\", ref.getPublisher());\n ref.setJournal(\"test23\");\n assertEquals(\"test23\", ref.getJournal());\n ref.setVolume(\"3\");\n assertEquals(\"3\", ref.getVolume());\n ref.setNumber(\"123\");\n assertEquals(\"123\", ref.getNumber());\n ref.setSeries(\"test23\");\n assertEquals(\"test23\", ref.getSeries());\n ref.setEdition(\"3rd\");\n assertEquals(\"3rd\", ref.getEdition());\n ref.setPages(\"12-35\");\n assertEquals(\"12-35\", ref.getPages());\n ref.setMonth(\"May\");\n assertEquals(\"May\", ref.getMonth());\n ref.setNote(\"test23\");\n assertEquals(\"test23\", ref.getNote());\n }",
"public interface RaceRepository extends IRepository<Race, String>{\n Set<Race> getAll();\n}",
"@Override\n /** Add the proxy and conflict-params information to our read set.\n * @param proxy The proxy to add\n * @param conflictObjects The fine-grained conflict information, if\n * available.\n */\n public void addToReadSet(ICorfuSMRProxyInternal proxy, Object[] conflictObjects) {\n getReadSetInfo().add(proxy, conflictObjects);\n }",
"public interface Repository<E> {\n\n\t/**\n\t * Uses mongodb bson to find stored object\n\t * @param critera name-value paired\n\t * @return generic object\n\t */\n\tpublic E find(MongoDBCritera critera);\n\t\n\t/**\n\t * Alternative for find with MongoDBCritera\n\t * @param key key to filter\n\t * @param value value to find\n\t * @return found generic object\n\t */\n\tdefault E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}\n\t\n\t/**\n\t * Finds all stored generic objects\n\t * @return a collection of stored objects\n\t */\n\tpublic List<E> findAll();\n\t\n\t/**\n\t * Uses $set to override old data\n\t * @param entity to override\n\t */\n\tpublic void update(E entity);\n\t\n\t/**\n\t * Inserts generic type, won't add if already exists\n\t * @param entity entity to add\n\t */\n\tpublic void add(E entity);\n\t\n\t/**\n\t * Removes generic object, alternative form below\n\t * @param critera to search upon\n\t */\n\tpublic void remove(MongoDBCritera critera);\n\t\n\t/**\n\t * Optional method for filtering objects\n\t * @param key to search on\n\t * @param value to find\n\t */\n\tdefault void remove(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\tremove(() -> searchCritera);\n\t}\n}",
"public ContributorTrackingSet(NavigatorContentService aContentService) {\n contentService = aContentService;\n }",
"public interface ResumeRepository extends MongoRepository<Personal, String> {\n}",
"int updateByPrimaryKeySelective(SpecValuePO record);",
"private void addFeatureFieldGetSet(FeatureImpl fi) {\n this.fi = fi;\n featureFieldName = getFeatureFieldName(fi);\n rangeJavaDescriptor = fi.getRangeAsJavaDescriptor();\n \n addFeatureField(); // add declares for fields\n addFeatureGetSet();\n TypeImpl range = (TypeImpl) fi.getRange();\n if (range.isArray()) {\n rangeArrayElementJavaDescriptor = fi.getRangeArrayElementAsJavaDescriptor();\n addArrayFeatureGetSet();\n }\n }",
"public void setCrfRepository(CRFRepository crfRepository) {\r\n this.crfRepository = crfRepository;\r\n }",
"public interface ReviewRepository extends CrudRepository<Review,Integer> {\n public Iterable<Review> findByPublishid(int publishid);\n}",
"@Override\n\tpublic void saveRecMaterial(RecMatConfigure rec) {\n\t\t\n\t}",
"private RecordSet armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos) {\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada Accesos: \" + rAccesos); \n \n //String sAccesos = null; \n for ( int i = 0; i < r.getRowCount(); i++)\n { /*sAccesos = \"\";\n for(int z = 0;z<rAccesos.getRowCount();z++)\n {\n if(rAccesos.getValueAt(z,0).equals(r.getValueAt(i,1)))\n sAccesos += ((!\"\".equals(sAccesos))?\" - \":\"\").concat((String)rAccesos.getValueAt(z,1)); \n }*/\n String sAccesos = (String) rAccesos.getValueAt(i,1); \n r.setValueAt(sAccesos,i,6);\n }\n UtilidadesLog.debug(\" Record Final: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Salida\"); \n return r;\n }",
"public abstract void set(M newValue);",
"public interface RoomBookRepository extends Repository<RoomBookPo, Integer> {\n\n void save(RoomBookPo roomBookPo);\n\n RoomBookPo getById(Integer id);\n\n List<RoomBookPo> findByConsumerAndStatus(Integer consumer, Boolean status);\n\n List<RoomBookPo> findByConsumer(Integer consumer);\n\n @Modifying\n @Query(\"UPDATE RoomBookPo rb SET rb.status = true, rb.settlementPrice = ?1, rb.status = true WHERE rb.id = ?2\")\n void updateSettlementPrice(BigDecimal settlementPrice, Integer id);\n\n}",
"@Override\n\tpublic void addRec() {\n\t\t\n\t}",
"SourceBuilder createRepository();",
"public void setComboRO(Object newValue);",
"public abstract void setSubIssues(List<? extends IssueAbstract> issues);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"protected void setRegister(Register r, Object n) {\n int i = r.getNumber();\n if (n instanceof Collection) n = NodeSet.FACTORY.makeSet((Collection)n);\n else \n if (n == null) {\n Assert._assert(false);\n }\n s.registers[i] = n;\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n }",
"void setChangeSet(ChangeSet changeSet);",
"public void get(Set<GR> grs,\n Sentence sent,\n SuperCategory sc,\n List<FilledDependency> seen,\n FilledDependency dep, DependencyType dependencyType) {\n\n if (dependencyType == DependencyType.GR) {\n switch (dep.unaryRuleID) {\n case 1:\n case 11:\n break;\n case 3:\n case 7:\n case 12:\n get(grs, \"xmod _ %f %l\", sent, sc, dep, null, null);\n get(grs, \"ncsubj %l %f _\", sent, sc, dep, null, null);\n return;\n case 2:\n get(grs, \"xmod _ %f %l\", sent, sc, dep, null, null);\n get(grs, \"ncsubj %l %f obj\", sent, sc, dep, null, null);\n return;\n case 4:\n case 5:\n case 6:\n case 8:\n case 9:\n case 13:\n case 14:\n case 15:\n case 16:\n case 17:\n case 18:\n case 19:\n case 93:\n case 94:\n case 95:\n get(grs, \"xmod _ %f %l\", sent, sc, dep, null, null);\n return;\n case 10:\n get(grs, \"cmod _ %f %l\", sent, sc, dep, null, null);\n get(grs, \"dobj %l %f\", sent, sc, dep, null, null);\n return;\n case 20:\n return;\n case 21:\n case 22:\n get(grs, \"cmod _ %f %l\", sent, sc, dep, null, null);\n return;\n }\n } else if (dependencyType == DependencyType.USD) {\n //TODO: check if these unary rules are correct\n switch (dep.unaryRuleID) {\n case 1:\n break;\n case 11:\n break;\n case 3:\n case 7:\n case 12:\n get(grs, \"advcl %f %l\", sent, sc, dep, null, null); // OR ACL?\n get(grs, \"nsubj %l %f\", sent, sc, dep, null, null);\n return;\n case 2:\n get(grs, \"acl %f %l\", sent, sc, dep, null, null); // OR ADVCL?\n get(grs, \"nsubjpass %l %f\", sent, sc, dep, null, null); //\n return;\n case 4:\n case 5:\n case 6:\n case 8:\n case 9:\n case 13:\n case 14:\n case 15:\n case 16:\n case 17:\n case 18:\n case 19:\n case 93:\n case 94:\n case 95:\n get(grs, \"advcl %f %l\", sent, sc, dep, null, null);\n return;\n case 10:\n get(grs, \"acl %f %l\", sent, sc, dep, null, null); // OR ADVCL?\n get(grs, \"dobj %l %f\", sent, sc, dep, null, null);\n return;\n case 20:\n return;\n case 21:\n case 22:\n get(grs, \"advcl %f %l\", sent, sc, dep, null, null); // OR ACL?\n return;\n }\n } else {\n throw new Error(\"Invalid DependencyType passed: \" + dependencyType);\n }\n\n if (otherRel != 0) {\n if (conRel != 0) {\n // otherRel && conRel\n for (FilledDependency j : seen) {\n seen.stream()\n .filter(k -> j.headIndex == dep.headIndex && j.relID == otherRel &&\n k.headIndex == dep.fillerIndex && k.relID == conRel)\n .forEach(k -> get(grs, fmt, sent, sc, dep, j, k));\n }\n } else {\n // otherRel && NOT conRel\n seen.stream()\n .filter(j -> j.headIndex == dep.headIndex && j.relID == otherRel)\n .forEach(j -> get(grs, fmt, sent, sc, dep, j, null));\n }\n } else if (conRel != 0) {\n // NOT otherRel && conRel\n seen.stream()\n .filter(k -> k.headIndex == dep.fillerIndex && k.relID == conRel)\n .forEach(k -> get(grs, fmt, sent, sc, dep, null, k));\n } else {\n // NOT otherRel && NOT conRel\n get(grs, fmt, sent, sc, dep, null, null);\n }\n }",
"public interface Repository {\n public void addPrg(PrgState prg);\n public List<PrgState> getAll();\n public void setAll(List<PrgState> _newPrgs);\n public void removeCurrent();\n public void logPrgStateExec() throws FileNotFoundException, UnsupportedEncodingException;\n public void logPrgStateExec(PrgState p) throws FileNotFoundException;\n public void serialize(PrgState prgState,String fname);\n public PrgState deserialize(String fname);\n PrgState getCurrent();\n}",
"public interface DateTrackerRepository extends IRepository<DateTracker,String> {\n Set<DateTracker> getAll();\n}",
"public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }",
"public void setIndividualRec(int i, IndividualRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setRecId(Integer recId) {\n this.recId = recId;\n }",
"@Autowired\n public void setAddressRepository(AddressRepository addRepo) \n {\n this.addRepo = addRepo;\n }",
"public interface OfficeRepository extends MongoRepository<OfficeFile, String> {\n\n}",
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"private final synchronized void private_noteChangeReport(Object o, Collection r) {\n Map m = map();\n List changes = (List)m.get(o);\n if (changes == null) {\n changes = new ArrayList(r.size());\n m.put(o,changes);\n } \n changes.addAll(r);\n }",
"@RepositoryRestResource(collectionResourceRel = \"merchants\", path = \"merchant\", exported = false)\npublic interface MerchantRepo extends MongoRepository<Merchant, String> {\n}",
"public GlobFileSet recurse()\n\t\t{\n\t\tm_recurse = true;\n\t\treturn (this);\n\t\t}",
"public void setFamilyRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setRepos(String repos) {\n this.repos = repos;\n }"
]
| [
"0.6781627",
"0.65617526",
"0.5800663",
"0.5611917",
"0.5603826",
"0.5568242",
"0.53569144",
"0.5339468",
"0.5332345",
"0.5261632",
"0.5245837",
"0.5210077",
"0.5114542",
"0.5114542",
"0.5113094",
"0.50935113",
"0.50882024",
"0.5057238",
"0.5057216",
"0.5054912",
"0.503435",
"0.5032393",
"0.5019167",
"0.5018423",
"0.5018423",
"0.5014775",
"0.5005427",
"0.500036",
"0.49247292",
"0.49079958",
"0.48906702",
"0.48873454",
"0.4860926",
"0.48597568",
"0.48540452",
"0.48414376",
"0.48317567",
"0.48275685",
"0.4816893",
"0.4813769",
"0.4782778",
"0.478267",
"0.4777868",
"0.47496274",
"0.4744889",
"0.47428396",
"0.4742421",
"0.4737707",
"0.47337422",
"0.47287866",
"0.47135937",
"0.47096732",
"0.46863902",
"0.468601",
"0.46810213",
"0.4675887",
"0.46737045",
"0.46705523",
"0.4668584",
"0.46679577",
"0.46658394",
"0.46607074",
"0.46529227",
"0.46497875",
"0.4641208",
"0.46389124",
"0.46349445",
"0.46294904",
"0.46280968",
"0.4626832",
"0.46160677",
"0.4609753",
"0.46059904",
"0.45969838",
"0.45905918",
"0.45896956",
"0.45892936",
"0.4587156",
"0.45846236",
"0.45842373",
"0.4578229",
"0.4574504",
"0.45670527",
"0.45642364",
"0.4562442",
"0.4562226",
"0.4558864",
"0.45494983",
"0.45445353",
"0.4542143",
"0.45400003",
"0.45354474",
"0.4531104",
"0.45308498",
"0.45308498",
"0.45280027",
"0.45258778",
"0.45258382",
"0.45258287",
"0.45154878"
]
| 0.49632335 | 28 |
indexed setter for individualRec sets an indexed value | public void setIndividualRec(int i, IndividualRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void set(long index);",
"void set(int idx, int val);",
"void setIdx(int i);",
"public abstract <T> void set(int index, T value);",
"public abstract E set(int index, E e);",
"void set(int index, Object element);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"void set(int index, T data);",
"public void setElementAt(Object obj, int index);",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void setIndexedVariable() {\n indexed = true;\n }",
"void setObject(int index, Object value) throws SQLException;",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public E set(int index, E element);",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"public abstract void updateIndex();",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"void setInt(int index, int value) throws SQLException;",
"void setRef(int index, Ref value) throws SQLException;",
"BinaryArrayReadWrite set(int index, byte x);",
"void set(int index, int value) {\n array[index] = value;\n }",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"public void setIndex(int index) { this.index = index; }",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"public void setTargetValue(int idx, Object value);",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"public abstract void setIndex(int i, boolean b);",
"void setArray(int index, Array value) throws SQLException;",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"private void setRecordById(int recordId) {\n int index = 0;\n for (R r : foundItems) {\n if (recordId == getIdFunction.apply(r)) {\n setRecordIndex(index);\n return;\n }\n index++;\n }\n }",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"public E set(int index, E obj)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.set(obj);\r\n return result;\r\n }",
"@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"public void setIndex(int i) {\n\t\t\n\t}",
"E set(int i , E e) throws IndexOutOfBoundsException;",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"T set(int index, T element);",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"E set(int i, E e) throws IndexOutOfBoundsException;",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public T set(int i, T obj);",
"public int set(int index, int element);",
"@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }",
"void update(int index, int val) {\n\t\tarray[index] = val;\n\t}",
"public void set(int rowIndex, int columnIndex, int value) { target.set(index.get(rowIndex), columnIndex, value); }",
"public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"void setElement(int row, String field, Object value);",
"private void setIndexArray() throws IOException {\n\n byte[] recBuf = new byte[INDEX_RECORD_LENGTH];\n long rafPos = ShapeConst.SHAPE_FILE_HEADER_LENGTH;\n int iaIndex = 0;\n ArrayList indexArrayVector = new ArrayList(10000);\n\n raf.seek(rafPos);\n // loop over index records, until EOF\n while (raf.read(recBuf, 0, INDEX_RECORD_LENGTH) != -1) {\n IndexRecord ir = new IndexRecord(recBuf);\n\n // set ArrayVector item as index record\n indexArrayVector.add(ir);\n\n // array index adjustment\n ++iaIndex;\n\n // filepos adjustment\n rafPos = rafPos + INDEX_RECORD_LENGTH;\n raf.seek(rafPos);\n } // end of while\n\n // iaIndex holds Record Number\n RecordNum = iaIndex;\n\n // copy vector into indexArray\n indexArray = (IndexRecord[]) indexArrayVector.toArray(new IndexRecord[RecordNum]);\n }",
"private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }"
]
| [
"0.7354897",
"0.71833515",
"0.68072",
"0.6643363",
"0.6575186",
"0.65282255",
"0.64309007",
"0.64062494",
"0.6398726",
"0.6398726",
"0.63122994",
"0.6275622",
"0.62666047",
"0.6263953",
"0.6246786",
"0.6241945",
"0.6155275",
"0.61448634",
"0.61325073",
"0.6127356",
"0.6125432",
"0.6103417",
"0.6087897",
"0.6075605",
"0.60711604",
"0.60690725",
"0.60667133",
"0.6047089",
"0.60450524",
"0.6022066",
"0.60191023",
"0.6009457",
"0.6006153",
"0.5992977",
"0.59679836",
"0.59640074",
"0.59617",
"0.5958781",
"0.5957827",
"0.5940423",
"0.59375286",
"0.59372956",
"0.5931587",
"0.5918606",
"0.58396417",
"0.5831462",
"0.5820617",
"0.58182883",
"0.58142567",
"0.5800668",
"0.5794594",
"0.5785625",
"0.57837194",
"0.57660735",
"0.5749933",
"0.57464695",
"0.57322186",
"0.57162064",
"0.57076746",
"0.57048655",
"0.5704422",
"0.5704057",
"0.57001454",
"0.5697857",
"0.5693378",
"0.56876457",
"0.5687302",
"0.56712526",
"0.5663344",
"0.565716",
"0.56554484",
"0.56554484",
"0.56554484",
"0.56554484",
"0.5652988",
"0.5646217",
"0.56436986",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.56429744",
"0.5640901",
"0.5638952",
"0.563049",
"0.5617345",
"0.5617345",
"0.561641",
"0.56084853",
"0.56084013",
"0.5599979"
]
| 0.6214531 | 16 |
setter for lDSOrdRec sets | public void setLDSOrdRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLDSOrdRec(int i, LDSOrdRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public void setLevelSet(double[][] ls) {\r\n\t\t_levelSet = ls;\r\n\t}",
"public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));}",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"@Override\n\tpublic void setLord(Lord l) {\n\t\t\n\t}",
"public final native void setOrdnum(int ordnum) /*-{\n\t\tthis.ordnum = ordnum;\n\t}-*/;",
"public void setRoomstlogid(Long newVal) {\n if ((newVal != null && this.roomstlogid != null && (newVal.compareTo(this.roomstlogid) == 0)) || \n (newVal == null && this.roomstlogid == null && roomstlogid_is_initialized)) {\n return; \n } \n this.roomstlogid = newVal; \n roomstlogid_is_modified = true; \n roomstlogid_is_initialized = true; \n }",
"protected void setMotorPositions(long lPos, long rPos) {\n leftPosition = lPos;\n rightPosition = rPos;\n }",
"public void setRlDetail(HashMap<String, String> d, String rl, String prev, int type) {\n if(rl.equals(prev)){\n\t rlD.remove(prev);\n rlD.put(rl, d);\n db.createRole(rl,rlD.get(rl),rlGrps.get(rl));\n }else{\n rlD.put(rl, d);\n rlD.remove(prev);\n List li = (List) rlGrps.get(prev);\n rlGrps.remove(prev);\n rlGrps.put(rl, li);\n for (Label l : allRls) {\n if (prev.equals((String) l.getValue())) {\n l.setContentMode(Label.CONTENT_TEXT);\n l.setValue(rl);\n\n }\n\n }\n db.createRole(rl,rlD.get(rl),rlGrps.get(rl));\n db.removeRole(prev);\n }\n updateAllGrps();\n\n comapp1.rlListBuild();\n }",
"public abstract void setLOD(int lod);",
"public void setRoomstid(Long newVal) {\n if ((newVal != null && this.roomstid != null && (newVal.compareTo(this.roomstid) == 0)) || \n (newVal == null && this.roomstid == null && roomstid_is_initialized)) {\n return; \n } \n this.roomstid = newVal; \n roomstid_is_modified = true; \n roomstid_is_initialized = true; \n }",
"public void setRows_sorted(Long rows_sorted) {\n this.rows_sorted = rows_sorted;\n }",
"public abstract void setCntRod(int cntRod);",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void setRcdOrderBy( Long rcdOrderBy ) {\n this.rcdOrderBy = rcdOrderBy;\n }",
"protected final void setLC(short lc) {\n\tsetLC(lc & 0xFFFF);\n }",
"private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }",
"@Test\r\n\tpublic void testSet() {\r\n\t\tll.add(0, t3);\r\n\t\tll.add(0, t2);\r\n\t\tll.add(2, t4);\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\r\n\t\t// valid sets\r\n\t\tll.set(0, t1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t3, ll.get(1));\r\n\r\n\t\tll.set(1, t2);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\tassertEquals(t4, ll.get(2));\r\n\r\n\t\tll.set(2, t3);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3]\r\n\r\n\t\t// invalid sets\r\n\t\ttry {\r\n\t\t\tll.set(-1, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(3, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\t}",
"public LDSOrdRecType getLDSOrdRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);\n return (LDSOrdRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i)));}",
"@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }",
"void setENBL(boolean L_flgSTAT)\n\t{ \n\t\tsuper.setENBL(L_flgSTAT);\t\t\n\t\t\t\n\t\t//TB1_QPRCD TB1_QPRDS TB1_UOMCD TB1_TSMCD\n\t\ttblQPRCD.cmpEDITR[TB1_QPRCD].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_QPRDS].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_UOMCD].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_TSMCD].setEnabled(false);\n\t\t\t\t\t\n\t\ttblDATA.cmpEDITR[TB2_INDNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_INVNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_BYRCD].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_CNTNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_PRDDS].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_INVQT].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_LADNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_SALTP].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_MKTTP].setEnabled(false);\n\t}",
"public void setDtDetalleFacturaProveedorSRI(DataTable dtDetalleFacturaProveedorSRI)\r\n/* 366: */ {\r\n/* 367:353 */ this.dtDetalleFacturaProveedorSRI = dtDetalleFacturaProveedorSRI;\r\n/* 368: */ }",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"protected JMLObjectSet (/*@ nullable @*/ JMLListObjectNode<E> ls, int sz) {\n //@ set owner = null;\n the_list = ls;\n size = sz;\n /*@ set elementType = ((ls == null) ? \\type(E)\n @ : ls.elementType);\n @*/\n //@ set containsNull = ((ls == null) ? false : ls.containsNull);\n }",
"public void setRegbyid(Integer newVal) {\n if ((newVal != null && this.regbyid != null && (newVal.compareTo(this.regbyid) == 0)) || \n (newVal == null && this.regbyid == null && regbyid_is_initialized)) {\n return; \n } \n this.regbyid = newVal; \n regbyid_is_modified = true; \n regbyid_is_initialized = true; \n }",
"@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ Long set(int i, Long l) {\n long longValue = l.longValue();\n zzpu();\n zzci(i);\n long[] jArr = this.zzbqi;\n long j = jArr[i];\n jArr[i] = longValue;\n return Long.valueOf(j);\n }",
"public void setReservationroomid(Long newVal) {\n if ((newVal != null && this.reservationroomid != null && (newVal.compareTo(this.reservationroomid) == 0)) || \n (newVal == null && this.reservationroomid == null && reservationroomid_is_initialized)) {\n return; \n } \n this.reservationroomid = newVal; \n reservationroomid_is_modified = true; \n reservationroomid_is_initialized = true; \n }",
"public void setLenCalcType(int ltype){\n // Verify the ttype and ltype\n if (ltype != LENGTH_LAZY && ltype != LENGTH_LAZY_GOOD &&\n ltype != LENGTH_NEAR_OPT) {\n throw new IllegalArgumentException(\"Unrecognized length \"+\n \"calculation type code: \"+ltype);\n }\n\n if(ltype == LENGTH_NEAR_OPT){\n\t if(savedC==null)\n\t\tsavedC = new int[SAVED_LEN];\n\t if(savedCT==null)\n\t\tsavedCT = new int[SAVED_LEN];\n\t if(savedA==null)\n\t\tsavedA = new int[SAVED_LEN];\n\t if(savedB==null)\n\t\tsavedB = new int[SAVED_LEN];\n\t if(savedDelFF==null)\n\t\tsavedDelFF = new boolean[SAVED_LEN];\n }\n\n this.ltype = ltype;\n }",
"public void setLCO_DeleteLinesToReprocess (String LCO_DeleteLinesToReprocess)\n\t{\n\t\tset_Value (COLUMNNAME_LCO_DeleteLinesToReprocess, LCO_DeleteLinesToReprocess);\n\t}",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"protected final void setLC(byte lc) {\n\tsetLC(lc & 0xFF);\n }",
"public void setCR(int cR)\r\n/* 44: */ {\r\n/* 45: 44 */ this.CR = cR;\r\n/* 46: */ }",
"public void setDtDetalleIVAFacturaProveedorSRI(DataTable dtDetalleIVAFacturaProveedorSRI)\r\n/* 648: */ {\r\n/* 649:722 */ this.dtDetalleIVAFacturaProveedorSRI = dtDetalleIVAFacturaProveedorSRI;\r\n/* 650: */ }",
"private RecordSet armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos) {\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada Accesos: \" + rAccesos); \n \n //String sAccesos = null; \n for ( int i = 0; i < r.getRowCount(); i++)\n { /*sAccesos = \"\";\n for(int z = 0;z<rAccesos.getRowCount();z++)\n {\n if(rAccesos.getValueAt(z,0).equals(r.getValueAt(i,1)))\n sAccesos += ((!\"\".equals(sAccesos))?\" - \":\"\").concat((String)rAccesos.getValueAt(z,1)); \n }*/\n String sAccesos = (String) rAccesos.getValueAt(i,1); \n r.setValueAt(sAccesos,i,6);\n }\n UtilidadesLog.debug(\" Record Final: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Salida\"); \n return r;\n }",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setContactHrefs(final Set<String> val) {\n contactHrefs = val;\n }",
"public void setRowOffSet(int newVal, ObjectChangeSink sink)\n {\n if(newVal==getRowOffSet()) return;\n\n if(rootObj.isAutoValidate())\n _get_objectmanager().validate_rowOffSet(new ObjectManagerContextImpl(Action.SET), newVal, this);\n\n ((TableReadCapabilityAttributesExtension)_imfObject).setRowOffSet(newVal);\n Utils.setBitCascade(sink, getAdaptee());\n if (sink != null) {\n ObjectChange change = createPropertyChange(getAdaptee(), TableReadCapabilityAttributesExtension.Properties.ROW_OFF_SET);\n sink.addObjectChange(getAdaptee(), change);\n }\n\n\n }",
"public void setGrpDetail(HashMap<String, String> d, String grp, String prev, int type) {\n if(grp.equals(prev)){\n grpD.remove(prev);\n grpD.put(grp, d);\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n\t} else{\n grpD.put(grp, d);\n grpD.remove(prev);\n List li = (List) grpUsrs.get(prev);\n grpUsrs.remove(prev);\n grpUsrs.put(grp, li);\n List li2 = (List) grpRls.get(prev);\n grpRls.remove(prev);\n grpRls.put(grp, li);\n\n for (Label l : allGrps) {\n if (prev.equals((String) l.getValue())) {\n l.setContentMode(Label.CONTENT_TEXT);\n l.setValue(grp);\n\n }\n\n }\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n db.removeGroup(prev);\n\t}\n updateAllUsrs();\n updateAllRls();\n\n comapp1.grpListBuild();\n }",
"public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);",
"public void setSpeeds(float lSpd, float rSpd) {\n \t\tthis.leftMotor.setSpeed(lSpd);\n \t\tthis.rightMotor.setSpeed(rSpd);\n \t\tif (lSpd < 0)\n \t\t\tthis.leftMotor.backward();\n \t\telse\n \t\t\tthis.leftMotor.forward();\n \t\tif (rSpd < 0)\n \t\t\tthis.rightMotor.backward();\n \t\telse\n \t\t\tthis.rightMotor.forward();\n \t}",
"public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }",
"@Keep\n void setDops(double gdop, double pdop, double hdop, double vdop) {\n mDops[0] = gdop;\n mDops[1] = pdop;\n mDops[2] = hdop;\n mDops[3] = vdop;\n }",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void SetRecord(int index, Record rec){\n\t}",
"@Override\r\n\tpublic Buffer setLong(int pos, long l) {\n\t\treturn null;\r\n\t}",
"public void setOperation(Set<String> sel) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> new_sel = new HashSet<String>(), old_sel;\n if (last_shft_down && last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.retainAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if (last_shft_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.removeAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if ( last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.addAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else new_sel = sel;\n getRTParent().setSelectedEntities(new_sel);\n }",
"void setDupOfSeqObj(List<SeqInfo> seqObjList) {\n\t\tboolean desc=false;\n\t\tCollections.sort(seqObjList, new SeqInfo.CompSeqEncode(desc));\n\t\t//System.out.println(\"Sorted reads: \"+seqObjList.size());\n\t\t//timeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t//System.out.println(\"time: \"+timeStamp);\n\t \n\t\tSeqInfo seqObj;\n\t\tSeqInfo seqObj_r0 = null;\n\t\tSeqInfo currSeqObj;\n\t\tSeqInfo currSeqObj2; \n\t List<SeqInfo> querySeqObjList; \n\t\t\n\t int i=0; \n\t int r=0;\n\t //int m=1;\n\t\tfor(int s=0;s<seqObjList.size();s++){\n\t\t currSeqObj=seqObjList.get(s);\t\n\t\t if(!currSeqObj.isDup && currSeqObj.dupNum<0){\n\t\t\t /*\n\t\t\t if((s+1)/500000==m) {\n\t\t\t\ttimeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\t\tSystem.out.println((s+1)+\" time: \"+timeStamp);\n\t\t\t\tm++;\n\t\t\t }\t\n\t\t\t */\n\t\t\t querySeqObjList=SeqOperation.findSeqObjOfSameEncode(seqObjList,currSeqObj);\n\t\t\t if(querySeqObjList.size()==1) {\n\t\t\t\tcurrSeqObj.isDup=false;\n\t\t\t\tcurrSeqObj.dupNum=0; \n\t\t\t }else if(querySeqObjList.size()>1){\n\t\t\t currSeqObj2=currSeqObj;\n\t\t\t while(currSeqObj2!=null){\t\t \n\t\t\t currSeqObj2=null;\n\t\t\t\t r=0;\n\t\t\t\t i=0;\n\t\t\t\t while(i<querySeqObjList.size()) {\t\n\t\t\t\t seqObj=querySeqObjList.get(i);\t\t \n\t\t\t\t if(seqObj.seq.equalsIgnoreCase(currSeqObj.seq)){\t\t\t\t\n\t\t\t\t\t if(r==0) { \t\t\t\n\t\t\t\t\t seqObj_r0=seqObj;\n\t\t\t\t\t seqObj_r0.isDup=false;\n\t\t\t\t\t }if(r>0) {\t\t\t\t \n\t\t\t\t\t seqObj.isDup=true;\n\t\t\t\t\t seqObj.dupNum=r;\t\n\t\t\t\t\t }\n\t\t\t\t\t seqObj_r0.dupNum=r;\n\t\t\t\t\t querySeqObjList.remove(seqObj);\n\t\t\t\t\t r++;\n\t\t\t\t }else{\n\t\t\t\t\t currSeqObj2=seqObj;\t\n\t\t\t\t\t i++;\t\t\n\t\t\t\t } \t\t \n\t\t\t\t }// while query\n\t\t\t\t if(currSeqObj2!=null) currSeqObj=currSeqObj2;\n\t\t\t }\n\t\t\t }\n\t\t\t querySeqObjList=null;\t \n\t\t }\t \n\t\t}\n\t\t\n\t Collections.sort(seqObjList, new SeqInfo.CompSeqID(desc));\t\n }",
"void setRID(RID rid);",
"private static void setupMaxLength(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(rec.getDateLength() < arr[1].length())\r\n\t\t\trec.setDateLength(arr[1].length());\r\n\t\t\r\n\t\tif(rec.getStratumLength() < arr[4].length()) \r\n\t\t\trec.setStratumLength(arr[4].length());\r\n\t\t\r\n\t\tif(rec.getRaceOtherLength() < arr[8].length()) \r\n\t\t\trec.setRaceOtherLength(arr[8].length());\r\n\t\t\r\n\t\tif(rec.getDiagOtherLength() < arr[10].length()) \r\n\t\t\trec.setDiagOtherLength(arr[10].length());\r\n\t\t\r\n\t\tif(rec.getNarr1Length() < arr[17].length()) \r\n\t\t\trec.setNarr1Length(arr[17].length());\r\n\t\t\r\n\t\tif(rec.getNarr2Length() < arr[18].length())\r\n\t\t\trec.setNarr2Length(arr[18].length());\r\n\t}",
"public void setSortOrder(java.math.BigInteger sortOrder)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SORTORDER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SORTORDER$0);\n }\n target.setBigIntegerValue(sortOrder);\n }\n }",
"public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }",
"public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }",
"public abstract void setSortKeys(List<? extends SortKey> keys);",
"void setENBL(boolean L_flgSTAT)\n\t{ \n\t\tsuper.setENBL(L_flgSTAT);\n\t\ttblPRTLS.clrTABLE();\n\t\ttblGRPLS.clrTABLE();\n\t\ttxtPRTTP.setText(\"C\");\n\t\ttblPRTLS.cmpEDITR[TB1_CHKFL].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_PRTCD].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_PRTNM].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_ADD01].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_ZONCD].setEnabled(false);\n\t\t//txtPRTTP.setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_CHKFL].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_PRTCD].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_PRTNM].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_ADD01].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_ZONCD].setEnabled(false);\n\t\tchkNEWRE.setEnabled(false);\n\t\tchkSTRFL.setEnabled(true);\n\t\tchkNEWRE.setVisible(false);\n\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t{\n\t\t\ttblPRTLS.cmpEDITR[TB1_CHKFL].setEnabled(true);\n\t\t\tchkNEWRE.setEnabled(true);\n\t\t\tchkNEWRE.setVisible(true);\n\t\t}\n\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t{\n\t\t\ttblGRPLS.cmpEDITR[TB2_CHKFL].setEnabled(true);\n\t\t}\n\t}",
"public void setL(boolean l) {\n\tthis.l = l;\n }",
"public final void setRowOffSet(int newObj)throws SL_Exception\n {\n setRowOffSet(newObj, null);\n }",
"public void setC_OrderLine_ID (int C_OrderLine_ID)\n\t{\n\t\tif (C_OrderLine_ID < 1) \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));\n\t}",
"public void set(int s, long value) {\n\t\t\tif (sign * s < 0) {\n\t\t\t\tdc.setStart(value);\n\t\t\t} else {\n\t\t\t\tdc.setEnd(value);\n\t\t\t}\n\t\t}",
"public void setDateHeader(String s, long l) {\n\t\t\n\t}",
"public void setDependLineIDArray(int[] dependLineIDArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(dependLineIDArray, DEPENDLINEID$26);\n }\n }",
"public static void setSortedArray(ArrayList<Patient> sorted){\r\n \t\tPatientView.sortedArray = sorted;\r\n \t}",
"protected final void setLC(int lc) {\n\tif (lc < 1 || lc > 65536) {\n\t throw new IllegalArgumentException(\"Length should be from '1' to '65535'.\");\n\t}\n\tthis.lc = lc;\n }",
"void setNilExternalOrderLineArray(int i);",
"public void setDel(Integer del) {\r\n\t\tthis.del = del;\r\n\t}",
"@VTID(26)\n void setSortItems(\n com.exceljava.com4j.excel.XlSlicerSort rhs);",
"protected JMLObjectSet (/*@ nullable @*/ JMLListObjectNode<E> ls) {\n this(ls, (ls == null) ? 0 : ls.int_size()); \n }",
"public void setLUC(long LUC) {\r\n/* 394 */ this._LUC = LUC;\r\n/* 395 */ this._has_LUC = true;\r\n/* */ }",
"public void setValue(T r) {\n\t\tthis.r = r;\n\t\t// needToNotify = false;\n\t\tmController.onRecordModified(this);\n\t}",
"static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}",
"public void setSeqNo (int SeqNo);",
"public void setSeqNo (int SeqNo);",
"void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}",
"public static void setDelim(Map<Sort , Integer> delims, Sort cc, Integer newdel) {\n Integer curdel, lb = cc.lb() ;\n if (newdel >= lb && ((curdel = delims.get(cc)) == null || curdel < lb || newdel < curdel) )\n delims.put(cc, newdel);\n }",
"public void setL(double value) {\n this.l = value;\n }",
"public void setdat()\n {\n }",
"public void setData(double[] d){\r\n\t\t//make a deeeeeep copy of d\r\n\t\tdouble[] newData = new double[d.length];\r\n\t\t\r\n\t\t//fill with passed values\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\tnewData[i] = d[i];\r\n\t\t}\r\n\t\t//set data equal to a ref to newData array\r\n\t\tthis.data = newData;\r\n\t}",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));}",
"private void updLTMST() \n\t{\n\t\ttry{\n\t\t\tM_strSQLQRY = \"Update PR_LTMST set \";\n\t\t\tM_strSQLQRY += \"LT_DSPQT = LT_DSPQT - \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"LT_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"LT_LUSBY = '\"+ cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"LT_LUPDT = '\"+ M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where lt_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lt_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_rclno = '\"+strRCLNO+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update pr_ltmst table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"setLCLUPD\");\n\t\t}\n\t}",
"public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);",
"public Set<V> getL() {\n\t\treturn L;\n\t}",
"private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}",
"public void xsetDependLineIDArray(org.apache.xmlbeans.XmlInt[]dependLineIDArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(dependLineIDArray, DEPENDLINEID$26);\n }\n }",
"private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}",
"public void setContactRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));}",
"void setOrder(Order order);",
"public void xsetSortOrder(org.apache.xmlbeans.XmlInteger sortOrder)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInteger target = null;\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(SORTORDER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(SORTORDER$0);\n }\n target.set(sortOrder);\n }\n }",
"public void setLBR_SubSerie (String LBR_SubSerie);",
"public void setSWAPdmtObj(SWAPdmt dmt)\n {\n swapDmt = dmt;\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public void xsetDesc(org.apache.xmlbeans.XmlString desc)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESC$10);\r\n }\r\n target.set(desc);\r\n }\r\n }",
"public void setRoomid(Integer newVal) {\n if ((newVal != null && this.roomid != null && (newVal.compareTo(this.roomid) == 0)) || \n (newVal == null && this.roomid == null && roomid_is_initialized)) {\n return; \n } \n this.roomid = newVal; \n roomid_is_modified = true; \n roomid_is_initialized = true; \n }",
"public void setChg(List chgDsData) {\n this.chgDsData = chgDsData;\n }",
"public void setLow(int L)\t\n\t{\t//start of setLow method\n\t\tLOW_NUM = L;\n\t}",
"public void setSpecification(DataHSpecification spec) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tmyData.spec=spec;\n\t}",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"static void set_sl_rr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int sl = v >> 4;\n int rr = v & 0x0f;\n\n SLOT.SL = SL_TABLE[sl];\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.eve = SLOT.SL;\n }\n SLOT.RR = new IntArray(OPL.DR_TABLE, rr << 2);\n SLOT.evsr = SLOT.RR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_RR) {\n SLOT.evs = SLOT.evsr;\n }\n }",
"@Override\n\tpublic DenseBlock set(DenseBlock db) {\n\t\tboolean aligned = blockSize()*_odims[0] == db.blockSize()*db._odims[0];\n\t\tif( aligned ) {\n\t\t\tfor (int ri = 0; ri < _rlen; ri += blockSize()) {\n\t\t\t\tint bix = ri / blockSize();\n\t\t\t\tdouble[] other = db.valuesAt(bix);\n\t\t\t\tIntStream.range(0, blockSize(bix) * _odims[0])\n\t\t\t\t\t.forEach(i -> setInternal(bix, i, other[i]));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tlong globalPos = 0;\n\t\t\tint bsize = blockSize() * _odims[0];\n\t\t\tfor( int bix = 0; bix < db.numBlocks(); bix++ ) {\n\t\t\t\tdouble[] other = db.valuesAt(bix);\n\t\t\t\tint blen = db.blockSize(bix) * db._odims[0];\n\t\t\t\tint bix2 = (int)(globalPos / bsize);\n\t\t\t\tint off2 = (int)(globalPos % bsize);\n\t\t\t\tint blen2 = size(bix2);\n\t\t\t\tfor( int i = 0; i < Math.min(blen,blen2-off2); i++ )\n\t\t\t\t\tsetInternal(bix2, off2+i, other[i]);\n\t\t\t\tif( blen2-off2 < blen )\n\t\t\t\t\tfor( int i = blen2-off2; i < blen; i++ )\n\t\t\t\t\t\tsetInternal(bix2+1, i-(blen2-off2), other[i]);\n\t\t\t\tglobalPos += blen;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}"
]
| [
"0.67938906",
"0.5776134",
"0.56655806",
"0.5583076",
"0.552103",
"0.5400753",
"0.53151244",
"0.5275489",
"0.5259527",
"0.5245968",
"0.5241826",
"0.52282",
"0.52012223",
"0.5181677",
"0.51677847",
"0.5166574",
"0.50515187",
"0.50502074",
"0.50193393",
"0.501355",
"0.49938092",
"0.49911177",
"0.49884593",
"0.49866164",
"0.49576238",
"0.49555528",
"0.49549356",
"0.49416438",
"0.49412626",
"0.49367744",
"0.49240735",
"0.4915682",
"0.4894712",
"0.4893845",
"0.489374",
"0.48833218",
"0.48833218",
"0.48730418",
"0.48641112",
"0.48345304",
"0.48147604",
"0.47941723",
"0.47891715",
"0.47779456",
"0.4769738",
"0.4769738",
"0.47522432",
"0.4743897",
"0.47342315",
"0.47096074",
"0.4706455",
"0.47051153",
"0.47023708",
"0.47021377",
"0.47021377",
"0.46663293",
"0.46391505",
"0.4634202",
"0.46265057",
"0.46252957",
"0.46232313",
"0.46204305",
"0.46148124",
"0.46132907",
"0.46132314",
"0.4607175",
"0.46040514",
"0.46022198",
"0.45993498",
"0.45991907",
"0.45909876",
"0.45891857",
"0.45840016",
"0.45840016",
"0.45774928",
"0.45624253",
"0.45608318",
"0.4555666",
"0.455077",
"0.4543483",
"0.45378765",
"0.45377612",
"0.45367098",
"0.45357522",
"0.45316103",
"0.45255083",
"0.45225573",
"0.4520451",
"0.4519972",
"0.45184794",
"0.4518231",
"0.45179513",
"0.45159414",
"0.4515005",
"0.45144495",
"0.4511625",
"0.45097554",
"0.45060945",
"0.4504227",
"0.45035806"
]
| 0.7242475 | 0 |
indexed setter for lDSOrdRec sets an indexed value | public void setLDSOrdRec(int i, LDSOrdRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLDSOrdRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void SetRecord(int index, Record rec){\n\t}",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"public void set(long index);",
"void setIndexed(boolean indexed);",
"public final native void setOrdnum(int ordnum) /*-{\n\t\tthis.ordnum = ordnum;\n\t}-*/;",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"void set(int idx, int val);",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"void setIdx(int i);",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"public String updateDSIndex(String dsID, String dschemaID, String attriName);",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ Long set(int i, Long l) {\n long longValue = l.longValue();\n zzpu();\n zzci(i);\n long[] jArr = this.zzbqi;\n long j = jArr[i];\n jArr[i] = longValue;\n return Long.valueOf(j);\n }",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"void setLong(int index, long value) throws SQLException;",
"public LDSOrdRecType getLDSOrdRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);\n return (LDSOrdRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i)));}",
"public void setDPIndex(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPIndex)));\n\t\tthis.m_sDPIndex=value;\n\t}",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"void setObject(int index, Object value) throws SQLException;",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"void set(int index, T data);",
"public void setIndexedVariable() {\n indexed = true;\n }",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void setIndex(int index) { this.index = index; }",
"public void setIndex(int i) {\n\t\t\n\t}",
"@Override\n final public void setSortedIndex(int sortedIndex) {\n assert sortedIndex > SORTED_INDEX_UNKNOWN;\n assert this.sortedIndex == SORTED_INDEX_UNKNOWN;\n this.sortedIndex = sortedIndex;\n }",
"public abstract <T> void set(int index, T value);",
"void setInt(int index, int value) throws SQLException;",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public abstract E set(int index, E e);",
"private void _setIndexType(String ndxType)\n {\n if (this.indexType == null) {\n synchronized (this.indexTypeLock) {\n if (this.indexType == null) {\n this.indexType = ndxType;\n }\n }\n }\n }",
"public void setRows_sorted(Long rows_sorted) {\n this.rows_sorted = rows_sorted;\n }",
"public void set(int i, long v) {\n data[i] = newValue(v);\n }",
"void setRef(int index, Ref value) throws SQLException;",
"public void changeDataIndx(int indxMove)\n\t{\n\t\tlogger.debug(\"Index moved \"+indxMove);\n\t\ttry {\n\t\t\tint currDataID=table.changeDataIndx(indxMove);\n\t\t\tif(currDataID>-1)\n\t\t\t\tdataIndexChanged();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error changing index: \",e);\n\t\t\tMainUIFrame.setStatusMessage(\"Error changing index: \"+e.getMessage());\n\t\t}\n\t}",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"public abstract void setCntRod(int cntRod);",
"public void setElementAt(Object obj, int index);",
"public void setOrdinal(Integer ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t}",
"public void setOrdinal(Integer ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t}",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"public abstract void setLOD(int lod);",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public abstract void updateIndex();",
"@Override\n\tpublic void setValueSparse(final int indexOfIndex, final double value) {\n\n\t}",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"public void setArrIdx(int arrIdx) {\n\t\tthis.arrIdx = arrIdx;\n\t}",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"protected void _setLongLE(int index, long value)\r\n/* 519: */ {\r\n/* 520:533 */ HeapByteBufUtil.setLongLE(this.array, index, value);\r\n/* 521: */ }",
"public void setSortOrder(java.math.BigInteger sortOrder)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SORTORDER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SORTORDER$0);\n }\n target.setBigIntegerValue(sortOrder);\n }\n }",
"void set(int index, Object element);",
"public void setRecreateIndexes(java.lang.Long value);",
"private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }",
"public T setVal(int idx, T val) {\n\t\tint index = (idx << 1) + 1;\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT old = (T) nvPairs.get(index);\n\t\tnvPairs.set(index, val);\n\t\treturn old;\n\t}",
"public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }",
"int updateByPrimaryKeySelective(TSortOrder record);",
"public void setIndexEditAttributeValue() throws ServiceException {\r\n\t\t\tString index = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"index\");\r\n\t\t\tif(CommonUtils.isStringNotEmpty(index)){\r\n\t\t\t\tLong record = Integer.valueOf(index).longValue();\r\n\t\t\t\twsrdModel.setIndex(record);\r\n\t\t\t\tUiAirplaneModel model = uiAirplaneModel.getAirplaneList().get(Integer.valueOf(index));\r\n\t\t\t\t\r\n\t\t\t\tif(ObjectUtil.isListNotEmpty(model.getApNamesList())){\r\n\t\t\t\t\tfor(UiAirplaneModel val : model.getApNamesList()){\r\n\t\t\t\t\t\tval.setInputDisplayItem(false);\r\n\t\t\t\t\t\tval.setOutputDisplayItem(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tuiAirplaneModel.setSelectedEditGrp(showGroupsName(model));\r\n\t\t\t\tuiAirplaneModel.setApNamesList(model.getApNamesList());\r\n\t\t\t}else{\r\n\t\t\t\twsrdModel.setIndex(null);\r\n\t\t\t\tUiAirplaneModel model = uiAirplaneModel.getNewAirplane().get(0);\r\n\t\t\t\tloadAirPopup(model.getAirplaneNames());\r\n\t\t\t\tuiAirplaneModel.setSelectedGrp(showGroupsName(model));\r\n\t\t\t}\r\n\t\t\twsrdModel.setDuplicateErrorMsg(\"showPop1('AirplaneNamesPanel')\");\r\n\t\t}",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"public void setTargetValue(int idx, Object value);",
"public void setValue(String val, int idx) {\n lock.lock();\n try {\n binData[idx] = val;\n data[idx].add(val);\n }\n finally {\n lock.unlock();\n }\n }",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));}",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);",
"public final void setOrdinal (int ordinal)\n {\n if ( this.ordinal == ordinal ) return;\n this.ordinal = ordinal;\n toGregorian();\n }",
"public void set(int rowIndex, int columnIndex, int value) { target.set(index.get(rowIndex), columnIndex, value); }",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"@Override\n public void alterColumnByIndex(int index, XPropertySet descriptor) throws SQLException, IndexOutOfBoundsException {\n \n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"int updateByPrimaryKeySelective(R_order record);",
"void setColumnIndex(int index);",
"public void setIndividualRec(int i, IndividualRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)\n jcasType.jcas.throwFeatMissing(\"individualRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"@VTID(26)\n void setSortItems(\n com.exceljava.com4j.excel.XlSlicerSort rhs);",
"int updateByPrimaryKeySelective(ClOrderInfo record);",
"io.dstore.values.IntegerValue getSortNo();",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }",
"int updateByPrimaryKeySelective(NjOrderWork2 record);",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void changeSortOrder();",
"public void xsetSortOrder(org.apache.xmlbeans.XmlInteger sortOrder)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInteger target = null;\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(SORTORDER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(SORTORDER$0);\n }\n target.set(sortOrder);\n }\n }",
"int updateByPrimaryKey(TSortOrder record);",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }"
]
| [
"0.63510793",
"0.6239522",
"0.6236034",
"0.6087334",
"0.59962606",
"0.58402133",
"0.5761461",
"0.57503545",
"0.5668634",
"0.5667065",
"0.5582312",
"0.55425805",
"0.54804647",
"0.54755914",
"0.54555297",
"0.54515094",
"0.5418374",
"0.5363484",
"0.53322303",
"0.5320528",
"0.5254676",
"0.52359897",
"0.5234224",
"0.5181391",
"0.51775146",
"0.5176338",
"0.5173368",
"0.51683754",
"0.5153892",
"0.51499265",
"0.51417726",
"0.51411545",
"0.5138693",
"0.5134602",
"0.51198876",
"0.51116914",
"0.5101669",
"0.51014733",
"0.50985545",
"0.5089899",
"0.50850195",
"0.5082909",
"0.50766873",
"0.50751317",
"0.5066755",
"0.50636005",
"0.50572324",
"0.5056594",
"0.5056594",
"0.5053152",
"0.5044607",
"0.5043579",
"0.5033171",
"0.50320476",
"0.5027906",
"0.5026036",
"0.5023001",
"0.50202405",
"0.50114375",
"0.50108665",
"0.50020295",
"0.49983203",
"0.49971625",
"0.49965835",
"0.4986161",
"0.49840555",
"0.4983938",
"0.49835005",
"0.4982715",
"0.49705866",
"0.4965149",
"0.49589851",
"0.49582186",
"0.49451992",
"0.49442816",
"0.49315107",
"0.49313766",
"0.49313766",
"0.49261558",
"0.49162656",
"0.49021712",
"0.48970732",
"0.48920932",
"0.48917118",
"0.48902246",
"0.48852807",
"0.48727787",
"0.48686665",
"0.48651782",
"0.4864888",
"0.48563802",
"0.48563802",
"0.4852251",
"0.485199",
"0.48500493",
"0.48396355",
"0.4836736",
"0.4836028",
"0.48329395",
"0.48286813"
]
| 0.70375925 | 0 |
Feature: groupRec setter for repositoryRec sets | public void setRepositoryRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGroup(entity.Group value);",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));}",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void setRepositoryRec(int i, RepositoryRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setGroupRec(int i, GroupRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void overrideGroup(String group) {\n this.group = group;\n }",
"public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Set lookup groups:\");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tl.append(\" \"+groups[i] );\n\t\t}\n\t\tlog.log(Level.CONFIG, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdata.groups = groups;\n\t\t\tio.writeState( data );\n\t\t\tdisco.setGroups(data.groups);\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public void setGrpDetail(HashMap<String, String> d, String grp, String prev, int type) {\n if(grp.equals(prev)){\n grpD.remove(prev);\n grpD.put(grp, d);\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n\t} else{\n grpD.put(grp, d);\n grpD.remove(prev);\n List li = (List) grpUsrs.get(prev);\n grpUsrs.remove(prev);\n grpUsrs.put(grp, li);\n List li2 = (List) grpRls.get(prev);\n grpRls.remove(prev);\n grpRls.put(grp, li);\n\n for (Label l : allGrps) {\n if (prev.equals((String) l.getValue())) {\n l.setContentMode(Label.CONTENT_TEXT);\n l.setValue(grp);\n\n }\n\n }\n db.createGroup(grp,grpD.get(grp),grpUsrs.get(grp),grpRls.get(grp));\n db.removeGroup(prev);\n\t}\n updateAllUsrs();\n updateAllRls();\n\n comapp1.grpListBuild();\n }",
"public void setGroupId(String newValue);",
"GroupRefType createGroupRefType();",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"void setGroupId(String groupId);",
"void add(R group);",
"public int getIdGroup() {\n return idGroup;\n }",
"public long getGroup()\r\n { return group; }",
"public void setGroupEnabled(int group, boolean enabled);",
"public interface GroupsRepository {\r\n\r\n Group findByInternalId(Long id) throws RepositoryAccessException;\r\n\r\n List<Group> findByGroupName(String name) throws RepositoryAccessException;\r\n\r\n List<Group> findAllGroups() throws RepositoryAccessException;\r\n\r\n public Group saveGroup(final Group group) throws RepositoryAccessException;\r\n\r\n public void deleteGroup(final Group group) throws RepositoryAccessException;\r\n\r\n public void deleteAuthorityOfGroup(final Group group, final Authority authority) throws RepositoryAccessException;\r\n\r\n public Group addAuthorityToGroup(final Group group, final Authority authority) throws RepositoryAccessException;\r\n\r\n public List<Authority> findAuthoritiesOfGroup(final Group group) throws RepositoryAccessException;\r\n\r\n public List<Authority> findAuthoritiesOfGroup(final Long id) throws RepositoryAccessException;\r\n\r\n public List<Group> getGroupListByGroupIds(String[] groupIds) throws RepositoryAccessException;\r\n\r\n public void deleteAuthoritiesOfGroup(Group group) throws RepositoryAccessException;\r\n\r\n public void addAuthoritiesToGroup(Group group, Set<Authority> authorities);\r\n\r\n public void deleteUserOfGroup(Group group, User user);\r\n\r\n public void addUserToGroup(Group group, User user);\r\n\r\n\r\n}",
"@Test\n public void testSetGroupNotes() {\n System.out.println(\"setGroupNotes\");\n CharterDto instance = new CharterDto(\"Test name\");\n GroupNote[] expResult = {new GroupNote(\"S1\"), new GroupNote(\"S2\"), new GroupNote(\"S1\"), new GroupNote(\"S2\"), new GroupNote(\"S1\"), new GroupNote(\"S2\")};\n\n instance.setGroupNotes(expResult);\n\n GroupNote[] result = instance.getGroupNotes();\n assertArrayEquals(expResult, result);\n\n }",
"private void addGroupsToGroupCache(ModelGroupReader modelGroupReader,\n\t\t ResourceHandler resourceHandler)\n throws OfbizDataException {\n\t\tif(modelGroupReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null timereport group reader or resource \" +\n\t\t\t\t\t \"handler in addGroupsToGroupCache() method.\" +\n\t\t\t\t\t \" Model reader: %s resource handler: %s\",\n\t\t\t\t\t modelGroupReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tMap<?, ?> groupCache = modelGroupReader.getGroupCache();\n Document document;\n\n\t\t\tsynchronized (ModelGroupReader.class) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n\t\t\t\t\tString msg = \"Error loading entity group timereport\";\n\t\t\t\t\tLOG.error(msg, e);\n\t\t\t\t\tthrow new OfbizDataException(msg, e);\n\t\t\t\t}\n\t\t\t\tif (document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n String msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tif (curChild.getNodeType() == Node.ELEMENT_NODE &&\n\t\t\t\t\t\t\t\"entity-group\".equals(curChild.getNodeName())) {\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n UtilXml.checkEmpty(curEntity.getAttribute(\"entity\"));\n\t\t\t\t\t\t\tString groupName =\n UtilXml.checkEmpty(curEntity.getAttribute(\"group\"));\n\n\t\t\t\t\t\t\tif(groupName == null ||\n\t\t\t\t\t\t\t entityName == null) {\n\t\t\t\t\t\t\t continue;\n }\n safelyMapAdd(groupCache, entityName, groupName);\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"[addGroupsToGroupCache()] No child nodes found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding groups \" +\n\t\t\t\t\t \"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"public void setBookGroup(java.lang.String value);",
"public final void setNewObjectGroup(DodlesGroup newNewObjectGroup) {\n newObjectGroup = newNewObjectGroup;\n }",
"public void assignOneGroup(final boolean val) {\n oneGroup = val;\n }",
"public ProductGroup beProductGroup();",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public Group saveGroup(Group group);",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"@Override\n\tpublic void setGroupId(long groupId);",
"@Override\n\tpublic void setGroupId(long groupId);",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"@Override\n public void setGroupId(long groupId) {\n _partido.setGroupId(groupId);\n }",
"public void setGroup(final Group group) {\n this.group = group;\n }",
"private static Consumer<InternalGroupUpdate.Builder> setCurrentMembership(GroupBundle bundle) {\n return b ->\n b.setMemberModification(\n in ->\n bundle.members().stream().map(m -> m.getAccountId()).collect(toImmutableSet()))\n .setSubgroupModification(\n in ->\n bundle.byId().stream().map(m -> m.getIncludeUUID()).collect(toImmutableSet()));\n }",
"@Inject(\n method = \"getGroupForRecipe\",\n at = @At(\"HEAD\"),\n cancellable = true\n )\n private static void hookGetGroupForRecipe(Recipe<?> recipe, CallbackInfoReturnable<RecipeBookGroup> cir) {\n if (recipe.getType() == Woodcutters.RECIPE_TYPE)\n cir.setReturnValue(RecipeBookGroup.STONECUTTER);\n\n if (recipe.getType() == Kilns.RECIPE_TYPE)\n cir.setReturnValue(RecipeBookGroup.FURNACE_MISC);\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_paper.setGroupId(groupId);\n\t}",
"public FSArray getGroupRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec)));}",
"public void config(Group[] group) {\n\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_dictData.setGroupId(groupId);\n\t}",
"GroupQueryBuilder setName(String name);",
"public void saveSelectedGroup(Elem group) {\n if (prefs == null) return;\n if (group == null) return;\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SettingsActivity.GROUP_ID_PREF, group.id);\n editor.putString(SettingsActivity.GROUP_NAME_PREF, group.name);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) editor.apply();\n else editor.commit();\n }",
"int updateByPrimaryKeySelective(SeGroup record);",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_changesetEntry.setGroupId(groupId);\n\t}",
"public RecordObject addGroup(String token, Object record) throws RestResponseException;",
"sync_group_definition getSync_group_definition();",
"@Override\n public GroupMembership getGroupMembership() { return groupMembership; }",
"@Bean\n public OverrideGetter groupOverrideGetter() {\n OverrideGetter bean = new OverrideGetter();\n bean.setOverrideableType(\"Target Group\");\n\n return bean;\n }",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"@Override\r\n\tpublic void getGroup(ShoppingList sl) {\r\n\r\n\t}",
"public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}",
"public Set getGroups() { return this.groups; }",
"@Override\n\tpublic void saveOrUpdate(Group group) throws ServiceException {\n\n\t}",
"public interface GroupReference extends ComplexExtensionDefinition,\n SequenceDefinition, ComplexTypeDefinition, SchemaComponent {\n public static final String REF_PROPERTY = \"ref\";\n public static final String MAX_OCCURS_PROPERTY = \"maxOccurs\";\n public static final String MIN_OCCURS_PROPERTY = \"minOccurs\";\n\n String getMaxOccurs();\n void setMaxOccurs(String max);\n String getMaxOccursDefault();\n String getMaxOccursEffective();\n \n Integer getMinOccurs();\n void setMinOccurs(Integer min);\n int getMinOccursDefault();\n int getMinOccursEffective();\n \n NamedComponentReference<GlobalGroup> getRef();\n void setRef(NamedComponentReference<GlobalGroup> def);\n}",
"protected abstract Set getUserGroups();",
"@Override\n public Group buildEntity(ResultSet resultSet) throws DAOExceptions {\n Group group = new Group();\n\n try{\n int id = resultSet.getInt(ID_COLUMN_LABEL);\n group.setId(id);\n\n int adminId = resultSet.getInt(ADMIN_ID_COLUMN_LABEL);\n group.setAdminId(adminId);\n\n String name = resultSet.getString(NAME__COLUMN_LABEL);\n group.setGroupName(name);\n\n Date dateCreate = resultSet.getDate(DATE_CREATED_COLUMN_LABEL);\n group.setDateCreated(dateCreate);\n\n String groupDescription = resultSet.getString(GROUP_DESCRIPTION_COLUMN_LABEL);\n group.setGroupDescription(groupDescription);\n }\n catch (SQLException exception){\n throw new DAOExceptions(exception.getMessage(), exception);\n }\n return group;\n }",
"int updateByPrimaryKeySelective(ProjGroup record);",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_second.setGroupId(groupId);\n\t}",
"public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }",
"public void setRelatedGroup(RelatedGroup relatedGroup)\r\n\t{\r\n\t\tthis.relatedGroup = relatedGroup;\r\n\t}",
"public GroupRecType getGroupRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);\n return (GroupRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i)));}",
"private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}",
"public boolean setLightForGroupingToGroup(LinkedList<Light> group) {\n Log.i(tag, \"setLightForGroupingToGroup\");\n if (group.contains(this.lightForGrouping)) {\n Log.i(tag, \"dropped into its own group, dont do anything\");\n } else {\n if ((this.lightForGrouping instanceof DreamScreen) && ((Light) group.get(0)).getGroupNumber() != 0) {\n Iterator it = group.iterator();\n while (true) {\n if (it.hasNext()) {\n if (((Light) it.next()) instanceof DreamScreen) {\n Toast.makeText(this, \"Warning, multiple DreamScreens in the same group may cause unexpected behavior.\", 1).show();\n break;\n }\n } else {\n break;\n }\n }\n }\n Iterator it2 = this.groups.iterator();\n while (it2.hasNext()) {\n ((LinkedList) it2.next()).remove(this.lightForGrouping);\n }\n this.lightForGrouping.setGroupName(((Light) group.get(0)).getGroupName(), false);\n this.lightForGrouping.setGroupNumber(((Light) group.get(0)).getGroupNumber(), false);\n if (this.lightForGrouping instanceof DreamScreen) {\n group.addFirst(this.lightForGrouping);\n } else {\n group.add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n setToolbarTitle();\n }\n for (int i = 0; i < this.groups.size(); i++) {\n if (i != 0 && ((LinkedList) this.groups.get(i)).isEmpty()) {\n this.groups.remove(i);\n Log.i(tag, \"removed group\");\n }\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n Log.i(tag, \"redrawing currentLight sidekick dreamscreenfragment\");\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }",
"GroupQueryBuilder reset();",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}",
"public void setGroup(UserGroup group) {\n this.group = group;\n }",
"public Group getGroupData(String groupName);",
"public RepositoryRecType getRepositoryRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);\n return (RepositoryRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i)));}",
"int updateByPrimaryKey(SeGroup record);",
"public abstract Collection getGroups();",
"private void addGroupToContext(final Group group,\n\t\t\tfinal RunnerContext pContext,\n\t\t\tfinal Map<String, HashMap<String, Object>> values) {\n\n\t\tHashMap<String, Object> itemCtx = new HashMap<String, Object>();\n\n\t\tif (isRelevant(group, pContext)) {\n\t\t\titemCtx.put(\"relevant\", TRUE);\n\t\t} else {\n\t\t\titemCtx.put(\"relevant\", FALSE);\n\t\t}\n\n\t\tModel model = pContext.getModel();\n\t\tInstance inst = pContext.getInstance();\n\n\t\tString label = this.translate(group.getLabel(), pContext.getLocale());\n\t\t\n\t\tlabel = FillProcessor.processFills(label, inst, model,\n\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"label\", label);\n\t\t\n\t\tString hint = this.translate(group.getHint(), pContext.getLocale());\n\n\t\thint = FillProcessor.processFills(hint, inst, model,\n\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"hint\", hint);\n\n\t\tvalues.put(group.getId(), itemCtx);\n\t\t\n\t\tif (group instanceof Vocabulary) {\n\n\t\t\titemCtx.put(\"options\", ((Vocabulary) group).getOptions());\n\t\t}\n\t}",
"public void setMarriageGrp(String marriageGrp) {\n this.marriageGrp = marriageGrp;\n }",
"public static void main(String[] args)\n\t{\n\t\tGroupSynchronization groupSynchronization = new GroupSynchronization();\n\t\tGroup group\t\t\t= new Group();\n\t\t\n//\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n//\t\tsubNodeGroupInfo.setGroupName(\"组一\");\n//\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.市公司一.公司一部门二.组一\");\n//\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600007\");\n//\t\tsubNodeGroupInfo.setGroupType(\"0\");\n//\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n//\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n//\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600004\");\n//\t\tsubNodeGroupInfo.setGroupCompanytype(\"3\");\n//\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n//\t\tsubNodeGroupInfo.setGroupIntId(600009);\n//\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600004;000000000600007;000000000600009;\");\n//\t\t\n//\t\tgroupSynchronization.modifySynchronization(\"000000000600009\",subNodeGroupInfo);\n//\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600009\");\n\t\t\n\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n\t\tsubNodeGroupInfo.setGroupName(\"公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.省公司部门一.公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600008\");\n\t\tsubNodeGroupInfo.setGroupType(\"3\");\n\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600003\");\n\t\tsubNodeGroupInfo.setGroupCompanytype(\"1\");\n\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n\t\tsubNodeGroupInfo.setGroupIntId(600007);\n\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600008;000000000600007;\");\n\t\t\n\t\tgroupSynchronization.modifySynchronization(\"000000000600007\",subNodeGroupInfo);\n\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600007\");\n\t}",
"public final DodlesGroup getNewObjectGroup() {\n return newObjectGroup;\n }",
"int updateByPrimaryKeySelective(SbGroupDetail record);",
"ZigBeeGroup getGroup(int groupId);",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }"
]
| [
"0.6649011",
"0.63148636",
"0.61598235",
"0.5936661",
"0.5782274",
"0.5680748",
"0.5619139",
"0.56182474",
"0.5582123",
"0.54971296",
"0.5457304",
"0.545332",
"0.5451681",
"0.54247916",
"0.5406222",
"0.53778917",
"0.536501",
"0.5333559",
"0.532481",
"0.529516",
"0.52859855",
"0.52774596",
"0.5272237",
"0.5269061",
"0.52654165",
"0.52654165",
"0.52654165",
"0.52654165",
"0.52654165",
"0.52654165",
"0.52514195",
"0.5230387",
"0.52169234",
"0.52169234",
"0.520794",
"0.5197111",
"0.51952356",
"0.51925147",
"0.5191304",
"0.51850873",
"0.5184935",
"0.5180742",
"0.5174769",
"0.5171657",
"0.517021",
"0.51642764",
"0.5160693",
"0.5142077",
"0.51362205",
"0.5129798",
"0.51185334",
"0.5099745",
"0.50929016",
"0.5086782",
"0.5085694",
"0.5076845",
"0.507602",
"0.5071553",
"0.506748",
"0.506317",
"0.50629795",
"0.5059516",
"0.50582045",
"0.5049293",
"0.5042136",
"0.50417155",
"0.50252604",
"0.5017015",
"0.501597",
"0.501597",
"0.501597",
"0.50151855",
"0.5008968",
"0.5005914",
"0.5001161",
"0.4996338",
"0.49901465",
"0.49878988",
"0.498526",
"0.49818966",
"0.49766654",
"0.4975054",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149",
"0.4969149"
]
| 0.60412115 | 3 |
indexed setter for repositoryRec sets an indexed value | public void setRepositoryRec(int i, RepositoryRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setIndexed(boolean indexed);",
"public void set(long index);",
"public void SetRecord(int index, Record rec){\n\t}",
"void set(int idx, int val);",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"public void setIndexedVariable() {\n indexed = true;\n }",
"public abstract <T> void set(int index, T value);",
"void setIdx(int i);",
"public abstract void updateIndex();",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"public abstract E set(int index, E e);",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"void set(int index, Object element);",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"void setObject(int index, Object value) throws SQLException;",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"void set(int index, T data);",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"public void setIndex(int index) { this.index = index; }",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"public void setElementAt(Object obj, int index);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public abstract void setIndex(int i, boolean b);",
"void setRef(int index, Ref value) throws SQLException;",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"BinaryArrayReadWrite set(int index, byte x);",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"void setInt(int index, int value) throws SQLException;",
"void addIndexForRepository(long repositoryId);",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void setTargetValue(int idx, Object value);",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"public E set(int index, E element);",
"public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"protected synchronized void overrideEntityIndex(String entity, int index) { ent_2_i.put(entity,index); }",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"public void setIndex(int i) {\n\t\t\n\t}",
"public E set(int index, E obj)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.set(obj);\r\n return result;\r\n }",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"public void setIndexEditAttributeValue() throws ServiceException {\r\n\t\t\tString index = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"index\");\r\n\t\t\tif(CommonUtils.isStringNotEmpty(index)){\r\n\t\t\t\tLong record = Integer.valueOf(index).longValue();\r\n\t\t\t\twsrdModel.setIndex(record);\r\n\t\t\t\tUiAirplaneModel model = uiAirplaneModel.getAirplaneList().get(Integer.valueOf(index));\r\n\t\t\t\t\r\n\t\t\t\tif(ObjectUtil.isListNotEmpty(model.getApNamesList())){\r\n\t\t\t\t\tfor(UiAirplaneModel val : model.getApNamesList()){\r\n\t\t\t\t\t\tval.setInputDisplayItem(false);\r\n\t\t\t\t\t\tval.setOutputDisplayItem(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tuiAirplaneModel.setSelectedEditGrp(showGroupsName(model));\r\n\t\t\t\tuiAirplaneModel.setApNamesList(model.getApNamesList());\r\n\t\t\t}else{\r\n\t\t\t\twsrdModel.setIndex(null);\r\n\t\t\t\tUiAirplaneModel model = uiAirplaneModel.getNewAirplane().get(0);\r\n\t\t\t\tloadAirPopup(model.getAirplaneNames());\r\n\t\t\t\tuiAirplaneModel.setSelectedGrp(showGroupsName(model));\r\n\t\t\t}\r\n\t\t\twsrdModel.setDuplicateErrorMsg(\"showPop1('AirplaneNamesPanel')\");\r\n\t\t}",
"public T set(int i, T obj);",
"public void setValue(String val, int idx) {\n lock.lock();\n try {\n binData[idx] = val;\n data[idx].add(val);\n }\n finally {\n lock.unlock();\n }\n }",
"void update(int index, int val) {\n\t\tarray[index] = val;\n\t}",
"public void setRepositoryRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec, jcasType.ll_cas.ll_getFSRef(v));}",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"@Override\n public void setField(int id, int value) {\n \n }",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"@Override\n public void indexPersistable() {\n searchIndexService.indexAllResourcesInCollectionSubTreeAsync(getPersistable());\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"private void setRecordById(int recordId) {\n int index = 0;\n for (R r : foundItems) {\n if (recordId == getIdFunction.apply(r)) {\n setRecordIndex(index);\n return;\n }\n index++;\n }\n }",
"E set(int i , E e) throws IndexOutOfBoundsException;",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"void setArray(int index, Array value) throws SQLException;",
"public void SelectIndexById(String Name, int Value) {\n\t\t\r\n\t}",
"public void set(int i, long v) {\n data[i] = newValue(v);\n }",
"protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"E set(int i, E e) throws IndexOutOfBoundsException;",
"public int set(int index, int element);",
"@Override\n public E set(int i, E e) throws IndexOutOfBoundsException {\n checkIndex(i, size);\n E temp = data[i];\n data[i] = e;\n return temp;\n }",
"private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }",
"public E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }",
"public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }",
"public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}",
"private void setSeenInfo(\n int index, SeenInfo.Builder builderForValue) {\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, builderForValue.build());\n }",
"T set(int index, T element);",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"public Object set (int i, Object t)\r\n {\r\n }"
]
| [
"0.6969387",
"0.6524013",
"0.6361185",
"0.6358981",
"0.62867945",
"0.62119937",
"0.62104714",
"0.6147054",
"0.6112831",
"0.60677046",
"0.60133976",
"0.59606165",
"0.5948728",
"0.5943598",
"0.5892202",
"0.5881165",
"0.5879705",
"0.5879214",
"0.5863598",
"0.58614516",
"0.583552",
"0.5792486",
"0.57922375",
"0.57810646",
"0.5764464",
"0.5761512",
"0.5743163",
"0.5723049",
"0.5723049",
"0.57200706",
"0.5712713",
"0.57112277",
"0.5684869",
"0.5682078",
"0.5672362",
"0.56640583",
"0.56599844",
"0.5652027",
"0.564822",
"0.56368685",
"0.5625361",
"0.56215847",
"0.56206447",
"0.5604229",
"0.55950016",
"0.55780876",
"0.5544421",
"0.5536809",
"0.54975075",
"0.5486902",
"0.5486756",
"0.54738843",
"0.5469947",
"0.5468501",
"0.54671466",
"0.54547995",
"0.5445153",
"0.54365903",
"0.5433801",
"0.54245025",
"0.54235154",
"0.5413519",
"0.5412438",
"0.54097897",
"0.54055077",
"0.54016167",
"0.540153",
"0.5400532",
"0.5393494",
"0.53825617",
"0.5379863",
"0.53794813",
"0.5373302",
"0.5373034",
"0.53687036",
"0.5367447",
"0.5364232",
"0.53628075",
"0.53459555",
"0.534578",
"0.5339824",
"0.53293276",
"0.5327698",
"0.5327278",
"0.53246266",
"0.5317568",
"0.5311541",
"0.5311066",
"0.5298594",
"0.52960694",
"0.52877903",
"0.5284264",
"0.52815455",
"0.5276815",
"0.5272416",
"0.52711576",
"0.5267687",
"0.5258586",
"0.52556473",
"0.5253293"
]
| 0.63837886 | 2 |
setter for sourceRec sets | public void setSourceRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSourceRec(int i, SourceRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);\n jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}",
"public void \n setSourceDescription( SourceDescription[] sourceDesc);",
"public void setSource(SourceSchema s) throws MediatorException{\n\t\tif(s==null){\n\t\t\t//name is not a source, it's probably a rule head from the query\n\t\t\treturn;\n\t\t}\n\t\tsource=s;\n\t\tif(source.getAttrs().size()!=terms.size()){\n\t\t\tthrow(new MediatorException(\"Number of attributes in predicate \" + this + \" has to be equal with attrs in \" + source.getAttrs()));\n\t\t}\n\n\t}",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSources (LSPSource[] sources) {\r\n this.sources = sources;\r\n }",
"public void setSourceDescription(SourceDescription[] userdesclist) {\n if (userdesclist != null) {\n SourceDescription currdesc;\n String cname = null;\n for (int i = 0; i < userdesclist.length; i++) {\n currdesc = userdesclist[i];\n if (currdesc != null && currdesc.getType() == 1) {\n cname = userdesclist[i].getDescription();\n break;\n }\n }\n String sourceinfocname = null;\n if (this.sourceInfo != null) {\n sourceinfocname = this.sourceInfo.getCNAME();\n }\n if (!(this.sourceInfo == null || cname == null || cname.equals(sourceinfocname))) {\n this.sourceInfo.removeSSRC(this);\n this.sourceInfo = null;\n }\n if (this.sourceInfo == null) {\n this.sourceInfo = this.cache.sourceInfoCache.get(cname, true);\n this.sourceInfo.addSSRC(this);\n }\n for (SourceDescription currdesc2 : userdesclist) {\n if (currdesc2 != null) {\n switch (currdesc2.getType()) {\n case 2:\n if (this.name != null) {\n this.name.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.name = new SourceDescription(2, currdesc2.getDescription(), 0, false);\n break;\n }\n case 3:\n if (this.email != null) {\n this.email.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.email = new SourceDescription(3, currdesc2.getDescription(), 0, false);\n break;\n }\n case 4:\n if (this.phone != null) {\n this.phone.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.phone = new SourceDescription(4, currdesc2.getDescription(), 0, false);\n break;\n }\n case 5:\n if (this.loc != null) {\n this.loc.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.loc = new SourceDescription(5, currdesc2.getDescription(), 0, false);\n break;\n }\n case 6:\n if (this.tool != null) {\n this.tool.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.tool = new SourceDescription(6, currdesc2.getDescription(), 0, false);\n break;\n }\n case 7:\n if (this.note != null) {\n this.note.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.note = new SourceDescription(7, currdesc2.getDescription(), 0, false);\n break;\n }\n case 8:\n if (this.priv != null) {\n this.priv.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.priv = new SourceDescription(8, currdesc2.getDescription(), 0, false);\n break;\n }\n default:\n break;\n }\n }\n }\n }\n }",
"public void setSource (String source);",
"public void setSource(String source);",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"private void givenRecipeSourceIsSet() {\n sourceSet = new HashSet();\n\n Recipe recipe1 = new Recipe();\n recipe1.setId(1L);\n sourceSet.add(recipe1);\n\n Recipe recipe2 = new Recipe();\n recipe2.setId(2L);\n sourceSet.add(recipe2);\n }",
"public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }",
"public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}",
"public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(sourceDataArray, SOURCEDATA$0);\r\n }\r\n }",
"public void setSource(Object o) {\n\t\tsource = o;\n\t}",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"@Override\n public void setIncludeSources(Collection<File> sources) throws InterruptedException\n {\n Collection<File> files = populateIncludedSourceFiles(sources);\n \n super.setIncludeSources(files.toArray(new File[files.size()]));\n }",
"public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }",
"public void setSource(float xx, float yy);",
"@com.facebook.react.uimanager.annotations.ReactProp(name = \"src\")\n public void setSource(@javax.annotation.Nullable java.lang.String r4) {\n /*\n r3 = this;\n r0 = 0;\n if (r4 == 0) goto L_0x0017;\n L_0x0003:\n r1 = android.net.Uri.parse(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = r1.getScheme();\t Catch:{ Exception -> 0x0025 }\n if (r2 != 0) goto L_0x0023;\n L_0x000d:\n if (r0 != 0) goto L_0x0017;\n L_0x000f:\n r0 = r3.E();\n r0 = m12032a(r0, r4);\n L_0x0017:\n r1 = r3.f11557g;\n if (r0 == r1) goto L_0x001e;\n L_0x001b:\n r3.x();\n L_0x001e:\n r3.f11557g = r0;\n return;\n L_0x0021:\n r1 = move-exception;\n r1 = r0;\n L_0x0023:\n r0 = r1;\n goto L_0x000d;\n L_0x0025:\n r0 = move-exception;\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode.setSource(java.lang.String):void\");\n }",
"public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(Mat source) {\n this.source = source;\n }",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }",
"public void setSource(char[] source) {\n\t\tthis.source = source;\n\t}",
"void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"public void setSourceTable(String sourceTable);",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;",
"public final void setSource(final Integer newSource) {\n this.source = newSource;\n }",
"private void resetSource()\n {\n source.setLocation(sourceX, sourceY);\n source = null;\n sourceX = 0;\n sourceY = 0;\n sourceRow = 0;\n sourceColumn = 0;\n }",
"public void setDataSource(StarObjectClass self,String path){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\ttry{\r\n \t\t\tmediaplayer.setDataSource(path);\r\n \t\t}catch(IOException e){\r\n \t\t\tSrvGroup._Print(e.toString());\r\n \t\t}\r\n \t}",
"public void testExistingSeqWithChangedNamedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -20 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setLibraryName(\"name2\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-300);\n msProcessor.processExistingSeqSrc(accid, seqKey, \"oldRaw\", raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records still not found\n // the association should have changed\n sql = \"select _source_key from seq_source_assoc where \" +\n \"_sequence_key = -300\";\n nav = sqlMgr.executeQuery(sql);\n nav.next();\n assertEquals(nav.getRowReference().getInt(1), new Integer(-30));\n }",
"public DomainBatchDetailSet(DomainBatchDetailSet source) {\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Domain != null) {\n this.Domain = new String(source.Domain);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Reason != null) {\n this.Reason = new String(source.Reason);\n }\n if (source.CreatedOn != null) {\n this.CreatedOn = new String(source.CreatedOn);\n }\n if (source.UpdatedOn != null) {\n this.UpdatedOn = new String(source.UpdatedOn);\n }\n }",
"static public void setDataSource(DataSource source) {\n ds = source;\n }",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"protected void setExperienceSources(Set<ExperienceType> experienceSources) {\r\n\t\tthis.experienceSources = experienceSources;\r\n\t}",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public void setCardDataSources(Vector<DataSource> sources) {\n cardDataSources = sources;\n }",
"public void setDataSource1(StarObjectClass self,StarObjectClass fd){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tStarObjectClass assertfileclass = Service._GetObject(\"AssetFileDescriptorClass\");\r\n \t\tif( assertfileclass._IsInst(fd) == true ){\r\n \t\t\tStarCLEAssetFileDescriptor starfd = (StarCLEAssetFileDescriptor)WrapAndroidClass.GetAndroidObject(fd,\"AndroidObject\");\r\n \t\t\tif( starfd.assetfiledescriptor == null ){\r\n \t\t\t\tSrvGroup._Print(\"input fd is not init\");\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\ttry{\r\n \t\t\t\tmediaplayer.setDataSource(starfd.assetfiledescriptor.getFileDescriptor());\r\n \t\t\t}catch(IOException e){\r\n \t\t\t\tSrvGroup._Print(e.toString());\r\n \t\t\t}\r\n \t\t}else\r\n \t\t\tSrvGroup._Print(\"input fd is invalid\");\r\n \t}",
"@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}",
"private void updateSubjectsSourceFlag(OpBroker broker) {\r\n OpQuery allSubjectsQuery = broker.newQuery(\"from OpSubject\");\r\n Iterator<OpSubject> subjectsIterator = broker.iterate(allSubjectsQuery);\r\n while (subjectsIterator.hasNext()) {\r\n OpSubject subject = subjectsIterator.next();\r\n subject.setSource(OpSubject.INTERNAL);\r\n broker.updateObject(subject);\r\n }\r\n }",
"public void setSource(Rectangle2D source) {\n\t\tif (source.equals(_source)) return;\r\n\t\t\r\n\t\t_source = source;\r\n\t\t\r\n\t\t// Create a new clipping and check whether it is valid:\r\n\t\tClipping clipping = null;\r\n\t\ttry {\r\n\t\t\tclipping = createClipping(_source);\r\n\t\t} catch (NoninvertibleTransformException exception) {\r\n\t\t\t// Clipping is not valid, slide becomes invisible:\r\n\t\t\t_buffer = null;\r\n\t\t\t_clipping = null;\r\n\t\t\tif (_slideCacheEntry != null) _slideCacheEntry.dispose();\r\n\t\t\tif (_precacheCacheEntry != null) _precacheCacheEntry.dispose();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Check whether the clipping changed:\r\n\t\tif (!clipping.equals(_clipping)) {\r\n\t\t\t_clipping = clipping;\r\n\t\t\t\r\n\t\t\t// Clipping changed, cache entries have to be updated:\r\n\t\t\tif (_slideCacheEntry != null) {\r\n\t\t\t\t_slideCacheEntry.update(_clipping, _priority, _slideCacheObserver);\r\n\t\t\t} else {\r\n\t\t\t\t_slideCacheEntry = _slide.cache(_clipping, _priority, _slideCacheObserver);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif (_precacheCacheEntry != null) {\r\n\t\t\t\t_precacheCacheEntry.update(_clipping, _priority, null);\r\n\t\t\t} else if (_precacheSlide != null) {\r\n\t\t\t\t_precacheCacheEntry = _precacheSlide.cache(_clipping, _precachePriority, null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Repaint immediately if there is no caching:\r\n\t\t\tif (_slideCacheEntry == null) {\r\n\t\t\t\tmakeDirty(_slide.getSize(), true);\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\t//else makeDirty(_slide.getSize(), true);\r\n\t\t}\r\n\t}",
"void reinitialize(Graph.Vertex newSource) {\n\t\tsrc = newSource;\n\t\tfor (Graph.Vertex u : g) {\n\t\t\tDFSVertex bu = getVertex(u);\n\t\t\tbu.seen = false;\n\t\t\tbu.parent = null;\n\t\t\tbu.distance = INFINITY;\n\t\t\tbu.childrenCount = 0;\n\t\t}\n\t\tgetVertex(src).distance = 0;\n\t}",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.RESOURCES,\n adderName = \"resources\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true)\n public void setResources(final Set<BwString> val) {\n resources = val;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public void sinclude(Context source){\n for (String str : sexport.keySet()){\n if (sexport.get(str) && source.get(str) != null){\n set(str, source.get(str));\n }\n } \n }",
"public void setLBR_ProductSource (String LBR_ProductSource);",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public CUDA_RESOURCE_VIEW_DESC set(CUDA_RESOURCE_VIEW_DESC src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }",
"private static void setSource(Spreadsheet ss) {\r\n \t\tss.setAttribute(KEY_SRC_SHEET, ss.getSelectedSheet());\r\n \t\tss.setAttribute(KEY_SRC_RANGE, ss.getSelection());\r\n \t\t\r\n \t\tRect sel = ss.getSelection();\r\n \t\tif (sel.getBottom() >= ss.getMaxrows())\r\n \t\t\tsel.setBottom(ss.getMaxrows() - 1);\r\n \t\tif (sel.getRight() >= ss.getMaxcolumns())\r\n \t\t\tsel.setRight(ss.getMaxcolumns() - 1);\r\n \t\tss.setHighlight(sel);\r\n \t\tss.smartUpdate(\"copysrc\", true);\r\n \t}",
"public void testExistingSeqWithChangedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -40 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-200);\n msProcessor.processExistingSeqSrc(accid, seqKey, null, raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(nav.next()); // assure a record was found\n }",
"public void setDataSource2(StarObjectClass self,StarObjectClass fd, int offset, int length){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tStarObjectClass assertfileclass = Service._GetObject(\"AssetFileDescriptorClass\");\r\n \t\tif( assertfileclass._IsInst(fd) == true ){\r\n \t\t\tStarCLEAssetFileDescriptor starfd = (StarCLEAssetFileDescriptor)WrapAndroidClass.GetAndroidObject(fd,\"AndroidObject\");\r\n \t\t\tif( starfd.assetfiledescriptor == null ){\r\n \t\t\t\tSrvGroup._Print(\"input fd is not init\");\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\ttry{\r\n \t\t\t\tmediaplayer.setDataSource(starfd.assetfiledescriptor.getFileDescriptor(),offset,length);\r\n \t\t\t}catch(IOException e){\r\n \t\t\t\tSrvGroup._Print(e.toString());\r\n \t\t\t}\r\n \t\t}else\r\n \t\t\tSrvGroup._Print(\"input fd is invalid\");\r\n \t}",
"public void setValues(TextureParameter source) {\n if (source.values == null) {\n throw new IllegalArgumentException(\"No texture parameters in source.\");\n }\n values = new Parameter[source.values.length];\n int index = 0;\n for (Parameter p : source.values) {\n if (p == null) {\n throw new IllegalArgumentException(\"Texture parameter value is null, invalid name in source?\");\n }\n values[index++] = p;\n }\n }",
"void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"public void setSrc(String startId) {\r\n\t\tsrc = startId;\r\n\t}",
"public final void testSetSource() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(\"src\", n.getSource());\n n.setSource(\"new src\");\n assertEquals(\"new src\", n.getSource());\n }",
"public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }",
"public void setSourceSpan(int start, int end)\n\t{\n\t\tsourceStart = start;\n\t\tsourceEnd = end;\n\t\treturn;\n\t}",
"protected void setHighlightFlag(EntityInstance src, EntityInstance dst, RelationClass rc)\r\n\t{\r\n\t\tVector\t\t\t srcLiftedList = src.getSrcLiftedList();\r\n\t\tRelationInstance ri;\r\n\t\tint\t\t\t\t i;\r\n\r\n\t\tif (srcLiftedList != null) {\r\n\t\t\tfor (i = srcLiftedList.size(); --i >= 0; ) {\r\n\t\t\t\tri = (RelationInstance) srcLiftedList.elementAt(i);\r\n\t\t\t\tif (ri.getDrawDst() == dst && ri.getRelationClass() == rc) {\r\n\t\t\t\t\tsetHighlightFlag(ri);\r\n\t\t\t\t\tbreak;\r\n\t}\t}\t}\t}",
"default Set<T> from(Set<Source> sources){\n return sources.stream()\n .map(this::from)\n .collect(Collectors.toSet());\n }",
"Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;",
"public FSArray getSourceRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec)));}",
"public void addSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet)\n/* */ {\n/* 261 */ UnicodeSet myFilter = getFilterAsUnicodeSet(inputFilter);\n/* 262 */ UnicodeSet items = new UnicodeSet();\n/* 263 */ StringBuilder buffer = new StringBuilder();\n/* 264 */ for (int i = 0; this.spec[i] != 65535;)\n/* */ {\n/* 266 */ int end = i + this.spec[i] + this.spec[(i + 1)] + 5;\n/* 267 */ int radix = this.spec[(i + 2)];\n/* 268 */ for (int j = 0; j < radix; j++) {\n/* 269 */ Utility.appendNumber(buffer, j, radix, 0);\n/* */ }\n/* */ \n/* 272 */ for (int j = i + 5; j < end; j++) {\n/* 273 */ items.add(this.spec[j]);\n/* */ }\n/* */ \n/* 276 */ i = end;\n/* */ }\n/* 278 */ items.addAll(buffer.toString());\n/* 279 */ items.retainAll(myFilter);\n/* */ \n/* 281 */ if (items.size() > 0) {\n/* 282 */ sourceSet.addAll(items);\n/* 283 */ targetSet.addAll(0, 1114111);\n/* */ }\n/* */ }",
"void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void setNoiseSource(String noiseSource) {\n if (NOISE_SOURCES != null) {\n for (int i = 0; i < NOISE_SOURCES.length; i++) {\n if (NOISE_SOURCES[i].equals(noiseSource)) {\n _avTable.set(ATTR_NOISE_SOURCE, NOISE_SOURCES[i]);\n }\n }\n }\n }",
"public void resetSource(String sourceId) {\n\t}",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;",
"public Builder addAllSourcepath(\n java.lang.Iterable<java.lang.String> values) {\n ensureSourcepathIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, sourcepath_);\n onChanged();\n return this;\n }",
"public final void setSourcePosition(int startPos, int endPos) {\r\n \t\tassertTrue(startPos >= 0);\r\n \t\tassertTrue(endPos >= startPos);\r\n \t\tsetSourceStart(startPos);\r\n \t\tsetSourceEnd(endPos);\r\n \t}",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void getSourcePoints(Set<Point> source) {\n \tfor (int i = 1; i < width; i++) {\n\t\t\tsource.add(new Point(i, 0));\n\t\t\tsource.add(new Point(i, height));\n \t}\n\t\tfor (int j = 1; j < height; j++) {\n\t\t\tsource.add(new Point(0, j));\n\t\t\tsource.add(new Point(width, j));\n\t\t}\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}",
"public void setSDPair(String newSource, String newTarget) {\r\n\t\tthis.source = newSource;\r\n\t\tthis.target = newTarget;\r\n\t}",
"private void clearSourceIds() {\r\n DiscourseDao discourseDao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n Integer rowsCleared = discourseDao.clearSourceIds();\r\n\r\n DataSourcesDao dsDao = DiscourseDbDaoFactory.DEFAULT.getDataSourcesDao();\r\n rowsCleared = dsDao.clearSourceIds();\r\n\r\n DUserDao userDao = DiscourseDbDaoFactory.DEFAULT.getDUserDao();\r\n rowsCleared = userDao.clearSourceIds();\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n rowsCleared = contentDao.clearSourceIds();\r\n\r\n DataSourceInstanceDao dsiDao = DiscourseDbDaoFactory.DEFAULT.getDataSourceInstanceDao();\r\n rowsCleared = dsiDao.clearSourceIds();\r\n\r\n ContributionDao contributionDao = DiscourseDbDaoFactory.DEFAULT.getContributionDao();\r\n rowsCleared = contributionDao.clearSourceIds();\r\n\r\n DiscoursePartDao discoursePartDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n rowsCleared = discoursePartDao.clearSourceIds();\r\n\r\n DiscourseRelationDao discourseRelationDao =\r\n DiscourseDbDaoFactory.DEFAULT.getDiscourseRelationDao();\r\n rowsCleared = discourseRelationDao.clearSourceIds();\r\n\r\n DiscoursePartRelationDao discoursePartRelationDao =\r\n DiscourseDbDaoFactory.DEFAULT.getDiscoursePartRelationDao();\r\n rowsCleared = discoursePartRelationDao.clearSourceIds();\r\n }",
"public void setSourceEnd(int x)\n\t{\n\t\tsourceEnd = x;\n\t}",
"public void testSetLocalRessources() {\n\t\ttry {\n\t\t\tthis.part.setLocalRessources(null);\n\t\t\tfail(\"NullPointerException must be thrown\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t/* all clear */\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"wrong Exception\");\n\t\t}\n\n\t\ttry {\n\t\t\tDotplotFile file = new DotplotFile(\"./testfiles/fmatrix/test.txt\");\n\t\t\tCollection<DotplotFile> coll = new Vector<DotplotFile>();\n\t\t\tcoll.add(file);\n\t\t\tassertNotNull(this.part.getSourceList());\n\t\t\tassertEquals(0, this.part.getSourceList().size());\n\t\t\tthis.part.setLocalRessources(coll);\n\t\t\tISourceList list = this.part.getSourceList();\n\t\t\tassertEquals(1, list.size());\n\t\t\tassertTrue(list.contains(file));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"no exception:\" + e.getClass().getName() + \":\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"public NotebookCell setSource(List<String> source) {\n this.source = source;\n return this;\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}",
"protected void setLinkOnly(FileNode target){\n\t\t//link = target;\n\t\t//super.setSourcePath(link.getSourcePath());\n\t\tsuper.setVirtualSourceNode(target);\n\t\tif(target != null) super.setSourcePath(target.getSourcePath());\n\t}",
"protected abstract Set method_1559();",
"void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;",
"public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }"
]
| [
"0.649638",
"0.648252",
"0.6150485",
"0.60570955",
"0.6045026",
"0.591306",
"0.58878195",
"0.5867671",
"0.58393335",
"0.5833714",
"0.58249134",
"0.5810026",
"0.5725041",
"0.5671558",
"0.56370395",
"0.5608333",
"0.5572542",
"0.5531246",
"0.54922146",
"0.54786724",
"0.5456411",
"0.5440891",
"0.5434284",
"0.5422036",
"0.53984475",
"0.5390743",
"0.53630614",
"0.5344045",
"0.532503",
"0.5321686",
"0.53190064",
"0.5318624",
"0.53147954",
"0.5311665",
"0.5304054",
"0.52983886",
"0.52681476",
"0.5265734",
"0.5237572",
"0.5216695",
"0.52148163",
"0.5207739",
"0.52050084",
"0.52050084",
"0.5196961",
"0.51949865",
"0.5185592",
"0.5177599",
"0.5177554",
"0.5171472",
"0.5163321",
"0.51525724",
"0.5141962",
"0.5129549",
"0.51189685",
"0.5117602",
"0.5113154",
"0.5109272",
"0.51032853",
"0.5093391",
"0.5092612",
"0.5091227",
"0.50689584",
"0.505216",
"0.5049445",
"0.5046517",
"0.5045227",
"0.50401837",
"0.5028856",
"0.50261104",
"0.5023207",
"0.50230885",
"0.50184524",
"0.50135845",
"0.50116956",
"0.50025606",
"0.4999126",
"0.4993456",
"0.49900782",
"0.49860808",
"0.49724385",
"0.4968527",
"0.4952853",
"0.4952853",
"0.49460354",
"0.4943708",
"0.49407154",
"0.49407154",
"0.4940614",
"0.4935141",
"0.49299973",
"0.4926897",
"0.49140587",
"0.49127796",
"0.4906914",
"0.49053207",
"0.49026677",
"0.4902609",
"0.49008948",
"0.48961648"
]
| 0.69663066 | 0 |
indexed setter for sourceRec sets an indexed value | public void setSourceRec(int i, SourceRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void setTargetValue(int idx, Object value);",
"void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"void set(int idx, int val);",
"public void setSourceDataArray(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData sourceData)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().find_element_user(SOURCEDATA$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(sourceData);\r\n }\r\n }",
"void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;",
"private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"public void set(long index);",
"public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}",
"void setIdx(int i);",
"public abstract E set(int index, E e);",
"void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"public void setIndexedVariable() {\n indexed = true;\n }",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public void set(int rowIndex, int columnIndex, int value) { target.set(index.get(rowIndex), columnIndex, value); }",
"void set(int index, T data);",
"void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;",
"public abstract int getSourceIndex(int index);",
"public abstract <T> void set(int index, T value);",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"void setObject(int index, Object value) throws SQLException;",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void setSourceRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"void setArray(int index, Array value) throws SQLException;",
"public abstract void updateIndex();",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void param_index_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 2); }",
"public Builder setSourcepath(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcepathIsMutable();\n sourcepath_.set(index, value);\n onChanged();\n return this;\n }",
"public Builder setSrcId(\n int index, int value) {\n copyOnWrite();\n instance.setSrcId(index, value);\n return this;\n }",
"void setExactOffset(int offset)\n {\n m_source_.setIndex(offset);\n updateInternalState();\n }",
"@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public void set(int index, Object value) {\n\n\t\t// the right portion of values of the array -> room is not available\n\t\tif(index >= arr.length) {\n\t\t\tObject[] tmpArr = new Object[index+1]; // keep all values of the variable arr\n\t\t\t\n\t\t\t// keep all items of arr\n\t\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\t\ttmpArr[i] = arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tarr = tmpArr; // exchange addresses\n \t\t}\t\n\t\t\n\t\tarr[index] = value;\n\t\t\n\t}",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }",
"public void setArrayAt(int indexStart, int len, double[] srcValue, int srcOffset) {\n final int indexEnd = indexStart + len;\n int srcIndex = srcOffset;\n for (int i = indexStart; i < indexEnd; i++,srcIndex++) {\n setAt(i, srcValue[srcIndex]);\n }\n }",
"void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"void setRef(int index, Ref value) throws SQLException;",
"@Override\n public E set(int index, E value) {\n this.rangeCheck(index);\n E oldValue = (E) this.values[index];\n this.values[index] = value;\n return oldValue;\n }",
"void set(int index, Object element);",
"public void setElementAt(Object obj, int index);",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public void setIndex(int index) { this.index = index; }",
"void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;",
"@Override public boolean set_impl(int idx, long l) { return false; }",
"protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }",
"BinaryArrayReadWrite set(int index, byte x);",
"void setInt(int index, int value) throws SQLException;",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"public void setFieldIndex(final int fieldIndex) { _fldIndex = fieldIndex; }",
"public void set(final int index, final Object object) {\n super.set(index, object);\n }",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;",
"private void setSeenInfo(\n int index, SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.set(index, value);\n }",
"public void setObject(Spatial objChange, int index, int parentIndex) {\n toChange[index]=objChange;\n parentIndexes[index]=parentIndex;\n }",
"@Override\n\tpublic void setArray(int parameterIndex, Array x) throws SQLException {\n\t\t\n\t}",
"@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void setSource(SourceSchema s) throws MediatorException{\n\t\tif(s==null){\n\t\t\t//name is not a source, it's probably a rule head from the query\n\t\t\treturn;\n\t\t}\n\t\tsource=s;\n\t\tif(source.getAttrs().size()!=terms.size()){\n\t\t\tthrow(new MediatorException(\"Number of attributes in predicate \" + this + \" has to be equal with attrs in \" + source.getAttrs()));\n\t\t}\n\n\t}",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }",
"private void setIndexArray() throws IOException {\n\n byte[] recBuf = new byte[INDEX_RECORD_LENGTH];\n long rafPos = ShapeConst.SHAPE_FILE_HEADER_LENGTH;\n int iaIndex = 0;\n ArrayList indexArrayVector = new ArrayList(10000);\n\n raf.seek(rafPos);\n // loop over index records, until EOF\n while (raf.read(recBuf, 0, INDEX_RECORD_LENGTH) != -1) {\n IndexRecord ir = new IndexRecord(recBuf);\n\n // set ArrayVector item as index record\n indexArrayVector.add(ir);\n\n // array index adjustment\n ++iaIndex;\n\n // filepos adjustment\n rafPos = rafPos + INDEX_RECORD_LENGTH;\n raf.seek(rafPos);\n } // end of while\n\n // iaIndex holds Record Number\n RecordNum = iaIndex;\n\n // copy vector into indexArray\n indexArray = (IndexRecord[]) indexArrayVector.toArray(new IndexRecord[RecordNum]);\n }",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }",
"@Override\n\tpublic void setValueSparse(final int indexOfIndex, final double value) {\n\n\t}",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"public E set(int index, E element);",
"@Override\n public void set(int i, E e) throws IndexOutOfBoundsException {\n validIndex(i);\n data[i] = e;\n }",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }",
"public void setX (int index, int x) { coords[index][0] = x; }",
"public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"void setObject(int index, Object value, int sqlType, int scale)\n throws SQLException;",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public Vector4d set(double[] src) throws IndexOutOfBoundsException{\n\t\treturn set(src, 0);\n\t}",
"public void parameter_rc_channel_index_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 4); }",
"public final void setSource(final Integer newSource) {\n this.source = newSource;\n }",
"public void setStartIndex(java.math.BigInteger startIndex)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTINDEX$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTINDEX$10);\n }\n target.setBigIntegerValue(startIndex);\n }\n }",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"void setColumnValue(int colIndex, Object value);",
"public abstract void setIndex(int i, boolean b);",
"public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}",
"public E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}"
]
| [
"0.65912807",
"0.64905083",
"0.6299115",
"0.6287317",
"0.6164025",
"0.611346",
"0.6108824",
"0.6078493",
"0.60666406",
"0.6015644",
"0.5971151",
"0.59098744",
"0.5836164",
"0.5832247",
"0.58244",
"0.5807885",
"0.5806228",
"0.57750857",
"0.5764775",
"0.5748606",
"0.57440525",
"0.5719427",
"0.571601",
"0.5698023",
"0.5680429",
"0.5666314",
"0.5642508",
"0.56368554",
"0.56295377",
"0.56237906",
"0.561701",
"0.560107",
"0.5586959",
"0.5586959",
"0.55729455",
"0.5570167",
"0.5563933",
"0.5563347",
"0.5559633",
"0.5556667",
"0.5549251",
"0.55445164",
"0.55385476",
"0.5516396",
"0.5515247",
"0.5514582",
"0.55103374",
"0.55076766",
"0.55023795",
"0.54867727",
"0.54822606",
"0.54791135",
"0.5478627",
"0.54726267",
"0.5470191",
"0.546959",
"0.5451793",
"0.54503036",
"0.5432847",
"0.5424639",
"0.54200643",
"0.5401878",
"0.53682137",
"0.53598046",
"0.5337709",
"0.5336797",
"0.53339595",
"0.5323171",
"0.53105676",
"0.5287731",
"0.5282125",
"0.5271889",
"0.5249315",
"0.52465236",
"0.524584",
"0.52415544",
"0.52415544",
"0.52341133",
"0.5229825",
"0.5229825",
"0.5218798",
"0.52118397",
"0.5193051",
"0.5181419",
"0.5180606",
"0.5180579",
"0.5168128",
"0.5166351",
"0.51627254",
"0.5161397",
"0.51570505",
"0.51528466",
"0.5146937",
"0.5135012",
"0.5123058",
"0.51215905",
"0.51215625",
"0.51182723",
"0.5112723",
"0.51113224"
]
| 0.65972215 | 0 |
Mapper for the entity FdnAanvrager and its DTO FdnAanvragerDTO. | @Mapper(componentModel = "spring", uses = {AanvraagberichtMapper.class})
public interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {
@Mapping(source = "aanvraagbericht.id", target = "aanvraagberichtId")
FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);
@Mapping(target = "adres", ignore = true)
@Mapping(target = "legitimatiebewijs", ignore = true)
@Mapping(target = "werksituaties", ignore = true)
@Mapping(target = "gezinssituaties", ignore = true)
@Mapping(target = "financieleSituaties", ignore = true)
@Mapping(source = "aanvraagberichtId", target = "aanvraagbericht")
FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);
default FdnAanvrager fromId(Long id) {
if (id == null) {
return null;
}
FdnAanvrager fdnAanvrager = new FdnAanvrager();
fdnAanvrager.setId(id);
return fdnAanvrager;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Mapper(componentModel = \"spring\", uses = {SabegheMapper.class, NoeSabegheMapper.class})\npublic interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {\n\n @Mapping(source = \"sabeghe.id\", target = \"sabegheId\")\n @Mapping(source = \"sabeghe.name\", target = \"sabegheName\")\n @Mapping(source = \"noeSabeghe.id\", target = \"noeSabegheId\")\n @Mapping(source = \"noeSabeghe.name\", target = \"noeSabegheName\")\n AdamKhesaratDTO toDto(AdamKhesarat adamKhesarat);\n\n @Mapping(source = \"sabegheId\", target = \"sabeghe\")\n @Mapping(source = \"noeSabegheId\", target = \"noeSabeghe\")\n AdamKhesarat toEntity(AdamKhesaratDTO adamKhesaratDTO);\n\n default AdamKhesarat fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdamKhesarat adamKhesarat = new AdamKhesarat();\n adamKhesarat.setId(id);\n return adamKhesarat;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {ProduitMapper.class, AchatLigneProformaMapper.class})\npublic interface AchatArticleLigneProformaMapper extends EntityMapper<AchatArticleLigneProformaDTO, AchatArticleLigneProforma> {\n\n @Mapping(source = \"produit.id\", target = \"produitId\")\n @Mapping(source = \"achatLigneProforma.id\", target = \"achatLigneProformaId\")\n AchatArticleLigneProformaDTO toDto(AchatArticleLigneProforma achatArticleLigneProforma);\n\n @Mapping(source = \"produitId\", target = \"produit\")\n @Mapping(source = \"achatLigneProformaId\", target = \"achatLigneProforma\")\n AchatArticleLigneProforma toEntity(AchatArticleLigneProformaDTO achatArticleLigneProformaDTO);\n\n default AchatArticleLigneProforma fromId(Long id) {\n if (id == null) {\n return null;\n }\n AchatArticleLigneProforma achatArticleLigneProforma = new AchatArticleLigneProforma();\n achatArticleLigneProforma.setId(id);\n return achatArticleLigneProforma;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}",
"@Mapper(componentModel = \"spring\")\npublic interface PedidoMapper {\n\t\n\t@AfterMapping\n\tdefault void afterMapping(@MappingTarget PedidoDTO target, Pedido source) {\n\t\t\n\t\tFloat totalIVA = new Float(0);\n\t\tFloat totalDomicilio = new Float(0);\n\t\tFloat totalNeto = new Float(0);\n\t\t\n\t\tif(source.getEstado().equals(Constantes.ESTADO_PEDIDO_ACTIVO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEIDIDO_ACTIVO_STRING);\n\t\t\ttotalIVA = new Float(target.getSubtotal() * 0.19);\n\t\t\ttotalDomicilio = target.getSubtotal() >= Constantes.VALOR_MINIMO_PARA_COBRO_DE_DOMICILIO && target.getSubtotal() <= Constantes.VALOR_MAXIMO_PARA_COBRO_DE_DOMICILIO ? new Float(target.getSubtotal() * 0.05) : new Float(0);\n\t\t\ttotalNeto = target.getSubtotal() + totalIVA + totalDomicilio;\n\t\t}\n\t\telse if (source.getEstado().equals(Constantes.ESTADO_PEDIDO_CANCELADO))\n\t\t{\n\t\t\ttarget.setEstadoString(Constantes.ESTADO_PEDIDO_CANCELADO_STRING);\n\t\t\ttotalNeto = new Float(target.getSubtotal() * 0.10);\n\t\t}\t\t \n\t\t\n\t\t\n\t\ttarget.setTotalIVA(totalIVA);\n\t\ttarget.setTotalDomicilio(totalDomicilio);\n\t\ttarget.setTotalNeto(totalNeto);\n\t}\n\t\n\t@Mapping(source = \"entity.idUsuario.idUsuario\", target = \"idUsuario\")\n\t@Mapping(source = \"entity.idUsuario.nombre\", target = \"nombreUsuario\")\n\t@Mapping(source = \"entity.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"entity.estado\", target = \"estado\")\n\t@Mapping(target = \"idProductosConcatenados\", ignore = true)\n\t@Mapping(target = \"totalIVA\", ignore = true)\n\t@Mapping(target = \"totalDomicilio\", ignore = true)\n\t@Mapping(target = \"totalNeto\", ignore = true)\n\t@Mapping(target = \"codigoRespuesta\", ignore = true)\n\t@Mapping(target = \"mensajeRespuesta\", ignore = true)\n\t@Mapping(target = \"estadoString\", ignore = true)\n\tpublic PedidoDTO transformEntityToDTO(Pedido entity);\n\t\n\t@Mapping(source = \"DTO.idUsuario\", target = \"idUsuario.idUsuario\")\n\t@Mapping(source = \"DTO.fechaCreacion\", target = \"fechaCreacion\", dateFormat = Constantes.DATE_AND_TIME_FORMAT_WITH_MINUTES)\n\t@Mapping(source = \"DTO.estado\", target = \"estado\")\n\tpublic Pedido transformDTOToEntity(PedidoDTO DTO);\n\t\n\tpublic List<PedidoDTO> transformEntitiesToDTO(List<Pedido> listEntities);\n\t\n\tpublic List<Pedido> transformDTOToEntities(List<Pedido> listDTO);\n\n}",
"@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}",
"D mapToDTO(E entity);",
"@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}",
"Persona PersonaDTOToPersona(PersonaDTO personaDTO);",
"@Mapper(componentModel = \"cdi\")\npublic interface ArchivoMapper {\n\n ArchivoDTO toDTO(Archivo source);\n List<ArchivoDTO> toDTOList(List<Archivo> sourceList);\n\n void updateFromDTO(ArchivoDTO source, @MappingTarget Archivo target);\n}",
"@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}",
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}",
"PersonaDTO PersonaToPersonaDTO(Persona persona);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AccessDirectoryMapper {\n\n AccessDirectoryDTO accessDirectoryToAccessDirectoryDTO(AccessDirectory accessDirectory);\n\n AccessDirectory accessDirectoryDTOToAccessDirectory(AccessDirectoryDTO accessDirectoryDTO);\n}",
"@Mapper(componentModel = \"spring\", uses = {UsuarioMapper.class, FileMapper.class})\npublic interface RateMapper extends EntityMapper<RateDTO, Rate> {\n\n @Mapping(source = \"usuario.id\", target = \"usuarioId\")\n @Mapping(source = \"file.id\", target = \"fileId\")\n RateDTO toDto(Rate rate); \n\n @Mapping(source = \"usuarioId\", target = \"usuario\")\n @Mapping(source = \"fileId\", target = \"file\")\n Rate toEntity(RateDTO rateDTO);\n\n default Rate fromId(Long id) {\n if (id == null) {\n return null;\n }\n Rate rate = new Rate();\n rate.setId(id);\n return rate;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}",
"@Override\r\n\tpublic MainDTO toDTO() {\n\t\tFamiliaresDTO familiaresDTO = new FamiliaresDTO();\r\n\t\tDomicilioDTO domicilioDTO = null;\r\n\t\tfamiliaresDTO.setIdfamiliar(this.getIdFamiliar());\r\n\t\tfamiliaresDTO.setNombre(this.getNombre());\r\n\t\tfamiliaresDTO.setApellidoPaterno(this.getApellidoPaterno());\r\n\t\tfamiliaresDTO.setApellidoMaterno(this.getAppelidoMaterno());\r\n\t\tfamiliaresDTO.setDireccion(this.getDireccion());\r\n\t\tfamiliaresDTO.setIdpaciente(this.getIdpaciente());\r\n\t\tfamiliaresDTO.setDependencia(this.getDependencia());\r\n\t\tdomicilioDTO = (DomicilioDTO) this.getDomicilio().toDTO();\r\n\t\tfamiliaresDTO.setDomicilio(domicilioDTO);\r\n\t\treturn familiaresDTO;\r\n\t}",
"public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}",
"@Mapper\npublic interface SeguridadDtoMap {\n SeguridadDtoMap INSTANCE = Mappers.getMapper( SeguridadDtoMap.class );\n\n GrupoDto grupoToGrupoDto(Grupo grupo);\n\n Grupo grupoDtoToGrupo(GrupoDto grupoDto);\n}",
"@Mapper(componentModel = \"spring\", uses = {OrgaoMapper.class, PermissaoMapper.class})\npublic interface UsuarioMapper {\n\n @Mapping(target = \"orgao\", ignore = true)\n UsuarioDTO usuarioToUsuarioDTO(Usuario usuario);\n\n List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios);\n\n Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO);\n\n List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs);\n}",
"@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}",
"E mapToEntity(D dto);",
"@Mapper(componentModel = \"spring\", uses = {OperationMapper.class, PecStatusChangeMatrixMapper.class, StatusPecMapper.class,})\npublic interface RaisonPecMapper extends EntityMapper <RaisonPecDTO, RaisonPec> {\n\n @Mapping(source = \"operation.id\", target = \"operationId\")\n @Mapping(source = \"operation.label\", target = \"operationLabel\")\n @Mapping(source = \"statusPec.id\", target = \"statusPecId\")\n @Mapping(source = \"statusPec.label\", target = \"statusPecLabel\")\n\n \n @Mapping(source = \"pecStatusChangeMatrix.id\", target = \"pecStatusChangeMatrixId\")\n @Mapping(source = \"pecStatusChangeMatrix.label\", target = \"pecStatusChangeMatrixLabel\")\n \n RaisonPecDTO toDto(RaisonPec raisonPec); \n\n @Mapping(source = \"operationId\", target = \"operation\")\n\n\n\n @Mapping(source = \"statusPecId\", target = \"statusPec\")\n\n \n @Mapping(source = \"pecStatusChangeMatrixId\", target = \"pecStatusChangeMatrix\")\n\n RaisonPec toEntity(RaisonPecDTO raisonPecDTO); \n default RaisonPec fromId(Long id) {\n if (id == null) {\n return null;\n }\n RaisonPec raisonPec = new RaisonPec();\n raisonPec.setId(id);\n return raisonPec;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {AdGameMapper.class})\npublic interface AdChoiseMapper extends EntityMapper<AdChoiseDTO, AdChoise> {\n\n @Mapping(source = \"adGame.id\", target = \"adGameId\")\n AdChoiseDTO toDto(AdChoise adChoise); \n\n @Mapping(source = \"adGameId\", target = \"adGame\")\n @Mapping(target = \"corrects\", ignore = true)\n @Mapping(target = \"possiblities\", ignore = true)\n AdChoise toEntity(AdChoiseDTO adChoiseDTO);\n\n default AdChoise fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdChoise adChoise = new AdChoise();\n adChoise.setId(id);\n return adChoise;\n }\n}",
"protected AusschreibungMapper() {\r\n\t}",
"private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }",
"@Mapper(componentModel = \"spring\", uses = {ArchiveMapper.class, })\npublic interface IndependentCandidateMapper extends EntityMapper <IndependentCandidateDTO, IndependentCandidate> {\n\n @Mapping(source = \"image.id\", target = \"imageId\")\n IndependentCandidateDTO toDto(IndependentCandidate independentCandidate); \n\n @Mapping(source = \"imageId\", target = \"image\")\n IndependentCandidate toEntity(IndependentCandidateDTO independentCandidateDTO); \n default IndependentCandidate fromId(Long id) {\n if (id == null) {\n return null;\n }\n IndependentCandidate independentCandidate = new IndependentCandidate();\n independentCandidate.setId(id);\n return independentCandidate;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {MatiereMapper.class})\npublic interface ClasseMapper extends EntityMapper<ClasseDTO, Classe> {\n\n\n @Mapping(target = \"professeurClasses\", ignore = true)\n Classe toEntity(ClasseDTO classeDTO);\n\n default Classe fromId(Long id) {\n if (id == null) {\n return null;\n }\n Classe classe = new Classe();\n classe.setId(id);\n return classe;\n }\n}",
"@Override\n\tpublic Object mapping() {\n\t\tRestaurant r = review.getRestaurant();\n\t\t\n\t\treturn new DtoMap()\n\t\t\t.set(\"reportNo\", reportNo)\n\t\t\t.set(\"reviewNo\",review.getReviewNo())\n\t\t\t.set(\"restaurant\", new DtoMap()\n\t\t\t\t\t.set(\"name\", r.getName())\n\t\t\t\t\t.set(\"score\", r.getScore())\n\t\t\t\t\t.set(\"reviewCount\", r.getReviewCount())\n\t\t\t\t\t.set(\"imageUrl\", r.getImageUrl()))\n\t\t\t.set(\"writer\", review.getWriterName())\n\t\t\t.set(\"content\", review.getContent())\n\t\t\t.set(\"state\", state)\n\t\t\t.set(\"reason\", reason);\n\t}",
"@Mapper(componentModel = \"spring\")\npublic interface FrecuenciaMapper extends AbstractMapper<FrecuenciaVO, Frecuencia> {\n}",
"V toDto(E entity);",
"@Mapper(componentModel = \"spring\", uses = {Business.class})\npublic interface BusinessMapper {\n\n BusinessDTO toDTO(Business business);\n\n @Mapping(target = \"advertisements\", ignore = true)\n Business toEntity(BusinessDTO businessDTO);\n}",
"private static TableMapper buildTableMapper(Class<?> dtoClass) {\r\n\r\n\t\tMap<String, FieldMapper> fieldMapperCache = null;\r\n\t\tField[] fields = dtoClass.getDeclaredFields();\r\n\r\n\t\tFieldMapper fieldMapper = null;\r\n\t\tTableMapper tableMapper = null;\r\n\t\ttableMapper = tableMapperCache.get(dtoClass);\r\n\t\tif (tableMapper != null) {\r\n\t\t\treturn tableMapper;\r\n\t\t}\r\n\t\ttableMapper = new TableMapper();\r\n\t\ttableMapper.setClazz(dtoClass);\r\n\t\tList<FieldMapper> uniqueKeyList = new LinkedList<FieldMapper>();\r\n\t\tList<FieldMapper> opVersionLockList = new LinkedList<FieldMapper>();\r\n\t\tAnnotation[] classAnnotations = dtoClass.getDeclaredAnnotations();\r\n\t\tfor (Annotation an : classAnnotations) {\r\n\t\t\tif (an instanceof TableMapperAnnotation) {\r\n\t\t\t\ttableMapper.setTableMapperAnnotation((TableMapperAnnotation) an);\r\n\t\t\t} else if (an instanceof Table) {\r\n\t\t\t\ttableMapper.setTable((Table) an);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfieldMapperCache = new WeakHashMap<String, FieldMapper>(16);\r\n\t\tfor (Field field : fields) {\r\n\t\t\tfieldMapper = new FieldMapper();\r\n\t\t\tboolean b = fieldMapper.buildMapper(field);\r\n\t\t\tif (!b) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tswitch (fieldMapper.getOpLockType()) {\r\n\t\t\tcase Version:\r\n\t\t\t\tfieldMapper.setOpVersionLock(true);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (fieldMapper.isUniqueKey()) {\r\n\t\t\t\tuniqueKeyList.add(fieldMapper);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.getIgnoreTag().length > 0) {\r\n\t\t\t\tfor (String t : fieldMapper.getIgnoreTag()) {\r\n\t\t\t\t\tfieldMapper.getIgnoreTagSet().add(t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbCrossedAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setCrossDbForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isCrossDbForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbCrossedAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isOpVersionLock()) {\r\n\t\t\t\topVersionLockList.add(fieldMapper);\r\n\t\t\t}\r\n\t\t\tfieldMapperCache.put(fieldMapper.getDbFieldName(), fieldMapper);\r\n\t\t}\r\n\t\ttableMapper.setFieldMapperCache(fieldMapperCache);\r\n\t\ttableMapper.setUniqueKeyNames(uniqueKeyList.toArray(new FieldMapper[uniqueKeyList.size()]));\r\n\t\ttableMapper.setOpVersionLocks(opVersionLockList.toArray(new FieldMapper[opVersionLockList.size()]));\r\n\t\ttableMapper.buildTableName();\r\n\t\ttableMapperCache.put(dtoClass, tableMapper);\r\n\t\treturn tableMapper;\r\n\t}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifMapper extends EntityMapper <TarifDTO, Tarif> {\n \n \n default Tarif fromId(Long id) {\n if (id == null) {\n return null;\n }\n Tarif tarif = new Tarif();\n tarif.setId(id);\n return tarif;\n }\n}",
"@Mapper\npublic interface ShippmentDtoBoMapper {\n\n\tpublic ShippmentDto mapBoToDto(ShippmentBo shippmentBo);\n\n\n\n\tpublic ShippmentBo mapDtoToBo(ShippmentDto shippmentDto);\n}",
"@Mapper(componentModel = \"spring\")\npublic interface ListeAttenteMapper {\n ListeAttenteDto listeAttenteToListeAttenteDto(ListeAttente listeAttente);\n ListeAttente listeAttenteDtoToListeAttente(ListeAttenteDto listeAttenteDto);\n}",
"public abstract D convertToDto(T entity);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TourBubblRoutePointMapper {\n\n @Mapping(source = \"tourBubbl.id\", target = \"tourBubblId\")\n TourBubblRoutePointDTO tourBubblRoutePointToTourBubblRoutePointDTO(TourBubblRoutePoint tourBubblRoutePoint);\n\n List<TourBubblRoutePointDTO> tourBubblRoutePointsToTourBubblRoutePointDTOs(List<TourBubblRoutePoint> tourBubblRoutePoints);\n\n @Mapping(source = \"tourBubblId\", target = \"tourBubbl\")\n TourBubblRoutePoint tourBubblRoutePointDTOToTourBubblRoutePoint(TourBubblRoutePointDTO tourBubblRoutePointDTO);\n\n List<TourBubblRoutePoint> tourBubblRoutePointDTOsToTourBubblRoutePoints(List<TourBubblRoutePointDTO> tourBubblRoutePointDTOs);\n\n default TourBubbl tourBubblFromId(Long id) {\n if (id == null) {\n return null;\n }\n TourBubbl tourBubbl = new TourBubbl();\n tourBubbl.setId(id);\n return tourBubbl;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}",
"@Mapper(componentModel = \"spring\", uses = {PlaqueMapper.class})\npublic interface PlaqueRuleMapper extends EntityMapper<PlaqueRuleDTO, PlaqueRule> {\n\n @Mapping(source = \"plaque.id\", target = \"plaqueId\")\n @Mapping(source = \"plaque.title\", target = \"plaqueTitle\")\n PlaqueRuleDTO toDto(PlaqueRule plaqueRule);\n\n @Mapping(source = \"plaqueId\", target = \"plaque\")\n PlaqueRule toEntity(PlaqueRuleDTO plaqueRuleDTO);\n\n default PlaqueRule fromId(Long id) {\n if (id == null) {\n return null;\n }\n PlaqueRule plaqueRule = new PlaqueRule();\n plaqueRule.setId(id);\n return plaqueRule;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {GovernorateMapper.class, DelegationMapper.class, UserMapper.class, })\npublic interface PolicyHolderMapper extends EntityMapper <PolicyHolderDTO, PolicyHolder> {\n\n @Mapping(source = \"governorate.id\", target = \"governorateId\")\n @Mapping(source = \"governorate.label\", target = \"governorateLabel\")\n\n @Mapping(source = \"delegation.id\", target = \"delegationId\")\n @Mapping(source = \"delegation.label\", target = \"delegationLabel\")\n\n @Mapping(source = \"creationUser.id\", target = \"creationUserId\")\n @Mapping(source = \"creationUser.login\", target = \"creationUserLogin\")\n\n @Mapping(source = \"updateUser.id\", target = \"updateUserId\")\n @Mapping(source = \"updateUser.login\", target = \"updateUserLogin\")\n PolicyHolderDTO toDto(PolicyHolder policyHolder); \n\n @Mapping(source = \"governorateId\", target = \"governorate\")\n\n @Mapping(source = \"delegationId\", target = \"delegation\")\n\n @Mapping(source = \"creationUserId\", target = \"creationUser\")\n\n @Mapping(source = \"updateUserId\", target = \"updateUser\")\n PolicyHolder toEntity(PolicyHolderDTO policyHolderDTO); \n default PolicyHolder fromId(Long id) {\n if (id == null) {\n return null;\n }\n PolicyHolder policyHolder = new PolicyHolder();\n policyHolder.setId(id);\n return policyHolder;\n }\n}",
"private Empresa converterDtoParaEmpresa(CadastroPJDto cadastroPJDto) {\n\t\tEmpresa empresa = new Empresa();\n\t\tempresa.setCnpj(cadastroPJDto.getCnpj());\n\t\tempresa.setRazaoSocial(cadastroPJDto.getRazaoSocial());\n\n\t\treturn empresa;\n\t}",
"AccountDTO coverAccountToEmpDTO(Account account);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}",
"@Mapper(uses = {PassengerMapper.class, TicketScheduleSectionMapper.class})\npublic interface TicketMapper {\n\n /**\n * To dto ticket dto.\n *\n * @param ticketEntity the ticket entity\n * @return the ticket dto\n */\n @Mappings({\n @Mapping(target = \"passengerDto\", source = \"ticketEntity.passengerEntity\"),\n @Mapping(target = \"ticketScheduleSectionDtoList\", source = \"ticketEntity.ticketScheduleSectionEntityList\")\n })\n TicketDto toDto(TicketEntity ticketEntity);\n\n /**\n * To dto list list.\n *\n * @param ticketEntityList the ticket entity list\n * @return the list\n */\n List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);\n\n /**\n * To entity ticket entity.\n *\n * @param ticketDto the ticket dto\n * @return the ticket entity\n */\n @Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);\n\n /**\n * To entity list list.\n *\n * @param ticketDtoList the ticket dto list\n * @return the list\n */\n List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);\n\n}",
"@Mappings({\n @Mapping(target = \"passengerDto\", source = \"ticketEntity.passengerEntity\"),\n @Mapping(target = \"ticketScheduleSectionDtoList\", source = \"ticketEntity.ticketScheduleSectionEntityList\")\n })\n TicketDto toDto(TicketEntity ticketEntity);",
"@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface Owner3Mapper extends EntityMapper <Owner3DTO, Owner3> {\n \n @Mapping(target = \"car3S\", ignore = true)\n Owner3 toEntity(Owner3DTO owner3DTO); \n default Owner3 fromId(Long id) {\n if (id == null) {\n return null;\n }\n Owner3 owner3 = new Owner3();\n owner3.setId(id);\n return owner3;\n }\n}",
"@Mappings({@Mapping(source = \"province\",target = \"province2\"),@Mapping(source = \"valid\",target = \"valid2\")})\n OaCompanyDto convert(OaCompany OaCompany);",
"@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);",
"@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}",
"@Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);",
"Account coverEmpDTOToAccount(AccountDTO accountDTO);",
"@Mapper(componentModel = SpringContextUtil.SPRING)\npublic interface MapstructService {\n\n @Mappings({\n @Mapping(source = \"alId\", target = \"blId\"),\n @Mapping(source = \"alName\", target = \"blName\"),\n @Mapping(source = \"alDate\", target = \"blDate\", dateFormat = DateUtil.DATE_FORMAT_MINUTE),\n @Mapping(target = \"blSum\", expression = \"java(amo.getAlId() * 100)\"),\n @Mapping(target = \"blbb\", constant = \"别bb\")\n })\n Bmo convert(Amo amo);\n}",
"Account toDomain(AccountDTO accountDto);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TypeCentreCompositionMapper extends EntityMapper<TypeCentreCompositionDTO, TypeCentreComposition> {\n\n\n @Mapping(target = \"centreCompositions\", ignore = true)\n TypeCentreComposition toEntity(TypeCentreCompositionDTO typeCentreCompositionDTO);\n\n default TypeCentreComposition fromId(Long id) {\n if (id == null) {\n return null;\n }\n TypeCentreComposition typeCentreComposition = new TypeCentreComposition();\n typeCentreComposition.setId(id);\n return typeCentreComposition;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface HeritageMediaMapper {\n\n @Mapping(source = \"category.id\", target = \"categoryId\")\n @Mapping(source = \"category.categoryName\", target = \"categoryCategoryName\")\n @Mapping(source = \"language.id\", target = \"languageId\")\n @Mapping(source = \"language.heritageLanguage\", target = \"languageHeritageLanguage\")\n @Mapping(source = \"group.id\", target = \"groupId\")\n @Mapping(source = \"group.name\", target = \"groupName\")\n @Mapping(source = \"heritageApp.id\", target = \"heritageAppId\")\n @Mapping(source = \"heritageApp.name\", target = \"heritageAppName\")\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n HeritageMediaDTO heritageMediaToHeritageMediaDTO(HeritageMedia heritageMedia);\n\n @Mapping(source = \"categoryId\", target = \"category\")\n @Mapping(source = \"languageId\", target = \"language\")\n @Mapping(source = \"groupId\", target = \"group\")\n @Mapping(source = \"heritageAppId\", target = \"heritageApp\")\n @Mapping(source = \"userId\", target = \"user\")\n HeritageMedia heritageMediaDTOToHeritageMedia(HeritageMediaDTO heritageMediaDTO);\n\n default HeritageCategory heritageCategoryFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageCategory heritageCategory = new HeritageCategory();\n heritageCategory.setId(id);\n return heritageCategory;\n }\n\n default HeritageLanguage heritageLanguageFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageLanguage heritageLanguage = new HeritageLanguage();\n heritageLanguage.setId(id);\n return heritageLanguage;\n }\n\n default HeritageGroup heritageGroupFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageGroup heritageGroup = new HeritageGroup();\n heritageGroup.setId(id);\n return heritageGroup;\n }\n\n default HeritageApp heritageAppFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageApp heritageApp = new HeritageApp();\n heritageApp.setId(id);\n return heritageApp;\n }\n\n default User userFromId(Long id) {\n if (id == null) {\n return null;\n }\n User user = new User();\n user.setId(id);\n return user;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = { CustomUserMapper.class, IconMapper.class })\npublic interface TeamMapper extends EntityMapper<TeamDTO, Team> {\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toDto(java.lang.Object)\n */\n @Mapping(source = \"owner.id\", target = \"ownerId\")\n @Mapping(source = \"icon.id\", target = \"iconId\")\n TeamDTO toDto(Team team);\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toEntity(java.lang.Object)\n */\n @Mapping(target = \"groups\", ignore = true)\n @Mapping(target = \"appointments\", ignore = true)\n @Mapping(source = \"ownerId\", target = \"owner\")\n @Mapping(source = \"iconId\", target = \"icon\")\n Team toEntity(TeamDTO teamDTO);\n\n /**\n * From id.\n *\n * @param id the id\n * @return the team\n */\n default Team fromId(Long id) {\n if (id == null) {\n return null;\n }\n Team team = new Team();\n team.setId(id);\n return team;\n }\n}",
"@Mapper\npublic interface NationReferenceMapper {\n\n @Insert(\"insert into t_timezerg_nation_reference values (#{id},#{nid},#{rid})\")\n int add(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where nid = #{nid} and rid = #{rid}\")\n NationReference selectByNidAndRid(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where id = #{id}\")\n NationReference selectById(String id);\n\n @Delete(\"delete from t_timezerg_nation_reference where rid = #{rid}\")\n void deleteByRid(String rid);\n\n @Delete(\"delete from t_timezerg_nation_reference where nid = #{nid}\")\n void deleteByNid(String nid);\n\n @Delete(\"delete from t_timezerg_nation_reference where id = #{id}\")\n void deleteById(String id);\n\n @Select(\"SELECT nr.*,n.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_nation n ON nr.nid = n.id WHERE nr.rid = #{rid}\")\n List<HashMap> selectByRid(String rid);\n\n @Select(\"SELECT nr.*,r.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_reference r ON nr.rid = r.id WHERE nr.nid = #{nid}\")\n List<HashMap> selectByNid(String nid);\n\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface EheartMapper {\n\n EheartDTO eheartToEheartDTO(Eheart eheart);\n\n List<EheartDTO> eheartsToEheartDTOs(List<Eheart> ehearts);\n\n Eheart eheartDTOToEheart(EheartDTO eheartDTO);\n\n List<Eheart> eheartDTOsToEhearts(List<EheartDTO> eheartDTOs);\n}",
"public static <Entity,Dto> Dto entityToDTO(Entity entity,Class<Dto> classDTO)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(entity, classDTO);\n\t}",
"@Mapper(componentModel = \"spring\", uses = {ServiceMapper.class, HeaderMapper.class, FlowMapper.class})\npublic interface EndpointMapper extends EntityMapper<EndpointDTO, Endpoint> {\n\n @Mapping(source = \"service.id\", target = \"serviceId\")\n @Mapping(source = \"header.id\", target = \"headerId\")\n @Mapping(source = \"flow.id\", target = \"flowId\")\n EndpointDTO toDto(Endpoint endpoint);\n\n @Mapping(source = \"serviceId\", target = \"service\")\n @Mapping(source = \"headerId\", target = \"header\")\n @Mapping(source = \"flowId\", target = \"flow\")\n Endpoint toEntity(EndpointDTO endpointDTO);\n\n default Endpoint fromId(Long id) {\n if (id == null) {\n return null;\n }\n Endpoint endpoint = new Endpoint();\n endpoint.setId(id);\n return endpoint;\n }\n}",
"AccountDTO toDTO(Account account);",
"public PersonaDTO(){}",
"@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}",
"@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}",
"static ForumDTO toDto(Forum forum) {\n\n List<Long> moderators = new ArrayList<Long>();\n List<CommentDTO> comments = new ArrayList<CommentDTO>();\n\n //get moderators\n if(forum.getModerators() != null) {\n for (User i : forum.getModerators()) {\n moderators.add(i.getId());\n }\n }\n\n //get comments\n if(forum.getModerators() != null) {\n for (Comment i : forum.getComments()) {\n comments.add(CommentMapper.toDto(i));\n }\n }\n\n Long animeTopicId = forum.getAnimeTopic() == null ? null : forum.getAnimeTopic().getId();\n\n ForumDTO in = new ForumDTO(forum.getId(), moderators, comments, animeTopicId);\n\n return in;\n\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}",
"RespuestaIngresarDireccionDTO ingresarDireccion(DireccionDTO direccionDTO,\n EnumTipoValidacionDireccion tipoValidacion);",
"JavaTypeMapping getMapping(Table table, AbstractMemberMetaData mmd, ClassLoaderResolver clr, FieldRole fieldRole);",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"public ViviendaDTO(ViviendaEntity entity){\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.anfitrion=new AnfitrionBasicDTO(entity.getAnfitrion());\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n this.direccion=entity.getDireccion();\r\n this.capacidad=entity.getCapacidad();\r\n this.valorDiario=entity.getValorDiario();\r\n this.imagen=entity.getImagen();\r\n this.numeroHabitaciones=entity.getHabitaciones().size();\r\n }\r\n }",
"@Mapper(componentModel = \"spring\", uses = {AuthorityMapper.class, })\npublic interface BizUserMapper {\n\n BizUserDTO bizUserToBizUserDTO(BizUser bizUser);\n\n List<BizUserDTO> bizUsersToBizUserDTOs(List<BizUser> bizUsers);\n\n @Mapping(target = \"companies\", ignore = true)\n @Mapping(target = \"products\", ignore = true)\n BizUser bizUserDTOToBizUser(BizUserDTO bizUserDTO);\n\n List<BizUser> bizUserDTOsToBizUsers(List<BizUserDTO> bizUserDTOs);\n\n default Authority authorityFromId(Long id) {\n if (id == null) {\n return null;\n }\n Authority authority = new Authority();\n authority.setId(id);\n return authority;\n }\n}",
"private Book mapBookDTOToBook(BookDTO bookDTO) {\n\t\tModelMapper mapper = new ModelMapper();\n\t\tBook book = mapper.map(bookDTO, Book.class);\n\t\tbook.setCategory(new Category(bookDTO.getCategory().getCode(), \"\"));\n\t\tbook.setRegisterDate(LocalDate.now());\n\t\treturn book;\n\t}",
"void mapToExistingEntity(D dto, @MappingTarget E entity);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface MedicoCalendarioMapper extends EntityMapper<MedicoCalendarioDTO, MedicoCalendario> {\n\n\n\n default MedicoCalendario fromId(Long id) {\n if (id == null) {\n return null;\n }\n MedicoCalendario medicoCalendario = new MedicoCalendario();\n medicoCalendario.setId(id);\n return medicoCalendario;\n }\n}",
"public ViviendaDetailDTO(ViviendaEntity viviendaEntity) {\r\n super(viviendaEntity);\r\n if (viviendaEntity != null) {\r\n\r\n if (viviendaEntity.getContratos() != null) {\r\n contratos = new ArrayList<>();\r\n for (ContratoEntity entityContrato : viviendaEntity.getContratos()){\r\n contratos.add(new ContratoDTO(entityContrato));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getCuartos() != null) {\r\n cuartos = new ArrayList<>();\r\n for(CuartoEntity entityCuarto : viviendaEntity.getCuartos()){\r\n cuartos.add(new CuartoDTO(entityCuarto));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getSitiosDeInteres() != null){\r\n sitiosDeInteres = new ArrayList<>();\r\n for(SitioInteresEntity sitioEntity : viviendaEntity.getSitiosDeInteres()){\r\n sitiosDeInteres.add(new SitioInteresDTO(sitioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getCalificaciones() != null ){\r\n calificaciones = new ArrayList<>();\r\n for(CalificacionEntity calificacionEntity : viviendaEntity.getCalificaciones()){\r\n calificaciones.add(new CalificacionDTO(calificacionEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosAdicionales() != null){\r\n serviciosAdicionales = new ArrayList<>();\r\n for (ServicioAdicionalEntity servicioEntity : viviendaEntity.getServiciosAdicionales()){\r\n serviciosAdicionales.add(new ServicioAdicionalDTO(servicioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosIncluidos() != null){\r\n serviciosOfrecidos = new ArrayList<>();\r\n for (String servicio : viviendaEntity.getServiciosIncluidos()){\r\n serviciosOfrecidos.add(servicio);\r\n }\r\n }\r\n }\r\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}",
"@Override\n\tpublic Izdavac convert(IzdavacDTO dto) {\n\t\tIzdavac izdavac=new Izdavac();\n\t\tif(dto.getId()!=null) {\n\t\t\tizdavac=izdavacService.findOne(dto.getId());\n\t\t\tif(izdavac==null) {\n\t\t\t\tthrow new IllegalStateException(\"greska izdavacDTO\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tizdavac.setAdresa(dto.getAdresa());\n\t\tizdavac.setId(dto.getId());\n\t\tizdavac.setNaziv(dto.getNaziv());\n\t\tizdavac.setTelefon(dto.getTelefon());\n\t\t\n\t\treturn izdavac;\n\t}",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface LocationMapper {\n\n @Mapping(source = \"address.id\", target = \"addressId\")\n @Mapping(source = \"address.streetAddressOne\", target = \"addressStreetAddressOne\")\n LocationDTO locationToLocationDTO(Location location);\n\n List<LocationDTO> locationsToLocationDTOs(List<Location> locations);\n\n @Mapping(target = \"gym\", ignore = true)\n @Mapping(source = \"addressId\", target = \"address\")\n Location locationDTOToLocation(LocationDTO locationDTO);\n\n List<Location> locationDTOsToLocations(List<LocationDTO> locationDTOs);\n\n default Address addressFromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}",
"public static IncomingDeliveryDTO mapToDTO(IncomingDelivery entity) {\r\n\t\tif(entity==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tIncomingDeliveryDTO dto = new IncomingDeliveryDTO();\r\n\r\n\t\tdto.setIncomingDeliveryId(entity.getIncomingDeliveryId());\r\n\t\tdto.setDeliveryNr(entity.getDeliveryNr());\r\n\t\tdto.setOrganisationId(entity.getOrganisation().getOrganisationId());\r\n\t\tdto.setLastEditorId(entity.getLastEditor().getPersonId());\r\n\t\tdto.setDeliveryNr(entity.getDeliveryNr());\r\n\t\tdto.setDate(df.format(entity.getDate()));\r\n\t\tdto.setComment(entity.getComment());\r\n\t\tdto.setUpdateTimestamp(df.format(entity.getUpdateTimestamp()));\r\n\t\tdto.setBooked(entity.getBooked());\r\n\t\tdto.setBookedAll(entity.getBookedAll());\r\n\t\tdto.setArchived(entity.getArchived());\r\n\r\n\t\tSet<IncomingArticleDTO> incomingArticleDTOs = new HashSet<IncomingArticleDTO>();\r\n\t\tfor(IncomingArticle incomingArticle : entity.getIncomingArticles())\r\n\t\t{\r\n\t\t\tincomingArticleDTOs.add(IncomingArticleMapper.mapToDTO(incomingArticle));\r\n\t\t}\r\n\r\n\t\tdto.setIncomingArticleDTOs(incomingArticleDTOs);\r\n\r\n\t\treturn dto;\r\n\t}",
"public MarcaDTO(MarcaEntity marcaEntity) {\n if (marcaEntity != null) {\n this.id = marcaEntity.getId();\n this.nombreMarca = marcaEntity.getNombreMarca();\n this.logo = marcaEntity.getLogo();\n }\n }",
"public abstract T convertToEntity(D dto);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface EventdataMapper {\n\n @Mapping(source = \"application.id\", target = \"applicationId\")\n @Mapping(source = \"applicationevent.id\", target = \"applicationeventId\")\n @Mapping(source = \"applicationview.id\", target = \"applicationviewId\")\n @Mapping(source = \"application.name\", target = \"applicationName\")\n @Mapping(source = \"applicationevent.name\", target = \"applicationeventName\")\n @Mapping(source = \"applicationview.name\", target = \"applicationviewName\")\n EventdataDTO eventdataToEventdataDTO(Eventdata eventdata);\n\n List<EventdataDTO> eventdataToEventdataDTOs(List<Eventdata> eventdata);\n\n @Mapping(source = \"applicationId\", target = \"application\")\n @Mapping(source = \"applicationeventId\", target = \"applicationevent\")\n @Mapping(source = \"applicationviewId\", target = \"applicationview\")\n Eventdata eventdataDTOToEventdata(EventdataDTO eventdataDTO);\n\n List<Eventdata> eventdataDTOsToEventdata(List<EventdataDTO> eventdataDTOs);\n\n default Application applicationFromId(Long id) {\n if (id == null) {\n return null;\n }\n Application application = new Application();\n application.setId(id);\n return application;\n }\n\n default Applicationevent applicationeventFromId(Long id) {\n if (id == null) {\n return null;\n }\n Applicationevent applicationevent = new Applicationevent();\n applicationevent.setId(id);\n return applicationevent;\n }\n\n default Applicationview applicationviewFromId(Long id) {\n if (id == null) {\n return null;\n }\n Applicationview applicationview = new Applicationview();\n applicationview.setId(id);\n return applicationview;\n }\n}",
"@Mapper\npublic interface PatientAdministrationMapper {\n\n /**\n * Getting all patients from database.\n *\n * @return all patients from database written to list.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();\n\n\n /**\n * Getting patient by specified id.\n * Patient containing his full address, which is taken by Join using\n * EagerLoading. So his address will be storing just in address field in\n * patient POJO class.\n *\n * @param patientId id of patient, which you want to get from database.\n * @return single patient taken from database.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);\n\n\n /**\n * Inserting specified patient object into database.\n * Before adding patient, you need to add address first, couse of constraints.\n *\n * @param patient patient to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);\n\n\n /**\n * Inserting specified address object into database.\n *\n * @param address address to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into addresses(id_address, city, zip_code, street, number) VALUES (\" +\n \"#{addressId}, #{city}, #{zip}, #{street}, #{number})\")\n @Options(useGeneratedKeys = true, keyProperty = \"addressId\", keyColumn = \"id_address\")\n void addPatientAddressAsChild(Address address);\n\n\n /**\n * Updating patient in database.\n * Object id will be used to take existing doctor from database, and update\n * his values using data from object (all except id).\n *\n * @param patient all fields will be used for update patient, which will have\n * the same id like doctor in parameter.\n */\n @Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);\n\n\n /**\n * Updating address in database.\n * Object id will be used to get address which you want update, and rest of then\n * for set new values.\n *\n * @param address object containing new data (except id).\n */\n @Update(\"UPDATE addresses SET city=#{city}, zip_code=#{zip}, street=#{street}, number=#{number} \" +\n \"WHERE id_address=#{addressId}\")\n void updatePatientAddress(Address address);\n\n\n /**\n * Updating patient firstcontact doctor using his id.\n *\n * @param patient patient, which firstcontact doctor you want update.\n * @param newDoctorId id of new patient firstcontact doctor.\n */\n @Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);\n\n /**\n * Deleting patient specified by id\n *\n * @param patientId id of patient to remove.\n */\n @Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);\n\n\n //TODO: it's necessary? Address should be dropped cascade. Test it.\n /**\n * Deleting address\n *\n * @param addressId id of address to remove.\n */\n @Delete(\"DELETE from addresses WHERE id_address=#{addressId}\")\n void deleteAddress(int addressId);\n\n\n\n\n\n\n\n\n\n @Select(\"SELECT id_address, city, zip_code, street, number from addresses \" +\n \"where id_address=#{addressId}\")\n @Results(value = {\n @Result(property = \"addressId\", column = \"id_address\"),\n @Result(property = \"city\", column = \"city\"),\n @Result(property = \"zip\", column = \"zip_code\"),\n @Result(property = \"street\", column = \"street\"),\n @Result(property = \"number\", column = \"number\")\n })\n Address selectAddress(int addressId);\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, id_specialization \" +\n \"from doctors where id_doctor=#{doctorId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n Doctor selectFirstcontactDoctor(int doctorId);\n\n @Select(\"SELECT * FROM specializations \" +\n \"WHERE id_specialization=#{specializationId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_specialization\"),\n @Result(property = \"name\", column = \"name\")\n })\n Specialization selectFirstcontactDoctorSpecialization(int specializationId);\n\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, d.id_specialization from doctors d INNER JOIN specializations AS s\\n\" +\n \"WHERE d.id_specialization = s.id_specialization AND s.name=\\\"First contact\\\"\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getAllFirstContactDoctors();\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_single_visit = #{visitId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient\", fetchType = FetchType.EAGER))\n })\n SingleVisit getVisit(int visitId);\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_patient = #{patientId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER))\n })\n List<SingleVisit> getVisitsForPatient(int patientId);\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where a.id_admission_day=#{admissionDayId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n AdmissionDay2 getAdmissionDay(int admissionDayId);\n\n\n @Delete(\"delete from singlevisits where id_single_visit = #{visitId};\")\n void deleteVisit(int visitId);\n\n\n @Delete(\"delete from singlevisits where id_patient = #{patientId}\")\n void deleteAllVisits(int patientId);\n\n @Select(\"select name from specializations\")\n @Results(@Result(property = \"name\", column = \"name\"))\n List<Specialization> getSpecializations();\n\n\n @Select(\"SELECT id_doctor, first_name, last_name, doc.id_specialization from doctors doc \" +\n \"LEFT JOIN specializations spec on doc.id_specialization = spec.id_specialization \" +\n \"WHERE spec.name = #{specializationName};\")\n @Results({\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getDoctorsForVisitSpecialization(@Param(\"specializationName\") String specializationName);\n\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where d.id_doctor = #{doctorId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n List<AdmissionDay2> getAdmissionDaysForDoctor(int doctorId);\n\n @Select(\"select s.id_single_visit, s.id_admission_day, visit_hour, id_patient, d.id_doctor from singlevisits s \" +\n \"JOIN admissiondays a on s.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE a.date = #{date} AND id_doctor = #{admissionDay.date};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient_OnlyId\", fetchType = FetchType.EAGER)),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\", javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n })\n List<SingleVisit> getSingleVisitsFreeFromAdmissionDay(@Param(\"admissionDay\") AdmissionDay2 admissionDay,\n @Param(\"doctorId\") int doctorId);\n\n @Update(\"update singlevisits set visit_hour = #{visitHour}, id_admission_day=#{admissionDayId} \" +\n \"Where id_single_visit = #{singleVisitId};\")\n void updateVisitDateAndHour(@Param(\"singleVisitId\") int singleVisitId,\n @Param(\"visitHour\")LocalTime visitHour,\n @Param(\"admissionDayId\") int admissionDayId);\n\n}",
"public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}",
"public default D toDto(E entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn DtoUtilService.staticDtoFromEntity(getDtoClass(), entity);\n\t\t}\n\t}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface MisteriosoMapper extends EntityMapper<MisteriosoDTO, Misterioso> {\n\n \n\n \n\n default Misterioso fromId(Long id) {\n if (id == null) {\n return null;\n }\n Misterioso misterioso = new Misterioso();\n misterioso.setId(id);\n return misterioso;\n }\n}",
"protected abstract void processDTO();",
"@Mapper(componentModel = \"spring\", uses = UserMapper.class, unmappedTargetPolicy = ReportingPolicy.IGNORE)\npublic interface CaregiverMapper {\n\n\t@Mapping(source = \"id\", target = \"id\")\n\t@Mapping(source = \"user\", target = \"user\")\n\t@Mapping(source = \"floor.id\", target = \"floorId\")\n\tCaregiverDTO caregiverToCaregiverDTO(Caregiver caregiver);\n\n\t@InheritInverseConfiguration\n\tCaregiver caregiverDTOToCaregiver(CaregiverDTO caregiverDTO);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}",
"DireccionDTO consultarDireccion(long idDireccion);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AddressMapper {\n\n @Mapping(source = \"city.id\", target = \"cityId\")\n AddressDTO addressToAddressDTO(Address address);\n\n List<AddressDTO> addressesToAddressDTOs(List<Address> addresses);\n\n @Mapping(source = \"cityId\", target = \"city\")\n Address addressDTOToAddress(AddressDTO addressDTO);\n\n List<Address> addressDTOsToAddresses(List<AddressDTO> addressDTOs);\n\n default City cityFromId(Long id) {\n if (id == null) {\n return null;\n }\n City city = new City();\n city.setId(id);\n return city;\n }\n}",
"@Mapper(componentModel = \"spring\", uses = {EntryDataMapper.class})\npublic interface InvoiceLineMapper extends EntityMapper<InvoiceLineDTO, InvoiceLine> {\n\n @Mapping(source = \"entryData.id\", target = \"entryDataId\")\n InvoiceLineDTO toDto(InvoiceLine invoiceLine);\n\n @Mapping(source = \"entryDataId\", target = \"entryData\")\n @Mapping(target = \"attributes\", ignore = true)\n InvoiceLine toEntity(InvoiceLineDTO invoiceLineDTO);\n\n default InvoiceLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setId(id);\n return invoiceLine;\n }\n}"
]
| [
"0.6281255",
"0.5926117",
"0.5774229",
"0.572485",
"0.57194364",
"0.5719247",
"0.5686592",
"0.56401265",
"0.5624543",
"0.55178714",
"0.54657274",
"0.5458629",
"0.54429626",
"0.5440113",
"0.54077935",
"0.5405791",
"0.5401397",
"0.53822255",
"0.53705174",
"0.53692144",
"0.5357316",
"0.53561485",
"0.53508645",
"0.5327554",
"0.5314284",
"0.5298714",
"0.529584",
"0.52913374",
"0.52903473",
"0.5285906",
"0.5264797",
"0.52639556",
"0.52464294",
"0.52294016",
"0.5203873",
"0.5196831",
"0.5193658",
"0.5193394",
"0.5190621",
"0.5184517",
"0.51462835",
"0.514207",
"0.5135305",
"0.5130413",
"0.51238024",
"0.5112136",
"0.51075894",
"0.51038104",
"0.5087311",
"0.5066527",
"0.5053262",
"0.5051799",
"0.5038403",
"0.50311905",
"0.50283456",
"0.5015313",
"0.50137603",
"0.50074536",
"0.5007218",
"0.50025666",
"0.4997544",
"0.49939942",
"0.49747318",
"0.49720845",
"0.4959245",
"0.494803",
"0.49426034",
"0.49352434",
"0.49343646",
"0.4933849",
"0.4929681",
"0.4926122",
"0.49239528",
"0.49231747",
"0.49225476",
"0.49193674",
"0.49175394",
"0.49171704",
"0.4917038",
"0.4916964",
"0.4899699",
"0.4894325",
"0.48908925",
"0.4869833",
"0.48678678",
"0.4866673",
"0.48614135",
"0.48575333",
"0.48520502",
"0.48495945",
"0.48439687",
"0.4842794",
"0.48419306",
"0.48335364",
"0.4831916",
"0.4824116",
"0.48211053",
"0.48177463",
"0.4816694",
"0.48115957"
]
| 0.7059163 | 0 |
This is a callback method to inquire of an application which has MonitorAppPermission("registrar") whether the AppDatabase shall update current application information using a new version of the XAIT or not. | public boolean notifyXAITUpdate(OcapAppAttributes[] newApps); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean registerApplication(Application application);",
"protected void onAppsChanged() {\n\t\t\n\t}",
"@Override\n public boolean hasHashedVersionAfterApplication() {\n return hashedVersionAfterApplication != null;\n }",
"boolean isRegistrateChangeListener();",
"private void addApplicationsPermissionsToRegistry() throws APIManagementException {\n Registry tenantGovReg = getRegistry();\n String permissionResourcePath = CarbonConstants.UI_PERMISSION_NAME + RegistryConstants.PATH_SEPARATOR + APPLICATION_ROOT_PERMISSION;\n try {\n if (!tenantGovReg.resourceExists(permissionResourcePath)) {\n String loggedInUser = CarbonContext.getThreadLocalCarbonContext().getUsername();\n UserRealm realm = (UserRealm) CarbonContext.getThreadLocalCarbonContext().getUserRealm();\n // Logged in user is not authorized to create the permission.\n // Temporarily change the user to the admin for creating the permission\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(realm.getRealmConfiguration().getAdminUserName());\n tenantGovReg = CarbonContext.getThreadLocalCarbonContext().getRegistry(RegistryType.USER_GOVERNANCE);\n Collection appRootNode = tenantGovReg.newCollection();\n appRootNode.setProperty(\"name\", \"Applications\");\n tenantGovReg.put(permissionResourcePath, appRootNode);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(loggedInUser);\n }\n } catch (org.wso2.carbon.user.core.UserStoreException e) {\n throw new APIManagementException(\"Error while reading user store information.\", e);\n } catch (org.wso2.carbon.registry.api.RegistryException e) {\n throw new APIManagementException(\"Error while creating new permission in registry\", e);\n }\n }",
"private void hockeyAppCheckForUpdates() {\n UpdateManager.register(this);\n }",
"public com.google.protobuf.Empty registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);",
"protected void onAfterCreateApplication() {\n\n\t}",
"public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);",
"@Override\n public void success() {\n XSPSystem.getInstance().installApp(PjjApplication.App_Path + appName);\n }",
"public boolean updateAppointment(Appointment app);",
"@Override\r\n public void saveEApplication() {\n }",
"public void registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);",
"public boolean isImmediateAppUpdateAvailable(AppUpdateInfo appUpdateInfo) {\n return appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE\n && appUpdateInfo.isUpdateTypeAllowed(AppUpdateType.IMMEDIATE);\n }",
"private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}",
"@Override\n\t\tprotected Version doInBackground(Void... params) {\n\t\t\treturn new UpdateApk(getApplicationContext()).hasNewVersion();\n\t\t}",
"private void onApnChanged() {\n boolean isConnected;\n\n isConnected = (state != State.IDLE && state != State.FAILED);\n\n // TODO: It'd be nice to only do this if the changed entrie(s)\n // match the current operator.\n createAllApnList();\n if (state != State.DISCONNECTING) {\n cleanUpConnection(isConnected, Phone.REASON_APN_CHANGED);\n if (!isConnected) {\n trySetupData(Phone.REASON_APN_CHANGED);\n }\n }\n }",
"public void check() {\r\n logger.info(\"ADIT monitor - Checking database and application.\");\r\n\r\n checkApplication();\r\n\r\n checkDBConnection();\r\n checkDBRead(this.getMonitorConfiguration().getTestDocumentId());\r\n }",
"@Test(priority = 2)\n public void verifyAppIsInstalled(){\n Assert.assertTrue(driver.isAppInstalled(bundleId), \"The App is not installed\");\n Log.info(\"App is installed\");\n }",
"void updatePushApplication(PushApplication pushApp);",
"public boolean updateAppintment(Appointment appointment) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void onAppLoaded()\n\t{\n\t\tmHandler.post(new Runnable(){\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Get new list of apps and populate your list\n\t\t\t\tmApps = mRequestManager.getApps();\n\t\t\t\tpopulateGrid();\n\t\t\t}\n\t\t});\n\t}",
"boolean hasUserAppId();",
"boolean hasUserAppId();",
"boolean isAppInstalled(String bundleId);",
"private boolean checkAppInstanceOwnership(){\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t \tif(getUser() != null){\n\t \t\t\n\t \t\tif(getUser().getRole().equalsIgnoreCase(UserRoles.admin.toString()))\n\t \t\t\treturn true;\n\t \t\telse{\n\t \t\t\t\n\t\t\t\t\tAppInstance app = AHEEngine.getAppInstanceEntity(Long.valueOf(appinst));\n\t \t\t\t\t\t\t\t\t\n\t \t\t\tif(app != null){\n\t \t\t\t\t\n\t \t\t\t\tif(app.getOwner().getId() == getUser().getId())\n\t \t\t\t\t\treturn true;\n\t \t\t\t\telse{\n\t \t\t\t\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n\t \t\t\t\t\treturn false;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AHEException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n \treturn false;\n }",
"public int getRegAppid() {\n\t\t\treturn regAppid;\n\t\t}",
"public void receiveResultisApplicationIdAvailable(\n boolean result\n ) {\n }",
"void checkForApps();",
"public boolean update(ConProcess conProcess) throws AppException;",
"public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);",
"@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private List<AppDetails> getAppDetailsFromDatabase() {\r\n SQLiteAccessLayer sqLiteAccessLayer = new SQLiteAccessLayer(this);\r\n List<AppDetails> appDetailsList = new ArrayList<>();\r\n PackageManager packageManager = getPackageManager();\r\n\r\n if (sqLiteAccessLayer.isDatabaseEmpty()) { // database empty\r\n List<PackageInfo> installedApps = RawAppInfo.getAllInstalledApps(this);\r\n List<ResolveInfo> systemApps = RawAppInfo.getSystemApps(this);\r\n\r\n for (PackageInfo packageInfo : installedApps) {\r\n AppDetails appDetails = new AppDetails(\r\n packageInfo.applicationInfo.uid,\r\n packageInfo.applicationInfo.packageName,\r\n String.valueOf(packageInfo.applicationInfo.loadLabel(packageManager)),\r\n RawAppInfo.INSTALLED_APP\r\n );\r\n\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n for (ResolveInfo resolveInfo : systemApps) {\r\n ApplicationInfo applicationInfo = resolveInfo.activityInfo.applicationInfo;\r\n AppDetails appDetails = new AppDetails(\r\n applicationInfo.uid, //uid\r\n applicationInfo.packageName, //packagename\r\n String.valueOf(applicationInfo.loadLabel(packageManager)), // applicationName\r\n RawAppInfo.SYSTEM_APP //applicationType\r\n );\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n } else {\r\n appDetailsList = new ArrayList<>(new SQLiteAccessLayer(this).queryAppDetails());\r\n }\r\n sqLiteAccessLayer.closeDatabaseConnection();\r\n return appDetailsList;\r\n }",
"public static void updateLastViewed(String caller, Context context) {\n Map<String, String> map = Utility.getRegistrationEntry(context);\n Log.d(MainActivity.APP_TAG, caller + \" Time: \" + (new Date()));\n if (map != null && map.size() > 0) {\n Utility.updateRegistrationEntry(context);\n } else {\n Utility.addRegistrationEntry(context);\n }\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"protected void getApps(){\n DBPermissions db =new DBPermissions();\n this.apps=db.getApps();\n db.close();\n }",
"boolean hasRoutingAppID();",
"protected boolean updateTime(String appName) {\n return appFile(appName, APP_XML).setLastModified(System.currentTimeMillis());\n }",
"@Override\n\tpublic int insertApplication(Application application) {\n\t\treturn 0;\n\t}",
"public boolean approveApp(String myAppName) {\n\t\tLog.info(\"Checking if App:\" + myAppName + \"came for approval\");\n\t\tWebElement myElement = getAppFromList(myAppName);\n\t\tif (myElement != null) {\n\t\t\tLog.info(myAppName + \"came for approval. Approving it now..\");\n\t\t\tWebElement approveButton = myElement.findElement(By.id(\"appsEditApprove\"));\n\t\t\tapproveButton.click();\n\t\t\tapp_confrim.click();\n\t\t\tif (getAccontDetails(myAppName) != null) {\n\t\t\t\tLog.info(myAppName + \"is approved now\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tLog.info(\"failed to approve\" + myAppName);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tLog.info(myAppName + \"did not showed up in approval list\");\n\t\t\treturn false;\n\t\t}\n\n\t}",
"private final boolean m878a() {\n try {\n ApplicationInfo applicationInfo = this.f1350b.getPackageManager().getApplicationInfo(this.f1350b.getPackageName(), 128);\n return (applicationInfo == null || applicationInfo.metaData == null || !Boolean.TRUE.equals(applicationInfo.metaData.get(\"com.android.vending.splits.required\"))) ? false : true;\n } catch (PackageManager.NameNotFoundException e) {\n f1349a.mo44091d(\"App '%s' is not found in the PackageManager\", this.f1350b.getPackageName());\n return false;\n }\n }",
"@Override\n\tpublic ApiResponseResult queryAppVersion() throws Exception {\n\t\tMap m = new HashMap();\n\t\t List<Map<String, Object>> l = sysUserDao.queryAppVersion();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Version\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryApkUrl();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Url\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本的下载地址\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryAppSize();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Size\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t m.put(\"Size\", 0);\n\t\t }\n\t\t\n\t\treturn ApiResponseResult.success().data(m);\n\t}",
"@Test @SmallTest\n public void testUpdateUiccCardApplication() {\n IccCardApplicationStatus cdmaApp = composeUiccApplicationStatus(\n IccCardApplicationStatus.AppType.APPTYPE_CSIM,\n IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN, \"0xA0\");\n IccCardApplicationStatus imsApp = composeUiccApplicationStatus(\n IccCardApplicationStatus.AppType.APPTYPE_ISIM,\n IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN, \"0xA1\");\n IccCardApplicationStatus umtsApp = composeUiccApplicationStatus(\n IccCardApplicationStatus.AppType.APPTYPE_USIM,\n IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN, \"0xA2\");\n mIccCardStatus.mApplications = new IccCardApplicationStatus[]{cdmaApp, imsApp, umtsApp};\n mIccCardStatus.mCdmaSubscriptionAppIndex = 0;\n mIccCardStatus.mImsSubscriptionAppIndex = 1;\n mIccCardStatus.mGsmUmtsSubscriptionAppIndex = 2;\n Message mCardUpdate = mHandler.obtainMessage(UICCCARD_UPDATE_CARD_APPLICATION_EVENT);\n setReady(false);\n mCardUpdate.sendToTarget();\n\n waitUntilReady();\n\n assertEquals(3, mUicccard.getNumApplications());\n assertTrue(mUicccard.isApplicationOnIcc(IccCardApplicationStatus.AppType.APPTYPE_CSIM));\n assertTrue(mUicccard.isApplicationOnIcc(IccCardApplicationStatus.AppType.APPTYPE_ISIM));\n assertTrue(mUicccard.isApplicationOnIcc(IccCardApplicationStatus.AppType.APPTYPE_USIM));\n }",
"@SuppressWarnings(\"ALL\")\npublic interface ApplicationChangeListener {\n void onStatusChange(Application application);\n}",
"@Override\n public void updatedResource( ResourceEvent event )\n {\n if ( event.getTypeResource( ).equals( Appointment.APPOINTMENT_RESOURCE_TYPE ) )\n {\n IndexingAppointmentService.getService( ).indexAppointmentStateAndHistory( _appointmentDataSource, _appointmentHistoryDataSource,\n Integer.parseInt( event.getIdResource( ) ) );\n }\n\n }",
"Appinfo createAppinfo();",
"public synchronized void notifyForegroundApp(String packageName) {\n if (packageName != null) {\n if (!packageName.equals(this.mLatestPgName)) {\n NeuronAppRecord app = (NeuronAppRecord) this.mAppUsageMap.get(packageName);\n if (app == null) {\n app = new NeuronAppRecord(packageName);\n app.dataList.pushToHead(new AppDataNode());\n this.mAppUsageMap.put(packageName, app);\n }\n long currentTime = System.currentTimeMillis();\n app.lastestResumeTime.pushToHead(Long.valueOf(currentTime));\n AppDataNode latestAppData = (AppDataNode) app.dataList.getLatest();\n Long latestPause = (Long) app.latestPauseTime.getLatest();\n if (!(latestAppData == null || latestPause == null || latestPause.longValue() <= 0)) {\n long bgTime = currentTime - latestPause.longValue();\n if (bgTime < latestAppData.minBgTime) {\n latestAppData.minBgTime = bgTime;\n }\n if (bgTime > latestAppData.maxBgTime) {\n latestAppData.maxBgTime = bgTime;\n }\n latestAppData.totalBgTime += bgTime;\n }\n NeuronAppRecord removedApp = (NeuronAppRecord) this.mAppUsageList.pushToHead(app);\n if (removedApp != null) {\n this.mAppUsageMap.remove(removedApp.packageName);\n }\n pauseLatestApp(currentTime);\n this.mLatestAppUsage = app;\n this.mLatestPgName = packageName;\n }\n }\n }",
"@Override // com.android.settings.applications.AppStateBaseBridge\n public void loadAllExtraInfo() {\n ArrayList<ApplicationsState.AppEntry> allApps = this.mAppSession.getAllApps();\n for (int i = 0; i < allApps.size(); i++) {\n ApplicationsState.AppEntry appEntry = allApps.get(i);\n ApplicationInfo applicationInfo = appEntry.info;\n updateExtraInfo(appEntry, applicationInfo.packageName, applicationInfo.uid);\n }\n }",
"ApplicationData getActualAppData();",
"@Override\r\n\t\t\tpublic boolean isApplicationToBePerformed(Expression lambdaExpression, RewritingProcess process) {\n\t\t\t\treturn true;\r\n\t\t\t}",
"@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private boolean checkFirstRun(Context context) {\n\n final String PREFS_NAME = \"com.zgsoft.prefs\";\n final String PREF_VERSION_CODE_KEY = \"version_code\";\n final int DOESNT_EXIST = -1;\n // String packageName=null;\n\n\n // Get current version code\n int currentVersionCode = 0;\n try {\n PackageInfo packageInfo =context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n currentVersionCode =packageInfo.versionCode;\n //packageName = packageInfo.packageName;\n\n } catch (android.content.pm.PackageManager.NameNotFoundException e) {\n // handle exception\n e.printStackTrace();\n return false;\n }\n\n\n // Get saved version code\n SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, android.content.Context.MODE_PRIVATE);\n int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\n\n // Check for first run or upgrade\n if (currentVersionCode == savedVersionCode) {\n\n // This is just a normal run\n return false;\n\n } else {\n // Update the shared preferences with the current version code\n prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\n return true;\n }\n\n }",
"public static boolean isInAppBlackList(ContentResolver cr,String packageName){\n Cursor cursor=null;\n int count=0;\n cursor = cr.query(APP_CONTENT_URI, new String[]{\"package_name\"},\n \" package_name=? \", new String[]{packageName}, null);\n if (cursor!=null) {\n try {\n count = cursor.getCount();\n } finally{\n cursor.close();\n }\n }\n return count > 0;\n }",
"@Override\n\tpublic int updApp(ApplicationEntity App) {\n\t\tint id=App.A_id;\n\t\tString zt=null;\n\t\tApplicationEntity app=appdao.selectappById(id);\n\t\tif(\"0\".equals(app.A_state)){\n\t\t\t zt=\"1\";\n\t\t\t\n\t\t}\n\t\tApplicationEntity app1=new ApplicationEntity();\n\t\tapp1.A_state=zt;\n\t\tapp1.A_id=id;\n\t\treturn appdao.updapp(app1);\n\t}",
"public boolean isAppMapRegistered (String mapname){\n\t\t\n\t\tif (mapname == null) throw new NullPointerException(\n\t\t\t\t\t\t\t \"DDGUIUtilities.isAppMapRegistered: \" + \n\t\t\t \"mapname\");\t\t\t\t\n\t\t// see if already registered\t\n\t\treturn (getAppMap(mapname) instanceof ApplicationMap);\n\t}",
"public boolean isRegistered()\n {\n return getRegistrationState().equals(RegistrationState.REGISTERED);\n }",
"public void onInstalled() {\n }",
"@Test\n public void trackingEnabled_updateAppNotPrivileged() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureUpdateAppPackageNotPrivileged(UPDATE_APP_PACKAGE_NAME);\n configureDataAppPackageOk(DATA_APP_PACKAGE_NAME);\n\n try {\n // Initialize the tracker.\n mPackageTracker.start();\n fail();\n } catch (RuntimeException expected) {}\n\n mFakeIntentHelper.assertNotInitialized();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }",
"public void onInstalledApplication(final boolean show) {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(loadingDialog!=null){\n\t\t\t\t\tloadingDialog.dismiss();\n\t\t\t\t}\n\t\t\t\tif (show) {\n\t\t\t\t\tuninstall.setEnabled(true);\n\t\t\t\t\tinstall.setEnabled(false);\n\t\t\t\t\tchangeStatus(getString(R.string.installed_application_found));\n\t\t\t\t} else {\n\t\t\t\t\tuninstall.setEnabled(false);\n\t\t\t\t\tinstall.setEnabled(true);\n\t\t\t\t\tchangeStatus(getString(R.string.no_installed_application));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public boolean updateInstallation() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public boolean setApplicationStatus(ApplicationBean application) throws UASException;",
"public Observable<List<AppDetail>> getUserPermittedApps() {\n return getAllInstalledApps()\n .zipWith(PolicyManager\n .getCurrentUserPolicyRules(PolicyType.APPLICATION_CONTROL),\n RuleInterpreter::filterApps);\n\n }",
"public void register() {\n AppStateTracker.this.mContext.getContentResolver().registerContentObserver(Settings.Global.getUriFor(\"forced_app_standby_enabled\"), false, this);\n AppStateTracker.this.mContext.getContentResolver().registerContentObserver(Settings.Global.getUriFor(\"forced_app_standby_for_small_battery_enabled\"), false, this);\n }",
"private static Map<String, Object> storePaymentApplication(Delegator delegator, GenericValue paymentApplication, Locale locale) {\n Map<String, Object> results = ServiceUtil.returnSuccess(UtilProperties.getMessage(RESOURCE,\n \"AccountingSuccessful\", locale));\n boolean debug = true;\n if (debug) {\n Debug.logInfo(\"Start updating the paymentApplication table \", MODULE);\n }\n\n if (DECIMALS == -1 || ROUNDING == null) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingAritmeticPropertiesNotConfigured\", locale));\n }\n\n // check if a record already exists with this data\n List<GenericValue> checkAppls = null;\n try {\n checkAppls = EntityQuery.use(delegator).from(\"PaymentApplication\")\n .where(\"invoiceId\", paymentApplication.get(\"invoiceId\"),\n \"invoiceItemSeqId\", paymentApplication.get(\"invoiceItemSeqId\"),\n \"billingAccountId\", paymentApplication.get(\"billingAccountId\"),\n \"paymentId\", paymentApplication.get(\"paymentId\"),\n \"toPaymentId\", paymentApplication.get(\"toPaymentId\"),\n \"taxAuthGeoId\", paymentApplication.get(\"taxAuthGeoId\"))\n .queryList();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n if (!checkAppls.isEmpty()) {\n if (debug) {\n Debug.logInfo(checkAppls.size() + \" records already exist\", MODULE);\n }\n // 1 record exists just update and if different ID delete other record and add together.\n GenericValue checkAppl = checkAppls.get(0);\n // if new record add to the already existing one.\n if (paymentApplication.get(\"paymentApplicationId\") == null) {\n // add 2 amounts together\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\")\n .add(checkAppl.getBigDecimal(\"amountApplied\")).setScale(DECIMALS, ROUNDING));\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else if (paymentApplication.getString(\"paymentApplicationId\").equals(checkAppl.getString(\"paymentApplicationId\"))) {\n // update existing record in-place\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\"));\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else { // two existing records, an updated one added to the existing one\n // add 2 amounts together\n checkAppl.set(\"amountApplied\", paymentApplication.getBigDecimal(\"amountApplied\")\n .add(checkAppl.getBigDecimal(\"amountApplied\")).setScale(DECIMALS, ROUNDING));\n // delete paymentApplication record and update the checkAppls one.\n if (debug) {\n Debug.logInfo(\"Delete paymentApplication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.remove();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n // update amount existing record\n if (debug) {\n Debug.logInfo(\"Update paymentApplication record: \" + checkAppl.getString(\"paymentApplicationId\") + \" with appliedAmount:\"\n + checkAppl.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n checkAppl.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n }\n } else {\n if (debug) {\n Debug.logInfo(\"No records found with paymentId, invoiceid..etc probaly changed one of them...\", MODULE);\n }\n // create record if ID null;\n if (paymentApplication.get(\"paymentApplicationId\") == null) {\n paymentApplication.set(\"paymentApplicationId\", delegator.getNextSeqId(\"PaymentApplication\"));\n if (debug) {\n Debug.logInfo(\"Create new paymentAppication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.create();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n } else {\n // update existing record (could not be found because a non existing combination of paymentId/invoiceId/invoiceSeqId/ etc... was\n // provided\n if (debug) {\n Debug.logInfo(\"Update existing paymentApplication record: \" + paymentApplication.getString(\"paymentApplicationId\") + \" with \"\n + \"appliedAmount:\" + paymentApplication.getBigDecimal(\"amountApplied\"), MODULE);\n }\n try {\n paymentApplication.store();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n }\n }\n return results;\n }",
"void enterSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession);",
"public ApplicationInfo getApplicationInfo() {\n return null;\n }",
"private void checkAppKeySetup() {\n if (APP_KEY.startsWith(\"CHANGE\") ||\n APP_SECRET.startsWith(\"CHANGE\")) {\n showToast(\"You must apply for an app key and secret from developers.dropbox.com, and add them to the DBRoulette ap before trying it.\");\n finish();\n return;\n }\n\n // Check if the app has set up its manifest properly.\n Intent testIntent = new Intent(Intent.ACTION_VIEW);\n String scheme = \"db-\" + APP_KEY;\n String uri = scheme + \"://\" + AuthActivity.AUTH_VERSION + \"/test\";\n testIntent.setData(Uri.parse(uri));\n PackageManager pm = getPackageManager();\n if (0 == pm.queryIntentActivities(testIntent, 0).size()) {\n showToast(\"URL scheme in your app's \" +\n \"manifest is not set up correctly. You should have a \" +\n \"com.dropbox.client2.android.AuthActivity with the \" +\n \"scheme: \" + scheme);\n finish();\n }\n }",
"public int checkNotificationPermission() throws android.os.RemoteException;",
"@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }",
"boolean hasResMineInstanceID();",
"public Application getLastModifyingApplication()\r\n\t{\r\n\t\treturn lastModifyingApplication;\r\n\t}",
"static void m13805a(Context context, String applicationId) {\n if (context == null || applicationId == null) {\n throw new IllegalArgumentException(\"Both context and applicationId must be non-null\");\n }\n try {\n C6709b identifiers = C6709b.m13508a(context);\n SharedPreferences preferences = context.getSharedPreferences(\"com.facebook.sdk.attributionTracking\", 0);\n StringBuilder sb = new StringBuilder();\n sb.append(applicationId);\n sb.append(\"ping\");\n String pingKey = sb.toString();\n long lastPing = preferences.getLong(pingKey, 0);\n GraphRequest publishRequest = GraphRequest.m12875a((AccessToken) null, String.format(\"%s/activities\", new Object[]{applicationId}), C6605k.m13113a(C6606a.MOBILE_INSTALL_EVENT, identifiers, C6638q.m13213a(context), m13807a(context), context), (C6545b) null);\n if (lastPing == 0) {\n C6817z b = publishRequest.mo19680b();\n Editor editor = preferences.edit();\n editor.putLong(pingKey, System.currentTimeMillis());\n editor.apply();\n }\n } catch (JSONException e) {\n throw new FacebookException(\"An error occurred while publishing install.\", e);\n } catch (Exception e2) {\n C6694S.m13422a(\"Facebook-publish\", e2);\n }\n }",
"public boolean verifyRpiRegistration(String rpiId) throws SQLException;",
"void onNewRegistrationId(String registrationId);",
"public void updateApp(DatasetInformation datasetInfos) {\r\n loadingAnalysis(datasetInfos);\r\n }",
"private void AddMetaRegistrationInformation(Registration reg) {\n }",
"@Override\n public void run() {\n if (needRefreshRegistration(registrationUri, resolvedDeployment)) {\n sendRegistrationEvent(resolvedDeployment);\n }\n }",
"public boolean mo23022e() {\n long j = this.f26122b.getLong(\"last.refresh.otherapp\", 0);\n boolean z = true;\n if (j <= 0) {\n return true;\n }\n if (System.currentTimeMillis() - j <= 7200000) {\n z = false;\n }\n return z;\n }",
"private void registrationProcessFireStore() {\n\n Log.i(\"checkk UserReg: \", \"registrationprocess\");\n presenter.checkUserDoc(userName,userPhone,adminName,adminPhone);\n Log.i(\"checkk UserReg: \", \"registrationprocess AFTER\");\n\n\n\n }",
"@Override\n public boolean canCreateGameApp(String name) \n {\n return manager.canCreateGameApp(name);\n }",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public boolean accepts( Application application)\n\t{\n\t\treturn false;\n\t\t//TODO implement accepts\n\t}",
"@Override\n protected void update(List<Event> result, Ec2LaunchConfiguration oldResource, Ec2LaunchConfiguration newResource) {\n \n }",
"public void notifyStartup();",
"@Test\n public void registerUpdateQuickLifecycleTest() throws Exception {\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UP);\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UNKNOWN);\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.DOWN);\n Thread.sleep(400);\n // this call will be rate limited, but will be transmitted by the automatic update after 10s\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UP);\n Thread.sleep(2400);\n\n Assert.assertEquals(Arrays.asList(\"DOWN\", \"UP\"), mockLocalEurekaServer.registrationStatuses);\n Assert.assertEquals(2, mockLocalEurekaServer.registerCount.get());\n }",
"public String prepareToAddApplication() {\r\n\t\tSystem.out.println(\"aaa\");\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry {\r\n\t\t\tuserRole = (Employee) request.getSession().getAttribute(\"user\");\r\n\t\t\tif(userRole.isApprover()){\r\n\t\t\t\tallapprover = ied.getApproversForApproveer(userRole.getEmpName());\r\n\t\t\t\talladmin = ied.getAllAdmins();\r\n\t\t\t\treturn \"prepare_approver_success\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tallapprover = ied.getAllApprovers();\r\n\t\t\talladmin = ied.getAllAdmins();\r\n\t\t return \"success\";\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t }\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t}",
"boolean hasApplicationProcessInstance();",
"public /* synthetic */ void lambda$new$1$KeyguardUpdateMonitor() {\n Intent registerReceiver;\n int defaultSubscriptionId = SubscriptionManager.getDefaultSubscriptionId();\n ServiceState serviceStateForSubscriber = ((TelephonyManager) this.mContext.getSystemService(TelephonyManager.class)).getServiceStateForSubscriber(defaultSubscriptionId);\n Handler handler = this.mHandler;\n handler.sendMessage(handler.obtainMessage(330, defaultSubscriptionId, 0, serviceStateForSubscriber));\n if (this.mBatteryStatus == null && (registerReceiver = this.mContext.registerReceiver(null, new IntentFilter(\"android.intent.action.BATTERY_CHANGED\"))) != null && this.mBatteryStatus == null) {\n this.mBroadcastReceiver.onReceive(this.mContext, registerReceiver);\n }\n }",
"public void getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> responseObserver);",
"public void onPackageAdded(String packageName, int uid) {\n synchronized (AccountManagerBackupHelper.this.mLock) {\n if (AccountManagerBackupHelper.this.mRestorePendingAppPermissions == null) {\n } else if (UserHandle.getUserId(uid) != 0) {\n } else {\n for (int i = AccountManagerBackupHelper.this.mRestorePendingAppPermissions.size() - 1; i >= 0; i--) {\n PendingAppPermission pendingAppPermission = (PendingAppPermission) AccountManagerBackupHelper.this.mRestorePendingAppPermissions.get(i);\n if (pendingAppPermission.packageName.equals(packageName) && pendingAppPermission.apply(AccountManagerBackupHelper.this.mAccountManagerService.mContext.getPackageManager())) {\n AccountManagerBackupHelper.this.mRestorePendingAppPermissions.remove(i);\n }\n }\n if (AccountManagerBackupHelper.this.mRestorePendingAppPermissions.isEmpty() && AccountManagerBackupHelper.this.mRestoreCancelCommand != null) {\n AccountManagerBackupHelper.this.mAccountManagerService.mHandler.removeCallbacks(AccountManagerBackupHelper.this.mRestoreCancelCommand);\n AccountManagerBackupHelper.this.mRestoreCancelCommand.run();\n AccountManagerBackupHelper.this.mRestoreCancelCommand = null;\n }\n }\n }\n }",
"@Override\n public int checkNotificationPermission() throws android.os.RemoteException {\n return 0;\n }",
"void onApplicationEvent(ContextRefreshedEvent event);",
"private synchronized void addAppToAppDataUsageList(\n ApplicationInfo appInfo) {\n String appLabel = (String) packageManager.getApplicationLabel(appInfo);\n int uid = appInfo.uid;\n AppDataUsage app = new AppDataUsage(appLabel, uid);\n appDataUsageList.add(app);\n }",
"public void syncApprovedApplicantsFromErp() {\n\t\tList<String> allErpCodes = applicationDao.getAllProcessedApplicationFileNos();\r\n\t\t// List<String> allErpCodes = Arrays.asList(\"C/20293\", \"C/20292\",\r\n\t\t// \"C/20390\");\r\n\t\tList<ApplicationSyncPayLoad> syncedApplicants = new ArrayList<>();\r\n\t\tint successCounter = 0;\r\n\t\tint totalToBeSynced = 0;\r\n\t\tif (!allErpCodes.isEmpty()) {\r\n\t\t\ttotalToBeSynced = allErpCodes.size();\r\n\t\t\tJSONArray mJSONArray = new JSONArray(allErpCodes);\r\n\r\n\t\t\t// Send this to ERP\r\n\t\t\ttry {\r\n\t\t\t\tString results = postErpCodesToERP(mJSONArray);\r\n\t\t\t\tif (results.equals(\"null\")) {\r\n\t\t\t\t\tlogger.error(\" ===>>><<<< === NO REPLY FROM ERP ===>><<<>>== \");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJSONArray jo = null;\r\n\t\t\t\t\tjo = new JSONArray(results);\r\n\t\t\t\t\tfor (int i = 0; i < jo.length(); i++) {\r\n\t\t\t\t\t\tJSONObject jObject = null;\r\n\t\t\t\t\t\tjObject = jo.getJSONObject(i);\r\n\t\t\t\t\t\tApplicationSyncPayLoad syncPayLoad = new ApplicationSyncPayLoad();\r\n\t\t\t\t\t\tsyncPayLoad.setApplicationNo_(jObject.getString(\"Application No_\"));\r\n\t\t\t\t\t\tsyncPayLoad.setEmail(jObject.getString(\"email\"));\r\n\t\t\t\t\t\tsyncPayLoad.setReg_no(jObject.getString(\"reg_no\"));\r\n\t\t\t\t\t\tsyncedApplicants.add(syncPayLoad);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (ApplicationSyncPayLoad appSync : syncedApplicants) {\r\n\t\t\t\t\t\t// Update this Applications\r\n\t\t\t\t\t\tlogger.info(\"Finding application:\" + appSync.getApplicationNo_());\r\n\t\t\t\t\t\tList<ApplicationFormHeader> applications = applicationDao\r\n\t\t\t\t\t\t\t\t.findByErpCode(appSync.getApplicationNo_());\r\n\r\n\t\t\t\t\t\tApplicationFormHeader application = null;\r\n\t\t\t\t\t\tif (applications.size() > 0) {\r\n\t\t\t\t\t\t\tapplication = applications.get(0);\r\n\t\t\t\t\t\t\tif (application != null) {\r\n\t\t\t\t\t\t\t\t// Find the User and Member Object and User\r\n\t\t\t\t\t\t\t\tif (application.getUserRefId() != null) {\r\n\t\t\t\t\t\t\t\t\tlogger.info(\"marking this application as approved:\" + application.getRefId());\r\n\t\t\t\t\t\t\t\t\tapplication.setApplicationStatus(ApplicationStatus.APPROVED);\r\n\t\t\t\t\t\t\t\t\tUser user = userDao.findByUserId(application.getUserRefId(), false);\r\n\t\t\t\t\t\t\t\t\tMember m = null;\r\n\t\t\t\t\t\t\t\t\tif (user != null) {\r\n\t\t\t\t\t\t\t\t\t\tuser.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\tuserDao.deleteAllRolesForCurrentUser(user.getId());\r\n\t\t\t\t\t\t\t\t\t\tRole role = roleDao.getByName(\"MEMBER\");\r\n\t\t\t\t\t\t\t\t\t\tif (role != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tuser.addRole(role);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Changing the user role from basic_member to member.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (user.getMember() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\tm = user.getMember();\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setRegistrationDate(application.getCreated());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setUserRefId(user.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t\t\t\t\t\t\t\tm.setMemberQrCode(m.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(m);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating member record.\");\r\n\t\t\t\t\t\t\t\t\t\t\t// Save all this parameters\r\n\t\t\t\t\t\t\t\t\t\t\t// Applicant, Member, User\r\n\t\t\t\t\t\t\t\t\t\t\tapplicationDao.save(application);\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(user);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating user record.\");\r\n\t\t\t\t\t\t\t\t\t\t\tsuccessCounter = successCounter + 1;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member Record is Null for user with memberNo:\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ user.getMemberNo()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \". Checking if the member record exist or create a new record.\");\r\n\t\t\t\t\t\t\t\t\t\t\t// Check if there was a previous\r\n\t\t\t\t\t\t\t\t\t\t\t// member\r\n\t\t\t\t\t\t\t\t\t\t\t// Record created\r\n\t\t\t\t\t\t\t\t\t\t\tMember member = null;\r\n\t\t\t\t\t\t\t\t\t\t\tmember = memberDao.findByMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tif (member == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tmember = new Member();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member doesn't exist. Creating new MemberRecord\");\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Member already exist. Just ammending it.\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberNo(appSync.getReg_no());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setRegistrationDate(application.getCreated());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setUserRefId(user.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t\t\t\t\t\t\t\tmember.setMemberQrCode(member.getRefId());\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(member);\r\n\t\t\t\t\t\t\t\t\t\t\tuser.setMember(member);\r\n\t\t\t\t\t\t\t\t\t\t\t// Save all this parameters\r\n\t\t\t\t\t\t\t\t\t\t\t// Applicant, Member, User\r\n\t\t\t\t\t\t\t\t\t\t\tapplicationDao.save(application);\r\n\t\t\t\t\t\t\t\t\t\t\tuserDao.save(user);\r\n\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Updating user record.\");\r\n\t\t\t\t\t\t\t\t\t\t\tsuccessCounter = successCounter + 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.err.println(\"Total To Be Synced:\" + totalToBeSynced + \"\\n\");\r\n\t\t\t\t\tSystem.err.println(\"Total Success:\" + successCounter + \"\\n\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (URISyntaxException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void readApplicationsFromAPIManager(ClientAppFilter filter) throws AppException {\n\t\tif(this.apiManagerResponse !=null && this.apiManagerResponse.get(filter)!=null) return;\n\t\tHttpResponse httpResponse = null;\n\t\ttry {\n\t\t\tString requestedId = \"\";\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tif(applicationsCache.containsKey(filter.getApplicationId())) {\n\t\t\t\t\tthis.apiManagerResponse.put(filter, applicationsCache.get(filter.getApplicationId()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\trequestedId = \"/\"+filter.getApplicationId();\n\t\t\t}\n\t\t\tURI uri = new URIBuilder(cmd.getAPIManagerURL()).setPath(cmd.getApiBasepath() + \"/applications\" + requestedId)\n\t\t\t\t\t.addParameters(filter.getFilters())\n\t\t\t\t\t.build();\n\t\t\tLOG.debug(\"Sending request to find existing applications: \" + uri);\n\t\t\tRestAPICall getRequest = new GETRequest(uri, APIManagerAdapter.hasAdminAccount());\n\t\t\thttpResponse = getRequest.execute();\n\t\t\tString response = EntityUtils.toString(httpResponse.getEntity(), \"UTF-8\");\n\t\t\tif(response.startsWith(\"{\")) { // Got a single response!\n\t\t\t\tresponse = \"[\"+response+\"]\";\n\t\t\t}\n\t\t\tthis.apiManagerResponse.put(filter,response);\n\t\t\tif(filter.getApplicationId()!=null) {\n\t\t\t\tapplicationsCache.put(filter.getApplicationId(), response);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new AppException(\"Can't initialize API-Manager API-Representation.\", ErrorCode.API_MANAGER_COMMUNICATION, e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(httpResponse!=null) \n\t\t\t\t\t((CloseableHttpResponse)httpResponse).close();\n\t\t\t} catch (Exception ignore) {}\n\t\t}\n\t}",
"private void setAppVersion() {\n try {\n String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n ServerSettingHelper.getInstance().setApplicationVersion(appVer);\n } catch (NameNotFoundException e) {\n if (Config.GD_ERROR_LOGS_ENABLED)\n Log.e(\"NameNotFoundException\", \"Error of getting package information!\");\n }\n }"
]
| [
"0.6122177",
"0.5958072",
"0.57164264",
"0.5549565",
"0.5545222",
"0.5527953",
"0.5358599",
"0.5342438",
"0.5307623",
"0.5292767",
"0.5269109",
"0.51644045",
"0.5162868",
"0.515199",
"0.5143298",
"0.5135883",
"0.5126724",
"0.5113633",
"0.51072305",
"0.5081621",
"0.5061263",
"0.50557286",
"0.5052622",
"0.5043329",
"0.5043329",
"0.5024102",
"0.5022179",
"0.50187534",
"0.5010969",
"0.5009168",
"0.49890873",
"0.4980551",
"0.4976556",
"0.4970206",
"0.4965259",
"0.4956149",
"0.49548844",
"0.49520886",
"0.49513593",
"0.49442327",
"0.49372995",
"0.49295565",
"0.49290216",
"0.49277428",
"0.49226615",
"0.49200863",
"0.48963535",
"0.48774037",
"0.4873153",
"0.48553962",
"0.4848308",
"0.48438215",
"0.48411193",
"0.48411193",
"0.48384833",
"0.48348388",
"0.4812593",
"0.47970626",
"0.47969905",
"0.4784256",
"0.4783947",
"0.47835144",
"0.4778737",
"0.47655314",
"0.47638196",
"0.4760566",
"0.47595233",
"0.47559878",
"0.47559312",
"0.47524938",
"0.47517866",
"0.474806",
"0.47458747",
"0.47345108",
"0.47321162",
"0.47303984",
"0.47245267",
"0.47175133",
"0.47163147",
"0.47127455",
"0.47101778",
"0.4710153",
"0.4699431",
"0.4689853",
"0.46876553",
"0.46729434",
"0.46681875",
"0.46636674",
"0.46612954",
"0.46558028",
"0.46499616",
"0.46459335",
"0.4644555",
"0.46429956",
"0.46389508",
"0.4634252",
"0.46231154",
"0.4621245",
"0.46188074",
"0.46175095"
]
| 0.60648155 | 1 |
Falta Corrigir erro do Alterar | public void alterar(Edicao edicao) {
conn = Conexao.getConexao();//conecta ao banco de dados
sql = "update edicao set edicaonumero = ?";
try {
ps = conn.prepareStatement(sql);
ps.setInt(1, edicao.getEdicaonumero());
ps.execute(); //executa a acao
JOptionPane.showMessageDialog(null, "Alterado com Sucesso !");
} catch (SQLException e) {
JOptionPane.showMessageDialog(null, "erro no alterar"+e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public void errorWhenCommitting();",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }",
"public void actualizarImagenConError() {\n\t\tentidadGrafica.actualizarImagenConError(this.valor);\n\t}",
"@Override\n public void errorOnUpdate(String buxError) {\n }",
"@Test(expected = BusinessLogicException.class)\n public void updateTarjetaPrepagoConNumeroInvalidoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n pojoEntity.setNumTarjetaPrepago(null);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n }",
"abstract void trataAltera();",
"@Test\n\tpublic void testDeveFalharAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveFalharAlterarDocumentoExistente());\n\t\tAssert.assertEquals(0, d, 0.0001);\t\n\t}",
"private void manejaExcepcion(HibernateException he) throws HibernateException\r\n\t{\n\t tx.rollback();\r\n\t throw new HibernateException(\"Ocurrió un error en la capa de acceso a datos\", he);\r\n\t}",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"@Test(expected = BusinessLogicException.class)\n public void updateTarjetaPrepagoConPuntosInvalidoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n double valor = (Math.random()) * (-100);\n pojoEntity.setPuntos(valor);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n }",
"public void sendeFehlerHelo();",
"@Test(expected = DataAcessException.class)\n\t public void testUpdateExcep() throws DataAcessException{\n\t\tUsers user = BaseData.getUsers();\n\t\twhen(entityManager.merge(user)).thenThrow(new RuntimeException());\n\t\tuserDao.update(user);\n\t }",
"@Test\n\tpublic void testUpdateTicketFail() {\t//campos nulos\n\t\t//tp.set_name(\"\");\n\t\t//assertFalse(sa.updatePlatform(tp)); //name empty y campos nulos\n\t\t//tp.set_name(\"PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3PS3\");\n\t\t//assertFalse(sa.updatePlatform(tp)); //nombre >45 chars y campos nulos\n\t\t//tp.set_name(\"STEAM\"); //campos nulos menos nombre\n\t\t//assertFalse(sa.updatePlatform(tp)); //name empty y campos nulos\n\t\t//tp.set_activated(true);\n\t\t//assertFalse(sa.updatePlatform(tp)); //id nulo\n\t\t//Plataforma no existe\n\t\t//tp.set_id(8);\n\t\t//assertFalse(sa.updatePlatform(tp));\n\t}",
"public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}",
"public void tryEdit() throws SQLException, DataStoreException, Exception {\r\n\t\tif (isDataModified()) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToEditQuestion, _okToEditValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToEditQuestion, null, -1, _okToEdit);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoEdit();\r\n }\r\n\t}",
"public void correctErrors();",
"public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}",
"@Override\n public void onFailure(@NonNull @NotNull Exception e) {\n Snackbar.make(save, R.string.update_fail, BaseTransientBottomBar.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"@Test\r\n\tpublic void setRelatedFieldError() {\r\n\t\ttry {\r\n\t\t\ttestObj.setRelatedField(0, 1);\r\n\t\t \tfail(\"Expected an IndexOutOfBoundsException to be thrown for setRelatedField\");\r\n\t\t} \r\n\t\tcatch (IndexOutOfBoundsException anIndexOutOfBoundsException) {\r\n\t\t \treturn;\r\n\t\t}\r\n\t}",
"public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;",
"@Override\n\t\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\t\tMZLog.e(\"J\", \"同步到购物车失败\");\n\t\t\t\t\t}",
"private void sendOldError(Exception e) {\n }",
"private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }",
"@Override\r\n public Resultado alterar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"ALTERAR\");\r\n\r\n //chamando DAO em caso de todas as validações atendidas\r\n if (msg.isEmpty()) {\r\n IDAO dao = daos.get(nmClass);\r\n dao.alterar(entidade);\r\n resultado.setMsg(\"Dados alterados\");\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }",
"private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"private void verificarCodigoErro() {\n\t\ttry {\n\t\t\tif (resultado.getStatus().isCodigoErro() && emailReplicacaoServico != null) {\n\t\t\t\tExecucaoReplicacaoUtil.log(\"Enviando e-mail de erro.\");\n\t\t\t\tenviarEmailErro();\n\t\t\t}\n\t\t} catch (BancoobException e) {\n\t\t\tExecucaoReplicacaoUtil.log(e.getMessage());\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"public int ModificarAnuncioTematico(AnuncioDTO anuncioDTO){\n int status=0;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"modificar.AnuncioTematico\"));\n ps.setString(1, anuncioDTO.getTitulo());\n ps.setString(2, anuncioDTO.getCuerpo());\n ps.setString(3, anuncioDTO.getEstadoAnuncio().toString()); \n String intereses=\"\"; \n \n for(String interes : anuncioDTO.getTemas()){\n intereses+=interes.toLowerCase()+\",\";\n }\n \n if(intereses.length()>0){\n \n intereses=intereses.substring(0,intereses.length()-1);\n }\n \n ps.setString(4, intereses);\n\n ps.setInt(5, anuncioDTO.getId());\n\n status=ps.executeUpdate();\n\n BorrarAnuncioDestinatarios(anuncioDTO.getId());\n\n PreparedStatement psAddDestinatario = conect.prepareStatement(sqlProp.getProperty(\"insertar.Destinatario\"));\n psAddDestinatario.setInt(1, anuncioDTO.getId());\n for(String destinatario : anuncioDTO.getDestinatarios()){\n psAddDestinatario.setString(2, destinatario);\n ps.executeUpdate();\n } \n\n }catch(Exception e){\n e.printStackTrace();\n }\n\n return status;\n }",
"public void falschesSpiel(SpielException e);",
"public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }",
"void setError();",
"public void alterar() {\n //metodo para alterar\n String sql = \"UPDATE empresa SET empresa = ?, cnpj = ?, \"\n + \"endereco = ?, telefone = ?, email = ? WHERE (id = ?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n pst.setString(6, txtEmpId.getText());\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a ALTERACAO dos dados na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Dados do cliente alterado com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpId.setText(null);\n txtEmpCNPJ.setText(null);\n btnAdicionar.setEnabled(true);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }",
"public void testupdateAddress_PersistenceException() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setId(1);\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").updateAddress(address, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }",
"public void inquiryError() {\n\t\t\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }",
"private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean alterar(Empresa empresa) {\n\t\treturn false;\r\n\t}",
"private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }",
"public void alterarLeituristaMovimentoRoteiroEmpresa( Integer idRota, Integer anoMes, Integer idLeituristaNovo ) throws ErroRepositorioException;",
"public void onUpdateFailure();",
"public void modificar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puede dejar cuadros en blanco\");//C.P.M Verificamos que todas las casillas esten llenas de lo contrario lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario todo esta bien y prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos al modelo la informacion\r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.modificar();//C.P.M ejecutamos la funcion modificar del modelo y esperamos algun error\r\n if (Error.equals(\"\")) {//C.P.M si el error viene vacio es que no ocurrio algun error \r\n JOptionPane.showMessageDialog(null, \"La configuracion se modifico correctamente\");\r\n } else {//C.P.M de lo contrario lo notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, Error);\r\n }\r\n }\r\n }",
"@Override\n protected void validaRegrasExcluir(ArquivoLoteVO entity) throws AppException {\n\n }",
"@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }",
"@Test\n void testErrorValidation() {\n jdbcTemplate.execute(\"update obligor set name = null where id = '25410'\");\n assertThatThrownBy(() -> obligorJpaService.findObligorById(25410)).isInstanceOf(ConstraintViolationException.class)\n .hasMessageContaining(\"findObligorById.<return value>.name:\");\n }",
"private boolean puedeModificarAprRepOtroUsuario(String empresa, String local, String tipoDocumento, String codigoDocumento, String codigoVistoBueno, boolean checkSeleccionado, int fila, int columna){\n boolean blnRes=false;\n String strArlVisBueDbCodEmp=\"\", strArlVisBueDbCodLoc=\"\", strArlVisBueDbCodTipDoc=\"\", strArlVisBueDbCodDoc=\"\";\n String strArlVisBueDbCodVisBue=\"\", strArlVisBueDbEstVisBue=\"\", strArlVisBueDbCodUsr=\"\";\n String strTblVisBueDbCodEmp=empresa;\n String strTblVisBueDbCodLoc=local;\n String strTblVisBueDbCodTipDoc=tipoDocumento;\n String strTblVisBueDbCodDoc=codigoDocumento;\n String strTblVisBueDbCodVisBue=codigoVistoBueno;\n boolean blnChkSel=checkSeleccionado;\n int intFil=fila;\n int intCol=columna;\n int w=0;\n //System.out.println(\"puedeModificarAprRepOtroUsuario: \" + arlDatCodVisBueDB.toString());\n try{\n for(int k=0; k<arlDatCodVisBueDB.size(); k++){\n w=0;\n strArlVisBueDbCodEmp=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_EMP_DB);\n strArlVisBueDbCodLoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_LOC_DB);\n strArlVisBueDbCodTipDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_TIP_DOC_DB);\n strArlVisBueDbCodDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_DOC_DB);\n strArlVisBueDbCodVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB);\n strArlVisBueDbEstVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB);\n strArlVisBueDbCodUsr=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB);\n\n if(strTblVisBueDbCodEmp.equals(strArlVisBueDbCodEmp)){\n if(strTblVisBueDbCodLoc.equals(strArlVisBueDbCodLoc)){\n if(strTblVisBueDbCodTipDoc.equals(strArlVisBueDbCodTipDoc)){\n if(strTblVisBueDbCodDoc.equals(strArlVisBueDbCodDoc)){\n if(strArlVisBueDbCodVisBue.equals(strTblVisBueDbCodVisBue)){\n if( (strArlVisBueDbEstVisBue.equals(\"A\")) || (strArlVisBueDbEstVisBue.equals(\"D\")) ){\n if(! strArlVisBueDbCodUsr.equals(\"\"+objParSis.getCodigoUsuario())){\n objTblMod.setChecked(blnChkSel, intFil, intCol);\n mostrarMsgInf(\"<HTML>El visto bueno que intenta modificar ya fue Aprobado/Reprobado por otro usuario.<BR>El otro usuario debe reversar para que ud. pueda realizar la Aprobación/Reprobación,<BR> o dicho usuario deberá modificarlo. </HTML>\");\n blnRes=true;\n break;\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"public void alterarDadosCadastraisNumeroInvalido() {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputCel().clear();\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}",
"public void btnActualizarSecuencia()\r\n/* 653: */ {\r\n/* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta();\r\n/* 656: */ try\r\n/* 657: */ {\r\n/* 658:731 */ if (puntoDeVenta != null) {\r\n/* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI\r\n/* 660:733 */ .getFechaEmisionRetencion());\r\n/* 661: */ }\r\n/* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI\r\n/* 663:736 */ .getFechaEmisionRetencion());\r\n/* 664: */ \r\n/* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 667: */ }\r\n/* 668: */ catch (ExcepcionAS2 e)\r\n/* 669: */ {\r\n/* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 671: */ }\r\n/* 672: */ }",
"public void guardarTransferenteAlcabala(RaTransferenteAlcabala raTransferenteAlcabala)throws Exception;",
"@Override\n\tpublic void alterar(Parcela entidade) {\n\n\t}",
"public void testupdateAddresses_PersistenceException() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setId(1);\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").updateAddresses(new Address[]{address}, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }",
"public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\"); \n }",
"private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }",
"public void erroExcluir(){\n JOptionPane.showMessageDialog(null, \"Erro ao excluir projeto!\", null, \n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\tjanela.dispose();\n }",
"@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}",
"private void mostraErrore(SQLException e) {\n String msg;\n \n msg = \"Codice Errore: \" + e.getErrorCode() + \"\\n\";\n msg += \"Messaggio: \" + e.getMessage() + \"\\n\";\n msg += \"SQLState: \" + e.getSQLState() + \"\\n\";\n\n JOptionPane.showMessageDialog(this, msg, \"Errore\", JOptionPane.ERROR_MESSAGE);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Test(timeout = 4000)\n public void test037() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public void corruptedFileErrorMessage() {\n System.out.println(\"The file (\" + INVENTORY_FILE_PATH + \") is corrupted!\\n\"\n + \"Please exit the program and delete the corrupted file before trying to access Inventory Menu!\");\n }",
"public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }",
"@Test\n\tpublic void CT04UC01CadastrarLivro_com_autor_invalido() {\n\t\ttry {\n\t\t\tlivro.setAutor(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Autor invalido\", e.getMessage());\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}",
"@Override\n void undo() {\n assert false;\n }",
"private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n btnAddres.setText(\"fail\");\n\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n btnAddres.setText(\"fail\");\n\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n btnAddres.setText(\"fail\");\n\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n btnAddres.setText(\"fail\");\n\n }",
"protected void handleFailure(ACLMessage fallo){\n\t\t\tif(fallo.getSender().equals(myAgent.getAMS())){\n\t\t\t\tabrirFrame(subasta.getTituloLibro());\n\t\t\t\tguiSubasta.addMensaje(\"AMS: Este cliente (\"+fallo.getSender()+\") no es accesible o no existe\");\n\t\t\t\tSystem.out.println(\"AMS: Este cliente (\"+fallo.getSender()+\") no es accesible o no existe\");\n\t\t\t\tsubasta.eliminarParticipante(fallo.getSender());\n\t\t\t\tSystem.out.println(fallo.getSender()+\" ha sido expulsado de la sala de subastas\");\n\t\t\t\tguiSubasta.addMensaje(fallo.getSender()+\" ha sido expulsado de la sala de subastas\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"Se ha producido un error en: \"+fallo.getSender().getLocalName());\n\t\t\t\tabrirFrame(subasta.getTituloLibro());\n\t\t\t\tguiSubasta.addMensaje(\"Se ha producido un error en: \"+fallo.getSender().getLocalName());\n\t\t\t}\n\t\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"public void editarEmpresa (Empresa empresa) throws Exception{\r\n\t\tEmpresa emp = daoEmpresa.buscarEmpresa(empresa.getId());\r\n\t\t\r\n\t\tif(emp != null){\r\n\t\t\tdaoEmpresa.editarEmpresa(empresa);\r\n\t\t}else{\r\n\t\t\tthrow new ExcepcionNegocio(\"No hay empresa registrada con este ID\");\r\n\t\t}\r\n\t}",
"public void test_updateContest_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n entityManager.enableTransactionException(true);\r\n\r\n contest.setName(\"sss\");\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Test(expected = DataAcessException.class)\n\t public void testUpdateAllExcep() throws DataAcessException{\n\t\tUsers user = BaseData.getUsers();\n\t\twhen(entityManager.merge(user)).thenThrow(new RuntimeException());\n\t\t List<Users> users = new ArrayList<Users>();\n\t\t users.add( BaseData.getUsers());\n\t\t\tusers.add(BaseData.getDBUsers());\n\t\tuserDao.update(users);\n\t }",
"@Override\n\tpublic void onUndoNotPossible() {\n\n\t}",
"@Override\n\tpublic void alterar() {\n\t\t\n\t}",
"@Test\n\tpublic void testdeveAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveAlterarDocumentoExistente());\n\t\tAssert.assertEquals(1, d, 0.0001);\t\n\t}",
"public void mo1944a() throws cf {\r\n }",
"@Override\n\tpublic void editar(Cliente cliente) throws ExceptionUtil {\n\t\t\n\t}",
"@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}",
"@Override\n public void alterar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }",
"public boolean modificarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoObjetivo, String descripcion, String justificacion, double valorMeta, double valorMinimo, double valorMaximo, String tipoMedicion, String estado, String fuenteDato, String aplicaEn, String unidadMedida, String tipoGrafica, String mes01, String mes02, String mes03, String mes04, String mes05, String mes06, String mes07, String mes08, String mes09, String mes10, String mes11, String mes12, Collection arrResponsables, Collection arrRecursos, String usuarioModificacion) {\n/* */ try {\n/* 810 */ String s = \"update cal_plan_metas set codigo_objetivo=\" + codigoObjetivo + \",\" + \" descripcion='\" + descripcion + \"',\" + \" justificacion='\" + justificacion + \"',\" + \" valor_meta=\" + valorMeta + \",\" + \" valor_minimo=\" + valorMinimo + \",\" + \" valor_maximo=\" + valorMaximo + \",\" + \" tipo_medicion='\" + tipoMedicion + \"',\" + \" estado='\" + estado + \"',\" + \" fuente_dato='\" + fuenteDato + \"',\" + \" aplica_en='\" + aplicaEn + \"',\" + \" unidad_medida='\" + unidadMedida + \"',\" + \" tipo_grafica='\" + tipoGrafica + \"',\" + \" mes01='\" + mes01 + \"',\" + \" mes02='\" + mes02 + \"',\" + \" mes03='\" + mes03 + \"',\" + \" mes04='\" + mes04 + \"',\" + \" mes05='\" + mes05 + \"',\" + \" mes06='\" + mes06 + \"',\" + \" mes07='\" + mes07 + \"',\" + \" mes08='\" + mes08 + \"',\" + \" mes09='\" + mes09 + \"',\" + \" mes10='\" + mes10 + \"',\" + \" mes11='\" + mes11 + \"',\" + \" mes12='\" + mes12 + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where\" + \" codigo_meta=\" + codigoMeta + \" and codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 842 */ boolean rta = this.dat.executeUpdate(s);\n/* */ \n/* */ \n/* */ \n/* 846 */ if (rta) {\n/* */ \n/* 848 */ s = \"update cal_plan_recursos_meta set estado='X', fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where\" + \" codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 857 */ this.dat.executeUpdate(s);\n/* 858 */ Iterator iterator = arrRecursos.iterator();\n/* 859 */ while (iterator.hasNext()) {\n/* 860 */ Integer codigo = (Integer)iterator.next();\n/* 861 */ crearRecurso(codigoCiclo, codigoPlan, codigoMeta, codigo.intValue(), \"A\", usuarioModificacion);\n/* */ } \n/* */ \n/* 864 */ s = \"delete from cal_plan_recursos_meta where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and estado='X'\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 870 */ this.dat.executeUpdate(s);\n/* */ \n/* 872 */ s = \"update cal_plan_responsables_meta set estado='X', fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 880 */ this.dat.executeUpdate(s);\n/* */ \n/* 882 */ Iterator iterator2 = arrResponsables.iterator();\n/* 883 */ while (iterator2.hasNext()) {\n/* 884 */ Integer codigo = (Integer)iterator2.next();\n/* 885 */ crearResponsable(codigoCiclo, codigoPlan, codigoMeta, codigo.intValue(), \"A\", usuarioModificacion);\n/* */ } \n/* */ \n/* 888 */ s = \"delete from cal_plan_responsables_meta where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and estado='X'\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 895 */ this.dat.executeUpdate(s);\n/* */ } \n/* */ \n/* */ \n/* 899 */ return rta;\n/* */ }\n/* 901 */ catch (Exception e) {\n/* 902 */ e.printStackTrace();\n/* 903 */ Utilidades.writeError(\"CalMetasDAO:modificarRegistro \", e);\n/* */ \n/* 905 */ return false;\n/* */ } \n/* */ }",
"@Test(timeout = 4000)\n public void test030() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.join(\"s!BOvo\", \"update\", (String[]) null, \"alter materialized view\", \"\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void testUndoActionPerformed() {\n try {\n handler.undoActionPerformed(null, new ChangeSizeAction(new GraphNode(), new Dimension()));\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public void edit(Membre membre) throws NonexistentEntityException, Exception {\n try {\n// em = getEntityManager();\n// entManager.getTransaction().begin();\n membre = entManager.merge(membre);\n// entManager.getTransaction().commit();\n } catch (Exception ex) {\n String msg = ex.getLocalizedMessage();\n if (msg == null || msg.length() == 0) {\n Long id = membre.getMbId();\n if (findMembre(id) == null) {\n throw new NonexistentEntityException(\"The membre with id \" + id + \" no longer exists.\");\n }\n }\n throw ex;\n } finally {\n// if (entManager != null) {\n// entManager.close();\n// }\n }\n }",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"@Test\n\tpublic void CT04UC01CadastrarLivro_com_titulo_invalido() {\n\t\ttry {\n\t\t\tlivro.setTitulo(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Titulo invalido\", e.getMessage());\n\t\t}\n\t}",
"public void test_updateContest_Failure4() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n entityManager.enablePersistenceException(true);\r\n\r\n contest.setName(\"sss\");\r\n beanUnderTest.updateContest(contest, 1, \"2\", true);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}"
]
| [
"0.6761146",
"0.67306197",
"0.66122335",
"0.65508384",
"0.65500677",
"0.6501937",
"0.6323877",
"0.62784785",
"0.62546855",
"0.6186299",
"0.6170288",
"0.6147708",
"0.61211026",
"0.61017406",
"0.6053821",
"0.6014987",
"0.5971979",
"0.5959151",
"0.5952909",
"0.594895",
"0.5931661",
"0.59193194",
"0.59151095",
"0.59103906",
"0.59022874",
"0.5898493",
"0.589833",
"0.5881548",
"0.5861898",
"0.58567864",
"0.58525574",
"0.58505356",
"0.5843961",
"0.5837832",
"0.58332163",
"0.58318084",
"0.5828464",
"0.58131075",
"0.58072305",
"0.579044",
"0.5786574",
"0.57813704",
"0.5772846",
"0.5770927",
"0.5769605",
"0.5753475",
"0.57497483",
"0.5743875",
"0.57388216",
"0.5723716",
"0.5718907",
"0.5706405",
"0.5696728",
"0.5692419",
"0.5689622",
"0.56820107",
"0.5680646",
"0.5663459",
"0.56628174",
"0.56619287",
"0.5658557",
"0.5653551",
"0.56463826",
"0.5643027",
"0.56408525",
"0.5629887",
"0.56227267",
"0.5620198",
"0.5610017",
"0.5607077",
"0.56066513",
"0.5603811",
"0.55881584",
"0.5583025",
"0.5582883",
"0.558221",
"0.55801857",
"0.55801857",
"0.55801857",
"0.55801857",
"0.5577243",
"0.55715585",
"0.5568875",
"0.55646855",
"0.55540454",
"0.5551826",
"0.5549645",
"0.55483305",
"0.5546828",
"0.5538683",
"0.553707",
"0.5533921",
"0.55301464",
"0.5509982",
"0.55088526",
"0.55074716",
"0.55021256",
"0.55010074",
"0.5495565",
"0.5493574"
]
| 0.55982995 | 72 |
Verifies, the distributable webapp with FORM authentication supports session replication out of the box. When: HTTP client calls WhoAmIServlet as "admin" (using FORM authn) on first cluster node and then it calls WhoAmIServlet (without authentication needed) on the second cluster node Then: the call to WhoAmIServlet on second node (without authentication) passes and returns "admin" (i.e. SSO works with FORM authentication) | @Test
public void testServletSso() throws Exception {
final URL whoamiUrl = new URL(((((AbstractSecurityContextPropagationTestBase.server1.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
final URL whoamiBackupUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {
Assert.assertEquals("Unexpected result from WhoAmIServlet", "admin", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, "admin", "admin", SC_OK));
Assert.assertEquals("Unexpected result from WhoAmIServlet (backup-server)", "admin", doHttpRequest(httpClient, whoamiBackupUrl, SC_OK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testServletSsoPropagation() throws Exception {\n final URL entryServletUrl = getEntryServletUrl(SeccontextUtil.WAR_ENTRY_SERVLET_FORM, \"server\", \"server\", ReAuthnType.FORWARDED_AUTHORIZATION);\n final URL whoamiUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + \"/\") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));\n try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {\n Assert.assertEquals(\"Unexpected result from WhoAmIServlet (backup-server)\", \"admin\", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, \"admin\", \"admin\", SC_OK));\n Assert.assertEquals(\"Unexpected result from EntryServlet\", \"admin\", doHttpRequest(httpClient, entryServletUrl, SC_OK));\n }\n }",
"public void testHttpSessionWithNonContextInWellKnownLocationIsOverwritten()\n throws Exception {\n PrincipalAcegiUserToken updatedPrincipal = new PrincipalAcegiUserToken(\"key\", \"someone\", \"password\",\n new GrantedAuthority[] {new GrantedAuthorityImpl(\"SOME_DIFFERENT_ROLE\")}, null);\n \n // Build a mock request\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.getSession()\n .setAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT_KEY, \"NOT_A_CONTEXT_OBJECT\");\n \n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, updatedPrincipal, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Obtain new/update Authentication from HttpSession\n SecurityContext context = (SecurityContext) request.getSession()\n .getAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT_KEY);\n assertEquals(updatedPrincipal, ((SecurityContext) context).getAuthentication());\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String login = req.getParameter(\"login\");\n String password = req.getParameter(\"password\");\n if (logic.isExisting(login, password)) {\n HttpSession session = req.getSession();\n session.setAttribute(\"login\", login);\n if (logic.isAdmin(login)) {\n session.setAttribute(\"role\", \"admin\");\n }\n resp.sendRedirect(String.format(\"%s/\", req.getContextPath()));\n } else {\n req.setAttribute(\"error\", \"Credentional is invalid\");\n doGet(req, resp);\n }\n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromURL() {\n\t\t\treturn false;\n\t\t}",
"private void checkSessionAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/jsps/manage/index.jsp\").forward(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n String username = request.getParameter(\"Username\");\r\n String password = request.getParameter(\"Password\");\r\n\r\n HttpSession session = request.getSession();\r\n List<User> userList = sql.selectAllUsers();\r\n\r\n Boolean validUser = false;\r\n Boolean IsAdmin = false;\r\n\r\n if (userList != null && userList.isEmpty() == false) {\r\n for (User user : userList) {\r\n if (user.getUsername().equals(username)\r\n && user.getPass().equals(password)) {\r\n LoginHistory newLoginHistory = new LoginHistory(user.getUsersID(),LocalDate.now().toString(),\"test123\");\r\n sql.createLoginHistory(newLoginHistory);\r\n if (user.getUserType().equals(\"Admin\")) {\r\n IsAdmin = true;\r\n break;\r\n }\r\n session.setAttribute(Session.LOGIN_USERNAME, user.getUsername());\r\n System.out.println(user.getUsername());\r\n validUser = true;\r\n break;\r\n }\r\n }\r\n }\r\n if (session.getAttribute(Session.SITE) != null) {\r\n goToSite = session.getAttribute(Session.SITE).toString();\r\n }\r\n\r\n if (validUser && goToSite.equals(\"ProfilePage\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/ProfilePage.jsp\");\r\n } else if (validUser && goToSite.equals(\"PurchaseMethod\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/PurchaseMethod.jsp\");\r\n } else if (validUser) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"MainPage.jsp\");\r\n } else if (IsAdmin) {\r\n response.sendRedirect(\"Admin/AdminMainPage.jsp\");\r\n } else {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}",
"@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tprotected boolean isAccessAllowed(ServletRequest arg0, ServletResponse arg1, Object arg2) throws Exception {\n\t\tString header = ((HttpServletRequest) arg0).getHeader(\"X-Requested-With\");\n\t\tif (ShiroUtil.getShiroUser() != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (\"XMLHttpRequest\".equalsIgnoreCase(header)) {\n\t\t\t\t// ajax判断是否登陆,并可返回json\n\t\t\t\targ1.setCharacterEncoding(\"utf-8\");\n\t\t\t\targ1.getWriter().write(\"用户登录失效,重新登录\");\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\n\t}",
"private void loginForm(HttpServletRequest req, HttpServletResponse res)\n throws IOException {\n String url = req.getRequestURI();\n String query = req.getQueryString();\n if (query != null) {\n url = url + '?' +query;\n }\n ProtectedRequest target = new ProtectedRequest(url);\n\n // Store in current session\n HttpSession session = req.getSession(true);\n session.setAttribute(AuthSessions.REQUEST_ATTRIBUTE, target);\n\n res.sendRedirect(this.loginForm);\n }",
"HttpSession changeSessionIdentifier(HttpServletRequest request) throws AuthenticationException;",
"void assertSecureChannel(HttpServletRequest request) throws AccessControlException;",
"public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }",
"boolean hasClientSessionID();",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\t\treturn false;\n\t\t}",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"public void testHttpSessionCreatedWhenContextHolderChanges()\n throws Exception {\n PrincipalAcegiUserToken updatedPrincipal = new PrincipalAcegiUserToken(\"key\", \"someone\", \"password\",\n new GrantedAuthority[] {new GrantedAuthorityImpl(\"SOME_DIFFERENT_ROLE\")}, null);\n \n // Build a mock request\n MockHttpServletRequest request = new MockHttpServletRequest();\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, updatedPrincipal, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n // don't call afterPropertiesSet to test case when not instantiated by Spring \n //filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Obtain new/updated Authentication from HttpSession\n SecurityContext context = (SecurityContext) request.getSession(false)\n .getAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT_KEY);\n assertEquals(updatedPrincipal, ((SecurityContext) context).getAuthentication());\n }",
"public synchronized void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {\r\n\r\n\t\ttry{\r\n\t\t\tsetLanguage(request.getSession(),request);\r\n\t\t\tAdminBO adminBO = (AdminBO)application.getAttribute(\"adminBO\");\r\n\r\n\r\n\t\t\tHttpSession session = request.getSession(true);\r\n\t\t\tString language = (String)session.getAttribute(\"language\");\r\n\r\n\t\t\t//check if the session is New if it's not we will a new session to avoid primary key conflict on the tabel C_USER_SESSIONS\r\n\t\t\tif(!session.isNew()){\r\n\t\t\t\tlogger.info(\"user userName\" + session.getAttribute(\"userName\") + \"is trying to log In using old session : old session Id = \" + session.getId());\r\n\t\t\t\tsession.setAttribute(\"SESSION_INVALIDATED\",\"true\");\r\n\t\t\t\tsession.invalidate();\r\n\t\t\t\tsession = request.getSession(true);\r\n\t\t\t\tif(language != null){\r\n\t\t\t\t\tsession.setAttribute(\"language\", language);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"invalidating old Session And Creating a New Session : new session Id = \" + session.getId());\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"session is New : session Id =\" + session.getId() + \" for the user: \" + session.getAttribute(\"userName\"));\r\n\t\t\t}\r\n\r\n\t\t\t// removing 'siteAccessTime' parameter that is used only for outside the LOGGED IN area\r\n\t\t\tsession.removeAttribute(\"siteAccessTime\");\r\n\t\t\t\r\n\r\n\t\t\tString userName = StringUtil.nullToEmpty(request.getParameter(\"userName\"));\r\n//\t\t\tString password = StringUtil.nullToEmpty(request.getParameter(\"password\"));\r\n\t\t\tString encryptedPassword = SecurityUtil.byteArrayToHexString(SecurityUtil.getEncryptedString((request.getParameter(\"password\")!= null ? request.getParameter(\"password\").toString()+userName : \"\")));\r\n\r\n\t\t\tboolean isAuthenticated = adminBO.login(userName, encryptedPassword);\r\n\r\n\t\t\tif (isAuthenticated){\r\n\r\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyDDMM\");\r\n\t\t\t\tUserBean userBean = adminBO.getUserDetails(0, userName);\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"\\nLOGINPAGE userID: \"+userBean.getUserID());\r\n\t\t\t\tlogger.info(\"\\nLOGINPAGE lastAccessTime: \"+userBean.getLastAccessTime());\r\n\t\t\t\tsession.setAttribute(\"userID\", userBean.getUserID());\r\n\t\t\t\tsession.setAttribute(\"userName\", userBean.getUserName());\r\n\t\t\t\tsession.setAttribute(\"userRole\", userBean.getRoleBean().getRoleID());\r\n\t\t\t\tsession.setAttribute(\"sessionAlive\", \"true\");\r\n\t\t\t\tsession.setAttribute(\"lastAccessTime\", userBean.getLastAccessTime());\r\n\t\t\t\t\r\n\t\t\t\tTimestamp loginTime = new Timestamp(new java.util.Date().getTime());\r\n\t\t\t\tString loginTimeStr = sdf.format(loginTime);\r\n\t\t\t\tsession.setAttribute(\"loginTime\", loginTimeStr);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tadminBO.updateUserSession(Integer.parseInt(userBean.getUserID()), session.getId(), loginTime/*, request.getRemoteHost(), */);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tStringBuffer requestString=new StringBuffer();\r\n\t\t\t\trequestString.append(\"formLastAccess=\"+loginTimeStr);\r\n\t\t\t\tString encryptedString = QueryCrypt.encrypt(request, requestString.toString());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tActivityLogVO activityLogVO = new ActivityLogVO();\r\n\t\t\t\tactivityLogVO.setActivityDate(new Timestamp(new java.util.Date().getTime()));\r\n\t\t\t\tactivityLogVO.setActivityDesc(\"User Successfully LoggedIn\");\r\n\t\t\t\tactivityLogVO.setActivityTypeID(ActivityType.LOGIN_ACT.value());\r\n\t\t\t\tactivityLogVO.setReference(\"\");\r\n\t\t\t\tactivityLogVO.setSessionID(session.getId());\r\n\t\t\t\tactivityLogVO.setUserID(Integer.parseInt(StringUtil.nullOrEmptyToString(session.getAttribute(\"userID\"), \"0\")));\r\n\t\t\t\tadminBO.logActivity(activityLogVO);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tresponse.sendRedirect(\"Home?\"+encryptedString);\r\n\t\t\t\t\r\n\r\n\t\t\t} else{\r\n\t\t\t\tsession.setAttribute(\"LoginErrorMsg\", \"Invalid Username/Password, please try again\");\r\n\t\t\t\tresponse.sendRedirect(\"Login\");\r\n\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"ERROR\", e); \r\n\t\t\tresponse.sendRedirect(\"ErrorHandler\");\r\n\t\t}\r\n\t}",
"boolean authQop() {\n/* 114 */ return this.serverQop;\n/* */ }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromUrl() {\n\t\t\treturn false;\n\t\t}",
"public boolean canLogin(Session session);",
"@Override\n\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\treturn false;\n\t}",
"private boolean authenticate(HttpServletRequest request, RouteAction route) {\n\t\tHttpSession session = request.getSession(false);\n\t\tif (session == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session = request.getSession();\n ServletContext servletContext = getServletContext();\n ServletConfig servletConfig = getServletConfig();\n\n dataSource=session.getAttribute(\"jhuDataSource\").toString(); \n loginAttempts=Integer.parseInt(session.getAttribute(\"loginAttempts\").toString());\n // System.out.println(session.getAttribute(\"loginAttempts\").toString());\n weblogicUrl = session.getAttribute(\"weblogicURL\").toString();\n \n //I'm not sure why I'm doing this: check later\n //lSv = (LoginSyntaxVerifier) session.getAttribute(\"loginSyntaxVerifier\");\n \n loginName = request.getParameter(\"uidInput\");\n System.out.println(loginName);\n loginPass = request.getParameter(\"passInput\");\n System.out.println(loginPass);\n \n if(!(validUserName(loginName)&&validPassword(loginPass))){\n /*\n lSv.setValidUserName(validUserName(loginName));\n \tlSv.setValidPass(validPassword(loginPass));\n \tsession.setAttribute(\"loginSyntaxVerifier\", lSv);\n \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/login.html\");\n \tdispatcher.forward(request, response);\n */\n \tlfBean.setLoginFailMessage(\"Username and Password must be 8 chars in length with no spaces. Try logging in Again\");\n \trequest.setAttribute(\"loginFail\", lfBean);\n \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/loginFail.jsp\");\n \tdispatcher.forward(request, response);\n \t\n }else{\n\t if(findUser()){\n\t //if(kristinAdmin()){\n\t \t//lsBean.setFirstName(\"Welcome to the site, \"+\"kristin\");\n\t \t//lsBean.setLastName(\"caldwell\");\n \t\tlsBean.setFirstName(\"Welcome to the site, \"+storedFirstName);\n\t \tlsBean.setLastName(storedLastName);\n\t request.setAttribute(\"loginSuccessful\", lsBean);\n\t RequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/welcome2.jsp\");\n\t dispatcher.forward(request, response);\n\t }else{\n\t \tString logfail = \"username and password combination invalid, please register\";\n\t \tlfBean.setLoginFailMessage(logfail);\n\t \trequest.setAttribute(\"loginFail\", lfBean);\n\t \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/loginFail.jsp\");\n\t \tdispatcher.forward(request, response);\n\t }\n }\n\t}",
"@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody.split(\"&\");\n String username = usernameAndPassword[0].substring(9);\n String password = usernameAndPassword[1].substring(9);\n LoginDAO loginDAO = new LoginDAO();\n JsonCredential credential = loginDAO.login(username,password);\n if(credential == null) {\n // send invalid login response\n log.info(\"LoginServlet, Invalid Username/Password\");\n String invalidLoginURL = String.format(\"%s/\", req.getContextPath());\n resp.setStatus(401);\n }\n else{\n // login user, maybe with a redirect\n String credentialAsString = credential.makeJsonString();\n if(!credentialAsString.equals(\"\")) {\n // encoding prevents issue where Tomcat sees Cookie as invalid\n credentialAsString = URLEncoder.encode(credentialAsString,\"UTF-8\");\n Cookie cookie = new Cookie(\"expenseapp_authenticationcookie\",credentialAsString);\n cookie.setMaxAge(1200000); //roughly 2 weeks before expiration\n if(credential.getPermissionName().equals(\"Employee\")) {\n resp.addCookie(cookie);\n String employeeHomeScreen = String.format(\"%s/employeehomescreen.html\", req.getContextPath());\n resp.sendRedirect(employeeHomeScreen);\n }\n else if(credential.getPermissionName().equals(\"Manager\")) {\n resp.addCookie(cookie);\n String managerHomeScreen = String.format(\"%s/managerhomescreen.html\", req.getContextPath());\n resp.sendRedirect(managerHomeScreen);\n }\n else{\n log.error(\"LoginServlet, Invalid Permission Name - 500 error\");\n resp.setStatus(500);\n String errorUrl = String.format(\"%s/500Error.html\", req.getContextPath());\n req.getRequestDispatcher(errorUrl).forward(req,resp);\n }\n }\n }\n\n }",
"@Test\n public void conditionalOTPRequestHeaderForce() {\n Map<String, String> config = new HashMap<>();\n String port = AUTH_SERVER_PORT;\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"Host: localhost:\" + port);\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is required\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertEquals(PageUtils.getPageTitle(driver), \"Mobile Authenticator Setup\");\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"@Override\n\tpublic boolean isRequestedSessionIdFromUrl() {\n\t\treturn false;\n\t}",
"public interface IJ2EESecurity {\r\n /**\r\n * Change the users password in the J2EE Security Realm\r\n * @param request\r\n * @param response\r\n * @return\r\n */\r\n public boolean changePassword(HttpServletRequest request, HttpServletResponse response);\r\n\r\n /**\r\n * Reset a user's password in the J2EE Security Realm\r\n * @param request\r\n * @param userId userid\r\n * @param password new password\r\n */\r\n void resetPassword(HttpServletRequest request, String userId, String password) ;\r\n\r\n /**\r\n * Log a user out, invalidating all sessions and J2EE Security data\r\n * @param request\r\n */\r\n void logout(HttpServletRequest request);\r\n\r\n /**\r\n * Determines if a user already exists in the J2EE Security Realm\r\n * @param request\r\n * @param userId userid\r\n * @return true/false\r\n */\r\n boolean userExists(HttpServletRequest request, String userId);\r\n\r\n}",
"public void testExistingContextContentsCopiedIntoContextHolderFromSessionAndChangesToContextCopiedBackToSession()\n throws Exception {\n PrincipalAcegiUserToken sessionPrincipal = new PrincipalAcegiUserToken(\"key\", \"someone\", \"password\",\n new GrantedAuthority[] {new GrantedAuthorityImpl(\"SOME_ROLE\")}, null);\n \n // Build an Authentication object we simulate our Authentication changed it to\n PrincipalAcegiUserToken updatedPrincipal = new PrincipalAcegiUserToken(\"key\", \"someone\", \"password\",\n new GrantedAuthority[] {new GrantedAuthorityImpl(\"SOME_DIFFERENT_ROLE\")}, null);\n \n // Build a Context to store in HttpSession (simulating prior request)\n SecurityContext sc = new SecurityContextImpl();\n sc.setAuthentication(sessionPrincipal);\n \n // Build a mock request\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.getSession().setAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT_KEY, sc);\n \n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(sessionPrincipal, updatedPrincipal, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Obtain new/update Authentication from HttpSession\n SecurityContext context = (SecurityContext) request.getSession()\n .getAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT_KEY);\n assertEquals(updatedPrincipal, ((SecurityContext) context).getAuthentication());\n }",
"private boolean checkSession(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException {\n\t\tString token = httpRequest.getHeader(HEADER_TOKEN);\n\t\tif (HttpMethod.OPTIONS.matches(httpRequest.getMethod())) {\n\t\t\treturn true;\n\n\t\t}\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (authenticationService.checkToken(token)) {\n\t\t\tlog.info(\" *** \" + HEADER_TOKEN + \" valid for: \"\n\t\t\t\t\t+ SecurityContextHolder.getContext().getAuthentication().getName());\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlog.info(\" *** Invalid \" + HEADER_TOKEN + ' ' + token);\n\t\t\tSecurityContextHolder.clearContext();\n\t\t\thttpResponse = HttpCommunicationHandler.AddCORSHeadertoResponse(httpRequest, httpResponse);\n\t\t\thttpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED);\n\t\t}\n\t\treturn false;\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tresp.setContentType(\"type=text/html; charset=utf-8\");\r\n\t\tPrintWriter out = resp.getWriter();\r\n\t\tString username = req.getParameter(\"username\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tout.print(username+\"===\"+password);\r\n\t\treq.getSession().setAttribute(\"remoteusername\", username);\r\n\t\treq.getSession().setAttribute(\"remotepassword\", password);\r\n\t\t\r\n\t\tCookie c1 = new Cookie(\"cooUserName\", username);\r\n\t\tCookie c2 = new Cookie(\"cooPassword\", password);\r\n\t\tc1.setPath(\"/\");\r\n\t\tc2.setPath(\"/\");\r\n\t\tresp.addCookie(c1);\r\n\t\tresp.addCookie(c2);\r\n\t\tc1.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tc2.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"/main.jsp\");\r\n\r\n\t\tdispatcher .forward(req, resp);\r\n\t\t//super.doPost(req, resp);\r\n\t}",
"public void testDoPostAccuracy() throws Exception {\r\n Method dopostPrivate = servlet.getClass().getDeclaredMethod(\"doPost\",\r\n new Class[] { HttpServletRequest.class, HttpServletResponse.class });\r\n\r\n dopostPrivate.setAccessible(true);\r\n session.setAttribute(\"UserId\", new Long(999990));\r\n servlet.init(config);\r\n dopostPrivate.invoke(servlet, new Object[] { request, response });\r\n }",
"public Boolean isValidCredential(String jwtToken , HttpServletRequest request) throws Exception {\n// Once we get the token and session .. validate it.\n\n // means user no already registered and using an un authenticated session\n // may be session fixation attack\n if (SecurityContextHolder.getContext().getAuthentication() == null) {\n System.out.println(\"[SUSPICIOUS REQUEST]-[\"+request.getRemoteAddr()+\"] not a authenticated session but jwt is acceptable \");\n return false;\n }else {\n // get UserDetails from SecurityContextHolder\n UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n if (jwtTokenUtil.validateToken(jwtToken, userDetails )){\n // jwt is valid , now check the session\n String sessionIp = (String) request.getSession().getAttribute(\"IP\");\n String sessionJwt = (String) request.getSession().getAttribute(\"TOKEN\");\n if (sessionIp != null && sessionJwt != null && sessionIp.equals(request.getRemoteAddr()) && sessionJwt.equals(jwtToken)){\n System.out.println(\"[SESSION VALIDATION APPROVED]\");\n return true;\n }else {\n System.out.println(\"[SUSPICIOUS REQUEST]-[\"+request.getRemoteAddr()+\"] user ip address or jwt not match\");\n System.out.println(\"-------details:\");\n System.out.println(\"---------------storedIp [\"+sessionIp+\"] != requestIp[\"+request.getRemoteAddr()+\"]\");\n System.out.println(\"---------------storedJwt[\"+sessionJwt+\"] != requestJWT[\"+jwtToken+\"]\");\n return false;\n }\n }else {\n System.out.println(\"[ERROR] jwt is not correct\");\n return false;\n }\n\n }\n }",
"@Test\n public void equalsChecking2() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: http://www.site.ru/index.html\" + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n String str1 = METHOD_GET + \"http://foo.com/someservlet.jsp?param1=foo \" + HTTP_VERSION + ENDL +\n ACCEPT + \": text/jsp\" + ENDL +\n CONNECTION_CLOSE;\n HttpRequest request1 = new HttpRequest(str, IP_ADDRESS, HOST);\n HttpRequest request2 = new HttpRequest(str, IP_ADDRESS, HOST);\n HttpRequest request3 = new HttpRequest(str1, IP_ADDRESS, HOST);\n assertEquals(request1.equals(request2), true);\n assertEquals(request1.equals(request3), false);\n assertEquals(request1.hashCode(), request2.hashCode());\n assertEquals(request1.getHeaders(), request2.getHeaders());\n }",
"private boolean validateAccess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\r\n\t\t/*institutionalEmail=request.getParameter(\"institutional_email\");\r\n\t\t\t\t\tpassword=request.getParameter(\"password\");*/\r\n\r\n\t\t//check if user has cookies with a logged session\r\n\t\tif(institutionalEmail==null || password==null){\r\n\t\t\tusercookie=getCookie(request,\"institutional_email\");\r\n\t\t\tpasscookie=getCookie(request,\"password\");\r\n\r\n\t\t\tif(usercookie!=null && passcookie!=null){\r\n\t\t\t\tinstitutionalEmail=usercookie.getValue();\r\n\t\t\t\tpassword=passcookie.getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//create cookies if he just logged in\r\n\t\telse{\r\n\t\t\tusercookie=new Cookie(\"user\",institutionalEmail);\r\n\t\t\tpasscookie=new Cookie(\"pass\",password);\r\n\t\t\tusercookie.setMaxAge(30);\r\n\t\t\tpasscookie.setMaxAge(30);\r\n\t\t}\r\n\r\n\t\tif(institutionalEmail==null || password==null){\r\n\t\t\tresponse.sendRedirect(response.encodeRedirectURL(\"Login\"));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t//user doesn't exist or isn't an allowed to view content\r\n\t\tif(ALLOWED.indexOf(ejb.login(institutionalEmail, password))==-1){\r\n\t\t\tresponse.setContentType(\"text/html\");\r\n\r\n\t\t\tif(usercookie!=null && passcookie!=null){\r\n\t\t\t\tusercookie.setMaxAge(0);\r\n\t\t\t\tpasscookie.setMaxAge(0);\r\n\t\t\t\tresponse.addCookie(usercookie);\r\n\t\t\t\tresponse.addCookie(passcookie);\r\n\r\n\t\t\t}\r\n\t\t\tresponse.sendRedirect(response.encodeRedirectURL(\"Login\"));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tresponse.addCookie(usercookie);\r\n\t\tresponse.addCookie(passcookie);\r\n\r\n\t\trequest.setAttribute(\"institutional_email\", institutionalEmail);\r\n\t\trequest.setAttribute(\"password\", password);\r\n\r\n\t\treturn true;\r\n\t}",
"private boolean loginUserHasCurrentAuthMethod(UserGroupInformation ugi, String sAuthMethod) {\n AuthenticationMethod authMethod;\n try {\n // based on SecurityUtil.getAuthenticationMethod()\n authMethod = Enum.valueOf(AuthenticationMethod.class, sAuthMethod.toUpperCase(Locale.ENGLISH));\n } catch (IllegalArgumentException iae) {\n throw new IllegalArgumentException(\"Invalid attribute value for \" +\n HADOOP_SECURITY_AUTHENTICATION + \" of \" + sAuthMethod, iae);\n }\n LOG.debug(\"Current authMethod = {}\", ugi.getAuthenticationMethod());\n return ugi.getAuthenticationMethod().equals(authMethod);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\t\t\r\n\t\tHttpSession session = request.getSession();\r\n\t\t\r\n\t\t//retrieve username and password from form\r\n\t\tString username = request.getParameter(\"username\");\r\n\t\tString password = request.getParameter(\"password\");\r\n\t\tint userRights = 0;\r\n\t\t\r\n\t\t\t//setup a connection to the DB\r\n\t\ttry {\r\n\t\t\t//define the driver\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\r\n\t\t\t//make the connection\r\n\t\t\tConnection dbConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/remotekeyDB?\"+ \"user=root&password=reggae12\");\r\n\t\t\t\r\n\t\t\t/*Do database stuff\r\n\t\t\t * creating a db statement and a result query\t\t\t\r\n\t\t\t */\r\n\t\t\tPreparedStatement pst = dbConn.prepareStatement(\"Select User_ID,Password,User_Rights FROM Users WHERE User_ID=? and Password=?\");\r\n\t pst.setString(1, username);\r\n\t pst.setString(2, password);\r\n\t ResultSet rs = pst.executeQuery(); \r\n\t \r\n\t\t\t\t//if credentials match\r\n\t\t\tif(rs.next()){\r\n\t\t\t\tSystem.out.println(\"Login Correct\");\r\n\t\t\t\tSystem.out.println(\"User ID: \" + rs.getString(\"User_ID\") +\" Acces Level: \"+rs.getString(\"User_Rights\"));\t\r\n\t\t\t\tuserRights = rs.getInt(\"User_Rights\");\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(\"username\", username);\r\n\t\t\t\trequest.setAttribute(\"userRights\", userRights); \t//user_rights zijn 0, 1, 2 (gebruiker, beheerder, admin)\r\n\t\t\t\t\r\n\t\t\t\t// last thing = closing the db connection \r\n\t\t\t\tdbConn.close();\r\n\t\t\t\t\r\n\t\t\t\tsession.setAttribute(\"username\", username);\r\n\t\t\t\tsession.setAttribute(\"userRights\", userRights);\r\n\t\t\t\t\r\n\t\t\t\t//forward the request and response in a requestDispatcher to Overview.jsp make difference between Admin and Beheer \r\n\t\t\t\trequest.getRequestDispatcher(\"/Overview.jsp\").forward(request, response);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// closing the DB connection \r\n\t\t\t\tdbConn.close();\r\n\t\t\t\tSystem.out.println(\"Login Failed For: \" +username +\" \"+ password+\" \"+ userRights);\r\n\t\t\t\t//forward the request and response in a requestDispatcher to Login.jsp\r\n\t\t\t\trequest.getRequestDispatcher(\"/Login.jsp\").forward(request, response);\r\n\t\t\t}\t\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"error\");\r\n\t\t\te.printStackTrace();\r\n\t\t}catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"fout\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t}",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasLoginRequest();",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer security) {\n //allow send client_id and client_secret in params\n //otherwise headers:{Authorization: 'Basic client_id:client_secret in base64}\n security.allowFormAuthenticationForClients();\n security.checkTokenAccess(\"isAuthenticated()\");\n// security.checkTokenAccess(\"permitAll()\");\n }",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public static boolean login(HttpServletRequest req) {\n\t\tif (isEmployee(req)) {\n\t\t\treq.setAttribute(REQ_CONNECTION_FAILED, false);\n\n\t\t\treq.getSession().setAttribute(SESS_IS_EMPLOYEE, true);\n\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isAdmin(req)) {\n\t\t\treq.setAttribute(REQ_CONNECTION_FAILED, false);\n\n\t\t\treq.getSession().setAttribute(SESS_IS_EMPLOYEE, true);\n\t\t\treq.getSession().setAttribute(SESS_IS_ADMIN, true);\n\n\t\t\treturn true;\n\t\t}\n\n\t\treq.setAttribute(REQ_CONNECTION_FAILED, true);\n\t\treturn false;\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t HttpSession session=request.getSession(); \n\t\tString username=request.getParameter(\"uname\");\n\t\t\n\t\tString password=request.getParameter(\"password\");\n\t\t\n\t\tString ip=request.getLocalAddr();\n\t\t\n\tSystem.out.println(\">>\"+username+\" \"+password+\" \"+ip);\n\t\n\tLoginService login=new LoginService();\n\tAdminLogin al=new AdminLogin();\n\tal.setName(username);\n\tal.setPassword(password);\n\tString resp=\"\";\n\ttry {\n\t\t resp=login.checkLogin(username,password,ip,session);\n\t}catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\tif(!resp.contains(\"NOK\")) {\n\t\t\n\t\t\n\t\tSystem.out.println(\"succefully login\");\n\t\t\n\t\tRandom rand = new Random(); \n\t\t \n \n session.setAttribute(\"uname\", username);\n int rand_int1 = rand.nextInt(1000);\n LinkedHashMap<String,Integer> lhm=new LinkedHashMap<String,Integer>();\n lhm.put(\"\"+rand_int1,rand_int1);\n System.out.println(lhm);\n //out.print(\"<a href='/CardDistributedSystem/test'>visit</a>\"); \n session.setAttribute(\"obj\", al);\n response.sendRedirect(\"/CardDistributedSystem/home.jsp\"); \n\t \n\t}\n\telse if(resp.contains(\"Invalid credentials\")) {\n\t\tSystem.out.println(\"not succefully login\");\n\t\trequest.setAttribute(\"StatusCode\",\"300\");\n\t\trequest.setAttribute(\"StatusMessage\",\"NOK\");\n\t\trequest.setAttribute(\"ErrorMessage\",\"Login with proper username and password!\");\n\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response); \n\t}\n\telse {\n\t\tSystem.out.println(\"not succefully login\");\n\t\trequest.setAttribute(\"StatusCode\",\"300\");\n\t\trequest.setAttribute(\"StatusMessage\",\"NOK\");\n\t\trequest.setAttribute(\"ErrorMessage\",resp.split(\",\")[1]);\n\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response); \n //response.sendRedirect(\"/CardDistributedSystem/index.jsp\"); \n\n\t}\n\t\t\n\n\t}",
"@Test\n\tpublic void Test_NoAccess2() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"\");\t// No password!!!\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t}",
"@Test\n public void loginRegistersSessionRoutes_GlobalCanBeAdded() {\n getDriver().get(getTestURL()+\"global\");\n\n WebElement login = findElement(By.id(\"login-field\"));\n WebElement pwd = findElement(By.id(\"password-field\"));\n\n login.sendKeys(\"admin\");\n pwd.sendKeys(\"admin\");\n\n // Login as admin.\n findElement(By.id(\"submit\")).click();\n\n Assert.assertEquals(\"Should have now admin view visible.\", 3,\n findElements(By.tagName(\"vaadin-checkbox\")).size());\n\n // Time and Version views should have been registered to session on login.\n Assert.assertFalse(\"Time link should be available\",\n findElements(By.id(\"time-link\")).isEmpty());\n Assert.assertFalse(\"Version link should be available\",\n findElements(By.id(\"version-link\")).isEmpty());\n\n // Register Global to application scope\n findElement(By.id(\"global-checkbox\")).click();\n\n // Now global should be available\n getDriver().get(getTestURL()+\"global\");\n\n Assert.assertFalse(\"Global view should have been available\",\n findElements(By.id(\"remove-global\")).isEmpty());\n\n // as we are still in the session version and view should be available\n getDriver().get(getTestURL()+\"version\");\n Assert.assertFalse(\"Version view should have been available\",\n findElements(By.id(\"version-return\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertFalse(\"Time view should have been available\",\n findElements(By.id(\"time-return\")).isEmpty());\n\n open();\n\n findElement(By.id(\"logout\")).click();\n\n // We should be at login view, but have a global view registered\n Assert.assertFalse(\"Global link should be available on login\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n // now that the session was killed we should not get to time or version views\n\n getDriver().get(getTestURL()+\"version\");\n Assert.assertTrue(\"Version view shouldn't be available\",\n findElements(By.id(\"version-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertTrue(\"Time view shouldn't be available\",\n findElements(By.id(\"time-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t}",
"@Test\r\n public void login() throws ServletException, IOException {\r\n\r\n }",
"protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t_logger.debug(\"Page requested from IP: \" + req.getRemoteAddr());\n\n\t\tHttpSession session = req.getSession(false);\n\n\t\tif (session != null && session.getAttribute(Commons.ReqAttribs.LOGIN_ID) != null) {\n\t\t\treq.setAttribute(Commons.ReqAttribs.LOGIN_ID, session.getAttribute(Commons.ReqAttribs.LOGIN_ID));\n\t\t\treq.getRequestDispatcher(Commons.Redirect.Servlet.CHAT).forward(req, resp);\n\t\t\treturn;\n\t\t}\n\n\t\tCookie[] cookies = req.getCookies();\n\t\tif (cookies != null)\n\t\t\tfor (int i = 0; i < cookies.length; i++) {\n\t\t\t\tif (Commons.Cookies.AUTO_LOGIN.equals(cookies[i].getName())) {\n\t\t\t\t\treq.setAttribute(Commons.ReqAttribs.LOGIN_TOKEN, cookies[i].getValue());\n\t\t\t\t\treq.getRequestDispatcher(Commons.Redirect.Servlet.LOGIN).forward(req, resp);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\treq.getRequestDispatcher(Commons.Redirect.Page.LOGIN_PAGE).forward(req, resp);\n\t}",
"@Override\r\n\t public void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t throws ServletException, IOException {\n\t\t String uname=req.getParameter(\"login_uname\");\r\n\t\t String password=req.getParameter(\"login_psw\");\r\n\t System.out.println(\"login servlet is running username is : \"+uname);\r\n//check user request with database\t \r\n\t Check_login check_login = new Check_login ();\r\n\t String response_message=Check_login.check_user_login(uname, password);\r\n//store session variables\r\n\t HttpSession session = req.getSession();\r\n\t session.setAttribute(\"uname\", uname);\r\n\t session.setAttribute(\"password\",password);\r\n\t System.out.println(\"session user name : \"+(String)session.getAttribute(\"uname\"));\r\n//retrive attributes from session\t \r\n\t String session_value=(String) session.getAttribute(\"uname\");\r\n//call front end java script file by using Java Scripting API\t \r\n\t \t\ttry {\r\n\t\t\tScriptEngineManager manager = new ScriptEngineManager();\r\n\t\t\tScriptEngine engine = manager.getEngineByName(\"JavaScript\");\r\n\t\t\tSystem.out.println(\"okay1\");\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\"C:/Users/Kushan/eclipse-workspace/sureson.lk/src/main/webapp/js/back_end_response.js\");\r\n\t\t\tSystem.out.println(\"okay2\");\r\n\t\t if (fileInputStream != null){\r\n\t\t BufferedReader reader = new BufferedReader(new InputStreamReader(fileInputStream));\r\n\t\t engine.eval(reader);\r\n\t\t System.out.println(\"okay3\");\r\n\t\t // Invocable javascriptEngine = null;\r\n\t\t System.out.println(\"okay4\");\r\n\t\t\tInvocable invocableEngine = (Invocable)engine;\r\n\t\t\t System.out.println(\"okay5\");\r\n\t\t\t System.out.println(\"invocableEngine is : \"+invocableEngine);\r\n\t\t Object object = invocableEngine.invokeFunction(\"backend_message\",session_value);\r\n\t\t \r\n\t\t System.out.println(\"okay6\");\r\n\t\t }\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\tSystem.out.println(\"erroe when calling js function\"+ e);\r\n\t\t\t} \r\n\t \t \r\n\t }",
"private void checkAction(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {\n\t\tString account = req.getParameter(\"account\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tManage manage = this.service.checkLogin(account, password);\r\n\r\n\t\t// 如果User不是空,证明账号密码正确\r\n\t\tif (manage != null) {\r\n\t\t\tsession.setAttribute(\"MANAGEINSESSION\", manage);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/index.jsp\");\r\n\t\t\tpw.print(true);\r\n\t\t} else {\r\n\t\t\tpw.print(false);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/login.jsp\");\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"@Override\n protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n Locale locale = request.getLocale();\n setBundle(ResourceBundle.getBundle(\"text\", locale));\n\n HttpSession session = request.getSession(false);\n\n String path = request.getServletPath();\n String destination;\n\n switch (path) {\n\n case \"/loginpage\":\n LOGGER.log(Level.SEVERE, \"Session is {0}\", session);\n\n boolean loggedIn;\n try {\n loggedIn = (boolean) session.getAttribute(\"loggedIn\");\n if (loggedIn) {\n path = (String) session.getAttribute(\"home\");\n }\n } catch (Exception e) {\n break;\n }\n\n break;\n\n case \"/index\":\n path = \"index.jsp\";\n try {\n request.getRequestDispatcher(path).forward(request, response);\n } catch (IOException | ServletException e) {\n LOGGER.log(Level.SEVERE, \"Request dispatch failed\");\n }\n return;\n\n case \"/login\":\n\n /*if (session == null || ((new Date().getTime() - session.getLastAccessedTime()) > 1800000)) {*/\n String username = request.getParameter(\"username\");\n String password = request.getParameter(\"password\");\n Map<PersonDetails, PersonRoleDetail> personToPersonRoleMap;\n try {\n personToPersonRoleMap = personService.retrievePerson(username, password);\n } catch (MilesException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n response.setContentType(\"text/html;charset=UTF-8\");\n response.getWriter().write(getBundle().getString(ex.getCode()));\n LOGGER.log(Level.INFO, getBundle().getString(ex.getCode()));\n return;\n\n }\n\n PersonDetails person = null;\n PersonRoleDetail personRole = null;\n for (Map.Entry<PersonDetails, PersonRoleDetail> entryKey : personToPersonRoleMap.entrySet()) {\n person = entryKey.getKey();\n personRole = entryKey.getValue();\n break;\n }\n\n HashMap<String, Boolean> rightsMaps = new HashMap<>();\n\n if (person != null && personRole != null) {\n session = request.getSession(true);\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"person\", person);\n session.setAttribute(\"user\", person.getName());\n session.setAttribute(\"personRole\", personRole);\n\n switch (personRole.getPersonRole()) {\n case \"Farmer\":\n rightsMaps.clear();\n rightsMaps.put(\"farmerSession\", true);\n session.setAttribute(\"home\", \"/farmer\");\n session.setAttribute(\"userTitle\", \": Farmer\");\n break;\n\n case \"Agro-dealer\":\n rightsMaps.clear();\n rightsMaps.put(\"agroDealerSession\", true);\n session.setAttribute(\"home\", \"/agro_dealer\");\n session.setAttribute(\"userTitle\", \": Agro-dealer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"WAO (Ward Extension Officer)\":\n rightsMaps.clear();\n rightsMaps.put(\"waoSession\", true);\n session.setAttribute(\"home\", \"/ward\");\n session.setAttribute(\"userTitle\", \": Ward Agricultural Officer(WAO)\");\n session.setAttribute(\"locationLabel\", \"ward\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards(person.getLocation().getSubCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"KALRO Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"kalroSession\", true);\n session.setAttribute(\"home\", \"/kalro\");\n session.setAttribute(\"userTitle\", \": KALRO Officer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"AGMARK Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"agmarkSession\", true);\n session.setAttribute(\"home\", \"/agmark\");\n session.setAttribute(\"userTitle\", \": AGMARK Officer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"County Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"countyDeskOfficerSession\", true);\n session.setAttribute(\"home\", \"/county\");\n session.setAttribute(\"userTitle\", \": County Desk Officer\");\n session.setAttribute(\"locationLabel\", \"county\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties(person.getLocation().getCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"Sub-county Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"subCountyDeskOfficerSession\", true);\n session.setAttribute(\"home\", \"/sub_county\");\n session.setAttribute(\"userTitle\", \": Sub-county Agricultural Officer(SCAO)\");\n session.setAttribute(\"locationLabel\", \"sub-county\");\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties(person.getLocation().getCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n MilesDebugger.debug(session.getAttribute(\"personRoles\"));\n } catch (Exception e) {\n }\n break;\n\n case \"Regional Coordinator\":\n rightsMaps.clear();\n rightsMaps.put(\"regionalCoordinatorSession\", true);\n session.setAttribute(\"home\", \"/region\");\n session.setAttribute(\"userTitle\", \": Regional Project Coordinator\");\n session.setAttribute(\"locationLabel\", \"region\");\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties(person.getLocation().getCounty().getRegion().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"National Officer\":\n case \"System Admin\":\n\n rightsMaps.clear();\n session.setAttribute(\"home\", \"/head\");\n\n if (personRole.getPersonRole().equals(\"National Officer\")) {\n rightsMaps.put(\"nationalOfficerSession\", true);\n session.setAttribute(\"userTitle\", \": PCU Project Coordinator\");\n session.setAttribute(\"locationLabel\", \"country\");\n } else {\n rightsMaps.put(\"systemAdminSession\", true);\n session.setAttribute(\"userTitle\", \": System Admin\");\n session.setAttribute(\"locationLabel\", \"country\");\n }\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRoles());\n } catch (Exception e) {\n }\n\n break;\n\n case \"Equity\":\n rightsMaps.clear();\n rightsMaps.put(\"equityPersonnelSession\", true);\n session.setAttribute(\"home\", \"/equity\");\n session.setAttribute(\"userTitle\", \": Equity Agent\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n default:\n rightsMaps.clear();\n }\n\n }\n\n session.setAttribute(\"rightsMaps\", rightsMaps);\n\n availApplicationAttributes();\n\n return;\n\n case \"/home\":\n LOGGER.log(Level.INFO, \"Directing user to home\");\n path = (String) session.getAttribute(\"home\");\n LOGGER.log(Level.SEVERE, \"Path is : {0}\", path);\n\n break;\n\n case \"/logout\":\n if (session != null) {\n session.invalidate();\n }\n\n path = \"index.jsp\";\n LOGGER.log(Level.SEVERE, \"Path is : {0}\", path);\n request.getRequestDispatcher(path).forward(request, response);\n\n return;\n\n case \"/load\":\n\n availApplicationAttributes();\n\n return;\n\n }\n\n availApplicationAttributes();\n destination = \"/WEB-INF/views/pages\" + path + \".jsp\";\n\n LOGGER.log(Level.INFO, \"Request dispatch to forward to: {0}\", destination);\n try {\n request.getRequestDispatcher(destination).forward(request, response);\n } catch (ServletException | IOException e) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n response.setContentType(\"text/html;charset=UTF-8\");\n response.getWriter().write(getBundle().getString(\"redirection_failed\") + \"<br>\");\n LOGGER.log(Level.INFO, getBundle().getString(\"redirection_failed\"));\n }\n }",
"@Test\n\tpublic void Test_Access1() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\t// Correct Login Data\n\t\tform.getInputByName(\"password\").setValueAttribute(\"jb\");\n\t\t\n\t\tpage = form.getInputByName(\"submit\").click();\n\t\t\n\t\tassertNotSame(\"Fab Lab - Anmelden\", page.getTitleText());\t// Not the login page anymore\n\t\tassertEquals(\"Fab Lab - BasePage\", page.getTitleText());\n\t}",
"@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (request.getParameter(\"loginAttempt\") != null) {\n PrintWriter out = response.getWriter();\n //Check to see there is a username and password in case of corruption.\n if (request.getParameter(\"username\") != null && request.getParameter(\"password\") != null) {\n //Grab each\n String username = request.getParameter(\"username\");\n String password = request.getParameter(\"password\");\n\n try {\n //Always assume the worst.\n boolean exists = false;\n //Check to see if the user is valid\n String sql = \"SELECT * FROM admin\";\n String userName = username;\n PreparedStatement stmt = conn.prepareStatement(sql);\n\n rs = stmt.executeQuery();\n //Execute the query.\n while (rs.next()) {\n //Compare the username and password input to the database version.\n if (BCrypt.checkpw(password, rs.getString(\"password\")) && BCrypt.checkpw(userName, rs.getString(\"username\"))) {\n //There is a user!\n exists = true;\n \n }\n }\n //user is validated here\n if (exists == true) {\n //Create a key for the user to gain permission to index.jsp\n Cookie validateAdmin = new Cookie(\"validated\", \"true\");\n //Logs out after one hour.\n //This is just an autolog out feature. The user only needs to shut the window and it'll log itself out\n validateAdmin.setMaxAge(60 * 60 * 1);\n //Add the cookie\n response.addCookie(validateAdmin);\n //Send the user to index.jsp\n /*\n NOTE: If the server does not use virtual hosts or SSL you only need request.getContextPath()\n for some odd reason if you are using VH's and SSL you need request.getContextPath() + \"/\"\n + request.getContextPath()\n */\n response.sendRedirect(request.getContextPath());\n\n //If the user is not valid, send them an error page.\n } else {\n String logonTable = \"<html>\\n\"\n + \" <head>\\n\"\n + \" <title>Log into Admin Portal</title>\\n\"\n + \" <meta charset=\\\"UTF-8\\\">\\n\"\n + \" <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n\"\n + \" <link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"css/loginStyle.css\\\" />\\n\"\n + \" </head>\\n\"\n + \" <body>\\n\"\n + \" <h1> Administrator Log In</h1>\\n\"\n + \" <h1> Bad password!</h1>\\n\"\n + \" <div class='left'></div>\\n\"\n + \" <div class='right'></div>\\n\"\n + \" <div class=\\\"SignIn fadeInRight\\\">\\n\"\n + \"\\n\"\n + \" <form action='LoginAdmin' method='POST'>\\n\"\n + \" <h2 style='padding-left: 175px;'> name</h2> \\n\"\n + \" <label>\\n\"\n + \" <input type='text' name='username'/>\\n\"\n + \" </label>\\n\"\n + \" <br>\\n\"\n + \" <h2 style='padding-left: 160px;'>password</h2> \\n\"\n + \" <label>\\n\"\n + \" <input type='password' name='password'/> \\n\"\n + \" </label>\\n\"\n + \" <label>\\n\"\n + \" <input type='hidden' name='loginAttempt' value ='loginAttempt'/>\\n\"\n + \" </label>\\n\"\n + \" <br><br>\\n\"\n + \" <div class='submit'>\\n\"\n + \" <input type='submit' />\\n\"\n + \" </div>\\n\"\n + \"\\n\"\n + \" </form>\\n\"\n + \" </div>\\n\"\n + \"\\n\"\n + \"\\n\"\n + \" </body>\\n\"\n + \"</html>\";\n out.println(logonTable);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n //If there no parameters something weird happened, send them to doGet to resolve it.\n } else {\n doGet(request, response);\n }\n }",
"@Override\r\n \t\t\tpublic boolean isAllowed(long sessionId, String actionKey) {\n \t\t\t\treturn false;\r\n \t\t\t}",
"@Test\r\n public void testAuthSessionFromGuest() {\r\n try {\r\n SessionThrottlerBean session1 = new SessionThrottlerBean(\"session1\");\r\n SessionThrottlerBean session2 = new SessionThrottlerBean(\"session2\");\r\n SessionThrottlerBean session3 = new SessionThrottlerBean(\"session3\");\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(2);\r\n throttler.setMaxGuestSession(2);\r\n String user1Id = \"USER1ID\";\r\n String user2Id = \"USER2ID\";\r\n String user3Id = \"USER3ID\";\r\n\r\n boolean allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertTrue(\"Test should allow 1st guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session3.getCookie());\r\n assertFalse(\"Test should not allow 3rd guest session\", allowGuestSession);\r\n\r\n boolean allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session\", allowAuthSession);\r\n // allow without incrementing count\r\n allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 1st login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session3.getCookie(), user3Id);\r\n assertFalse(\"Test should not allow 3nd auth session login\", allowAuthSession);\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n fail(e.getCause().getMessage());\r\n }\r\n\r\n }",
"public void doPost (HttpServletRequest _req, HttpServletResponse _res)\n throws ServletException, IOException {\n session = _req.getSession();\n session.removeAttribute(\"loginError\");\n session.removeAttribute(\"submitError\");\n\n String action = _req.getParameter(\"action\");\n\n /* Authenticate user if request comes from login page */\n if (action.equals(\"login\")) {\n String uid = _req.getParameter(\"UID\");\n String pwd = _req.getParameter(\"PWD\");\n if (authenticate(uid, pwd)) {\n session.setAttribute(\"validUser\", \"y\");\n session.setAttribute(\"loginError\", \"n\");\n session.setAttribute(\"uid\", uid);\n gotoPage(\"/WEB-INF/jsp/ch5/census.jsp\", _req, _res);\n }\n /* If the user login fails, then return them to the login page to retry */\n else {\n loginError(_req, _res);\n }\n }\n\n /* Record the survey data if the request comes from the survey form */\n else if (action.equals(\"submit\")) {\n /* Make sure the user has logged in before recording the data */\n String validUser = (String) session.getAttribute(\"validUser\");\n if (validUser.equals(\"y\")) {\n if (recordSurvey(_req)) {\n /* Reset validUser flag and forward to ThankYou page */\n session.removeAttribute(\"validUser\");\n gotoPage(\"/WEB-INF/jsp/ch5/thankyou.jsp\", _req, _res);\n }\n else {\n session.setAttribute(\"submitError\", \"y\");\n gotoPage(\"/ch5/login.jsp\", _req, _res);\n }\n }\n /* If the user did not login, then send them to the login page */\n else {\n loginError(_req, _res);\n }\n }\n\n }",
"@Test\n public void testWebAuthnIDLessAndWebAuthnAndWebAuthnPasswordlessLogin() throws IOException {\n\n initializeAuthenticator(true, true, true, true);\n setWebAuthnRealmSettings(false, false, true, true);\n\n // Trigger webauthn-passwordless (resident key) setup\n configureUser(username, false, true, true);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnPasswordlessCredId = usernamePasswordAuthWithAuthSetup(username, true, true);\n\n // Trigger webauthn (non resident key) setup\n configureUser(username, true, false, false);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnCredId = usernamePasswordAuthWithAuthSetup(username, false, false);\n\n setUpIDLessAndWebAuthnAndPasswordlessFlow(\"webauthn-webauthnpasswordless-idless\");\n\n // Check tryAnotherWay link on first step page\n checkTryAnotherWay();\n // UsernamePasswordForm + WebAuthn\n usernamePasswordAndWebAuthnAuthentication(username, webAuthnCredId);\n // UsernameForm + WebAuthnPasswordless\n usernameAndWebAuthnPasswordlessAuthentication(username, webAuthnPasswordlessCredId);\n // WebAuthnIDLess\n idlessAuthentication(username, webAuthnPasswordlessCredId, true, true);\n\n }",
"@RequestMapping(value = \"/session_form.htm\",method = RequestMethod.GET)\r\n\tpublic String sessionForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\tUserController.protectRoute(session,response);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}",
"@Test\n public void requireOTPTest() {\n RealmRepresentation realm = testRealmResource().toRepresentation();\n realm.setBrowserFlow(\"browser\");\n testRealmResource().update(realm);\n\n updateRequirement(\"browser\", Requirement.REQUIRED, (authExec) -> authExec.getDisplayName().equals(\"Browser - Conditional OTP\"));\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"void assertSecureRequest(HttpServletRequest request) throws AccessControlException;",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException, ServletException {\n\t\tHttpSession serv = req.getSession();\n\t\tPrintWriter pout = resp.getWriter();\n\t\tJSONObject jsobj = new JSONObject();\n\n\t\tif (serv.getAttribute(\"loggedinUserId\") != null) {\n\t\t\ttry {\n\t\t\t\tjsobj.put(\"status\", true);\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tpout.print(jsobj.toString());\n\t\t\treturn;\n\t\t}\n\n\t\tString name = req.getParameter(\"name\");\n\t\tString pwd = req.getParameter(\"pwd\");\n\n\t\tif (name != null) {\n\t\t\tDBUtil dbutil = new DBUtil();\n\t\t\tLong id = dbutil.validateUserLogin(name, PwdEncrypt.encrypt(pwd));\n\n\t\t\tif (id != null) {\n\t\t\t\tserv.setAttribute(\"loggedinUserName\", name);\n\t\t\t\tserv.setAttribute(\"loggedinUserId\", id);\n\t\t\t\tcom.oasishome.server.User user = dbutil.getUserById(id);\n\t\t\t\t// do the syncing here..\n\t\t\t\t// based on the Home - Hit Apis and get the devices update DB\n\t\t\t\t// accordingly ..\n\t\t\t\tString devicesList = SyncService.fetchDevicesApiHome(user\n\t\t\t\t\t\t.getMicAddress());\n\t\t\t\tif (devicesList != null) {\n\t\t\t\t\torg.json.JSONArray json;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjson = new org.json.JSONArray(devicesList);\n\t\t\t\t\t\tSyncService.checkDevices(json, user.getMicAddress(),id);\n\t\t\t\t\t} catch (org.json.JSONException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tjsobj.put(\"status\", true);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tjsobj.put(\"status\", false);\n\t\t\t\t\tjsobj.put(\"errorMessage\", \"username-password not valid :( \");\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tpout.print(jsobj.toString());\n\n\t\t}\n\t}",
"public void testHttpSessionNotCreatedUnlessContextHolderChanges()\n throws Exception {\n MockHttpServletRequest request = new MockHttpServletRequest(null, null);\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, null, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Check the session is null\n assertNull(request.getSession(false));\n }",
"public interface AuthManager\n{\n void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);\n\n void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);\n\n void checkAuthReplicate(HttpServletRequest request);\n}",
"private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException \n\t{\n\t\tString usrId = req.getParameter(\"uid\");\n\t\tString password = req.getParameter(\"psw\");\n\t\tString domain=req.getParameter(\"domain\");\n\t\t\n\t\t//2. Validate the credentials\n\t\tUserAuthenticate util = new UserAuthenticate();\n\t\tboolean isValid = util.validate(usrId, password, domain);\n\t\t\n\t\tif(isValid) //if the user is valid, start a session.\n\t\t{\n\t\t\t\tHttpSession session = req.getSession(true); //starting a session.\n\t session.setAttribute(\"userID\", usrId);\n\t \n\t //setting flag according to the user's privileges.\n\t int flag=util.flag;\n\t \t\tsession.setAttribute(\"flag\", flag);\n\t\t\t\t\n\t \t\tresp.sendRedirect(\"home\");\n\t \t\t//End of Authentication\n\t\t}\n\t\telse //invalid user\n\t\t{\n\t\t\treq.setAttribute(\"errMsg\", \"In-Valid User Name / Password\");\n\t\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"loginErr\");\n\t\t\tdispatcher.forward(req, resp);\n\t\t}\n\t}",
"public boolean doAuthenticatePlainTextPassword(Request request, String pass) {\n AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);\n if ( authHeader == null ) return false;\n String realm = authHeader.getRealm().trim();\n String username = authHeader.getUsername().trim();\n\n if ( username == null || realm == null ) {\n return false;\n }\n\n String nonce = authHeader.getNonce();\n URI uri = authHeader.getURI();\n if (uri == null) {\n return false;\n }\n // qop 保护质量 包含auth(默认的)和auth-int(增加了报文完整性检测)两种策略\n String qop = authHeader.getQop();\n\n // 客户端随机数,这是一个不透明的字符串值,由客户端提供,并且客户端和服务器都会使用,以避免用明文文本。\n // 这使得双方都可以查验对方的身份,并对消息的完整性提供一些保护\n //String cNonce = authHeader.getCNonce();\n\n // nonce计数器,是一个16进制的数值,表示同一nonce下客户端发送出请求的数量\n int nc = authHeader.getNonceCount();\n String ncStr = new DecimalFormat(\"00000000\").format(nc);\n// String ncStr = new DecimalFormat(\"00000000\").format(Integer.parseInt(nc + \"\", 16));\n\n String A1 = username + \":\" + realm + \":\" + pass;\n String A2 = request.getMethod().toUpperCase() + \":\" + uri.toString();\n byte mdbytes[] = messageDigest.digest(A1.getBytes());\n String HA1 = toHexString(mdbytes);\n System.out.println(\"A1: \" + A1);\n System.out.println(\"A2: \" + A2);\n\n mdbytes = messageDigest.digest(A2.getBytes());\n String HA2 = toHexString(mdbytes);\n System.out.println(\"HA1: \" + HA1);\n System.out.println(\"HA2: \" + HA2);\n String cnonce = authHeader.getCNonce();\n System.out.println(\"nonce: \" + nonce);\n System.out.println(\"nc: \" + ncStr);\n System.out.println(\"cnonce: \" + cnonce);\n System.out.println(\"qop: \" + qop);\n String KD = HA1 + \":\" + nonce;\n\n if (qop != null && qop.equals(\"auth\") ) {\n if (nc != -1) {\n KD += \":\" + ncStr;\n }\n if (cnonce != null) {\n KD += \":\" + cnonce;\n }\n KD += \":\" + qop;\n }\n KD += \":\" + HA2;\n System.out.println(\"KD: \" + KD);\n mdbytes = messageDigest.digest(KD.getBytes());\n String mdString = toHexString(mdbytes);\n System.out.println(\"mdString: \" + mdString);\n String response = authHeader.getResponse();\n System.out.println(\"response: \" + response);\n return mdString.equals(response);\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t\t\t {\n\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\tHttpSession session=request.getSession();\n\t\tString id=request.getParameter(\"id\");\n\t\tString pwd=request.getParameter(\"pwd\");\n\t\tString rand = (String)session.getAttribute(\"rand\");\n\t\tString input = request.getParameter(\"rand\");\n\t\tString[] rem=request.getParameterValues(\"remember\");\n\t\tSystem.out.println(\"记住密码=\"+rem[0]);\n\t\tif (rand.equals(input)) {\n\t\t\tWebLoginDAO t=new WebLoginDAO();\n\t\t \tSystem.out.println(id+\"+\"+pwd);\n\t\t\tint ss=0;\n\t\t \ttry {\n\t\t\t\tss=t.checkid(id, pwd);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n\t\t \tSystem.out.println(\"check=\"+ss);\n\t\t\tif(ss==1){\n\t\t\t\t//存入登陆的用户logname\n\t\t\t\tRegistUser ee=new RegistUser();\n\t\t\t\tee.setLogname(id);\n\t\t\t\t//登陆成功后根据ID取出用户全部信息,以方便用户修改界面预显示信息\n\t\t\t\ttry {\n\t\t\t\t\tee.get(id);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsession.setAttribute(\"user\", ee);\n<<<<<<< HEAD\n\t\t\t\tsession.setAttribute(\"logname\",id);\n\t\t\t\t\n=======\n\t\t\t\tsession.setAttribute(\"username\", id);\n>>>>>>> origin/master\n\t\t\t\t//检查“记住我”是否勾选;\n\t\t\t\tif(rem[0].equals(\"remember\")){\n\t\t\t\t//新建cookie对象\n\t\t \t\tCookie idcookie=new Cookie(\"id\", URLEncoder.encode(id, \"UTF-8\"));\n\t\t \t\tCookie pwdcookie=new Cookie(\"pwd\",pwd);\n\t\t \t\t//设置cookie的生命周期\n\t\t \t\tidcookie.setMaxAge(300);\n\t\t \t\tpwdcookie.setMaxAge(300);\n\t\t \t\t//将cookie写入客户端浏览器\n\t\t \t\tresponse.addCookie(idcookie);\n\t\t \t\tresponse.addCookie(pwdcookie);\n\t\t \t\tSystem.out.println(\"已记住\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trequest.getRequestDispatcher(\"index2.jsp\").forward(request, response);\n\t\t\t}\n\t\t\telse if(ss==2){\n\t\t\t\tthrow new ServletException(\"密码错误!\");\n\t\t\t}\n\t\t\telse if(ss==3){\n\t\t\t\tthrow new ServletException(\"账号不存在!\");\n\t\t\t}\n\t\t}\n\t\telse{\n\n\t\t\t\tthrow new ServletException(\"验证码错误!\");\n\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"boolean isSessionValid(Object session);",
"@Override\n protected boolean tryAlreadyLoginOrRememberMe(LoginHandlingResource resource) {\n if (super.tryAlreadyLoginOrRememberMe(resource)) { // if hybrid with session\n return true;\n }\n return requestManager.getHeader(\"x-authorization\").flatMap(token -> {\n return findByAuthToken(token).map(member -> {\n syncCheckLoginSessionIfNeeds(createUserBean(member)); // sometimes synchronize with database\n saveLoginInfoToSession(member); // if hybrid with session\n return true;\n });\n }).orElse(false);\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n //oauthServer.realm(REALM);\n oauthServer.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\")\n //.passwordEncoder(this.passwordEncoder)\n .allowFormAuthenticationForClients();\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString vusuario = request.getParameter(\"usuario\");\n\t\tString vclave = request.getParameter(\"clave\");\n\t\tSystem.out.println(vusuario);\n\t\tSystem.out.println(vclave);\n\n\t\t// 2. \"validamos\" (creamos un poco de lógica)\n\t\tboolean ok = false;\n\t\tif (vusuario.equals(\"jose\") && vclave.equals(\"123\")){\n\t\t\tok = true;\n\t\t}\n\t\t\n\t\t// 3. Dependiendo del resultado de la validación invocamos a bienvenida.jsp o rebotamos a logueo.jsp\n\t\t// Para que un servlet pueda invocar a otro componente, usamos el famoso objeto RequestDispatcher (Despachador del request)\n\t\tif (ok == true) {\n\t\t\tSystem.out.println(\"Caso de éxito\");\n\t\t\t// Cargamos información adicional en el request, antes de despacharlo\n\t\t\tString nombre = \"José Luis :)\";\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.set(1992, 1, 30);\n\t\t\tDate fecnac = c.getTime();\n\t\t\t// El primer parámetro representa el nombre del objeto a cargar en el request\n\t\t\t// El segundo parámetro es el objeto que estamos cargando en el request\n\t\t\trequest.setAttribute(\"nombre\", nombre);\n\t\t\trequest.setAttribute(\"fecha\", fecnac);\n\t\t\t\n\t\t\t// VERIFICAR SI EXISTE UNA SESIÓN ACTIVA, SI EXISTE LA MATAMOS\n\t\t\tif (request.isRequestedSessionIdValid()){\n\t\t\t\tHttpSession tempo = request.getSession(); // Apunta a la zona de memoria, da lo mismo poner true o false\n\t\t\t\ttempo.invalidate(); // Matamos la sesión\n\t\t\t\tSystem.out.println(\"La sesión murio :( \" + tempo);\n\t\t\t}\n\t\t\t\n\t\t\t// CREAMOS UNA SESIÓN NUEVA\n\t\t\tHttpSession lasesion = request.getSession(true); // Siempre va a crear la sesión, pues lo matamos anteriormente\n\t\t\tSystem.out.println(\"Id de la sesión: \" + lasesion.getId());\n\t\t\tSystem.out.println(\"Tiempo máximo de inactividad: \" + lasesion.getMaxInactiveInterval());\n\t\t\tSystem.out.println(\"La sesión es nueva? \" + lasesion.isNew()); // Retorna un booleano\n\t\t\t\n\t\t\t// CARGAMOS OBJETOS A LA SESIÓN\n\t\t\tlasesion.setAttribute(\"nombre\", nombre);\n\t\t\tlasesion.setAttribute(\"fecha\", fecnac);\n\t\t\t\n\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/bienvenida.jsp\");\n\t\t\t// Despachamos\n\t\t\trd.forward(request, response);\n\t\t} else {\n\t\t\tSystem.out.println(\"Caso de error\");\n\t\t\t\n\t\t\t// Cargamos otros datos al request\n\t\t\tString mensaje = \"Usuario y/o clave erradas\";\n\t\t\t\n\t\t\trequest.setAttribute(\"mensaje\", mensaje);\n\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/logueo.jsp\");\n\t\t\t\n\t\t\t// Despachamos\n\t\t\trd.forward(request, response);\n\t\t}\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setCharacterEncoding(\"UTF-8\");\n String command = request.getParameter(\"command\");\n Staff s = new Staff();\n HttpSession session = request.getSession();\n String url = \"\";\n switch (command) {//String tenKH, String matKhau, String diaChi, String email, String sdt\n case \"login\":\n s = s.Login((Integer.parseInt(request.getParameter(\"manv\"))), request.getParameter(\"pass\"));\n if (s != null) {\n session.setAttribute(\"user\", s);//user tự đặt tại đây, tiếp tục tại header \n url = \"/index.jsp\";\n } else {\n url = \"/login.jsp\";\n session.setAttribute(\"loi\", \"ID và Password error\");\n }\n System.out.println(\"login success\");\n RequestDispatcher rd = getServletContext().getRequestDispatcher(url);\n rd.forward(request, response);\n break;\n case \"changepassword\":\n System.out.println(\"fisrt changepassword\");\n //Staff s2 = null;\n if (session.getAttribute(\"user\") != null) {\n s = (Staff) session.getAttribute(\"user\");\n }\n // lam sao get gia tri cua bien moi dang nhap.(=>dựa vào sesstion, login xong get value len, use attribute.)\n String a = \"\";\n String b = \"\";\n if (s != null) {\n a = s.getMaNV(); // null nè, h moi get dc ne.\n b = s.getpW();// null nè \n System.out.println(\"gia tri cua a\" + a);\n String passcu = request.getParameter(\"passcu\");\n System.out.println(passcu);\n String passmoi = request.getParameter(\"passmoi\");\n String nhaplaipassmoi = request.getParameter(\"nhaplaipassmoi\");\n if (passcu.equals(b)) {\n if (nhaplaipassmoi.equals(passmoi)) {\n s.ChangePassword(a, nhaplaipassmoi);\n url = \"/success.jsp\";\n } else {\n url = \"/changepassword.jsp\";\n session.setAttribute(\"errordoipass\", \"change pass error!\");\n }\n } else {\n url = \"/changepassword.jsp\";\n session.setAttribute(\"errordoipass\", \"change pass error!\");\n }\n } else {\n response.sendRedirect(\"back.jsp\");\n }\n RequestDispatcher rd2 = getServletContext().getRequestDispatcher(url);\n rd2.forward(request, response);\n break;\n case \"updateinfo\":\n request.setCharacterEncoding(\"utf-8\");\n response.setCharacterEncoding(\"utf-8\");\n String ho = request.getParameter(\"ho\");\n String ten = request.getParameter(\"ten\");\n String ngaysinh = request.getParameter(\"ngaysinh\");\n String sex = request.getParameter(\"sex\");\n String cmnd = request.getParameter(\"cmnd\");\n String status = request.getParameter(\"status\");\n if (session.getAttribute(\"user\") != null) {\n s = (Staff) session.getAttribute(\"user\");\n }\n // lam sao get gia tri cua bien moi dang nhap.(=>dựa vào sesstion, login xong get value len, use attribute.)\n String manv = \"\";\n if (s != null) {\n manv = s.getMaNV(); // null nè, h moi get dc ne.\n s.UpdateStaff(manv, ho, ten, ngaysinh, sex, cmnd, status);\n url = \"/success.jsp\";\n } else {\n // do something!\n }\n RequestDispatcher rd3 = getServletContext().getRequestDispatcher(url);\n rd3.forward(request, response);\n break;\n }\n\n // \n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n HttpSession session = request.getSession(true);\n \n if(request.getParameter(\"Submit\") != null)\n {\n // Preleva i dati inviati e controlla se sono giusti\n String username = request.getParameter(\"nome\");\n String pwd = request.getParameter(\"pw\");\n \n //se è un cliente\n utenteCliente client = ClienteFactory.getInstance().getClient(username, pwd);\n \n if(client.getUsername().equals(username) && client.getPwd().equals(pwd))\n {\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"username\", client);\n session.setAttribute(\"id\", client.getId());\n session.setAttribute(\"logVenditore\", false);\n session.setAttribute(\"logCliente\", true);\n \n request.setAttribute(\"cliente\", client);\n request.getRequestDispatcher(\"cliente.jsp\").forward(request, response);\n \n \n }\n \n // se è un venditore\n utenteVenditore vend = VenditoreFactory.getInstance().getVenditore(username, pwd);\n if(vend.getUser().equals(username) && vend.getPwd().equals(pwd))\n {\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"username\", vend);\n session.setAttribute(\"idV\", vend.getId());\n session.setAttribute(\"logVenditore\", true);\n session.setAttribute(\"logCliente\", false);\n \n request.setAttribute(\"venditore\", vend);\n request.getRequestDispatcher(\"venditore.jsp\").forward(request, response);\n \n \n } \n \n //se non sono autenticato\n request.setAttribute(\"error\", true);\n \n }\n //Nel caso l’utente non sia autenticato, deve mostrare il form di login\n request.getRequestDispatcher(\"login.jsp\").forward(request, response);\n\n }",
"boolean isAuthenticated();",
"private void checkSession(final long sessionID, final long sessionVerID)\n {\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t\tString wowPath = request.getScheme() + \"://\" +\n\t\t\trequest.getServerName() + \":\" + request.getServerPort() + \n\t\t\trequest.getContextPath();\n\t\tHttpSession session = request.getSession(true);\n\t\n\t\tString wow_flag = request.getParameter(\"wow_flag\");\n\t\tif(wow_flag == null || wow_flag.length() == 0) {\n\t\t\tString userid = (String)session.getAttribute(AccessService.WOW_USERID);\n\t\t\tString course = (String)session.getAttribute(AccessService.WOW_COURSE);\n\t\t\tString directory = (String)session.getAttribute(AccessService.WOW_DIRECTORY);\n\t\t\tString briefConceptName = request.getParameter(AccessService.WOW_CONCEPT);\n\t\n\t\t\tif(userid == null) {\n\t\t\t\tuserid = request.getParameter(AccessService.WOW_USERID);\n\t\t\t\tif(userid == null) {ZebraStatic.traceService.trace(\"No User ID\"); doLogin(request, response); return;}\n\t\t\t\tString password = request.getParameter(AccessService.WOW_PASSWORD);\n\t\t\t\tif(password == null || password.length() == 0) {\n\t\t\t\t\tdoLogin(request, response); return;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpassword = password.trim();\n\t\t ProfileDB pdb = ZebraStatic.getProfileDB();\n\t\t try {\n\t\t\t if(!pdb.getProfile(pdb.findProfile(userid)).\n\t\t\t \tgetAttributeValue(\"personal\", \"password\").equals(password)) {\n\t\t\t \tZebraStatic.traceService.trace(\"Wrong login!\");\n\t\t\t \tdoLogin(request, response);\n\t\t\t \treturn;\n\t\t\t }\n\t\t }\n\t\t catch(Exception e) {\n\t\t \tZebraStatic.traceService.trace(\"Wrong login! caused by \" + e.getMessage());\n\t\t \te.printStackTrace();\n\t\t \tdoLogin(request, response);\n\t\t \treturn;\n\t\t }\n\t\t\t\tsession.setAttribute(AccessService.WOW_USERID, userid);\n\t\t\t}\n\t\t\tif(course == null) {\n\t\t\t\tcourse = request.getParameter(AccessService.WOW_COURSE);\n\t\t\t\tsession.setAttribute(AccessService.WOW_COURSE, course);\n\t\t\t}\n\t\t\tif(directory == null) {\n\t\t\t\tdirectory = request.getParameter(AccessService.WOW_DIRECTORY);\n\t\t\t\tsession.setAttribute(AccessService.WOW_DIRECTORY, directory);\n\t\t\t}\n\t\t\t\n\t\t\tif(course == null || directory == null || briefConceptName == null) {\n\t\t\t\tdoLogin(request, response);\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\tURL baseURL = new URL(wowPath);\n\t\t\tAccessService access = null;\n\t\t\ttry {\n\t\t\t\taccess = new AccessService(baseURL, session.getId(), userid, null, course, directory);\n\t\t\t}\n\t\t\tcatch(Exception e) { throw new ServletException(e.getMessage()); }\n\t\t\t\n\t\t\tHashMap<String, String> results = new HashMap<String, String>();\n\t\t\tA_HREF_ServletURL a_href = new A_HREF_ServletURL(request.getRequestURL().toString());\n\t\t\taccess.setA_HREF(a_href);\n\t\t\ttry {\n\t\t\t\taccess.accessGetConcept(briefConceptName, results);\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tZebraStatic.traceService.trace(\"doView: \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\tPrintWriter out = response.getWriter();\n\t\t\tout.print(AccessService.createPage(wowPath, results));\n\t\t\tout.close();\n\t\t}\n\t\telse if(wow_flag.toLowerCase().equals(\"login\")) {\n\t\t\tdoLogin(request, response);\n\t\t}\n\t}",
"@Override\n\tpublic boolean hasLoginForm() {\n\t\tList<HtmlForm> listOfForms=this.page.getForms();\n\t\tif(listOfForms==null){\n\t\t\treturn false;\n\t\t}\n\t\tif(listOfForms.isEmpty()){\n\t\t\treturn false;\n\t\t}\n\t\tIterator<HtmlForm> formsIterator=listOfForms.iterator();\n\t\twhile(formsIterator.hasNext()){\n\t\t\tHtmlForm form=formsIterator.next();\n\t\t\tif(isLoginForm(form)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {\n\t\tSubject subject = getSubject(request, response);\n\t\tif (!subject.isAuthenticated() && !subject.isRemembered()) {\n\t\t\t// 如果没有登录,直接进行之后的流程\n\t\t\treturn true;\n\t\t}\n\t\tString username = (String) subject.getPrincipal();\n\t\tSession session = subject.getSession();\n\t\tString sessionId = (String) session.getId();\n\n\t\tHttpServletRequest req = WebUtils.toHttp(request);\n\t\tServletContext application = req.getSession().getServletContext();\n\t\tDeque<Object> deque = deque = (Deque<Object>) application.getAttribute(username);\n\t\tif (deque == null) {\n\t\t\tdeque = new LinkedList<>();\n\t\t\tdeque.push(sessionId);\n\t\t\tapplication.setAttribute(username, deque);\n\t\t\treturn true;\n\t\t}\n\t\tif (!deque.contains(sessionId) && session.getAttribute(\"kickout\") == null) {\n\t\t\tdeque.push(sessionId);\n\t\t}\n\t\twhile (deque.size() > 1) {\n\t\t\tString kickSessionId = (String) deque.removeLast();\n\t\t\tif (kickSessionId != null) {\n\t\t\t\tSession kickoutSession = null;\n\t\t\t\ttry {\n\t\t\t\t\tkickoutSession = sessionManager.getSession(new DefaultSessionKey(kickSessionId));\n\t\t\t\t\tkickoutSession.setAttribute(\"kickout\", true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif (session.getAttribute(\"kickout\") != null) {\n\t\t\tsubject.logout();\n\t\t\tsaveRequest(request);\n\t\t\treq.setAttribute(\"kickMsg\", \"该账号异地登录,您被强制下线\");\n\t\t\tWebUtils.issueRedirect(request, response, kickoutUrl);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}",
"@Test\n public void testMutualAuthenticationWithDNSInCNField() throws Exception {\n final SaslClientFactory clientFactory = obtainSaslClientFactory(EntitySaslClientFactory.class);\n assertNotNull(clientFactory);\n\n final KeyStore keyStore = serverKeyStore;\n final Certificate[] certificateChain = keyStore.getCertificateChain(\"dnsInCNServer\");\n final SaslServer saslServer = createSaslServer(SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1, \"testserver2.example.com\",\n serverTrustStore, (PrivateKey) keyStore.getKey(\"dnsInCNServer\", KEYSTORE_PASSWORD),\n Arrays.copyOf(certificateChain, certificateChain.length, X509Certificate[].class));\n\n final String[] mechanisms = new String[] { SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1 };\n CallbackHandler cbh = createClientCallbackHandler(mechanisms, clientKeyStore, \"dnsInCNClient\", KEYSTORE_PASSWORD, getX509TrustManager(clientTrustStore));\n final SaslClient saslClient = clientFactory.createSaslClient(mechanisms, null, \"test\", \"testserver2.example.com\",\n Collections.<String, Object>emptyMap(), cbh);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n byte[] message = saslServer.evaluateResponse(new byte[0]);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslClient.evaluateChallenge(message);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslServer.evaluateResponse(message);\n assertNotNull(message);\n\n message = saslClient.evaluateChallenge(message);\n assertNull(message);\n assertTrue(saslClient.isComplete());\n assertTrue(saslServer.isComplete());\n assertEquals(\"cn=testclient2.example.com,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", saslServer.getAuthorizationID());\n }",
"private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }",
"@Test\n public void testWebAuthnIDLessWithNonResidentCredentialLogin() throws IOException {\n\n configureUser(username, false, true, true);\n initializeAuthenticator(false, true, true, true);\n setWebAuthnRealmSettings(false, false, false, true);\n\n // Trigger webauthn-passwordless (non resident key setup)\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String credentialId = usernamePasswordAuthWithAuthSetup(username, true, false);\n\n setUpIDLessOnlyFlow(\"idless-only-flow\");\n idlessAuthentication(username, credentialId, false, false);\n\n }",
"boolean hasSession();",
"@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n int role = Integer.parseInt((String) session.getAttribute(\"role\"));\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token) && role == permittedRole) {\n result = true;\n }\n }\n return result;\n }",
"protected boolean shouldValidateSession ()\n {\n return false;\n }",
"@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n HttpSession session = req.getSession(true);\r\n //get session creation time\r\n Date createTime = new Date(session.getCreationTime());\r\n //get last access time of this web page \r\n Date lastAccessTime = new Date(session.getLastAccessedTime());\r\n\r\n String title = \"Welcome back to my website\";\r\n Integer visitCount = new Integer(0);\r\n String VistCountKey = new String(\"visitCount\");\r\n String userIDKey = new String(\"userID\");\r\n String userID = new String(\"ABCD\");\r\n //check if this is new comer on your web page \r\n if (session.isNew()) {\r\n title = \"welcoem to my website\";\r\n \r\n //set key and value like Cookie(key, value)\r\n session.setAttribute(userIDKey, userID);\r\n } else {\r\n visitCount = (Integer) session.getAttribute(VistCountKey);\r\n visitCount = visitCount + 1;\r\n userID = (String) session.getAttribute(userIDKey);\r\n }\r\n session.setAttribute(VistCountKey, visitCount);\r\n\r\n resp.setContentType(\"text/html\");\r\n PrintWriter out = resp.getWriter();\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\"\r\n + \"<link href=\\\"resource/css/bootstrap.css\\\" rel=\\\"stylesheet\\\">\");\r\n out.println(\"<title>\" + title + \"</title>\");\r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1 align = \\\"center\\\" >\" + title + \"</h1>\\n\");\r\n out.println(\"<h2 align = \\\"center\\\" > Session Information </h2>\\n\");\r\n out.println(\"<table align =\\\"center\\\" class=\\\"table table-bordered table-hover\\\">\\n\"\r\n + \"<tr>\"\r\n + \"<th>Session Info</th><th>value</th></tr>\\n\"\r\n + \"</tr>\\n\"\r\n + \"<tr>\\n\"\r\n + \"<td>id</td>\"\r\n + \"<td>\" + session.getId() + \"</td>\"\r\n + \"</tr>\\n\"\r\n + \"<tr>\\n\"\r\n + \"<td>Creation time</td>\"\r\n + \"<td>\" + createTime + \"</td>\"\r\n + \"</tr>\\n\"\r\n + \"<tr>\\n\"\r\n + \"<td>Time of last access</td>\"\r\n + \"<td>\" + lastAccessTime + \"</td>\"\r\n + \"</tr>\\n\"\r\n + \"<tr>\\n\"\r\n + \"<td>ID</td>\"\r\n + \"<td>\" + userID + \"</td>\"\r\n + \"</tr>\\n\"\r\n + \"<tr>\\n\"\r\n + \"<td>Number of visits</td>\"\r\n + \"<td>\" + visitCount + \"</td>\"\r\n + \"</tr>\\n\"\r\n + \"</tbale>\");\r\n out.println(\"<body>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\tresp.setContentType(\"text/html;charset=utf-8\");\n\t\tout=resp.getWriter();\n\t\tsession=req.getSession();\n\t\t//读取表单数据\n\t\tString usname=req.getParameter(\"usname\");\n\t\tString psword=req.getParameter(\"psword\");\n\t\tString yzm=req.getParameter(\"randomCode\");\n\t\t//是否Cookie登录\n\t\tString ck=req.getParameter(\"login\");\n\t\tif(ck==null){\n\t\t\tck=\"\";\n\t\t}\n\n\t\tif(\"ck\".equals(ck)){\n\t\t\tthis.loginNoCokie(usname, psword);\n\t\t\t//System.out.println(usname+\" \"+psword);\n\t\t\treturn;\n\t\t}\n\t\t//System.out.println(yzm);\n\t\t\n\t\tif(usname==null || psword==null || yzm==null){\n\t\t\tout.println(\"<script>\");\n\t\t\tout.println(\"alert(\\\"输入信息不能为空!\\\");\");\n\t\t\tout.println(\"window.location.href=\\\"login.jsp\\\";\");\n\t\t\tout.println(\"</script>\");\n\t\t\treturn;\n\t\t}\n\t\tif(\"\".equals(yzm) || \"\".equals(usname)){\n\t\t\tout.println(\"<script>\");\n\t\t\tout.println(\"alert(\\\"输入信息不能为空!\\\");\");\n\t\t\tout.println(\"window.location.href=\\\"login.jsp\\\";\");\n\t\t\tout.println(\"</script>\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//判断验证码,不正确直接pass\n\t\t\n\t\tString yzm2=(String)session.getAttribute(\"randomCode\");\n\t\t\n\t\tif(!(yzm.equals(yzm2))){\n\t\t\tout.println(\"<script>\");\n\t\t\tout.println(\"alert(\\\"验证码输入有误!\\\");\");\n\t\t\tout.println(\"window.location.href=\\\"login.jsp\\\";\");\n\t\t\tout.println(\"</script>\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//获取Cookie时效的参数\n\t\tString shixiao=req.getParameter(\"shixiao\");\n\t\t//处理有效性\n\t\tif(shixiao==null){\n\t\t\tshixiao=\"now\";\n\t\t}\n\t\t\n\t\t//根据不同的cookie时效,进行处理\n\t\tif(\"now\".equals(shixiao)){\n\t\t\tthis.loginNoCokie(usname, psword);\n\t\t}\n\t\t\n\t\tint age=0;\n\t\tif(\"week\".equals(shixiao)){\n\t\t\tage=60*60*24*7;\n\t\t\tthis.loginAddCokie(usname, psword, age, resp);\n\t\t}\n\t\t\n\t\tif(\"month\".equals(shixiao)){\n\t\t\tage=60*60*24*30;\n\t\t\tthis.loginAddCokie(usname, psword, age, resp);\n\t\t}\n\n\t\t\n\t}",
"protected boolean mustTunnel (RequestHandler rh) {\n\tString auth = request.getHeader (\"Authorization\");\n\tif (auth != null) {\n\t if (auth.startsWith (\"NTLM\") || auth.startsWith (\"Negotiate\"))\n\t\treturn true;\n\t}\n\treturn false;\n }",
"int authenticateUser(IDAOSession session, String userName, String password);",
"@Override\n public boolean shouldApply(HttpServletRequest httpServletRequest) {\n boolean shouldApply = false;\n\n if (jwtProperties != null) {\n String serializedJWT = getJWTFromCookie(httpServletRequest);\n shouldApply = (serializedJWT != null && isAuthenticationRequired(serializedJWT));\n }\n\n return shouldApply;\n }",
"public void testHttpSessionEagerlyCreatedWhenDirected()\n throws Exception {\n MockHttpServletRequest request = new MockHttpServletRequest(null, null);\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, null, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.setForceEagerSessionCreation(true); // non-default\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Check the session is not null\n assertNotNull(request.getSession(false));\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tPrintWriter out=response.getWriter();\r\n\t\tString id=request.getParameter(\"id\");\r\n\t\tString password=request.getParameter(\"password\");\r\n\t\t\r\n\t\tAdminBean bean=new AdminBean();\r\n\t\tbean.setId(id);\r\n\t\tbean.setPassword(password);\r\n\t\t\r\n\t\tHttpSession session=request.getSession(); \r\n session.setAttribute(\"uname\",id); \r\n \r\n\t\t\r\n\t\tInterface i=new Implementation();\r\n\t\tint result=i.adminLogin(bean);\r\n\t\t\r\n\t\tif(result==0)\r\n\t\t{\r\n\t\t\t response.setContentType(\"text/html\"); \r\n\t\t\t\tout.println(\"<html>\");\r\n\t\t\r\n\t\t\t\tout.println(\"<body> \");\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\tout.println(\"<center><h2>Invalid ID or Password...<a href=admin.html> Try again</a><h2></center>\");\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tout.println(\"</body></html>\");\r\n\t\t}\r\n\t\telse if(result==1)\r\n\t\t{\r\n\t\t\tresponse.sendRedirect(\"admin_welcome.jsp\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public interface ServerAuthenticatorInterface {\n public String signIn(final String email, final String password);\n}",
"public abstract boolean isLoginRequired();"
]
| [
"0.63892096",
"0.5523067",
"0.52407396",
"0.5140487",
"0.513676",
"0.5109911",
"0.5107098",
"0.50886226",
"0.50677633",
"0.50645155",
"0.50629157",
"0.5047623",
"0.50462466",
"0.5030793",
"0.50223523",
"0.5016257",
"0.5014905",
"0.49964347",
"0.4991132",
"0.49688086",
"0.4958418",
"0.4951936",
"0.4928373",
"0.4927537",
"0.49148443",
"0.49144047",
"0.49128088",
"0.49087152",
"0.48928717",
"0.4886388",
"0.48773342",
"0.48751608",
"0.48613867",
"0.48485702",
"0.48225594",
"0.48142886",
"0.4807195",
"0.48062024",
"0.48062024",
"0.48062024",
"0.48062024",
"0.48062024",
"0.48062024",
"0.47867784",
"0.47854087",
"0.47772092",
"0.47731742",
"0.4768668",
"0.47663125",
"0.47573358",
"0.4749917",
"0.47430444",
"0.4738034",
"0.47344598",
"0.47254148",
"0.47253865",
"0.47178477",
"0.47172973",
"0.47142494",
"0.47110823",
"0.4696994",
"0.46857902",
"0.46820349",
"0.46780232",
"0.46777657",
"0.46733108",
"0.46709043",
"0.46701574",
"0.46697652",
"0.46691987",
"0.46669748",
"0.46601567",
"0.46498653",
"0.4640529",
"0.46381924",
"0.46179736",
"0.46158475",
"0.46154264",
"0.46153915",
"0.46114093",
"0.4607925",
"0.4603049",
"0.45991138",
"0.45991063",
"0.45878774",
"0.45854875",
"0.4583896",
"0.45833877",
"0.4576882",
"0.45760828",
"0.45746464",
"0.45651093",
"0.45643267",
"0.45576528",
"0.45572585",
"0.45504987",
"0.45504403",
"0.4544583",
"0.45408773",
"0.45406413"
]
| 0.6705694 | 0 |
Verifies, the authorization forwarding works within cluster (FORM authn). This simulates failover on distributed web application (e.g. when load balancer is used). When: HTTP client calls WhoAmIServlet as "admin" (using FORM authn) on second cluster node and then it calls EntryServlet (without authentication needed) on the first cluster node; the EntryServlet uses Elytron API to forward authz name to call remote WhoAmIBean Then: the calls pass and WhoAmIBean returns "admin" username | @Test
public void testServletSsoPropagation() throws Exception {
final URL entryServletUrl = getEntryServletUrl(SeccontextUtil.WAR_ENTRY_SERVLET_FORM, "server", "server", ReAuthnType.FORWARDED_AUTHORIZATION);
final URL whoamiUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {
Assert.assertEquals("Unexpected result from WhoAmIServlet (backup-server)", "admin", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, "admin", "admin", SC_OK));
Assert.assertEquals("Unexpected result from EntryServlet", "admin", doHttpRequest(httpClient, entryServletUrl, SC_OK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testServletSso() throws Exception {\n final URL whoamiUrl = new URL(((((AbstractSecurityContextPropagationTestBase.server1.getApplicationHttpUrl()) + \"/\") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));\n final URL whoamiBackupUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + \"/\") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));\n try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {\n Assert.assertEquals(\"Unexpected result from WhoAmIServlet\", \"admin\", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, \"admin\", \"admin\", SC_OK));\n Assert.assertEquals(\"Unexpected result from WhoAmIServlet (backup-server)\", \"admin\", doHttpRequest(httpClient, whoamiBackupUrl, SC_OK));\n }\n }",
"private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}",
"boolean authNeeded();",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void preauthServlet() throws Exception {\n String testName = getTestName();\n \n String externalPassword = \"test456\";\n String extAcctLocalPart = testName;\n String extAcctName = createExternalAcctEntry(extAcctLocalPart, externalPassword, null);\n \n Map<String, Object> zmailDomainAttrs = commonZmailDomainAttrs();\n // setup auto prov\n // commonZmailDomainAttrs added only LDAP, add preauth here\n StringUtil.addToMultiMap(zmailDomainAttrs, Provisioning.A_zmailAutoProvAuthMech, AutoProvAuthMech.PREAUTH.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(uid=%u)\");\n // setup external LDAP auth\n zmailDomainAttrs.put(Provisioning.A_zmailAuthMech, AuthMech.ldap.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapURL, \"ldap://localhost:389\");\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapBindDn, \"uid=%u,ou=people,\" + extDomainDn);\n // setup preauth\n String preAuthKey = PreAuthKey.generateRandomPreAuthKey();\n zmailDomainAttrs.put(Provisioning.A_zmailPreAuthKey, preAuthKey);\n \n Domain zmailDomain = createZmailDomain(testName, zmailDomainAttrs);\n \n String loginName = extAcctLocalPart + \"@\" + zmailDomain.getName();\n \n // preauth data\n String preAuthUrl = TestPreAuthServlet.genPreAuthUrl(preAuthKey, loginName, false, false);\n \n // do the preauth servlet request\n String url = TestUtil.getBaseUrl() + preAuthUrl;\n \n HttpClient client = new HttpClient();\n HttpMethod method = new GetMethod(url);\n \n boolean ok = false;\n try {\n int respCode = HttpClientUtil.executeMethod(client, method);\n int statusCode = method.getStatusCode();\n String statusLine = method.getStatusLine().toString();\n \n ok = (respCode == 200);\n \n /*\n System.out.println(\"respCode=\" + respCode);\n System.out.println(\"statusCode=\" + statusCode);\n System.out.println(\"statusLine=\" + statusLine);\n \n System.out.println(\"Headers\");\n Header[] respHeaders = method.getResponseHeaders();\n for (int i=0; i < respHeaders.length; i++) {\n String header = respHeaders[i].toString();\n System.out.println(header);\n }\n */\n \n /*\n String respBody = method.getResponseBodyAsString();\n System.out.println(respBody);\n */\n \n } catch (HttpException e) {\n throw e;\n } catch (IOException e) {\n throw e;\n } finally {\n method.releaseConnection();\n }\n \n assertTrue(ok);\n \n /*\n String encodedAuthToken = response.getElement(AccountConstants.E_AUTH_TOKEN).getText();\n assertNotNull(encodedAuthToken);\n AuthToken authToken = AuthToken.getAuthToken(encodedAuthToken);\n String acctId = authToken.getAccountId();\n Account acct = prov.get(AccountBy.id, acctId);\n verifyAcctAutoProvisioned(acct, loginName.toLowerCase());\n */\n }",
"@Override\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\n\t}",
"boolean isAuthenticated();",
"abstract public boolean checkAuth(String userId) throws IOException;",
"private void checkAction(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {\n\t\tString account = req.getParameter(\"account\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tManage manage = this.service.checkLogin(account, password);\r\n\r\n\t\t// 如果User不是空,证明账号密码正确\r\n\t\tif (manage != null) {\r\n\t\t\tsession.setAttribute(\"MANAGEINSESSION\", manage);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/index.jsp\");\r\n\t\t\tpw.print(true);\r\n\t\t} else {\r\n\t\t\tpw.print(false);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/login.jsp\");\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"protected abstract String getAuthorization();",
"public boolean doAuthenticatePlainTextPassword(Request request, String pass) {\n AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);\n if ( authHeader == null ) return false;\n String realm = authHeader.getRealm().trim();\n String username = authHeader.getUsername().trim();\n\n if ( username == null || realm == null ) {\n return false;\n }\n\n String nonce = authHeader.getNonce();\n URI uri = authHeader.getURI();\n if (uri == null) {\n return false;\n }\n // qop 保护质量 包含auth(默认的)和auth-int(增加了报文完整性检测)两种策略\n String qop = authHeader.getQop();\n\n // 客户端随机数,这是一个不透明的字符串值,由客户端提供,并且客户端和服务器都会使用,以避免用明文文本。\n // 这使得双方都可以查验对方的身份,并对消息的完整性提供一些保护\n //String cNonce = authHeader.getCNonce();\n\n // nonce计数器,是一个16进制的数值,表示同一nonce下客户端发送出请求的数量\n int nc = authHeader.getNonceCount();\n String ncStr = new DecimalFormat(\"00000000\").format(nc);\n// String ncStr = new DecimalFormat(\"00000000\").format(Integer.parseInt(nc + \"\", 16));\n\n String A1 = username + \":\" + realm + \":\" + pass;\n String A2 = request.getMethod().toUpperCase() + \":\" + uri.toString();\n byte mdbytes[] = messageDigest.digest(A1.getBytes());\n String HA1 = toHexString(mdbytes);\n System.out.println(\"A1: \" + A1);\n System.out.println(\"A2: \" + A2);\n\n mdbytes = messageDigest.digest(A2.getBytes());\n String HA2 = toHexString(mdbytes);\n System.out.println(\"HA1: \" + HA1);\n System.out.println(\"HA2: \" + HA2);\n String cnonce = authHeader.getCNonce();\n System.out.println(\"nonce: \" + nonce);\n System.out.println(\"nc: \" + ncStr);\n System.out.println(\"cnonce: \" + cnonce);\n System.out.println(\"qop: \" + qop);\n String KD = HA1 + \":\" + nonce;\n\n if (qop != null && qop.equals(\"auth\") ) {\n if (nc != -1) {\n KD += \":\" + ncStr;\n }\n if (cnonce != null) {\n KD += \":\" + cnonce;\n }\n KD += \":\" + qop;\n }\n KD += \":\" + HA2;\n System.out.println(\"KD: \" + KD);\n mdbytes = messageDigest.digest(KD.getBytes());\n String mdString = toHexString(mdbytes);\n System.out.println(\"mdString: \" + mdString);\n String response = authHeader.getResponse();\n System.out.println(\"response: \" + response);\n return mdString.equals(response);\n\n }",
"private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context,\n String errorMessage)\n throws AuthenticationFailedException {\n\n // Find the authenticated user.\n AuthenticatedUser authenticatedUser = getUser(context);\n\n if (authenticatedUser == null) {\n throw new AuthenticationFailedException(\"Authentication failed!. \" +\n \"Cannot proceed further without identifying the user\");\n }\n\n String tenantDomain = authenticatedUser.getTenantDomain();\n String username = authenticatedUser.getAuthenticatedSubjectIdentifier();\n String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username);\n\n /*\n In here we do the redirection to the termsAndConditionForm.jsp page.\n If you need to do any api calls and pass any information to the custom page you can do it here and pass\n them as query parameters or else best way is to do the api call using a javascript function within the\n custom page.\n */\n\n try {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL().\n replace(\"login.do\", \"termsAndConditionForm.jsp\");\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = \"&authFailure=true\" +\n \"&authFailureMsg=\" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name());\n }\n String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername,\n tenantDomain);\n String encodedUrl =\n (loginPage + (\"?\" + queryParams\n + \"&username=\" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name())))\n + \"&authenticators=\" + getName() + \":\" + AUTHENTICATOR_TYPE\n + retryParam;\n response.sendRedirect(encodedUrl);\n } catch (IOException e) {\n throw new AuthenticationFailedException(e.getMessage(), e);\n }\n context.setCurrentAuthenticator(getName());\n context.setRetrying(false);\n return AuthenticatorFlowStatus.INCOMPLETE;\n\n }",
"protected boolean mustTunnel (RequestHandler rh) {\n\tString auth = request.getHeader (\"Authorization\");\n\tif (auth != null) {\n\t if (auth.startsWith (\"NTLM\") || auth.startsWith (\"Negotiate\"))\n\t\treturn true;\n\t}\n\treturn false;\n }",
"public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }",
"public interface AuthManager\n{\n void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);\n\n void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);\n\n void checkAuthReplicate(HttpServletRequest request);\n}",
"@Override\n\tpublic boolean authenticate(OrderBean bean) {\n\t\treturn false;\n\t}",
"private void checkAuthorization(RoutingContext context, List<CaptureMap> resolvedCaptureCollections,\n Handler<AsyncResult<Boolean>> handler) {\n AuthHandler auth = context.get(AuthenticationController.AUTH_HANDLER_PROP);\n if (auth != null && auth instanceof RedirectAuthHandlerBt) {\n MemberUtil.getCurrentUser(context, getNetRelay(), result -> {\n if (result.failed()) {\n handler.handle(Future.failedFuture(result.cause()));\n } else {\n IAuthenticatable member = result.result();\n if (member == null) {\n // this is an error\n handler.handle(Future.failedFuture(\n new IllegalArgumentException(\"This should not happen, we need an instance of IAuthenticatable here\")));\n } else {\n checkAuthorization(resolvedCaptureCollections, auth, member, handler);\n }\n }\n });\n } else {\n handler.handle(Future.succeededFuture(true));\n }\n }",
"public void checkAuthority() {\n }",
"@ClassVersion(\"$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $\")\r\npublic interface Authenticator\r\n{\r\n\r\n /**\r\n * Checks whether the given credentials can be used to initiate a\r\n * new session on behalf of the client with the given context.\r\n *\r\n * @param context The context.\r\n * @param user The user name.\r\n * @param password The password.\r\n *\r\n * @return True if the given credentials are acceptable.\r\n *\r\n * @throws I18NException Thrown if the authenticator encounters an\r\n * error while checking the credentials.\r\n */\r\n\r\n boolean shouldAllow\r\n (StatelessClientContext context,\r\n String user,\r\n char[] password)\r\n throws I18NException;\r\n}",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"@GetMapping(\"/authenticate\")\n @Timed\n public String isAuthenticated(HttpServletRequest request) {\n log.debug(\"REST request to check if the current user is authenticated\");\n return request.getRemoteUser();\n }",
"@FXML\n\tprivate void handleLoginButtonAction() {\n\t\t\n//\t\tString upass = \"123\";\n//\t\tString uname = \"admin\";\n//\t\tString uname = \"sadmin\";\n\t\tString uname = username.getText();\n\t\tString upass = password.getText();\n\n\t\tValidator validator = new Validator(uname, upass);\n\t\tSystem.out.println(validator.getName());\n\n \t\tChainBuilder chain= new ChainBuilder();\n \t\tchain.builChain();\n \t\tchain.getAuthonticator().validateRequest(validator);\n\n\n\t\t// Authenticator htos = new AdminValidator();\n//\t\tMyAuthenticator auth= new AdminValidator();\n//\t\tMyAuthenticator lib = new LibrarianValidator();\n//\t\tMyAuthenticator nullAuth= new NullChecker();\n//\n//\t\tnullAuth.setNextAuthonticator(lib);\n//\t\tlib.setNextAuthonticator(auth);\n\n\n\n//\t\tif (uname.trim().length() == 0 || upass.trim().length() == 0) {\n//\t\t\talertMessage(\"Fill all the required Fields\");\n//\t\t} else {\n//\t\t\tUserObjectInputOutputStream inputOutput = new UserObjectInputOutputStream();\n//\t\t\tUserDetails user = inputOutput.getUsers(uname, upass);\n//\t\t\ttry{\n//\t\t\t\tif (user.getUsername().equals(null)) {\n//\t\t\t\t\talertMessage(\"Invalid Username or Password\");\n//\t\t\t\t} else {\n//\t\t\t\t\tswitch(user.getRole()){\n//\t\t\t\t\t\tcase \"admin\":\n//\n//\t\t\t\t\t\t\tAdminController sac = new AdminController();\n//\t\t\t\t\t\t\tsac.loadAdminWindow();\n//\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\tcase \"librarian\":\n//\t\t\t\t\t\t\tLibrarianController libc = new LibrarianController();\n//\t\t\t\t\t\t\tlibc.loadAdminWindow();\n//\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\tcase \"sadmin\":\n//\t\t\t\t\t\t\tSuperAdminController spac = new SuperAdminController();\n//\t\t\t\t\t\t\tspac.loadSuperAdminWindow();\n//\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\tdefault:\n//\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t}\n//\n//\t\t\t\t}\n//\t\t\t}catch(Exception e){\n//\t\t\t\te.printStackTrace();\n//\t\t\t\talertMessage(\"======Invalid Username or Password\");\n//\t\t\t}\n//\t\t}\n\t}",
"public boolean authenticatorRequest(String authURL){\r\n\t\t\r\n\t\tboolean authOK = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t logger.finest(authURL);\r\n\t\t\t HttpURLConnection httpConnection = null;\r\n\t if(this.proxyHost.equalsIgnoreCase(\"\") || this.proxyPort.equalsIgnoreCase(\"\")){\r\n\t \t URL restServiceURL = new URL(authURL);\r\n\t \t httpConnection = (HttpURLConnection) restServiceURL.openConnection();\r\n\t } else{\r\n\t \t httpConnection = proxySetup(authURL);\r\n\t }\r\n\t httpConnection.setRequestMethod(\"GET\");\r\n\t \r\n\t if (httpConnection.getResponseCode() != 200) {\r\n\t \t logger.severe(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t throw new RuntimeException(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t }\r\n\t else{\r\n\t \t \tauthOK = true;\r\n\t \t \tString header = httpConnection.getHeaderFields().toString();\r\n\t \t \tthis.setjSessionId(header); \r\n\t \r\n\t \t \tString serverCookies = httpConnection.getHeaderField(\"Set-Cookie\");\r\n\t \t \tthis.setAuthHash(serverCookies);\r\n\t }\r\n\t \r\n\t logger.finest(\"Authentication successful: \" + httpConnection.getResponseCode() + \" - OK\");\t \t \t \t \t \r\n\t httpConnection.disconnect();\r\n\t\t} \r\n\t\tcatch (MalformedURLException e1) {\r\n\t e1.printStackTrace();\r\n\t logger.severe(\"Error: connection \" + e1.getMessage());\r\n\t } \r\n\t\tcatch(ConnectException e3){\r\n\t\t\tlogger.severe(\"Error:\tConnection Time out. Please relaunch the console app.\" + e3.getMessage());\r\n\t\t}\r\n\t\tcatch(UnknownHostException e){\r\n\t\t\tlogger.severe(\"Error:\tUnknown host. Please relaunch the console app.\" + e.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) {\r\n\t\t\tlogger.severe(\"Error:\t\" + e2.getMessage() + \"\\n was occured. Please contact the administrator.\");\r\n\t }\t\t\r\n\t\treturn authOK;\r\n\t}",
"@Test\n public void testWebAuthnIDLessAndWebAuthnAndWebAuthnPasswordlessLogin() throws IOException {\n\n initializeAuthenticator(true, true, true, true);\n setWebAuthnRealmSettings(false, false, true, true);\n\n // Trigger webauthn-passwordless (resident key) setup\n configureUser(username, false, true, true);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnPasswordlessCredId = usernamePasswordAuthWithAuthSetup(username, true, true);\n\n // Trigger webauthn (non resident key) setup\n configureUser(username, true, false, false);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnCredId = usernamePasswordAuthWithAuthSetup(username, false, false);\n\n setUpIDLessAndWebAuthnAndPasswordlessFlow(\"webauthn-webauthnpasswordless-idless\");\n\n // Check tryAnotherWay link on first step page\n checkTryAnotherWay();\n // UsernamePasswordForm + WebAuthn\n usernamePasswordAndWebAuthnAuthentication(username, webAuthnCredId);\n // UsernameForm + WebAuthnPasswordless\n usernameAndWebAuthnPasswordlessAuthentication(username, webAuthnPasswordlessCredId);\n // WebAuthnIDLess\n idlessAuthentication(username, webAuthnPasswordlessCredId, true, true);\n\n }",
"@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }",
"protected boolean authClientsWithDNS() throws Throwable {\n // verify irules\n // change authclients to all\n // reboot all and wait\n return (changeAuthorizedClients(hostname) &&\n rebootAndWait(\"all\") &&\n verifyIrules(getIP(hostname)) &&\n pingFromMaster(hostname) &&\n changeAuthorizedClients(\"all\") &&\n rebootAndWait(\"all\"));\n }",
"boolean authenticate(PersonAuthenticateDTO p);",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session = request.getSession();\n ServletContext servletContext = getServletContext();\n ServletConfig servletConfig = getServletConfig();\n\n dataSource=session.getAttribute(\"jhuDataSource\").toString(); \n loginAttempts=Integer.parseInt(session.getAttribute(\"loginAttempts\").toString());\n // System.out.println(session.getAttribute(\"loginAttempts\").toString());\n weblogicUrl = session.getAttribute(\"weblogicURL\").toString();\n \n //I'm not sure why I'm doing this: check later\n //lSv = (LoginSyntaxVerifier) session.getAttribute(\"loginSyntaxVerifier\");\n \n loginName = request.getParameter(\"uidInput\");\n System.out.println(loginName);\n loginPass = request.getParameter(\"passInput\");\n System.out.println(loginPass);\n \n if(!(validUserName(loginName)&&validPassword(loginPass))){\n /*\n lSv.setValidUserName(validUserName(loginName));\n \tlSv.setValidPass(validPassword(loginPass));\n \tsession.setAttribute(\"loginSyntaxVerifier\", lSv);\n \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/login.html\");\n \tdispatcher.forward(request, response);\n */\n \tlfBean.setLoginFailMessage(\"Username and Password must be 8 chars in length with no spaces. Try logging in Again\");\n \trequest.setAttribute(\"loginFail\", lfBean);\n \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/loginFail.jsp\");\n \tdispatcher.forward(request, response);\n \t\n }else{\n\t if(findUser()){\n\t //if(kristinAdmin()){\n\t \t//lsBean.setFirstName(\"Welcome to the site, \"+\"kristin\");\n\t \t//lsBean.setLastName(\"caldwell\");\n \t\tlsBean.setFirstName(\"Welcome to the site, \"+storedFirstName);\n\t \tlsBean.setLastName(storedLastName);\n\t request.setAttribute(\"loginSuccessful\", lsBean);\n\t RequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/welcome2.jsp\");\n\t dispatcher.forward(request, response);\n\t }else{\n\t \tString logfail = \"username and password combination invalid, please register\";\n\t \tlfBean.setLoginFailMessage(logfail);\n\t \trequest.setAttribute(\"loginFail\", lfBean);\n\t \tRequestDispatcher dispatcher = servletContext.getRequestDispatcher(\"/loginFail.jsp\");\n\t \tdispatcher.forward(request, response);\n\t }\n }\n\t}",
"private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}",
"private boolean loginUserHasCurrentAuthMethod(UserGroupInformation ugi, String sAuthMethod) {\n AuthenticationMethod authMethod;\n try {\n // based on SecurityUtil.getAuthenticationMethod()\n authMethod = Enum.valueOf(AuthenticationMethod.class, sAuthMethod.toUpperCase(Locale.ENGLISH));\n } catch (IllegalArgumentException iae) {\n throw new IllegalArgumentException(\"Invalid attribute value for \" +\n HADOOP_SECURITY_AUTHENTICATION + \" of \" + sAuthMethod, iae);\n }\n LOG.debug(\"Current authMethod = {}\", ugi.getAuthenticationMethod());\n return ugi.getAuthenticationMethod().equals(authMethod);\n }",
"boolean authQop() {\n/* 114 */ return this.serverQop;\n/* */ }",
"void assertSecureChannel(HttpServletRequest request) throws AccessControlException;",
"private boolean isNegotiate() throws IOException {\n if (conn.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) {\n List<String> headerValues = readHeaderField(conn, WWW_AUTHENTICATE);\n for (String value : headerValues) {\n String trimmedAuthHeader = (value == null) ? \"\" : value.trim();\n if (trimmedAuthHeader.startsWith(NEGOTIATE) ||\n trimmedAuthHeader.contains(COMMA_PREFIXED_NEGOTIATE)) {\n return true;\n }\n }\n }\n return false;\n }",
"public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public static String getCheckAuthentication() {\n\n\t\treturn baseURL + login_required_string + \"/rest/is-authenticated\";\n\t}",
"Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;",
"private void checkAuthControl() {\n val authKey = config.getString(\"authControlKey\");\n val authValue = config.getString(\"authControlValue\");\n\n checkArgument(authKey.length() > 2, \"auth string (control key) length is less than or equal to 2!\");\n checkArgument(authValue.length() > 2, \"auth string (control value) length is less than or equal to 2!\");\n }",
"public boolean isAuthRequired() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(username + \"---\" + password + \"---\" + address);\r\n\t\t\r\n\t\tActionContext context = ServletActionContext.getContext();\r\n\t\tMap<String, Parameter> map = context.getParameters();\r\n\t\t\r\n\t\tSystem.out.println(\"username=\" + map.get(\"username\"));\r\n\t\t\r\n\t\treturn NONE;\r\n\t}",
"private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException \n\t{\n\t\tString username=req.getParameter(\"username\");\n\t\tString password=req.getParameter(\"password\");\n\t\t\n\t\tPrintWriter pw1=resp.getWriter();\n\t\t// validate and print the output\n\t\tif(username.equals(\"admin\") && password.equals(\"root\"))\n\t\t{\n\t\t\tRequestDispatcher rd=req.getRequestDispatcher(\"servletlink\");\n\t\t\trd.forward(req, resp);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPrintWriter pw=resp.getWriter();\n\t\t\tpw.print(\"<h1 style='color:red;'>Please enter valid username or password</h1>\");\n\t\t\tRequestDispatcher rd=req.getRequestDispatcher(\"index.html\");\n\t\t\trd.include(req, resp);\n\t\t\t\n\t\t}\n\t\t\n\t }",
"boolean authenticate(String userName, String password);",
"private void authorize() {\r\n\r\n\t}",
"private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }",
"private boolean validateAccess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\r\n\t\t/*institutionalEmail=request.getParameter(\"institutional_email\");\r\n\t\t\t\t\tpassword=request.getParameter(\"password\");*/\r\n\r\n\t\t//check if user has cookies with a logged session\r\n\t\tif(institutionalEmail==null || password==null){\r\n\t\t\tusercookie=getCookie(request,\"institutional_email\");\r\n\t\t\tpasscookie=getCookie(request,\"password\");\r\n\r\n\t\t\tif(usercookie!=null && passcookie!=null){\r\n\t\t\t\tinstitutionalEmail=usercookie.getValue();\r\n\t\t\t\tpassword=passcookie.getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//create cookies if he just logged in\r\n\t\telse{\r\n\t\t\tusercookie=new Cookie(\"user\",institutionalEmail);\r\n\t\t\tpasscookie=new Cookie(\"pass\",password);\r\n\t\t\tusercookie.setMaxAge(30);\r\n\t\t\tpasscookie.setMaxAge(30);\r\n\t\t}\r\n\r\n\t\tif(institutionalEmail==null || password==null){\r\n\t\t\tresponse.sendRedirect(response.encodeRedirectURL(\"Login\"));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t//user doesn't exist or isn't an allowed to view content\r\n\t\tif(ALLOWED.indexOf(ejb.login(institutionalEmail, password))==-1){\r\n\t\t\tresponse.setContentType(\"text/html\");\r\n\r\n\t\t\tif(usercookie!=null && passcookie!=null){\r\n\t\t\t\tusercookie.setMaxAge(0);\r\n\t\t\t\tpasscookie.setMaxAge(0);\r\n\t\t\t\tresponse.addCookie(usercookie);\r\n\t\t\t\tresponse.addCookie(passcookie);\r\n\r\n\t\t\t}\r\n\t\t\tresponse.sendRedirect(response.encodeRedirectURL(\"Login\"));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tresponse.addCookie(usercookie);\r\n\t\tresponse.addCookie(passcookie);\r\n\r\n\t\trequest.setAttribute(\"institutional_email\", institutionalEmail);\r\n\t\trequest.setAttribute(\"password\", password);\r\n\r\n\t\treturn true;\r\n\t}",
"boolean hasLoginRequest();",
"public boolean isAuthRequired() {\n return !AfUtil.anyEmpty(_username);\n }",
"public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}",
"public boolean doAuthenticateHashedPassword(Request request, String hashedPassword) {\n AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);\n if ( authHeader == null ) return false;\n String realm = authHeader.getRealm();\n String username = authHeader.getUsername();\n\n if ( username == null || realm == null ) {\n return false;\n }\n\n String nonce = authHeader.getNonce();\n URI uri = authHeader.getURI();\n if (uri == null) {\n return false;\n }\n\n\n\n String A2 = request.getMethod().toUpperCase() + \":\" + uri.toString();\n String HA1 = hashedPassword;\n\n\n byte[] mdbytes = messageDigest.digest(A2.getBytes());\n String HA2 = toHexString(mdbytes);\n\n String cnonce = authHeader.getCNonce();\n String KD = HA1 + \":\" + nonce;\n if (cnonce != null) {\n KD += \":\" + cnonce;\n }\n KD += \":\" + HA2;\n mdbytes = messageDigest.digest(KD.getBytes());\n String mdString = toHexString(mdbytes);\n String response = authHeader.getResponse();\n\n\n return mdString.equals(response);\n }",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"@Test\r\n\tpublic void testCase_3() throws ServletException, IOException {\r\n\t\trequest.addParameter(\"username\", \"pasquale98\");\r\n\t\trequest.addParameter(\"password\", \"pasquale12\");\r\n\r\n\t\tservlet.doPost(request, response);\r\n\r\n\t\tassertEquals(successMessage, (String) request.getAttribute(\"result\"));\r\n\t}",
"boolean hasAuth();",
"public interface UserAuthenticationVerifier {\n\n /**\n * Check to see if a user can be authenticated with the given information\n *\n * @param username The username for the user.\n * @param password The password for the user.\n * @param authenticationInformation The authentication information to check.\n * @retun true if the user can be authenticated using the information, false if not.\n */\n\n public boolean isUserAuthenticated(final String username, final String password,\n final UserAuthenticationInformation authenticationInformation);\n}",
"private int checkAuthentication( SecureDirectory secureDirectory ) throws ServerException {\r\n\r\n\t\tif ( secureDirectory == null )\r\n\t\t\treturn NOT_SECURE_DIR;\r\n\r\n\t\tif ( !request.getHeaderFields().containsKey( HeaderFields.AUTHORIZATION ) )\r\n\t\t\treturn NEED_AUTHENTICATE;\r\n\r\n\t\tString auth = request.getHeaderFields().get( HeaderFields.AUTHORIZATION );\r\n\t\tString[] tokens = auth.split( \" \", 2 );\r\n\t\tif ( authenticate( secureDirectory, tokens[0], tokens[1] ) )\r\n\t\t\treturn AUTHENTICATED;\r\n\r\n\t\t// Password or username not correct\r\n\t\tthrow new ServerException( ResponseTable.FORBIDDEN );\r\n\t}",
"public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"@Test\n\tpublic void Test_Access1() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\t// Correct Login Data\n\t\tform.getInputByName(\"password\").setValueAttribute(\"jb\");\n\t\t\n\t\tpage = form.getInputByName(\"submit\").click();\n\t\t\n\t\tassertNotSame(\"Fab Lab - Anmelden\", page.getTitleText());\t// Not the login page anymore\n\t\tassertEquals(\"Fab Lab - BasePage\", page.getTitleText());\n\t}",
"public boolean isAuthenticationRequired() {\n\t\treturn true;\n\t}",
"public boolean authToServer() throws ClientChatException{\n\n\t\t// On crée un objet container pour contenir nos donnée\n\t\t// On y ajoute un AdminStream de type Authentification avec comme params le login et le mot de pass\n \tAuthentificationRequest request = new AuthentificationRequest(login, pass);\n\t\t\n\t\t//Auth sur le port actif\n\t\ttry {\n\t\t\t// On tente d'envoyer les données\n\t\t\toos_active.writeObject(request);\n\t\t\t// On tente de recevoir les données\n\t\t\tAuthentificationResponse response = (AuthentificationResponse)ois_active.readObject();\n\n\t\t\t// On switch sur le type de retour que nous renvoie le serveur\n\t\t\t// !!!Le type enum \"Value\" est sujet à modification et va grandir en fonction de l'avance du projet!!!\n\t\t\tswitch(response.getResponseType()){\n\t\t\tcase AUTH_SUCCESS:\n\t\t\t\t\n\t\t\t\towner = response.getOwner();\n\t\t\t\t\n\t\t\t\t//creation du socket\n\t\t\t\ttry {\n\t\t\t\t\ts_passive = new Socket(address, 3003);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new ClientChatException(ClientChatException.IO_ERREUR, \n\t\t\t\t\t\"ERROR : passive socket creation failed!\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// On crée le flux sortant !!!OBLIGATOIRE de créer le flux sortant avant le flux entrant!!!\n\t\t\t\ttry {\n\t\t\t\t\toos_passive = new ObjectOutputStream(s_passive.getOutputStream());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new ClientChatException(ClientChatException.IO_ERREUR, \n\t\t\t\t\t\"ERROR : passive OOS creation failed!\");\n\t\t\t\t}\n\t\t\t\t// On crée le flux entrant\n\t\t\t\ttry {\n\t\t\t\t\tois_passive = new ObjectInputStream(s_passive.getInputStream());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ClientChatException(ClientChatException.IO_ERREUR, \n\t\t\t\t\t\"ERROR : passive OIS creation failed!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\trequest = new AuthentificationRequest(owner);\t\t\t\n\t\t\t\t//Auth sur le port passif\n\t\t\t\ttry {\n\t\t\t\t\t// On tente d'envoyer les données\n\t\t\t\t\toos_passive.writeObject(request);\n\t\t\t\t\t// On tente de recevoir les données\n\t\t\t\t\tresponse = (AuthentificationResponse)ois_passive.readObject();\n\n\t\t\t\t\t// On switch sur le type de retour que nous renvoie le serveur\n\t\t\t\t\t// !!!Le type enum \"Value\" est sujet à modification et va grandir en fonction de l'avance du projet!!!\n\t\t\t\t\tswitch(response.getResponseType()){\n\t\t\t\t\tcase AUTH_SUCCESS:\n\t\t\t\t\t\topResult = \"Welcome!\";\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase AUTH_FAIL:\n\t\t\t\t\t\topResult = \"ERROR : check login/pwd! (passive socket)\";\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t} catch(Exception e){\n\t\t\t\t\tthrow new ClientChatException (ClientChatException.IO_ERREUR, \"ERROR: Communication Error (passive)\");\n\t\t\t\t}\n\t\t\t\n\t\t\tcase AUTH_FAIL:\n\t\t\t\topResult = \"ERROR : check login/pwd! (active socket)\";\n\t\t\t\treturn false;\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new ClientChatException (ClientChatException.IO_ERREUR, \"ERROR: Communication Error (active)\");\n\t\t}\n\t\treturn true;\n }",
"public boolean is_allowed()\r\n\t{\r\n\t\tboolean allowed;\r\n\t\t\r\n\t\t// Compare hashes to see if they match\r\n\t\tif (hash.equals(query_hash))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Match successful!\");\r\n\t\t\tallowed = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid credentials...\");\r\n\t\t\tallowed = false;\r\n\t\t}\r\n\t\t\r\n\t\t//if (fail_count >= 3)\r\n\t\t\t//allowed = false;\r\n\t\t\r\n\t\treturn allowed;\r\n\t}",
"void assertSecureRequest(HttpServletRequest request) throws AccessControlException;",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}",
"boolean hasPermissionOfCluster(String clusterId, String userName);",
"private boolean validarEInyectarAutorizacion(final HttpServletRequest request) {\n\t\tboolean autorizado = false;\n\t\tString header = request.getHeader(AUTH_HEADER);\n\t\tfor (Peticion peticion : SIN_AUTH) {\n\t\t\tif (peticion.match(request)) {\n\t\t\t\tautorizado = true;\n\t\t\t\tlog.info(\"Método: \"+peticion.metodo+\" url: \"+peticion.url);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!autorizado) {\n\t\t\t// Todos los demas servicios requieren que se envie la cadena Bearer\n\t\t\t// <token>\n//\t\t\tif (StringUtils.isNotBlank(header)) {\n\t\t\t\tif (verificarCredenciales(request)){\n\t\t\t\t\tautorizado = true;\n\t\t\t\t}\n//\t\t\t\tString[] tmpTokens = header.split(AUTH_BEARER);\n//\t\t\t\tif (tmpTokens.length == 2) {\n//\t\t\t\t\tString token = tmpTokens[1];\n//\t\t\t\t\tOptional<Identificacion> ident = validarToken(StringUtils.trimToEmpty(token));\n//\t\t\t\t\tif (ident.isPresent()) {\n//\t\t\t\t\t\trequestScope.setIdentificacion(ident.get());\n//\t\t\t\t\t\trequest.setAttribute(AUTH_KEY, ident.get());\n//\t\t\t\t\t}\n//\t\t\t\t\tautorizado = ident.isPresent();\n//\t\t\t\t}\n//\t\t\t}\n\t\t}\n\t\trequestScope.setIp(request.getRemoteAddr());\n\t\treturn autorizado;\n\t}",
"protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}",
"@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }",
"private ActionForward autorizar(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn new LoginProxy().loginHome(mapping, form, request, response);\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String login = req.getParameter(\"login\");\n String password = req.getParameter(\"password\");\n if (logic.isExisting(login, password)) {\n HttpSession session = req.getSession();\n session.setAttribute(\"login\", login);\n if (logic.isAdmin(login)) {\n session.setAttribute(\"role\", \"admin\");\n }\n resp.sendRedirect(String.format(\"%s/\", req.getContextPath()));\n } else {\n req.setAttribute(\"error\", \"Credentional is invalid\");\n doGet(req, resp);\n }\n }",
"private void checkAuthAtMain() {\n val auth = config.getString(\"authAtMain\");\n\n checkArgument(auth.length() > 10, \"auth string (at-main) length is less than or equal to 10!\");\n }",
"private boolean verifyParameters(HttpServletRequest req, User loggedUser){\r\n\t\ttry{\r\n\t\t\tString requestedUserParam = queryStringMap.get(\"user\");\r\n\t\t\tif( requestedUserParam==null ){ return false; }\r\n\t\t\trequestedUserId = Long.parseLong( requestedUserParam );\r\n\t\t\trequestedUser = BeanUserView.getUserByIdStatic( requestedUserId );\r\n\t\t\tif( requestedUser==null ){ return false; }\r\n\t\t\telse{\r\n\t\t\t\tif( requestedUser.getRemoved() ){ return false; }\r\n\t\t\t\telse{ return true; }\r\n\t\t\t}\r\n\t\t} catch( NumberFormatException nfe ){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void authenticate(String user, String pass) {\n }",
"public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"@WebMethod public Pertsona isLogin(String erabiltzaileIzena, String pasahitza);",
"public static void timeSensitiveInit(Env env, AAF_Service authzAPI, AuthzFacade facade, final DirectAAFUserPass directAAFUserPass) throws Exception {\n /**\n * Basic Auth, quick Validation\n *\n * Responds OK or NotAuthorized\n */\n authzAPI.route(env, HttpMethods.GET, \"/authn/basicAuth\", new Code(facade,\"Is given BasicAuth valid?\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n\n Principal p = trans.getUserPrincipal();\n if (p instanceof BasicPrincipal) {\n // the idea is that if call is made with this credential, and it's a BasicPrincipal, it's ok\n // otherwise, it wouldn't have gotten here.\n resp.setStatus(HttpStatus.OK_200);\n } else if (p instanceof X509Principal) {\n // have to check Basic Auth here, because it might be CSP.\n String authz = req.getHeader(\"Authorization\");\n if (authz.startsWith(\"Basic \")) {\n BasicHttpTaf bht = ((X509Principal)p).getBasicHttpTaf();\n if (bht!=null) {\n BasicPrincipal bp = new BasicPrincipal(authz,\"\");\n CredVal cv = bht.getCredVal(bp.getDomain());\n if (cv!=null) {\n if (cv.validate(bp.getName(), Type.PASSWORD, bp.getCred(), null) ) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n resp.setStatus(HttpStatus.UNAUTHORIZED_401);\n }\n }\n } else {\n String decoded = Symm.base64noSplit.decode(authz.substring(6));\n int colon = decoded.indexOf(':');\n TimeTaken tt = trans.start(\"Direct Validation\", Env.REMOTE);\n try {\n if (directAAFUserPass.validate(\n decoded.substring(0,colon),\n CredVal.Type.PASSWORD ,\n decoded.substring(colon+1).getBytes(),trans)) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // DME2 at this version crashes without some sort of response\n resp.getOutputStream().print(\"\");\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n } finally {\n tt.done();\n }\n }\n }\n } else if (p == null) {\n trans.error().log(\"Transaction not Authenticated... no Principal\");\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n } else {\n trans.checkpoint(\"Basic Auth Check Failed: This wasn't a Basic Auth Trans\");\n // For Auth Security questions, we don't give any info to client on why failed\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n }\n },\"text/plain\",\"*/*\",\"*\");\n\n /**\n * returns whether a given Credential is valid\n */\n authzAPI.route(POST, \"/authn/validate\", API.CRED_REQ, new Code(facade,\"Is given Credential valid?\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n // will be a valid Entity. Do we need to add permission\n //if(trans.fish(\"ns\",\"password\",\"request\")) or the like\n Result<Date> r = context.doesCredentialMatch(trans, req, resp);\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n // Can't do \"401\", because that is on the call itself\n // 403 Implies you MAY NOT Ask.\n resp.setStatus(HttpStatus.NOT_ACCEPTABLE_406);\n }\n }\n });\n\n /**\n * returns whether a given Credential is valid\n */\n authzAPI.route(GET, \"/authn/cert/id/:id\", API.CERTS, new Code(facade,\"Get Cert Info by ID\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n\n Result<Void> r = context.getCertInfoByID(trans, req, resp, pathParam(req,\":id\") );\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n }\n });\n\n\n\n\n }",
"public void handlePost( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n // the web client wants to submit a log in request\n case \"/log-in\":\n // get the body of the HttpExchange\n String body = getBody(exchange);\n print(\"BODY: \\n\" + body);\n if ( body.equals(\"-1\") == true) { // if the body is empty\n sendResponse(exchange, new byte[0], 204);\n // HTTP Response code 204 - no content\n } else {\n\n String[] content = body.split(\"&\");\n //pos 0 : username=<content>; pos 1 : password=<content>; pos 2 : <submit type>\n\n String username = content[0].split(\"=\")[1];\n String password = content[1].split(\"=\")[1];\n\n //check database\n if( username.equals(\"james\") && password.equals(\"123\")) {\n print(\"Username and Password Match\");\n sendResponse(exchange, getHTMLPage(\"/home.html\"), 200); // this will be changed to a redirect notice\n // set client as logged in\n logged_in = true;\n\n// sendResponse(exchange, getPanel(exchange, \"home.html\"), 200);\n } else {\n sendResponse(exchange, new byte[0], 406);\n // send HTTP Response code 406 - Not acceptable\n }\n }\n\n break;\n case \"/home\":\n\n default:\n print(\"Body:\");\n print( getBody(exchange) );\n sendResponse(exchange, htmlBuilder( \"Not Implemented\", \"Http Error 501: Not Implemented\").getBytes(), 501);\n break;\n }\n // got body response .. check form sending to - if form is login then get username and password combo\n }",
"public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }",
"final public boolean requiresAuthentication()\r\n {\r\n return requires_AUT;\r\n }",
"public void verificarRol() throws IOException {\n\t\tif (FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"email\") != null) {\n\t\t\tObject rol = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"rol\");\n\n\t\t\tif ((Integer) rol != 1) {\n\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"home.xhtml\");\n\t\t\t} else {\n\t\t\t\t// System.out.println(\"sin permisos\");\n\t\t\t}\n\t\t}\n\t}",
"public interface Authentication extends Component {\n /**\n * Given an incoming HTTP request, determine who the user is and create a UserPermissions object with that\n * information. If the user cannot be identified and/or authenticated, don't set those attributes and throw an\n * exception. Otherwise return a UserPermissions object.\n */\n UserPermissions authenticate (Request request);\n}",
"public boolean handleRequest(Message message, ClassResourceInfo resourceInfo) {\n\n if (logger.isDebugEnabled()) {\n logger.debug(String.format(\"Authenticating request: \" + message.getId()));\n }\n AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);\n if (policy == null) {\n logger.error(\"Authentication failed: Basic authentication header is missing\");\n return false;\n }\n Object certObject = null;\n String username = StringUtils.trim(policy.getUserName());\n if (StringUtils.isEmpty(username)) {\n logger.error(\"Username cannot be null/empty.\");\n return false;\n }\n return isUserPermitted(username, (String) message.get(Message.REQUEST_URI),\n (String) message.get(Message.HTTP_REQUEST_METHOD), null);\n }",
"@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody.split(\"&\");\n String username = usernameAndPassword[0].substring(9);\n String password = usernameAndPassword[1].substring(9);\n LoginDAO loginDAO = new LoginDAO();\n JsonCredential credential = loginDAO.login(username,password);\n if(credential == null) {\n // send invalid login response\n log.info(\"LoginServlet, Invalid Username/Password\");\n String invalidLoginURL = String.format(\"%s/\", req.getContextPath());\n resp.setStatus(401);\n }\n else{\n // login user, maybe with a redirect\n String credentialAsString = credential.makeJsonString();\n if(!credentialAsString.equals(\"\")) {\n // encoding prevents issue where Tomcat sees Cookie as invalid\n credentialAsString = URLEncoder.encode(credentialAsString,\"UTF-8\");\n Cookie cookie = new Cookie(\"expenseapp_authenticationcookie\",credentialAsString);\n cookie.setMaxAge(1200000); //roughly 2 weeks before expiration\n if(credential.getPermissionName().equals(\"Employee\")) {\n resp.addCookie(cookie);\n String employeeHomeScreen = String.format(\"%s/employeehomescreen.html\", req.getContextPath());\n resp.sendRedirect(employeeHomeScreen);\n }\n else if(credential.getPermissionName().equals(\"Manager\")) {\n resp.addCookie(cookie);\n String managerHomeScreen = String.format(\"%s/managerhomescreen.html\", req.getContextPath());\n resp.sendRedirect(managerHomeScreen);\n }\n else{\n log.error(\"LoginServlet, Invalid Permission Name - 500 error\");\n resp.setStatus(500);\n String errorUrl = String.format(\"%s/500Error.html\", req.getContextPath());\n req.getRequestDispatcher(errorUrl).forward(req,resp);\n }\n }\n }\n\n }",
"@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}",
"@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (request.getParameter(\"loginAttempt\") != null) {\n PrintWriter out = response.getWriter();\n //Check to see there is a username and password in case of corruption.\n if (request.getParameter(\"username\") != null && request.getParameter(\"password\") != null) {\n //Grab each\n String username = request.getParameter(\"username\");\n String password = request.getParameter(\"password\");\n\n try {\n //Always assume the worst.\n boolean exists = false;\n //Check to see if the user is valid\n String sql = \"SELECT * FROM admin\";\n String userName = username;\n PreparedStatement stmt = conn.prepareStatement(sql);\n\n rs = stmt.executeQuery();\n //Execute the query.\n while (rs.next()) {\n //Compare the username and password input to the database version.\n if (BCrypt.checkpw(password, rs.getString(\"password\")) && BCrypt.checkpw(userName, rs.getString(\"username\"))) {\n //There is a user!\n exists = true;\n \n }\n }\n //user is validated here\n if (exists == true) {\n //Create a key for the user to gain permission to index.jsp\n Cookie validateAdmin = new Cookie(\"validated\", \"true\");\n //Logs out after one hour.\n //This is just an autolog out feature. The user only needs to shut the window and it'll log itself out\n validateAdmin.setMaxAge(60 * 60 * 1);\n //Add the cookie\n response.addCookie(validateAdmin);\n //Send the user to index.jsp\n /*\n NOTE: If the server does not use virtual hosts or SSL you only need request.getContextPath()\n for some odd reason if you are using VH's and SSL you need request.getContextPath() + \"/\"\n + request.getContextPath()\n */\n response.sendRedirect(request.getContextPath());\n\n //If the user is not valid, send them an error page.\n } else {\n String logonTable = \"<html>\\n\"\n + \" <head>\\n\"\n + \" <title>Log into Admin Portal</title>\\n\"\n + \" <meta charset=\\\"UTF-8\\\">\\n\"\n + \" <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\\n\"\n + \" <link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"css/loginStyle.css\\\" />\\n\"\n + \" </head>\\n\"\n + \" <body>\\n\"\n + \" <h1> Administrator Log In</h1>\\n\"\n + \" <h1> Bad password!</h1>\\n\"\n + \" <div class='left'></div>\\n\"\n + \" <div class='right'></div>\\n\"\n + \" <div class=\\\"SignIn fadeInRight\\\">\\n\"\n + \"\\n\"\n + \" <form action='LoginAdmin' method='POST'>\\n\"\n + \" <h2 style='padding-left: 175px;'> name</h2> \\n\"\n + \" <label>\\n\"\n + \" <input type='text' name='username'/>\\n\"\n + \" </label>\\n\"\n + \" <br>\\n\"\n + \" <h2 style='padding-left: 160px;'>password</h2> \\n\"\n + \" <label>\\n\"\n + \" <input type='password' name='password'/> \\n\"\n + \" </label>\\n\"\n + \" <label>\\n\"\n + \" <input type='hidden' name='loginAttempt' value ='loginAttempt'/>\\n\"\n + \" </label>\\n\"\n + \" <br><br>\\n\"\n + \" <div class='submit'>\\n\"\n + \" <input type='submit' />\\n\"\n + \" </div>\\n\"\n + \"\\n\"\n + \" </form>\\n\"\n + \" </div>\\n\"\n + \"\\n\"\n + \"\\n\"\n + \" </body>\\n\"\n + \"</html>\";\n out.println(logonTable);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n //If there no parameters something weird happened, send them to doGet to resolve it.\n } else {\n doGet(request, response);\n }\n }",
"private void initForWritableEndpoints(UserGroupInformation callerUGI,\n boolean doAdminACLsCheck) throws AuthorizationException {\n // clear content type\n response.setContentType(null);\n\n if (callerUGI == null) {\n String msg = \"Unable to obtain user name, user not authenticated\";\n throw new AuthorizationException(msg);\n }\n\n if (UserGroupInformation.isSecurityEnabled() && isStaticUser(callerUGI)) {\n String msg = \"The default static user cannot carry out this operation.\";\n throw new ForbiddenException(msg);\n }\n\n if (doAdminACLsCheck) {\n ApplicationACLsManager aclsManager = rm.getApplicationACLsManager();\n if (aclsManager.areACLsEnabled()) {\n if (!aclsManager.isAdmin(callerUGI)) {\n String msg = \"Only admins can carry out this operation.\";\n throw new ForbiddenException(msg);\n }\n }\n }\n }",
"private String getAuthenticatedUser(HttpServletRequest request) throws ServletException, EappException {\n ProxyTicketValidator pv = new ProxyTicketValidator();\n pv.setCasValidateUrl(casValidate);\n pv.setServiceTicket(request.getParameter(\"ticket\"));\n pv.setService(getService(request));\n pv.setRenew(casRenew);\n if (casProxyCallbackUrl != null) {\n pv.setProxyCallbackUrl(casProxyCallbackUrl);\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n try {\n pv.validate();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n throw new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n \tthrow new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n \n \n if (pv.getUser() == null \n \t\t|| pv.getProxyList() == null \n \t\t|| (casRenew && !pv.getProxyList().isEmpty())) {\n \tthrow new EappException(\"Validation of [\" + pv + \"] did not result in an internally consistent CASReceipt.\");\n }\n \n if (!pv.getProxyList().isEmpty()) {\n // ticket was proxied\n if (authorizedProxies.isEmpty()) {\n throw new ServletException(\"this page does not accept proxied tickets\");\n }\n \n String proxy = (String)pv.getProxyList().get(0);\n if (!authorizedProxies.contains(proxy)) {\n \tthrow new ServletException(\"unauthorized top-level proxy: '\" + pv.getProxyList().get(0) + \"'\");\n }\n }\n \n return pv.getUser();\n }",
"public String doLogin() throws ServletException, IOException {\r\n\r\n\t\tExternalContext context = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext();\r\n\t\tcontext.getSessionMap().put(\"messageSpring\", null);\r\n\t\tcontext.getSessionMap().put(\"SPRING_SECURITY_LAST_EXCEPTION\", null);\r\n\r\n\t\tRequestDispatcher dispatcher = ((ServletRequest) context.getRequest())\r\n\t\t\t\t.getRequestDispatcher(\"/j_spring_security_check\");\r\n\r\n\t\tdispatcher.forward((ServletRequest) context.getRequest(),\r\n\t\t\t\t(ServletResponse) context.getResponse());\r\n\r\n\t\tFacesContext.getCurrentInstance().responseComplete();\r\n\t\tutilisateur = loginBusiness.findUser(username);\r\n\r\n\t\treturn null;\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{\n String usuarioOk = \"Martin\";\r\n String passwordOk = \"123\";\r\n \r\n String usuario = request.getParameter(\"usuario\");\r\n String password = request.getParameter(\"password\");\r\n \r\n PrintWriter out = response.getWriter();\r\n if(usuarioOk.equals(usuario) && passwordOk.equals(password)){\r\n out.print(\"<h1>\");\r\n out.print(\"Datos correctos\");\r\n out.print(\"<br> Usuario: \" + usuario);\r\n out.print(\"<br> Password: \" + password);\r\n out.print(\"</h1>\");\r\n \r\n }else {\r\n response.sendError(response.SC_UNAUTHORIZED, \"Las credenciales son incorrectas\");\r\n }\r\n out.close();\r\n }",
"private boolean canUserLoadSponsorForms() throws CoeusUIException{\r\n boolean hasFormLoadRight = false;\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setFunctionType(HAS_FORM_LOAD_RIGHTS);\r\n requesterBean.setDataObject(hierarchyName);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(connect,requesterBean);\r\n comm.send();\r\n ResponderBean responderBean = comm.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse() && responderBean.getDataObject() != null) {\r\n hasFormLoadRight = ((Boolean)responderBean.getDataObject()).booleanValue();\r\n }\r\n }else {\r\n throw new CoeusUIException(coeusMessageResources.parseMessageKey(\"coeusApplet_exceptionCode.1147\"));\r\n }\r\n return hasFormLoadRight;\r\n }",
"void checkPermission(T request) throws AuthorizationException;",
"@Override\n public boolean shouldApply(HttpServletRequest httpServletRequest) {\n boolean shouldApply = false;\n\n if (jwtProperties != null) {\n String serializedJWT = getJWTFromCookie(httpServletRequest);\n shouldApply = (serializedJWT != null && isAuthenticationRequired(serializedJWT));\n }\n\n return shouldApply;\n }",
"public RequestState process(HttpServletRequest servletRequest, HttpServletResponse servletResponse)\n\tthrows ASelectException\n\t{\n\t\tString sMethod = \"process\";\n\t\tString sPathInfo = servletRequest.getPathInfo();\n\n\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"Path=\" + sPathInfo);\n\t\tHandlerTools.logCookies(servletRequest, _systemLogger);\n\n\t\tif (sPathInfo.endsWith(RETURN_SUFFIX)) {\n\t\t\treturn processReturn(servletRequest, servletResponse);\n\t\t}\n\n\t\tString sPwa = servletRequest.getParameter(\"wa\"); // action\n\t\tString sPwreply = servletRequest.getParameter(\"wreply\"); // response redirect URL, nog given by ADFS!\n\t\tString sPwctx = servletRequest.getParameter(\"wctx\"); // context value, pass unchanged\n\t\t// String sPwct = request.getParameter(\"wct\"); // current time\n\t\tString sPwtrealm = servletRequest.getParameter(\"wtrealm\"); // requesting realm (resource accessed)\n\t\tString sPwhr = servletRequest.getParameter(\"whr\"); // requestor's home realm (account partner's client realm)\n\t\t\n\t\tString sPwauth = servletRequest.getParameter(\"wauth\"); // authentication method, will be (mis)used to select app_id which then determines authentication method\n\t\t\n\t\t\n\n\t\tif (sPwa != null && sPwa.equals(\"wsignout1.0\"))\n\t\t\treturn processSignout(servletRequest, servletResponse);\n\n\t\tif (sPwa == null || !sPwa.equals(\"wsignin1.0\")) {\n\t\t\t_systemLogger.log(Level.SEVERE, MODULE, sMethod, \"Unknown or missing \\\"wa\\\" in call\");\n\t\t\tthrow new ASelectException(Errors.ERROR_ASELECT_SERVER_INVALID_REQUEST);\n\t\t}\n\n\t\t// If we don't know the realm, kick them out\n\t\tif (sPwtrealm == null || !_htSP_LoginReturn.containsKey(sPwtrealm)) {\n\t\t\t_systemLogger.log(Level.SEVERE, MODULE, sMethod, \"Unknown or missing \\\"wtrealm\\\" in call\");\n\t\t\tthrow new ASelectException(Errors.ERROR_ASELECT_SERVER_INVALID_REQUEST);\n\t\t}\n\t\t\n\t\t// If wctx doesn't match the required pattern, kick them out\n//\t\tif ( !((Pattern)_htSP_wctxregex.get(sPwtrealm)).matcher(sPwctx).matches()) {\t// RH, 20141031, o\n\t\tif ( sPwctx != null && !((Pattern)_htSP_wctxregex.get(sPwtrealm)).matcher(sPwctx).matches()) {\t// RH, 20141031, n\n\t\t\t_systemLogger.log(Level.SEVERE, MODULE, sMethod, \"wctx doesn't match pattern for realm: \" + sPwtrealm);\n\t\t\tthrow new ASelectException(Errors.ERROR_ASELECT_SERVER_INVALID_REQUEST);\n\t\t}\n\n\t\tString sReply = (String) _htSP_LoginReturn.get(sPwtrealm);\n\t\t// ADFS does not pass a 'wreply' parameter!!\n\t\tif (sPwreply == null) {\n\t\t\tsPwreply = sReply; // _sDefaultWreply; // \"https://adfsresource.treyresearch.net/adfs/ls\";\n\t\t\t_systemLogger.log(Level.WARNING, MODULE, sMethod, \"No 'wreply' parameter in request, using: \" + sPwreply);\n\t\t}\n\n\t\t_systemLogger.log(Level.FINER, MODULE, sMethod, \"wsfed_ap PATH=\" + servletRequest.getPathInfo() + \" \"\n\t\t\t\t+ servletRequest.getMethod() + \" \" + servletRequest.getQueryString());\n\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"wsfed_ap PATH=\" + servletRequest.getPathInfo() + \" \"\n\t\t\t\t+ servletRequest.getMethod() + \" \" + servletRequest.getQueryString());\n\n\t\tHashMap htSessionData = new HashMap();\n\t\tif (sPwtrealm != null)\n\t\t\thtSessionData.put(\"wtrealm\", sPwtrealm);\n\t\tif (sPwreply != null)\n\t\t\thtSessionData.put(\"wreply\", sPwreply);\n\t\tif (sPwctx != null)\n\t\t\thtSessionData.put(\"wctx\", sPwctx);\n\n\t\t// Look for a possible TGT\n\t\tString sTgt = getCredentialsFromCookie(servletRequest);\n\t\tif (sTgt != null) {\n\t\t\tHashMap htTGTContext = getContextFromTgt(sTgt, true); // Check expiration\n\t\t\tif (htTGTContext != null) {\n\t\t\t\t// Valid TGT context found, Update TGT timestamp\n\t\t\t\t_oTGTManager.updateTGT(sTgt, htTGTContext);\n\t\t\t\t// Return to the caller\n\t\t\t\tString sUid = (String) htTGTContext.get(\"uid\");\n\t\t\t\tHashMap htAllAttributes = getAttributesFromTgtAndGatherer(htTGTContext);\n\t\t\t\treturn postRequestorToken(servletRequest, servletResponse, sUid, htSessionData, htAllAttributes);\n\t\t\t}\n\t\t}\n\t\tString sASelectURL = _sServerUrl;\n\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"Start Authenticate\");\n\n\t\t// RH, 20141014, so\n//\t\tHashMap<String, Object> htResponse = performAuthenticateRequest(sASelectURL, sPathInfo, RETURN_SUFFIX,\n//\t\t\t\t\t_sMyAppId, false/*don't check signature*/, _oClientCommunicator);\n\t\t// RH, 20141014, eo\n\n\t\t// RH, 20141014, sn\n\t\tString sMappedAppId = _sMyAppId;\t// _sMyAppId becomes default\n\t\tif (_htWauthMapping.size() > 0 && sPwauth != null && !\"\".equals(sPwauth) ) {\t// do we have at least one mapping defined and is there a mapping query parm\n\t\t\tString s = (String)_htWauthMapping.get(sPwauth);\n\t\t\tif (s != null ) {\t// we found a mapping\n\t\t\t\tsMappedAppId = s;\n\t\t\t}\n\t\t}\n\t\tHashMap<String, Object> htResponse = performAuthenticateRequest(sASelectURL, sPathInfo, RETURN_SUFFIX,\n\t\t\t\tsMappedAppId, false/*don't check signature*/, _oClientCommunicator);\n\t\t// RH, 20141014, en\n\n\t\t\n\t\tString sRid = (String) htResponse.get(\"rid\"); // rid for the newly generated session\n\t\t_htSessionContext = (HashMap)htResponse.get(\"session\");\n\t\t\n\t\t// We need this stuff when we come back. Store as an additional session record\n\t\t_htSessionContext = storeSessionDataWithRid(servletResponse, htSessionData, _htSessionContext, SESSION_ID_PREFIX, sRid);\n\n\t\t// Let the user get himself identified\n\t\tString sActionUrl = sASelectURL + _sIstsUrl;\n\t\tString sReplyTo = sASelectURL + sPathInfo + RETURN_SUFFIX;\n\t\t_systemLogger.log(Level.INFO, MODULE, sMethod, \"Form ActionUrl=\" + sActionUrl);\n\t\thandleShowForm(_sTemplate, sPwhr, sActionUrl, sPwctx, sReplyTo, Tools.samlCurrentTime(),\n\t\t\t\t\t\tsASelectURL, sRid, _sASelectServerID, servletRequest, servletResponse);\n\n\t\treturn new RequestState(null);\n\t}",
"public interface AuthorizationInterface {\n\n void init(Properties properties);\n\n HashMap<String,String> health(Properties properties);\n\n /**\n * returns an OAuth 2.0-like JSON string or null\n *\n * @param scope\n * @param username\n * @param password\n * @return\n * @throws AuthorizationException\n */\n String getToken(String scope, String username, String password) throws AuthorizationException;\n\n boolean isTokenValid(HttpServletResponse httpServletResponse, String service, String patronid, String access_token) throws AuthorizationException;\n\n boolean revokeToken(String token) throws AuthorizationException;\n\n String getAuthCookies(Cookie[] cookies) throws AuthorizationException;\n}",
"@Test\n public void testWebAuthnIDLessWithNonResidentCredentialLogin() throws IOException {\n\n configureUser(username, false, true, true);\n initializeAuthenticator(false, true, true, true);\n setWebAuthnRealmSettings(false, false, false, true);\n\n // Trigger webauthn-passwordless (non resident key setup)\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String credentialId = usernamePasswordAuthWithAuthSetup(username, true, false);\n\n setUpIDLessOnlyFlow(\"idless-only-flow\");\n idlessAuthentication(username, credentialId, false, false);\n\n }",
"protected boolean doAuthenticate(String password, String challenge)\r\n {\r\n return digest(MD5, challenge).equals(password);\r\n }",
"private boolean authenticate(HttpServletRequest request, RouteAction route) {\n\t\tHttpSession session = request.getSession(false);\n\t\tif (session == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\n\t}",
"UserPermissions authenticate (Request request);",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@Test\n\tpublic void testUpdateActionIsNotPerformedWhenPermissionInheritedAndUserNotAuthenticated()\n\t\t\tthrows Throwable {\n\t\tcheck(getNonAuthenticatedUser(), HttpStatus.SC_UNAUTHORIZED);\n\t}",
"private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }",
"public boolean executeSysadmAuth (java.lang.String act_typ, \n java.lang.String auth_opr_cde, \n java.lang.String in_opr_cde, \n java.lang.String in_dpt_cde) throws com.mcip.orb.CoException {\n return this._delegate.executeSysadmAuth(act_typ, auth_opr_cde, in_opr_cde, \n in_dpt_cde);\n }",
"private SMTP checkAuth(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString auth = request.getHeader(\"Authorization\");\n\t\t\n\t\tif (auth == null) {\n\t\t\tsend(response, 401, \"Authorisation Needed\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\t\n\t\tString[] creds = auth.split(\" \");\n\t\tif (!creds[0].equalsIgnoreCase(\"Basic\")) {\n\t\t\tsend(response, 501, \"Only Basic authentication is available - \" + creds[0] + \" is not acceptable\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcreds[1] = new String(Base64.decode(creds[1]));\n\t\t} catch (Base64DecodingException e) {\n\t\t\tsend(response, 400, \"invalid base64 in authorization header\");\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tint split = creds[1].indexOf(\":\");\n\t\t\tif (split == -1) {\n\t\t\t\tsend(response, 400, \"malformed authorization header (missing colon)\");\n\t\t\t}\n\t\t\tSMTP a = new SMTP(getSettings(creds[1].substring(0, split),\n\t\t\t\t\t \t\t\t creds[1].substring(split + 1)));\n\t\t\treturn a;\n\t\t} catch (AuthenticationFailedException e) {\n\t\t\tsend(response, 401, \"Authentication Failed\");\n\t\t} catch (MessagingException e ) {\n\t\t\tsend(response, 500, \"Internal Server error\");\n\t\t}\n\t\treturn null;\n\t}"
]
| [
"0.5989833",
"0.54423094",
"0.5306117",
"0.51585865",
"0.50628424",
"0.5030552",
"0.49938327",
"0.49629533",
"0.4962585",
"0.4947487",
"0.49134013",
"0.49116394",
"0.4899277",
"0.48882508",
"0.48858747",
"0.4861957",
"0.4854777",
"0.4848985",
"0.4848406",
"0.4843432",
"0.48401147",
"0.47970033",
"0.47807902",
"0.47501448",
"0.4746906",
"0.47271803",
"0.4726144",
"0.47120965",
"0.4702954",
"0.47008193",
"0.4694345",
"0.469397",
"0.46750307",
"0.46709663",
"0.46554625",
"0.46515083",
"0.4650764",
"0.4646997",
"0.4640096",
"0.46383175",
"0.4632461",
"0.46276695",
"0.46266326",
"0.4624162",
"0.46240082",
"0.46197417",
"0.46144786",
"0.46116614",
"0.46042404",
"0.4598931",
"0.45930323",
"0.45858416",
"0.45839977",
"0.457457",
"0.45539358",
"0.45512742",
"0.45510295",
"0.45483014",
"0.45477998",
"0.4541914",
"0.45212716",
"0.45199725",
"0.4516569",
"0.4516063",
"0.45135593",
"0.45077604",
"0.45012596",
"0.44988716",
"0.4498701",
"0.4498656",
"0.44927633",
"0.4492199",
"0.4489545",
"0.4489525",
"0.4486211",
"0.4483715",
"0.44816202",
"0.44781113",
"0.44779298",
"0.44764993",
"0.4474949",
"0.44721466",
"0.4462813",
"0.4460992",
"0.4459989",
"0.44538835",
"0.44507718",
"0.44484004",
"0.44473335",
"0.44456315",
"0.44361472",
"0.44357494",
"0.4431817",
"0.44313028",
"0.4431021",
"0.44274604",
"0.4417091",
"0.44154757",
"0.441337",
"0.44124627"
]
| 0.6064718 | 0 |
Every time RestAdapter is called, access token is added to header of the request | @Override
public void intercept(RequestFacade request) {
// Add the access_token that we previously obtained to this request as
// the "Authorization" header.
request.addHeader("Authorization", "Bearer " + accessToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }",
"@Override\n public Response intercept(Chain chain) throws IOException {\n Request authorisedRequest = chain.request().newBuilder()\n .header(\"Authorization:\", \"Token \" + sharedPrefsWrapper.getString(KEY))\n .build();\n\n\n return chain.proceed(authorisedRequest);\n }",
"@Override\n\t\tpublic void injectToken(RequestFacade facade, String token) {\n\t\t\tfacade.addHeader(\"Authorization\", \"token \" + token);\n\t\t}",
"@Override\n public void intercept(RequestFacade request) {\n String string = \"Basic \" + Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);\n request.addHeader(\"Authorization\", string);\n request.addHeader(\"Accept\", \"application/json\");\n }",
"@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n if ((mCredentials != null) && (mCredentials.accessToken != null)) {\n request.addEncodedQueryParam(PARAM_ACCESS_TOKEN, mCredentials.accessToken);\n }\n }",
"void setOAuthAccessToken(AccessToken accessToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = LogInActivity.token;\n headers.put(\"Authorization\", \"bearer \"+ token);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }",
"public void setToken(){\n token=null;\n try {\n OkHttpClient client = new OkHttpClient();\n RequestBody reqbody = RequestBody.create(null, new byte[0]); \n Request request = new Request.Builder()\n .url(\"https://api.mercadolibre.com/oauth/token?grant_type=client_credentials&client_id=\"+clienteID +\"&client_secret=\"+secretKey)\n .post(reqbody)\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"cache-control\", \"no-cache\")\n .addHeader(\"postman-token\", \"67053bf3-5397-e19a-89ad-dfb1903d50c4\")\n .build();\n \n Response response = client.newCall(request).execute();\n String respuesta=response.body().string();\n token=respuesta.substring(respuesta.indexOf(\"APP\"),respuesta.indexOf(\",\")-1);\n System.out.println(token);\n } catch (IOException ex) {\n Logger.getLogger(MercadoLibreAPI.class.getName()).log(Level.SEVERE, null, ex);\n token=null;\n }\n }",
"static public void addToken(HttpServletResponse res, Authentication auth) {\n\t\tUser currentUser = (User)auth.getPrincipal();\n\t\tString currentUserId = currentUser.getId().toString();\n\t\t\n\t\tString JwtToken = Jwts.builder().setSubject(currentUserId)\n\t\t\t\t.setExpiration(new Date(System.currentTimeMillis()\n\t\t\t\t\t\t+ EXPIRATIONTIME))\n\t\t\t\t.signWith(SignatureAlgorithm.HS512, SIGNINGKEY)\n\t\t\t\t.compact();\n\t\t\n\t\tres.addHeader(\"Authorization\", PREFIX + \" \" + JwtToken);\n\t\tres.addHeader(\"Access-Control-Expose-Headers\", \"Authorization\");\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\r\n public void intercept(RequestFacade p_RequestFacade) {\r\n p_RequestFacade.addHeader(\r\n Rest.ACCEPT,\r\n Rest.APPLICATION_JSON\r\n );\r\n p_RequestFacade.addHeader(\r\n Rest.AUTHORIZATION,\r\n Rest.BASIC.\r\n concat(Punctuation.SPACE).\r\n concat(chipperAuth)\r\n );\r\n p_RequestFacade.addHeader(\r\n Rest.CONTENT_TYPE,\r\n Rest.APPLICATION_JSON\r\n );\r\n }",
"private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }",
"void setAccessToken(String accessToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"public List<Header> nextHeader(JSONResponse response){\n\t\tList<Header> headers = getHeaders();\n if(response.token == null){\n return headers;\n } else {\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + response.token));\n return headers;\n }\n }",
"@Override\n\t\tpublic void intercept(RequestInterceptor.RequestFacade request) {\n\t\t\trequest.addQueryParam(\"key\", mKey);\n\n\t\t\t// We need to use token for auth, since user might change password, then token is invalidated and user needs to log in again\n\t\t\t// For creating user, the endpoint can ignore Authorization\n\t\t\t//Assert.assertFalse(TextUtils.isEmpty(mToken));\n\t\t\trequest.addHeader(\"Username\", mAccountUtils.getUsername());\n\t\t\trequest.addHeader(\"Authorization\", mAccountUtils.getToken());\n\t\t\trequest.addHeader(\"User-Agent\", \"gzip\");\n\t\t\trequest.addHeader(\"Accept-Encoding\", \"gzip\");\n\t\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(Keys.Authorization,\"Bearer \"+TripManagement.readValueFromPreferences(getActivity(),\"accesstoken\",\"\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = sharedPreferences.getString(\"token\", \"\");\n String auth = \"Bearer \" + token;\n headers.put(\"Authorization\", auth);\n return headers;\n }",
"public void storeToken(AuthorizationToken token);",
"private String getToken(HttpServletRequest request){\n String header = request.getHeader(\"Authorization\");\n if(header != null && header.startsWith(\"Bearer\"))\n \t// Sacamos al bearer del token\n return header.replace(\"Bearer \", \"\");\n return null;\n }",
"AuthenticationToken renewAuthentication(String headerToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> header = new HashMap<String, String>();\n //header.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n header.put(\"Authorization\", \"Bearer \"+LoginMedico.ACCESS_TOKEN);\n return header;\n }",
"@Override\n public void onObtained(HttpURLConnection connection) {\n\n String clientId = getClientId();\n String clientSecret = getClientSecret();\n\n String header = \"Basic \" + IoUtils.base64(clientId + \":\" + clientSecret, Charsets.ASCII);\n connection.setRequestProperty(OAuthClient.AUTHORIZATION, header);\n }",
"public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\");\n params.put(\"Authorization\", \"Bearer \" +accessToken);\n return params;\n }",
"public interface RestClientService {\n\n void setToken(String mToken);\n\n}",
"OAuth2Token getToken();",
"private static HashMap<String, String> getHeaderWithAccessToken(\n final String accessToken)\n {\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", String.format(\"SSO %s\", accessToken));\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public void onTokenRefresh() {\n }",
"@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}",
"private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n sharedpreferences.getString(SharedPrefUtils.SpPassword, \"\")), new Callback<loginresp>() {\n @Override\n public void success(loginresp loginresp, Response response) {\n\n if (loginresp.getStatus().equals(\"200\")){\n\n editor.putString(SharedPrefUtils.SpRememberToken,loginresp.getToken().toString());\n editor.commit();\n\n final Handler handler = new Handler();\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n wbService(tmpansList);\n progressBar.setVisibility(View.INVISIBLE);\n }\n };\n handler.postDelayed(runnable, 500);\n\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n progressBar.setVisibility(View.INVISIBLE);\n Log.d(\"refresh token\", \"refresh token error\");\n Toast.makeText(FeedActivity.this, \"Service not response\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n });\n\n }",
"public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOauth_tokenTracker = true;\r\n } else {\r\n localOauth_tokenTracker = false;\r\n \r\n }\r\n \r\n this.localOauth_token=param;\r\n \r\n\r\n }",
"public void generateRequestToken(OAuthAccessor accessor)\n throws OAuthException {\n\n // generate oauth_token and oauth_secret\n String consumer_key = accessor.consumer.consumerKey;\n // generate token and secret based on consumer_key\n\n // for now use md5 of name + current time as token\n String token_data = consumer_key + System.nanoTime();\n \n String token = StringPool.BLANK;\n try {\n token = Digester.MD5(token_data);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(OAuthManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n // for now use md5 of name + current time + token as secret\n String secret_data = consumer_key + System.nanoTime() + token;\n String secret = StringPool.BLANK;\n try {\n secret = Digester.MD5(secret_data);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(OAuthManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n accessor.requestToken = token;\n accessor.tokenSecret = secret;\n accessor.accessToken = null;\n\n // add to the local cache\n addAccessor(accessor);\n }",
"ResponseEntity<Response> me(String token);",
"@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }",
"public interface AuthAPIService {\n\n @FormUrlEncoded\n @POST(\"/oauth/token\")\n public Observable<Tokens> getAccessTokensObs(@Field(\"grant_type\") String grantType,\n @Field(\"scope\") String manageProject,\n @Header(\"Authorization\") String authHeader);\n\n}",
"private void allowForRefreshToken(ApplicationUser user, HttpServletRequest request) {\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n null, null, null);\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n request.setAttribute(\"user\", user);\n }",
"public static void setAccessToken(String accessToken) {\n }",
"@Test\n public void testRefreshToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .refreshToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"private static void attachAuthentication(HttpURLConnection connection) {\n connection.setRequestProperty(\"Authorization\", \"Bearer \" + Repository.ACCESS_TOKEN);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }",
"@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }",
"@Override\n public void onResponse(String response) {\n\n try {\n\n SharedPreferences.Editor editor = prefs.edit();\n JSONObject data= new JSONObject(response);\n String token = data.getString(\"access_token\");\n editor.putString(\"token\", token);\n\n getDatosUser(usuario,token);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"public Object token(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthTokenRequest oauthRequest = new OAuthTokenRequest(request);\n String authCode = oauthRequest.getParam(OAuth.OAUTH_CODE);\n\n // get from cache\n OAuthAuthzParameters oAuthAuthzParameters = oAuthService.getOAuthAuthzParameters(authCode);\n if (oAuthAuthzParameters == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CODE))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_AUTHORIZATION_CODE)\n .buildJSONMessage();\n logger.info(\"no cache for {}\", authCode);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!oAuthAuthzParameters.getClientId().equals(oauthRequest.getClientId())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid client id {}, context: {}\", oauthRequest.getClientId(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client id\n Client openOauthClients = oAuthService.getClientByClientId(oauthRequest.getClientId());\n if (openOauthClients == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!openOauthClients.getGrantTypes().contains(Constants.OAUTH_AUTHORIZATION_CODE)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client secret\n if (!openOauthClients.getClientSecret().equals(oauthRequest.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", openOauthClients.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check redirect url\n if (!oAuthAuthzParameters.getRedirectUri().equals(oauthRequest.getRedirectURI())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_REDIRECT_URI)\n .buildJSONMessage();\n logger.info(\"invalid redirect url {}, context: {}\", oauthRequest.getRedirectURI(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // build response\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n String refreshToken = oauthIssuerImpl.refreshToken();\n\n /**\n * limit client access token number\n */\n int limitNum = openOauthClients.getClientNum();\n limitNum = limitNum > 0 ? limitNum - 1 : limitNum;\n oAuthService.limitAccessToken(oAuthAuthzParameters.getClientId(),\n oAuthAuthzParameters.getUserId(), limitNum);\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n oAuthService.saveRefreshToken(refreshToken, accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setRefreshToken(refreshToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n\n //remove the code from cache\n oAuthService.delOAuthAuthzParameters(authCode);\n\n logger.info(\"response access toke {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n OAuthResponse res = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n return new ResponseEntity<String>(res.getBody(), HttpStatus.valueOf(res.getResponseStatus()));\n }\n\n }",
"private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }",
"void makeAuthorizationRequest(OnAuthCompleteListener onAuthCompleteListener);",
"@GetMapping(value = \"/token/refresh\")\n public void refreshToken (HttpServletRequest request, HttpServletResponse response) throws IOException {\n String authorizationHeader = request.getHeader(AUTHORIZATION);\n if(authorizationHeader!=null && authorizationHeader.startsWith(\"Bearer \")){\n\n try {\n String refreshToken = authorizationHeader.substring(\"Bearer \".length());\n Algorithm algorithm = Algorithm.HMAC256(\"secret\".getBytes());\n JWTVerifier verifier = JWT.require(algorithm).build();\n DecodedJWT decodedJWT = verifier.verify(refreshToken);\n String userName = decodedJWT.getSubject();\n User user = userRepo.findByUserName(userName);\n\n String accessToken = JWT.create()\n .withSubject(user.getUserName())\n .withExpiresAt(new Date(System.currentTimeMillis()+ 10*60*1000))\n .withIssuer(request.getRequestURL().toString())\n .withClaim(\"roles\", user.getRoles().stream().map(Role::getRoleName).collect(Collectors.toList()))\n .sign(algorithm);\n\n\n\n Map<String , String> tokens = new HashMap<>();\n tokens.put(\"accessToken\",accessToken);\n tokens.put(\"refreshToken\",refreshToken);\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),tokens);\n\n }catch (Exception exception){\n\n response.setHeader(\"Error\", exception.getMessage());\n response.setStatus(FORBIDDEN.value());\n //response.sendError(FORBIDDEN.value());\n\n Map<String , String> error = new HashMap<>();\n error.put(\"errorMsg\",exception.getMessage());\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),error);\n }\n\n }else {\n throw new RuntimeException(\"Refresh token is missing\");\n }\n }",
"Observable<Boolean> addToken(TokenRequest oauthRequest, Session session, RelyingParty relyingParty, boolean needUpdateRefresh);",
"void visit(AuthToken authToken);",
"public void setAccessToken (AccessToken accessToken)\n\t{\n\t\tthis.accessToken = accessToken;\n\t}",
"private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }",
"private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }",
"protected AccessToken getAccessToken() \n\t{\n\t\treturn accessToken;\n\t}",
"private static OkHttpClient initializeRetrofitClients() {\n OkHttpClient.Builder okHttpBuilder = new OkHttpClient().newBuilder();\n okHttpBuilder.interceptors().add(new Interceptor() {\n @Override\n public okhttp3.Response intercept(@NonNull Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n // Nothing to add to intercepted request if:\n // a) Authorization value is empty because user is not logged in yet\n // b) There is already a header with updated Authorization value\n if (authorizationTokenIsEmpty() || alreadyHasAuthorizationHeader(originalRequest)) {\n return chain.proceed(originalRequest);\n }\n\n // Add authorization header with updated authorization value to intercepted request\n Request authorisedRequest = originalRequest.newBuilder()\n .header(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n return chain.proceed(authorisedRequest);\n }\n });\n okHttpBuilder.authenticator(new Authenticator() {\n @Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n // Refresh your access_token using a synchronous api request\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }\n });\n\n try {\n // Create a trust manager that does not validate certificate chains\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n okHttpBuilder.sslSocketFactory(sslSocketFactory);\n okHttpBuilder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n return okHttpBuilder.build();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"public AccessToken getAccessToken() {\n return token;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> keys = new HashMap<String, String>();\n keys.put(\"token\", TOKEN);\n return keys;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Authorization\", \"Bearer \" + TOKEN);\n return headers;\n }",
"MendeleyOAuthServiceImpl(MendeleyApiConsumer apiConsumer) {\r\n \trequestHeaders = new HashMap<String, String>();\r\n \tthis.apiConsumer = apiConsumer;\r\n }",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }",
"public static void requestToken(String username, String password, Context context) {\n SharedPreferences preferences = context.getSharedPreferences(token_storage, 0);\n SharedPreferences.Editor editor = preferences.edit();\n Call<Token> call = kedronService.getToken(\"password\", username, password);\n\n try {\n Log.d(\"Service\", \"Using a new token\");\n auth_token = call.execute().body();\n\n Log.d(\"Service\", \"Token received\");\n\n isTokenPresent = true;\n } catch (IOException e) {\n Log.e(\"TOKEN\", \"Failed to retrieve the token\", e);\n }\n\n header_token = \"Bearer \" + auth_token;\n\n editor.putString(\"token\", auth_token.getToken());\n editor.apply();\n\n bindToken();\n }",
"@Test\n\tpublic void homePageAccessibleWithToken() throws Exception {\n\t\tmvc.perform(get(\"/\").header(\"Authorization\", \"Bearer FOO\"))\n\t\t\t\t.andExpect(status().isNotFound());\n\t}",
"@Override\r\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t String authorizationHeader = \r\n\t requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\r\n\t \r\n\t // Check if the HTTP Authorization header is present and formatted correctly\r\n\t if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\r\n\t \t\r\n\t \t//abgelaufene Tokens werden gelöscht\r\n\t \tsservice.deleteInvalidTokens();\r\n\t \t\r\n\t \t// Extract the token from the HTTP Authorization header\r\n\t \tString token = authorizationHeader.substring(\"Bearer\".length()).trim();\r\n\t \tif (validateToken(token) == true){\r\n\t \t\t\r\n\t \t\t//Get the user by this token\r\n\t \t User user = authService.getUserByToken(token);\r\n\t \t System.out.println(\"Nutzer: \" + user.toString());\r\n\t \t requestContext.setSecurityContext(new MySecurityContext(user));\r\n\t \t return;\r\n\t \t}\r\n\t }\r\n\t \r\n\t throw new UnauthorizedException(\"Client has to be logged in to access the ressource\");\r\n\t \r\n\t\t\r\n\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;",
"private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }",
"@Test\n public void testValidRequestHeaderPrivate() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.OK.getStatusCode(), r.getStatus());\n }",
"@Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }",
"private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }",
"public void setToken(java.lang.String param){\n localTokenTracker = true;\n \n this.localToken=param;\n \n\n }",
"public TokenRequest setClientAuthentication(HttpExecuteInterceptor var1) {\n return this.setClientAuthentication(var1);\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"petalier_session_token\", PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\"));\n//\n// if (!PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\").isEmpty()){\n// headers.put(\"Session-Token\", PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\"));\n// }\n\n return headers;\n }",
"@Test\n public void testPublicClientHeader() {\n ApplicationContext context =\n TEST_DATA_RESOURCE.getSecondaryApplication().getBuilder()\n .client(ClientType.AuthorizationGrant, false)\n .build();\n Client c = context.getClient();\n\n String header = authHeaderBearer(c.getId());\n\n Response r = target(\"/token\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n // params.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n params.put(\"authorization\", token);\n return params;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }",
"public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}",
"public static void setRequestToken(String token, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_REQUEST_TOKEN, token);\n\t\t\tprefEditor.commit();\n\t\t\t\n\t\t}",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"@Override\n /**\n * Handles a HTTP GET request. This implements obtaining an authentication token from the server.\n */\n protected void handleGet(Request request, Response response) throws IllegalStateException {\n String username = String.valueOf(request.getAttributes().get(\"username\"));\n String password = String.valueOf(request.getAttributes().get(\"password\"));\n /* Construct MySQL Query. */\n String query = \"SELECT COUNT(id) AS `CNT`, `authToken` FROM accounts WHERE `username` = '\" + username + \"' AND \" +\n \"`password` = '\" + password + \"' LIMIT 0,1;\";\n /* Obtain the account count and existing token pair, as object array. */\n Object[] authenticationArray = dataHandler.handleAuthentication(database.ExecuteQuery(query,\n new ArrayList<String>()));\n int cnt = (int) authenticationArray[0];\n String existingToken = (String) authenticationArray[1];\n String authenticationToken = null;\n if (cnt == 1) { // There is exactly one account matching the parameterised username and password.\n if (existingToken == null) { // No token yet existed, generate one.\n authenticationToken = TokenGenerator.getInstance().generateAuthenticationToken(TOKEN_LENGTH);\n } else {\n authenticationToken = existingToken;\n }\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n if (!(authenticationToken == null || authenticationToken == \"\")) { // Update the database with the new token.\n Database.getInstance().ExecuteUpdate(\"UPDATE `accounts` SET `authToken` = '\" + authenticationToken +\n \"', `authTokenCreated` = CURRENT_TIMESTAMP WHERE `username` = '\" + username + \"';\",\n new ArrayList<String>());\n this.returnResponse(response, authenticationToken, new TokenSerializer());\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n }",
"public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}",
"public boolean setAccessToken(JSONObject response){\n boolean ret=false;\n Log.d(TAG, \"setAccessToken: \"+response);\n SharedPreferences.Editor editor=context.getSharedPreferences(Const.LINKAI_SHAREDPREFERENCE_FILE,Context.MODE_PRIVATE).edit();\n try {\n editor.putString(\"access_token\",response.getString(\"access_token\"));\n editor.putString(\"token_type\",response.getString(\"token_type\"));\n editor.putLong(\"expires_in\",Long.valueOf(response.getString(\"expires_in\")));\n// editor.putLong(\"expires_in\",10000);\n editor.putLong(\"token_timestamp\",new Date().getTime());\n editor.commit();\n ret=true;\n }catch (Exception e){\n e.printStackTrace();\n }\n return ret;\n }",
"public void setAccessToken(String access_token) {\n\t\tthis.access_token = access_token;\r\n\t\tif(message_monitor!=null)\r\n\t\t\tmessage_monitor.setAccessToken(access_token);\r\n\t\tif(feed_monitor!=null)\r\n\t\t\tfeed_monitor.setAccessToken(access_token);\r\n }",
"private String getAuthorizationHeaderValue(HttpRequest request){\n\t\t String authorizationValue = \"\";\n\t\t List<String> authorizationList = new ArrayList<>(0);\t\t\n\t\t \n\t\t HttpHeaders headers = request.getHttpHeaders();\n\t\t for(String headerName : headers.getRequestHeaders().keySet()){\n\t\t\t if(TokenConstants.AUTHORIZATION_HEADER_NAME.equalsIgnoreCase(headerName)){\n\t\t\t\t authorizationList = headers.getRequestHeader(headerName);\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\n\t\t if(CollectionUtils.isNotEmpty(authorizationList)) {\n\t\t\t authorizationValue = authorizationList.get(0);\n\t\t }\n\t\t return authorizationValue;\n\t}",
"@Test\n public void testValidRequestHeaderPublic() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, false)\n .bearerToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/public\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.OK.getStatusCode(), r.getStatus());\n }",
"@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {\n String token = provider.getTokenFromHttpHeader(request);\n\n try {\n if (token != null && provider.validateToken(token)) {\n Authentication authentication = provider.getAuthentication(token);\n SecurityContextHolder.getContext().setAuthentication(authentication);\n }\n } catch (Exception ex) {\n System.out.println(ex);\n SecurityContextHolder.clearContext();\n }\n\n chain.doFilter(request, response);\n }",
"void onGetTokenSuccess(AccessTokenData token);",
"@Override\n public void acceptVisitor(AuthServiceVisitor visitor) {\n visitor.visitAccessToken(this);\n }",
"public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}",
"public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}",
"public Token createAuthorizationToken(User user);"
]
| [
"0.6935657",
"0.67304766",
"0.65074307",
"0.64578074",
"0.6402581",
"0.633837",
"0.62086046",
"0.61781627",
"0.61781627",
"0.6152298",
"0.6152298",
"0.61476266",
"0.6125927",
"0.6076515",
"0.6075403",
"0.607512",
"0.6062956",
"0.6041384",
"0.60237247",
"0.6018448",
"0.5929696",
"0.592932",
"0.59230405",
"0.59230405",
"0.591037",
"0.5882463",
"0.58641773",
"0.58632034",
"0.5814392",
"0.58059466",
"0.57566017",
"0.57468617",
"0.57380897",
"0.5704263",
"0.56999195",
"0.56991464",
"0.5676116",
"0.56726503",
"0.56486464",
"0.56453365",
"0.5645018",
"0.5644782",
"0.56413543",
"0.5636494",
"0.5628264",
"0.5625068",
"0.5623479",
"0.5623209",
"0.56142765",
"0.560627",
"0.55922925",
"0.55889624",
"0.55860496",
"0.55852485",
"0.5584497",
"0.55822116",
"0.5577036",
"0.55756766",
"0.557422",
"0.5569894",
"0.5550121",
"0.5546428",
"0.55317754",
"0.5519249",
"0.5519249",
"0.5511709",
"0.5508076",
"0.5503917",
"0.5502827",
"0.54814",
"0.548026",
"0.5478176",
"0.5466685",
"0.54552376",
"0.5453303",
"0.54505485",
"0.5441063",
"0.54247886",
"0.5423766",
"0.5423378",
"0.5418769",
"0.53957576",
"0.5383643",
"0.53805196",
"0.5379768",
"0.53788173",
"0.5374629",
"0.53681225",
"0.53669953",
"0.53637725",
"0.5362847",
"0.53521657",
"0.5351615",
"0.5301278",
"0.52910304",
"0.5285637",
"0.528213",
"0.5281936",
"0.5281936",
"0.5279376"
]
| 0.74316144 | 0 |
Constuct an account object with noargs (setter methods will be used to set field values | public Account() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account() { }",
"public Account() {\r\n\t\tthis(\"[email protected]\", \"Account\");\r\n\t}",
"public Account() {\n this(null, 0);\n }",
"public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }",
"public Account() {\n this(DSL.name(\"account\"), null);\n }",
"Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }",
"public Account() {\n super();\n }",
"public Account() {\n\n\t}",
"public Account() {\n }",
"public Account() {\n }",
"public Account() {\n }",
"public Account() {\n\n }",
"public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }",
"public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }",
"public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }",
"public UserAccount() {\n\n\t}",
"public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }",
"Account create();",
"public UserAccount() {\n }",
"public ExternallyOwnedAccount() {}",
"public UserAcct() {\r\n }",
"public Account() //default constructor \n {\n this.balance = 0;\n this.account_number = 0;\n }",
"Account(){\r\n\t\t//id, balance and annualInterestRate are set to 0, the dateCreated is set to the current date and time\r\n\t\t setId(0);\r\n\t\t setBalance(0);\r\n\t\t setAnnualInterestRate(0);\r\n\t\t this.dateCreated = new Date(System.currentTimeMillis());\r\n\t }",
"public AccountInfo() {\n this(null, null);\n }",
"public account() {\n initComponents();\n autoID();\n branch();\n }",
"public Account(Holder holder) {\n this(holder, 0);\n }",
"public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }",
"@Test\n public void accountCustomConstructor_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create custom account\n Account account = new Account(accountId, userId, accountName, balance);\n\n // Verify values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }",
"Account(String username, String email) {\n this.username = username;\n this.email = email;\n }",
"void setAccount(final Account account);",
"public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }",
"public Account()\n {\n // initialise instance variables\n balance = 0.00;\n remainder = 0;\n }",
"public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }",
"public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }",
"public Account(String customerName, String customerEmail, String customerPhone) {\n this(\"99999\", 100.55, customerName, customerEmail, customerPhone);\n // created from IntelliJ's Generate - but we used them inside of the constructor above, using \"this\"\n// this.customerName = customerName;\n// this.customerEmail = customerEmail;\n// this.customerPhone = customerPhone;\n }",
"public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}",
"public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }",
"public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }",
"public Account()\n {\n id = UUID.randomUUID();\n }",
"public BankAccount() {\n\t\tthis.money = 0;\n\t}",
"public BankAccount(int balance) {\n\n this.balance = balance;\n\n }",
"private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"public Account() {\n dateCreated = new java.util.Date();\n }",
"public Account() {\n dateCreated = new java.util.Date();\n }",
"@Test\n public void accountEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create empty account\n Account account = new Account();\n\n //Set the values\n account.setAccountId(accountId);\n account.setUserId(userId);\n account.setAccountName(accountName);\n account.setBalance(balance);\n\n //Confirm values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }",
"private Account createAccount(byte[] address) {\n return new Account(address);\n }",
"public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }",
"public ProfileBankAccount() {\r\n }",
"public Account() {\n\t\t//starting amount is 1500\n\t\tmoney = 1500;\n\t}",
"public Account(String owner, int ownerID, int accountID, double growthRate){\n this.owner = owner;\n this.ownerID = ownerID;\n this.accountID = accountID;\n this.growthRate = growthRate;\n \n }",
"private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }",
"int createAccount(Account account);",
"protected Account(String n, float b) {\n this(n); \n balance = b;\n }",
"public SavingsAccount() {\n super();\n }",
"public Account(Name alias) {\n this(alias, ACCOUNT);\n }",
"public User_Account() {\r\n\t\tfirstName=middleName=lastName = null;\r\n\t\taddress=city=state=zip=null;\r\n\t\tphone=email=webLinks= new ArrayList <String>(); \r\n\t\tedu = new ArrayList <Education>();\r\n\t\twork = new ArrayList <Work>();\r\n\t}",
"public void createUserAccount(UserAccount account);",
"public _AccountStub ()\n {\n super ();\n }",
"public SavingsAccount() {\n\t}",
"public AccountInfo(String user) {\n \tthis(user, null);\n }",
"Account(int balance) {\n if(balance <0) this.balance=0;\n this.balance = balance;\n }",
"public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }",
"public Account(String firstName, String lastName, String SSN,\n String email, String password, String cardNum, String accId,\n double gpa, String schoolName, HashMap<String, Transaction> pendingTransactions,\n HashMap<String, Transaction> completedTransactions) {\n //Map<String, Transaction> dailyTransactions) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.SSN = SSN;\n this.cardNum = cardNum;\n this.email = email;\n this.password = password;\n this.accId = accId;\n dailyLimit = 50.00;\n accCreditLimit = 1000.00;\n creditUsed = getCreditUsed();\n this.gpa = gpa;\n cashBackRate = gpa / 2;\n this.schoolName = schoolName;\n this.pendingTransactions = pendingTransactions;\n this.completedTransactions = completedTransactions;\n this.cashBackToDate = 0.0;\n //this.dailyTransactions = dailyTransactions;\n }",
"Account getAccount();",
"public BankAccount() {\r\n\t\tbalance=0;\r\n\t\t\r\n\t}",
"public void setAccount(Account account) {\n this.account = account;\n }",
"protected Account(String n) {\n name = n;\n state = State.OPEN;\n }",
"public Account(User owner, String description) {\n this.owner = owner;\n this.description = description;\n this.balance = 0.0f;\n this.records = new LinkedHashSet<>();\n }",
"public CAccountElement() {\n }",
"public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }",
"public Account(double balance) {\n\t\tthis.balance = balance;\n\t}",
"public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }",
"public Account(int id, double balance) {\n this();\n this.name = \"Account\";\n this.id = id;\n this.balance = balance;\n }",
"public CheckingAccount() {\n super(); \n }",
"public SavingAccount()\n\t\t{\n\t\t\tsuper();\n\t\t}",
"GenerateUserAccount () {\r\n }",
"public FeeAccount ()\n {\n }",
"public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}",
"public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }",
"public JsonpAccount() {\n }",
"public static ATMAccount createAccount() {\r\n\t\tString userName;\r\n\t\tdouble userBalance;\r\n\t\tint digit = -1;\r\n\r\n\t\tSystem.out.println(\"Please enter a name for the account: \");\r\n\t\tuserInput.nextLine();\r\n\t\tuserName = userInput.nextLine();\r\n\r\n\t\t//Requests digits 1 by 1 for the pin number\r\n\t\tString accPin = \"\";\r\n\t\tfor (int i = 1; i < 5; i++) {\r\n\t\t\tdigit = -1;\r\n\t\t\tSystem.out.println(\"Please enter digit #\" + i + \" of\" + \"your pin.\");\r\n\t\t\tdo {\r\n\t\t\t\tdigit = userInput.nextInt();\r\n\t\t\t} while (digit < 0 || digit > 9);\r\n\t\t\taccPin += digit;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Please put the amount of money you would like to \" + \"initially deposit into the account: \");\r\n\t\tuserBalance = userInput.nextDouble();\r\n\t\tRandom accountIDGenerator = new Random();\r\n\t\tint userID = accountIDGenerator.nextInt(2147483647);\r\n\t\tATMAccount account = new ATMAccount(userID, userName, Integer.parseInt(accPin), userBalance);\r\n\t\tSystem.out.println(\"Acount Information: \\n\"+account.toString());\r\n\t\treturn account;\r\n\t}",
"public CheckingAccount(String n) {\n super(n);\n balance = 0;\n }",
"public abstract void createAccount(JSONObject account);",
"public Account(int accNmr, String firstName, String lastName, double balance) {\n this.accNmr = accNmr;\n this.firstName = firstName;\n this.lastName = lastName;\n this.balance = balance;\n }",
"public Account(String alias) {\n this(DSL.name(alias), ACCOUNT);\n }",
"public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}",
"public Account(String number, double balance, String customerName, String customerEmail, String customerPhone) {\n // set the instance's field variables directly, and do NOT use the setters inside constructor.\n this.number = number;\n this.balance = balance;\n this.customerName = customerName;\n this.customerEmail = customerEmail;\n this.customerPhone = customerPhone;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public BankAcc(int accNum, double bal, String name, String email, String phone){\r\n System.out.println(\"DONE\");\r\n //can do some validation in the other functions\r\n //not nessacary\r\n setAccNum(accNum);\r\n this.bal=bal;\r\n this.name=name;\r\n this.email=email;\r\n this.phone=phone;\r\n\r\n }",
"public Account(String GID, String name) {\r\n\t\r\n\t\tthis.GID = GID;\r\n\t\tthis.name = name;\r\n\t\tevents = new ArrayList<Event>();\r\n\t\tpastRelations = new ArrayList<Account>();\r\n\t\tsettings = new ArrayList<String>();\r\n\t}",
"public CheckingAccount() {\n\t\tsuper();\n\t}",
"public BankAccountKey(java.lang.String argAccID) {\n\taccID = argAccID;\n}",
"public AccountsRecord(Long id, String password, String email, Long userId, Timestamp createdAt, Timestamp updatedAt) {\n super(Accounts.ACCOUNTS);\n\n set(0, id);\n set(1, password);\n set(2, email);\n set(3, userId);\n set(4, createdAt);\n set(5, updatedAt);\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }",
"public Account(String username, String Email, Company myCompany) {\n\t\t\n\t\tthis.myCompany = myCompany;\n\t\tthis.username = username;\n\t\tthis.email = Email;\n\t}",
"@Override\n\tpublic Account createAccount(Account account) {\n\t\tif(account != null) {\n\t\t\taccountList.add(account);\n\t\t\treturn account;\n\t\t}\n\t\t\n\t\treturn null;\n\t}"
]
| [
"0.8005756",
"0.75494987",
"0.75037813",
"0.74854195",
"0.74749345",
"0.74703646",
"0.7460858",
"0.73962605",
"0.7387503",
"0.7351218",
"0.7351218",
"0.73464483",
"0.7333238",
"0.7314175",
"0.72804344",
"0.7262284",
"0.7187691",
"0.7178536",
"0.7161014",
"0.7130897",
"0.71167165",
"0.70711553",
"0.70637816",
"0.70531976",
"0.7035285",
"0.7030531",
"0.7013234",
"0.6999549",
"0.69895935",
"0.6979591",
"0.6974812",
"0.6945644",
"0.69396734",
"0.69296885",
"0.69052255",
"0.68884146",
"0.68796635",
"0.685684",
"0.6856572",
"0.6833603",
"0.6827852",
"0.68145514",
"0.6801568",
"0.67945164",
"0.67945164",
"0.6783411",
"0.67383426",
"0.67315984",
"0.6727526",
"0.67081285",
"0.6691632",
"0.6675977",
"0.66720426",
"0.6668361",
"0.6665319",
"0.6660575",
"0.6659925",
"0.66361403",
"0.663162",
"0.66299385",
"0.6623125",
"0.66184783",
"0.66130376",
"0.66102195",
"0.65959924",
"0.658653",
"0.65853953",
"0.6568826",
"0.6559554",
"0.65234745",
"0.65059793",
"0.6501857",
"0.64921755",
"0.64846355",
"0.6477836",
"0.6473983",
"0.6473272",
"0.6467096",
"0.64631844",
"0.64619493",
"0.64598423",
"0.64500123",
"0.6438269",
"0.6431412",
"0.6427705",
"0.64242536",
"0.64151996",
"0.6410601",
"0.64026034",
"0.64026034",
"0.64026034",
"0.64026034",
"0.63965887",
"0.6394465",
"0.63923186",
"0.63912094",
"0.63832706",
"0.6382835",
"0.6381781",
"0.63799226"
]
| 0.7429463 | 7 |
Construct an account object with specified values | public Account(String newAcctNo, String newCID, String newType, double newBalance) {
acctNo = newAcctNo + "";
cid = newCID;
type = newType;
balance = newBalance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account() { }",
"Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }",
"public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }",
"public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }",
"Account create();",
"public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }",
"private Account createAccount4() {\n Account account = new Account(\"123456004\", \"Chad I. Cobbs\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false,\n new CreditCard(\"1234123412340004\"), new CreditCard(\"4320123412340005\"));\n\n final Percentage percent50 = new Percentage(0.5);\n final Percentage percent25 = new Percentage(0.25);\n account.addBeneficiary(\"Jane\", percent25);\n account.addBeneficiary(\"Amy\", percent25);\n account.addBeneficiary(\"Susan\", percent50);\n return account;\n }",
"private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }",
"public static ATMAccount createAccount() {\r\n\t\tString userName;\r\n\t\tdouble userBalance;\r\n\t\tint digit = -1;\r\n\r\n\t\tSystem.out.println(\"Please enter a name for the account: \");\r\n\t\tuserInput.nextLine();\r\n\t\tuserName = userInput.nextLine();\r\n\r\n\t\t//Requests digits 1 by 1 for the pin number\r\n\t\tString accPin = \"\";\r\n\t\tfor (int i = 1; i < 5; i++) {\r\n\t\t\tdigit = -1;\r\n\t\t\tSystem.out.println(\"Please enter digit #\" + i + \" of\" + \"your pin.\");\r\n\t\t\tdo {\r\n\t\t\t\tdigit = userInput.nextInt();\r\n\t\t\t} while (digit < 0 || digit > 9);\r\n\t\t\taccPin += digit;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Please put the amount of money you would like to \" + \"initially deposit into the account: \");\r\n\t\tuserBalance = userInput.nextDouble();\r\n\t\tRandom accountIDGenerator = new Random();\r\n\t\tint userID = accountIDGenerator.nextInt(2147483647);\r\n\t\tATMAccount account = new ATMAccount(userID, userName, Integer.parseInt(accPin), userBalance);\r\n\t\tSystem.out.println(\"Acount Information: \\n\"+account.toString());\r\n\t\treturn account;\r\n\t}",
"private Account createAccount(byte[] address) {\n return new Account(address);\n }",
"public Account() {\r\n\t\tthis(\"[email protected]\", \"Account\");\r\n\t}",
"public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }",
"public Account(String firstName, String lastName, String SSN,\n String email, String password, String cardNum, String accId,\n double gpa, String schoolName, HashMap<String, Transaction> pendingTransactions,\n HashMap<String, Transaction> completedTransactions) {\n //Map<String, Transaction> dailyTransactions) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.SSN = SSN;\n this.cardNum = cardNum;\n this.email = email;\n this.password = password;\n this.accId = accId;\n dailyLimit = 50.00;\n accCreditLimit = 1000.00;\n creditUsed = getCreditUsed();\n this.gpa = gpa;\n cashBackRate = gpa / 2;\n this.schoolName = schoolName;\n this.pendingTransactions = pendingTransactions;\n this.completedTransactions = completedTransactions;\n this.cashBackToDate = 0.0;\n //this.dailyTransactions = dailyTransactions;\n }",
"@Test\n public void accountCustomConstructor_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create custom account\n Account account = new Account(accountId, userId, accountName, balance);\n\n // Verify values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }",
"public Account(String owner, int ownerID, int accountID, double growthRate){\n this.owner = owner;\n this.ownerID = ownerID;\n this.accountID = accountID;\n this.growthRate = growthRate;\n \n }",
"public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }",
"public Account() {\n this(null, 0);\n }",
"public Account() {\n this(DSL.name(\"account\"), null);\n }",
"public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }",
"public Account() {\n\n\t}",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}",
"public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }",
"public Account() {\n super();\n }",
"protected Account(String n, float b) {\n this(n); \n balance = b;\n }",
"public Account() {\n\t}",
"public BankAccount(int balance) {\n\n this.balance = balance;\n\n }",
"public Account() {\n\n }",
"public UserAcct() {\r\n }",
"public Account() {\n }",
"public Account() {\n }",
"public Account() {\n }",
"public Account(String customerName, String customerEmail, String customerPhone) {\n this(\"99999\", 100.55, customerName, customerEmail, customerPhone);\n // created from IntelliJ's Generate - but we used them inside of the constructor above, using \"this\"\n// this.customerName = customerName;\n// this.customerEmail = customerEmail;\n// this.customerPhone = customerPhone;\n }",
"public Account(int accNmr, String firstName, String lastName, double balance) {\n this.accNmr = accNmr;\n this.firstName = firstName;\n this.lastName = lastName;\n this.balance = balance;\n }",
"public AccountInfo() {\n this(null, null);\n }",
"public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }",
"public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }",
"WithCreate withProperties(AccountProperties properties);",
"public Account() {\n\t\t//starting amount is 1500\n\t\tmoney = 1500;\n\t}",
"public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }",
"public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }",
"UserAccount createUserAccount(User user, double amount);",
"public Account()\n {\n // initialise instance variables\n balance = 0.00;\n remainder = 0;\n }",
"public Account(User owner, String description) {\n this.owner = owner;\n this.description = description;\n this.balance = 0.0f;\n this.records = new LinkedHashSet<>();\n }",
"public UserAccount() {\n\n\t}",
"public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }",
"public Account(String number, double balance, String customerName, String customerEmail, String customerPhone) {\n // set the instance's field variables directly, and do NOT use the setters inside constructor.\n this.number = number;\n this.balance = balance;\n this.customerName = customerName;\n this.customerEmail = customerEmail;\n this.customerPhone = customerPhone;\n }",
"public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }",
"public Account(Holder holder) {\n this(holder, 0);\n }",
"public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }",
"public BankAccount(int accountNum, String customerName, double balance){\n this.accountNum = accountNum;\n this. customerName = customerName;\n this.balance = balance;\n }",
"public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }",
"public Account()\n {\n id = UUID.randomUUID();\n }",
"int createAccount(Account account);",
"public ProfileBankAccount() {\r\n }",
"public void createAccount(double balance) {\r\n\t\tAccount account = new Account(balance);\r\n\t\tsetPlayerAccount(account);\r\n\t}",
"public void TestAccount1() {\n\n AccountCreator account = new AccountCreator();\n account.setFirstName(\"Bob\");\n account.setLastName(\"Smith\");\n account.setAddress(\"5 Rain Road\");\n account.setPIN();\n account.setTestBalance(300);\n accountList.add(account);\n\n }",
"public AccountInfo(String user) {\n \tthis(user, null);\n }",
"public ExternallyOwnedAccount() {}",
"public Account() //default constructor \n {\n this.balance = 0;\n this.account_number = 0;\n }",
"public Account(double balance) {\n\t\tthis.balance = balance;\n\t}",
"public Account(Name alias) {\n this(alias, ACCOUNT);\n }",
"public BankAcc(int accNum, double bal, String name, String email, String phone){\r\n System.out.println(\"DONE\");\r\n //can do some validation in the other functions\r\n //not nessacary\r\n setAccNum(accNum);\r\n this.bal=bal;\r\n this.name=name;\r\n this.email=email;\r\n this.phone=phone;\r\n\r\n }",
"public UserAccount() {\n }",
"public SavingsAccount() {\n\t}",
"Account(String username, String email) {\n this.username = username;\n this.email = email;\n }",
"public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}",
"public SavingsAccount() {\n super();\n }",
"public void initAccount() {\n initAccount(Huobi.PLATFORM_NAME, Gateio.PLATFORM_NAME, \"EOS_USDT\", 14.5632);\n\n\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"LTCUSDT\", 112.610000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"BCHUSDT\", 1032.690000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"ETHUSDT\", 572.300000000);\n\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"EOSUSDT\", 13.1469);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"NEOUSDT\", 48.4760);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"ETHUSDT\", 572.1195);\n }",
"public Account(String name, double balance){\n\n this.name = name;\n\n if (balance > 0.0 )\n this.balance = balance;\n }",
"public Account() {\n dateCreated = new java.util.Date();\n }",
"public Account() {\n dateCreated = new java.util.Date();\n }",
"public Account(int id, double balance) {\n this();\n this.name = \"Account\";\n this.id = id;\n this.balance = balance;\n }",
"Account(){\r\n\t\t//id, balance and annualInterestRate are set to 0, the dateCreated is set to the current date and time\r\n\t\t setId(0);\r\n\t\t setBalance(0);\r\n\t\t setAnnualInterestRate(0);\r\n\t\t this.dateCreated = new Date(System.currentTimeMillis());\r\n\t }",
"AionAddress createAccount(String password);",
"protected Account(String n) {\n name = n;\n state = State.OPEN;\n }",
"public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}",
"private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }",
"public SavingsAccount(double balance)\n {\n startingBalance = balance;\n }",
"Account create(Context context);",
"public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }",
"public account() {\n initComponents();\n autoID();\n branch();\n }",
"public User_Account() {\r\n\t\tfirstName=middleName=lastName = null;\r\n\t\taddress=city=state=zip=null;\r\n\t\tphone=email=webLinks= new ArrayList <String>(); \r\n\t\tedu = new ArrayList <Education>();\r\n\t\twork = new ArrayList <Work>();\r\n\t}",
"public Account createAccount() {\n\t\t\n\t\tAccountBuilder builder = new AccountBuilder();\n\t\tUserRole role = new UserRole();\n\t\trole.setUsername(getUsername());\n\t\trole.setRole(\"ROLE_USER\");\n\t\t\n\t\t//builds the account entity using the front end POJO\n\t\tbuilder\n\t\t\t.withUsername(getUsername())\n\t\t\t.withPassword(getPassword())\n\t\t\t.withLastName(getLastName())\n\t\t\t.withFirstName(getFirstName())\n\t\t\t.withRole(role)\n\t\t\t.withStatus(AccountStatus.ACTIVE)\n\t\t\t.withEmail(getEmail())\n\t\t\t.withStoreCd(getStoreCd());\n\t\t\n return builder.build();\n\t}",
"public abstract void createAccount(JSONObject account);",
"public void createUserAccount(UserAccount account);",
"public BankImpl() {\n accounts = new HashMap<Integer,Account>();\n }",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);",
"public BankAccount(String accountHolderName, String accountNumber, String routingNumber){\n this.mAccountHolderName = accountHolderName;\n this.mAccountNumber = accountNumber;\n this.mRoutingNumber = routingNumber;\n balance = BigDecimal.ZERO;\n }",
"public Account(int id, String name, double balance){\n this(id, balance);\n this.name = name;\n }",
"public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }",
"public Account(String requisites, double value) {\n this.value = value;\n this.requisites = requisites;\n }",
"@Test\n public void accountEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create empty account\n Account account = new Account();\n\n //Set the values\n account.setAccountId(accountId);\n account.setUserId(userId);\n account.setAccountName(accountName);\n account.setBalance(balance);\n\n //Confirm values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }",
"public AccountsRecord(Long id, String password, String email, Long userId, Timestamp createdAt, Timestamp updatedAt) {\n super(Accounts.ACCOUNTS);\n\n set(0, id);\n set(1, password);\n set(2, email);\n set(3, userId);\n set(4, createdAt);\n set(5, updatedAt);\n }",
"public CapitalAccount(\n \t\t\tIObjectKey objectKey, \n \t\t\tMap extensions, \n \t\t\tIObjectKey parent,\n \t\t\tIListManager subAccounts) {\n \t\tsuper(objectKey, extensions, parent, JMoneyPlugin.getResourceString(\"Account.newAccount\"), subAccounts);\n \t\t\n this.abbreviation = null;\n this.comment = null;\n \t}",
"public Account(String GID, String name) {\r\n\t\r\n\t\tthis.GID = GID;\r\n\t\tthis.name = name;\r\n\t\tevents = new ArrayList<Event>();\r\n\t\tpastRelations = new ArrayList<Account>();\r\n\t\tsettings = new ArrayList<String>();\r\n\t}",
"public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }",
"public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }",
"Account(String name, double balance)\r\n\t{\r\n\t\t\r\n\t\tthis.name = name; //assign name to the instance variable name \r\n\t\t\r\n\t\t// validate that the balance is greater that 0.0; if it is not,\r\n\t\t// instance variable balance keeps its default value 0.0\r\n\t\tif(balance > 0.0) // if balance is valid\r\n\t\t\tthis.balance = balance; // assign balance to the instance variable balance\t\t\t\t\t\r\n\t}"
]
| [
"0.7362062",
"0.7292868",
"0.7252182",
"0.7206642",
"0.7191373",
"0.71329755",
"0.70680475",
"0.7055415",
"0.70405453",
"0.70286804",
"0.70148903",
"0.7011033",
"0.7010318",
"0.69891936",
"0.6868989",
"0.686807",
"0.6797147",
"0.67799765",
"0.67427295",
"0.6717322",
"0.6706388",
"0.67051345",
"0.6684703",
"0.6682262",
"0.66807806",
"0.66766584",
"0.6645382",
"0.6630353",
"0.66227114",
"0.6617738",
"0.6617738",
"0.66109836",
"0.6598344",
"0.659517",
"0.6589188",
"0.65863377",
"0.6570681",
"0.6565374",
"0.6553296",
"0.6536053",
"0.65169334",
"0.6515712",
"0.65082294",
"0.648168",
"0.6478322",
"0.647471",
"0.64719075",
"0.6457415",
"0.6448948",
"0.643914",
"0.643265",
"0.6417966",
"0.64018476",
"0.6394191",
"0.6385608",
"0.6384675",
"0.6369375",
"0.6366086",
"0.636594",
"0.63318676",
"0.633073",
"0.63271374",
"0.63202757",
"0.6317622",
"0.6307411",
"0.6304182",
"0.63032526",
"0.6289269",
"0.6285302",
"0.62702024",
"0.6262979",
"0.6262979",
"0.6262257",
"0.625383",
"0.6246122",
"0.6229857",
"0.6227371",
"0.6225835",
"0.62184376",
"0.61919",
"0.618841",
"0.6173976",
"0.61729354",
"0.61711055",
"0.6163404",
"0.6163035",
"0.6158781",
"0.6154685",
"0.6154685",
"0.6145143",
"0.6140715",
"0.61291337",
"0.6118451",
"0.6102523",
"0.6099939",
"0.6095256",
"0.60671",
"0.6065799",
"0.60537237",
"0.6048786",
"0.6043373"
]
| 0.0 | -1 |
Set account number for this account | public void setAcctNo(String acctNo){
this.acctNo = acctNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"void setAccountNumber(java.lang.String accountNumber);",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"public boolean setAccountNumber(int account) {\n\t\tif (account > 0)\n\t\t\tthis.account = String.valueOf(account);\n\t\telse\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public void setAccountNumer(int accountNumber) {\n\t\tif (this.accountNumber == 0) {\n\t\t\tthis.accountNumber = accountNumber;\n\t\t} else {\n\t\t\tSystem.out.println(\"The account number is already assigned to this Customer.\");\n\t\t}\n\t}",
"public void setAccountNumber(int accountNumberIn)\r\n\t{\r\n\t\t\r\n\t\tif (accountNumberIn >= ACCOUNT_NUM_MIN && accountNumberIn <= ACCOUNT_NUM_MAX)\r\n\t\t\r\n\t\t\taccountNumber = accountNumberIn;\r\n\t\t\r\n\t\telse\r\n\t\t\taccountNumber = -1;\r\n\t\t\r\n\t}",
"public void setAccountNumber(int accountNumber) {\n this.accountNumber = accountNumber;\n }",
"public void setAccountNumber(String newAccountNumber) \n\t{\n\t\taccountNumber = newAccountNumber;\n\t}",
"public void setAccountNo (String AccountNo);",
"public boolean setAccountNumber(String account) {\n\t\tif (account == null)\n\t\t\taccount = \"\";\n\t\ttry {\n\t\t\treturn this.setAccountNumber(Integer.parseInt(account));\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"void setAccount(final Account account);",
"public void setAccountNo(String AccountNo) {\n super.setAccountNo(MPaymentValidate.checkNumeric(AccountNo));\n }",
"public void setAccountNumber(java.lang.String accountNumber) {\r\n this.accountNumber = accountNumber;\r\n }",
"public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n }",
"public void setAccountNumber(java.lang.String accountNumber) {\n this.accountNumber = accountNumber;\n }",
"public void setAccount_number(java.lang.String account_number) {\n this.account_number = account_number;\n }",
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber == null ? null : accountNumber.trim();\n }",
"void setAccountId(Long accountId);",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public void setAccountNo( String accountNo ) {\r\n this.accountNo = accountNo;\r\n }",
"public Saving accountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n return this;\n }",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}",
"public void setAccountNo(String accountNo) {\n this.accountNo = accountNo;\n }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"public void setAccount(com.huawei.www.bme.cbsinterface.cbs.businessmgr.Account account) {\r\n this.account = account;\r\n }",
"public void setAccount(String bank, String account)\n\t{\n\t\tbank = bank.trim().replaceAll(\" +\",\" \");\n\t\t\n\t\tif(account.length() == 19) //length of digits including hyphen(-)\n\t\t{\n\t\t this.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-####\");\n\t\t}\n\t\tif(bank.equals(\"HSBC Canada\"))\n\t\t{\n\t\t\t\n\t\t\tthis.account = MaskDigits.mask(account, \"##xx-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"Royal Bank of Canada\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"####-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"American Express\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-###\");\n\t\t}\n\t}",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public void setAccount(String account) {\n this.account = account == null ? null : account.trim();\n }",
"public void setAccount(String account) {\n this.account = account == null ? null : account.trim();\n }",
"public void setAccount(String account) {\n this.account = account == null ? null : account.trim();\n }",
"public void setAccount(String account) {\n this.account = account == null ? null : account.trim();\n }",
"public void setAccount(String account) {\n this.account = account == null ? null : account.trim();\n }",
"public void enterAccountNumber(String accountNumber) {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.ACCOUNT_NUMBER_TEXTBOX, timeWait);\n\t\ttype(driver, LiveGuru99.WithdrawallPage.ACCOUNT_NUMBER_TEXTBOX, accountNumber);\n\t\tsleep(1);\n\t}",
"public void setAccount(String account) {\r\n this.account = account == null ? null : account.trim();\r\n }",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"public void setAccountName(String accountName){\n if(checkAccountClosed()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n this.accountName = accountName;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public void setTypeAccountInNumber(String typeAccountInNumber) {\n if (NUM_CTA_AHORROS.equalsIgnoreCase(typeAccountInNumber) || NUM_CTA_CORRIENTE.equalsIgnoreCase(typeAccountInNumber)) {\n this.typeAccountInNumber = typeAccountInNumber;\n } else {\n this.typeAccountInNumber = AdministradorUtilidades.formatoTipoCuentaNumero(typeAccountInNumber);\n }\n\n }",
"public void setBankAccount(final int newBAccount) {\n this.bankAccount = newBAccount;\n }",
"public synchronized void setAmendmentNumber(final InternationalString newValue) {\n checkWritePermission();\n amendmentNumber = newValue;\n }",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n account_ = value;\n onChanged();\n return this;\n }",
"public void setAccNo(int accNo) {\r\n\t\tthis.accNo = accNo+1;\r\n\t}",
"private void setAccount(SessionData sessionData, Account account) {\n \ttry {\n\t sessionData.set(\"account\", account);\n \t} catch (Exception e) {\n \t throw new RuntimeException(e.toString());\n \t}\n }",
"public static String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public static void setCurrentAccount(Account currentAccount) {\r\n\t\tAccount.currentAccount = currentAccount;\r\n\t}",
"@Override\n public void setAccount(DataServices.Account account) {\n setTitle(R.string.account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, AccountFragment.newInstance(account))\n .commit();\n\n }",
"java.lang.String getAccountNumber();",
"void unsetAccountNumber();",
"public void setAccount(jkt.hms.masters.business.MasAccountType account) {\n\t\tthis.account = account;\n\t}",
"public void setLocalAccountNr(java.lang.String localAccountNr)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALACCOUNTNR$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCALACCOUNTNR$4);\n }\n target.setStringValue(localAccountNr);\n }\n }",
"public java.lang.String getAccountNumber() {\n return accountNumber;\n }",
"public void setAccountInfo(AccountInfo accountInfo) {\n this.accountInfo = accountInfo;\n }",
"public java.lang.String getAccountNumber() {\r\n return accountNumber;\r\n }",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"void setPassportNumber(String passportNumber);",
"public void setCreditCardAccount(CreditCardAccount newCreditCard) {\n this.creditCardAccount = newCreditCard;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }",
"public Gateway setAccountName(java.lang.String accountName) {\n return genClient.setOther(accountName, CacheKey.accountName);\n }",
"public void setCurrentUserAccount(String currentUserAccount);",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setUserAccount(final UserAccount.Immutable userAccount) {\n this.userAccount = userAccount;\n }",
"public java.lang.String getAccount_number() {\n return account_number;\n }",
"public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }",
"public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }",
"void xsetAccountNumber(org.apache.xmlbeans.XmlString accountNumber);",
"public void setUserAccount(String userAccount) {\n sessionData.setUserAccount(userAccount);\n }",
"void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setTransactorAccountNumber(int transactorAccountNumber) {\r\n this.transactorAccountNumber = transactorAccountNumber;\r\n }",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}"
]
| [
"0.8493176",
"0.82830447",
"0.7941265",
"0.7718548",
"0.7692529",
"0.7585162",
"0.7419577",
"0.7213794",
"0.7210272",
"0.72097796",
"0.7038066",
"0.7001816",
"0.69892466",
"0.69095635",
"0.68682176",
"0.68553776",
"0.675665",
"0.6755909",
"0.67437774",
"0.6728769",
"0.6728769",
"0.66757953",
"0.6674101",
"0.6606734",
"0.66039664",
"0.6580477",
"0.6564574",
"0.656203",
"0.656203",
"0.656203",
"0.656203",
"0.65513015",
"0.65286225",
"0.65243214",
"0.64916307",
"0.64903194",
"0.644719",
"0.6421824",
"0.6420451",
"0.6398021",
"0.6375781",
"0.6375781",
"0.63614905",
"0.63614905",
"0.63614905",
"0.63614905",
"0.63614905",
"0.63590646",
"0.63457435",
"0.63412607",
"0.6275611",
"0.6275611",
"0.6275611",
"0.62595993",
"0.619104",
"0.61848646",
"0.6176853",
"0.61730605",
"0.61486006",
"0.613361",
"0.61300385",
"0.61300385",
"0.6118544",
"0.611817",
"0.6117104",
"0.61141586",
"0.6086372",
"0.60799235",
"0.6075853",
"0.6058912",
"0.6054914",
"0.6044524",
"0.6011291",
"0.5992924",
"0.5987648",
"0.59855044",
"0.5956136",
"0.5937756",
"0.5919749",
"0.59146297",
"0.5894093",
"0.58900124",
"0.58855957",
"0.5881802",
"0.58702326",
"0.58700883",
"0.5867519",
"0.5864802",
"0.58472896",
"0.58444536",
"0.5839758",
"0.5839758",
"0.5831009",
"0.582412",
"0.58179384",
"0.5817276",
"0.5813355",
"0.5813355",
"0.5794773",
"0.5783543"
]
| 0.6022774 | 72 |
Return the account number of this account | public String getAcctNo(){
return acctNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAccountNumber();",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"public static String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public java.lang.String getAccountNumber() {\n return accountNumber;\n }",
"public java.lang.String getAccount_number() {\n return account_number;\n }",
"public String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public java.lang.String getAccountNumber() {\r\n return accountNumber;\r\n }",
"public String getAccountNo() {\n return accountNo;\n }",
"public int getAccountNo() {\n return accountNo;\n }",
"public String getAccountNr() {\r\n\t\treturn accountNr;\r\n\t}",
"public String getAccountNo();",
"private int getCurrentAccountId() {\n accountLock.lock();\n int nmr = 1;\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS ORDER BY ACCOUNT_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"ACCOUNT_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n accountLock.unlock();\n return nmr;\n }",
"public java.lang.String getAccountNumberString()\r\n\t{\r\n\t\t\r\n\t}",
"public int getAccountID() {\n return accountID;\n }",
"String getAccountID();",
"String getAccountID();",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getCardNumber() {\n return this.account;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public long getAccNumber() {\n\t\treturn accNumber;\n\t}",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public String getAccountCode() {\n return accountCode;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\r\n return account;\r\n }",
"public long getAccountId() {\n return accountId;\n }",
"public int getAccountID(Account account)\n\t {\n\t\t int id = -1;\n\t\t String columns[] = new String[] {DatabaseContract.AccountContract._ID};\n\t\t \n\t\t String where = DatabaseContract.AccountContract.COLUMN_NAME_USERNAME + \" = ? \";\n\t\t \n\t\t Cursor cursor = db.query(DatabaseContract.AccountContract.TABLE_NAME,\n\t\t\t\t columns,\n\t\t\t\t where,\n\t\t\t\t new String[] {account.getUsername()},\n\t\t\t\t null, null, null);\n\t\t\n\t\t if(cursor.getCount() > 0)\n\t\t {\n\t\t\t cursor.moveToFirst();\n\t\t\t \n\t\t\t int idCol = cursor.getColumnIndex(DatabaseContract.AccountContract._ID);\n\t\t\t id = cursor.getInt(idCol);\n\t\t }\n\t\t \n\t\t cursor.close();\n\t\t return id;\n\t }",
"public String getAccount(){\n\t\treturn account;\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"public int getAccNum()\n\t{\n\t\treturn accNum;\n\t}",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"Long getAccountId();",
"Account getAccount(Integer accountNumber);",
"public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }",
"public int getTransactorAccountNumber() {\r\n return transactorAccountNumber;\r\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"java.lang.String getAccount();",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public int getC_BankAccount_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BankAccount_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public java.lang.String getLocalAccountNr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALACCOUNTNR$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Long getRaAccount() {\n\t\treturn raAccount;\n\t}",
"public String getTypeAccountInNumber() {\n return typeAccountInNumber;\n }",
"public Long getAccountId() {\n return accountId;\n }",
"public int getBankAccountNumber() {\n return bankAccountNumber;\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public int getAccountType() {\r\n return accountType;\r\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n return this.accountId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getBankAccount() {\n return bankAccount;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"public String getAccountId() {\n return mAccountId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n account_ = s;\n }\n return s;\n }\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"public String getCHEQUE_BANK_ACCOUNT_NBR() {\r\n return CHEQUE_BANK_ACCOUNT_NBR;\r\n }",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn accountID;\n\t}",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"private int getUniqueAccountNumber () {\n\n int minInt = 100000;\n int maxInt = 999999;\n int candidateNumber = -1;\n Set<Integer> listOfCurrentAccountNumbers =\n hashMapOfAllAccts.keySet();\n boolean numberIsUnique = false;\n while ( !numberIsUnique ) {\n\n candidateNumber = rng.nextInt(maxInt+1);\n // assume unique for a moment\n numberIsUnique = true;\n // verify uniqueness assumption\n for ( int acctNum : listOfCurrentAccountNumbers) {\n if (candidateNumber == acctNum) {\n numberIsUnique = false;\n break;\n }\n } // end for() loop\n\n } // end while() loop\n\n return candidateNumber;\n }",
"int getAccountCount(final long accountID);",
"long getAccountLinkId();",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"AccountDetail getAccount(String number) throws Exception;"
]
| [
"0.853438",
"0.8296552",
"0.82521665",
"0.8127251",
"0.8105338",
"0.8080544",
"0.8080544",
"0.8062715",
"0.79993856",
"0.78627884",
"0.78627884",
"0.78627884",
"0.7845955",
"0.78321344",
"0.7797679",
"0.7797679",
"0.779261",
"0.7773454",
"0.77454704",
"0.7690505",
"0.7678437",
"0.74883693",
"0.74433833",
"0.72862434",
"0.7279628",
"0.7279628",
"0.72671103",
"0.72257143",
"0.72257143",
"0.7211733",
"0.7171061",
"0.7171061",
"0.7137054",
"0.71257323",
"0.6969891",
"0.695248",
"0.69358975",
"0.69133925",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.69108814",
"0.6906124",
"0.68866724",
"0.6881857",
"0.6845931",
"0.6837768",
"0.68343663",
"0.68215275",
"0.6818182",
"0.6818182",
"0.681546",
"0.6802087",
"0.67923903",
"0.67781806",
"0.67692286",
"0.67339224",
"0.67033154",
"0.6686191",
"0.66720235",
"0.66454273",
"0.6635408",
"0.6633242",
"0.6603187",
"0.6592323",
"0.6592323",
"0.6592323",
"0.6547703",
"0.65438455",
"0.65438455",
"0.65147877",
"0.65124285",
"0.650832",
"0.6500934",
"0.6500934",
"0.6497839",
"0.6497173",
"0.6475141",
"0.64647603",
"0.6454851",
"0.64270467",
"0.6423124",
"0.64071405",
"0.6398424",
"0.63968045",
"0.63967466",
"0.63889384",
"0.638437",
"0.6377795",
"0.63676846",
"0.6354615",
"0.6354615",
"0.6354615",
"0.6354565"
]
| 0.7047453 | 34 |
Set customer id for this account | public void setCID(String cid){
this.cid = cid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"public void setCustomer(Integer customer) {\n this.customer = customer;\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"protected void setCustomer(Customer customer) {\n this.customer = customer;\n }",
"public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }",
"public Long getCustomerId() {\n return customerId;\n }",
"public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public void setCustID(String custID) {\r\n this.custID = custID;\r\n }",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }",
"public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"public void setCustomerID(String customerID) {\n try {\n if(!(customerID.equals(null)))\n this.customerID = customerID;\n else {\n this.customerID = \"\";\n throw new SupplyOrderException(\"Invalid Customer ID\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }",
"public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}",
"public String getCustomerid() {\n return customerid;\n }",
"public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"public Customer(int id) {\n\t\tthis.id = id;\n\t}",
"public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }",
"public void setCustomer(String Cus){\n\n this.customer = Cus;\n }",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }",
"@Override\n public void setClientId(int clientId) {\n _entityCustomer.setClientId(clientId);\n }",
"void updateCustomerById(Customer customer);",
"public void setCustomer (de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}",
"public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"public Integer getCustomerID() {\n return customerID;\n }",
"public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }",
"public int getCustomerID() {\n return customerID;\n }",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}",
"@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"public io.confluent.developer.InterceptTest.Builder setReqCustid(int value) {\n validate(fields()[0], value);\n this.req_custid = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"public Long getCustId() {\n return custId;\n }",
"public void setCurrentCustomer(Customer currentCustomer) {\n\t\tthis.currentCustomer = currentCustomer;\n\t}",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"public String getCustId() {\n return custId;\n }",
"public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }",
"public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"public void setCustomerCatId(int v) throws TorqueException\n {\n \n if (this.customerCatId != v)\n {\n this.customerCatId = v;\n setModified(true);\n }\n \n \n if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))\n {\n aCustomerCategory = null;\n }\n \n }",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}",
"public void reserve(int customerId){\n\t\treserved = true;\n\t\tthis.customerId = customerId;\n\t}",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }",
"public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }",
"public void setExternalCustomerId(Long externalCustomerId) {\r\n this.externalCustomerId = externalCustomerId;\r\n }",
"public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}",
"public void setCurrentById(BigDecimal id){\n Customer customer = ejbFacade.find(id);\n current = customer;\n }",
"@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}",
"public void setCustPid(Long custPid) {\n\t\tthis.custPid = custPid;\n\t}",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"public int getCustomerId() \n {\n return customerId;\n }",
"public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }",
"public void changeCreditCardToCustomer(int i) {\n\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\t\t\n\t\tCustomer customerTrobat = (Customer) result.next();\n\t\tcustomerTrobat.setCreditCard(new CreditCard(\"12345\", \"123\", 12, 2019));\n\n\t\tdb.store(customerTrobat);\n\t\tSystem.out.println(\"S'ha assignat una nova targeta aleatòria al Customer \" + i);\n\t}",
"public int toInt(){\n\t\treturn CustomerId;\n\t}",
"public Customer putCustomer(final Customer customer) {\n return dbClient.put(customer);\n }",
"public String getCustID()\n\t{\n\t\treturn custID;\n\t}",
"public final void setOrder_Customer(simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tsetOrder_Customer(getContext(), order_customer);\r\n\t}"
]
| [
"0.79034567",
"0.7835043",
"0.7641192",
"0.7592252",
"0.7539698",
"0.748205",
"0.7428044",
"0.73992145",
"0.73992145",
"0.73151547",
"0.72321737",
"0.71961606",
"0.7188706",
"0.7185046",
"0.7146715",
"0.70833373",
"0.7046553",
"0.704155",
"0.7041326",
"0.7027429",
"0.69925547",
"0.6968486",
"0.6967434",
"0.6959497",
"0.6959497",
"0.693305",
"0.690614",
"0.69025385",
"0.69025385",
"0.68869627",
"0.68804026",
"0.687387",
"0.684058",
"0.684058",
"0.6832302",
"0.68231237",
"0.68041563",
"0.67988735",
"0.67860234",
"0.67584866",
"0.675802",
"0.6705303",
"0.67043084",
"0.6696524",
"0.6696524",
"0.669557",
"0.6689264",
"0.666171",
"0.6654374",
"0.663079",
"0.6623742",
"0.66219527",
"0.6585165",
"0.65823966",
"0.65816337",
"0.6552159",
"0.6531243",
"0.6496702",
"0.6463737",
"0.64322126",
"0.6431956",
"0.64202636",
"0.6343259",
"0.6342753",
"0.634155",
"0.6330831",
"0.6306162",
"0.6300116",
"0.6300116",
"0.6293417",
"0.6268691",
"0.62659824",
"0.6260602",
"0.62304133",
"0.62241745",
"0.62201667",
"0.6205695",
"0.6204327",
"0.6200276",
"0.62000483",
"0.6152998",
"0.6145426",
"0.612858",
"0.6102361",
"0.6099974",
"0.60984105",
"0.60942066",
"0.60825014",
"0.6065133",
"0.60637015",
"0.60613906",
"0.6042302",
"0.6023321",
"0.5999726",
"0.598117",
"0.59530777",
"0.593494",
"0.59278244",
"0.5925749",
"0.59115666",
"0.59113395"
]
| 0.0 | -1 |
Return the customer id of this account | public String getCID(){
return cid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}",
"public Long getCustomerId() {\n return customerId;\n }",
"public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }",
"String getCustomerID();",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public String getCustomerid() {\n return customerid;\n }",
"public String getCustId() {\n return custId;\n }",
"public Integer getCustomerID() {\n return customerID;\n }",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public Long getCustId() {\n return custId;\n }",
"com.google.protobuf.ByteString\n getCustomerIdBytes();",
"com.google.protobuf.ByteString\n getCustomerIdBytes();",
"public int getCustomerID() {\n return customerID;\n }",
"public String getCustID()\n\t{\n\t\treturn custID;\n\t}",
"public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}",
"public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getNextCustomerId() {\n return database.getNextCustomerId();\n }",
"@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }",
"public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}",
"public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }",
"public String getCustomerCode() {\n\t\treturn customerCode;\n\t}",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getCustomerId() \n {\n return customerId;\n }",
"public int toInt(){\n\t\treturn CustomerId;\n\t}",
"public Integer getCustomer() {\n return customer;\n }",
"public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }",
"public int getCustId(){\n return this.custId;\r\n }",
"public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}",
"public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}",
"String getAccountID();",
"String getAccountID();",
"public String getCustomer() {\n return customer;\n }",
"public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"public String getAmazonCustomerId(final SessionContext ctx, final Customer item)\n\t{\n\t\treturn (String)item.getProperty( ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID);\n\t}",
"Customer getCustomerById(final Long id);",
"public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}",
"@Override\n public String provideCustomerConnectionId( )\n {\n return _signaleur.getGuid( );\n }",
"private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\";\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"customer\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(element).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }",
"public String getCustomerReference() {\n return customerReference;\n }",
"public int getCustomerref() {\n\t\treturn custref;\n\t}",
"public int getCustomerID(int customer_id) {\n int id = 0;\n try {\n checkCustomerID.setInt(1, customer_id);\n ResultSet resultset = checkCustomerID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + id);\n }\n try {\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Cannot close resultset!\");\n }\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }",
"public String getAmazonCustomerId(final Customer item)\n\t{\n\t\treturn getAmazonCustomerId( getSession().getSessionContext(), item );\n\t}",
"com.google.ads.googleads.v6.resources.Customer getCustomer();",
"private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\"; \r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\t//sets the subscriber name\r\n\t\t\tElement customerInfo = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\tcustomerInfo = DOMUtils.getElement(customerInfo, \"id\", true);\r\n\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(customerInfo).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\t\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}",
"public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getGlobalCustomerNumberID()\n\t{\n\t\treturn globalCustomerNumberID;\n\t}",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public Long getRelCustId() {\n return relCustId;\n }",
"@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}",
"public Identifier getCostAccountIdentifier()\r\n\t{\r\n\t\treturn costAccountIdentifier;\r\n\t}",
"@ApiModelProperty(value = \"Unique identifier for this stored card\")\r\n public Integer getCustomerProfileCreditCardId() {\r\n return customerProfileCreditCardId;\r\n }",
"public long getAccountId() {\n return accountId;\n }",
"public Long getCustPid() {\n\t\treturn custPid;\n\t}",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"static customer getCustomer(String uid) {\n return null;\n }",
"public String getCustomer(String custId);",
"Long getAccountId();",
"public int getAccountID() {\n return accountID;\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}",
"public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }",
"public String getCustomerName() {\n\t\treturn customerName;\n\t}",
"public String getCustomerName() {\n\t\treturn customerName;\n\t}",
"public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }",
"Customer getCustomerById(int customerId);",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}"
]
| [
"0.83092034",
"0.82601035",
"0.82601035",
"0.81492174",
"0.81068873",
"0.8074268",
"0.8030202",
"0.80195475",
"0.797001",
"0.797001",
"0.7969667",
"0.7969667",
"0.79448736",
"0.78810674",
"0.78768104",
"0.77957535",
"0.77717555",
"0.7767272",
"0.77505356",
"0.77418435",
"0.7726146",
"0.7726146",
"0.77208734",
"0.7594658",
"0.7544675",
"0.7539234",
"0.75037754",
"0.75037754",
"0.7482778",
"0.74814373",
"0.7437465",
"0.7437465",
"0.7428366",
"0.7339419",
"0.73238295",
"0.71413743",
"0.70841014",
"0.70831186",
"0.7067859",
"0.70400095",
"0.70326823",
"0.70275736",
"0.69901925",
"0.695606",
"0.6945269",
"0.6919602",
"0.68509686",
"0.68406475",
"0.6840561",
"0.68168044",
"0.67563975",
"0.67224306",
"0.67224306",
"0.666762",
"0.66659915",
"0.665059",
"0.6629377",
"0.66109574",
"0.66106576",
"0.6592587",
"0.65826374",
"0.6579476",
"0.656657",
"0.65576255",
"0.6536343",
"0.6532768",
"0.65132976",
"0.64659023",
"0.6454997",
"0.64491546",
"0.64309144",
"0.64309144",
"0.64207405",
"0.6398558",
"0.6395752",
"0.63908935",
"0.6385875",
"0.6385875",
"0.6383121",
"0.63762575",
"0.63762575",
"0.63734376",
"0.63692474",
"0.63682854",
"0.6365845",
"0.63630545",
"0.6357634",
"0.6345262",
"0.63449335",
"0.6342704",
"0.63350046",
"0.6334499",
"0.63277066",
"0.6311979",
"0.63073903",
"0.6305183",
"0.6305183",
"0.6303954",
"0.63027483",
"0.62926835",
"0.6292414"
]
| 0.0 | -1 |
Set type for this account | public void setType(String type){
this.type = type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setAccountType(AccountType accountType) {\n if (accountType != null && !accountType.equals(this.accountType)) {\n previousAccountType = this.accountType;\n lastAccountChangeDate = new Date();\n }\n\n this.accountType = accountType;\n\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type) {\n\n this.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"void setType(final UserType type);",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(final Type type) {\n this.type = type;\n }",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"void setType(java.lang.String type);",
"public void setType (String typ) {\n type = typ;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }"
]
| [
"0.74190396",
"0.7416265",
"0.74077266",
"0.74077266",
"0.74077266",
"0.74020255",
"0.7381855",
"0.7381785",
"0.73598754",
"0.7356162",
"0.7356162",
"0.7356162",
"0.7356162",
"0.7356081",
"0.7356081",
"0.7355057",
"0.73530936",
"0.7347193",
"0.73468006",
"0.73468006",
"0.73468006",
"0.73457336",
"0.73443717",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7319909",
"0.7318659",
"0.73180044",
"0.7315735",
"0.7315735",
"0.7315735",
"0.73154074",
"0.73116994",
"0.7310983",
"0.7304458",
"0.7303349",
"0.73030776",
"0.7299054",
"0.7285737",
"0.72780025",
"0.7272692",
"0.7270665",
"0.72667426",
"0.7261541",
"0.7259767",
"0.7258959",
"0.7258959",
"0.7258959",
"0.7257409",
"0.7248548",
"0.7241375",
"0.7234656",
"0.7213489",
"0.7202666",
"0.7198075",
"0.71861464",
"0.7185638",
"0.7185638",
"0.717128",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7168178",
"0.7160748",
"0.7137541",
"0.7137541",
"0.7119216",
"0.71076167",
"0.71076167",
"0.7076381",
"0.70552456",
"0.70464545",
"0.70464545",
"0.7029898",
"0.7029898"
]
| 0.71774095 | 77 |
Return the type of this account | public String getType(){
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"public int getAccountType() {\r\n return accountType;\r\n }",
"protected String getType(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_TYPE, null);\n }",
"GlAccountType getGlAccountType();",
"public PaymentAccountTypeId getAccountType() {\n return this.accountType;\n }",
"public String getBankAccountType();",
"public abstract int getAccountType();",
"public String getTypeAccountInNumber() {\n return typeAccountInNumber;\n }",
"@ApiModelProperty(value = \"This is used to identify the account type of the senderPrimaryAccountNumber in the request. Below are the possible values.<br><br> 00-Not applicable<br> 10-Saving account<br> 20-Checking account<br> 30-Credit card account<br> 40-Universal account<br><br>Default is set to \\\"00\\\" if not provided.\")\n public String getAccountType() {\n return accountType;\n }",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public String getAccountTypeCode() {\n return accountTypeCode;\n }",
"public String getTypeAccountInLetter() {\n return typeAccountInLetter;\n }",
"public com.rightrez.PassportType getType() {\r\n return type;\r\n }",
"@Override\n public byte getType() {\n return TYPE_ACCOUNT_CONTROL;\n }",
"UserType getType();",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"@NotNull\n\tpublic UserType getType() {\n\t\treturn super.getTypeEnum();\n\t}",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getUserType() {\n\t\treturn _userType;\n\t}",
"public final String getType() {\n return this.type;\n }",
"public String getType() {\n return _type;\n }",
"public String getType()\n {\n return type;\n }",
"public final String type() {\n return type;\n }",
"public String getType() {\n\n return this.type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"public String getType() {\n return type;\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"@Override\r\n\tpublic String getAccountTypeName() {\n\t\treturn null;\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\n return type; \n }"
]
| [
"0.8378007",
"0.8378007",
"0.8147926",
"0.8147926",
"0.7873514",
"0.78469515",
"0.7819915",
"0.7661105",
"0.7510094",
"0.7410118",
"0.7375959",
"0.7243268",
"0.7190419",
"0.70502377",
"0.70429033",
"0.68976045",
"0.6873879",
"0.6838427",
"0.68151027",
"0.6813252",
"0.6813252",
"0.6813252",
"0.6813252",
"0.6795994",
"0.67833817",
"0.6763722",
"0.6750755",
"0.6749574",
"0.6749253",
"0.6748236",
"0.6740976",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.6729788",
"0.67250943",
"0.67250943",
"0.67250943",
"0.67250943",
"0.67250943",
"0.67250943",
"0.6724383",
"0.6720357",
"0.6711146",
"0.6711146",
"0.67111063",
"0.67111063",
"0.67111063",
"0.67110515",
"0.67081726",
"0.67049986",
"0.67042655",
"0.6698761",
"0.6690753",
"0.6690753",
"0.6690753",
"0.6690753",
"0.6690753",
"0.6687028",
"0.6676089",
"0.66713125"
]
| 0.0 | -1 |
Set the balance for this account | public void setBalance(double balance){
this.balance = balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance( Integer account_id, double balance ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n params.put(\"balance\", String.valueOf(balance));\r\n String url = API_DOMAIN + ACCOUNT_EXT + SET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }",
"public void setBalance(java.math.BigDecimal balance) {\n this.balance = balance;\n }",
"void setManageTransactionBalance(String balance);",
"public void setBalance(final int balance)\n {\n this.balance = balance;\n }",
"public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }",
"public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }",
"public void setBalance(double balance)\n {\n startingBalance = balance;\n }",
"public void setBalance(){\n balance.setBalance();\n }",
"public void setBalance(Integer balance) {\n this.balance = balance;\n }",
"public void setBalance(Integer balance) {\n this.balance = balance;\n }",
"public void setBalance(float balance) {\n this.balance = balance;\n }",
"public void setBalance(double balance) {\n\t\tthis.balance = balance;\n\t}",
"public void setBalance( long balance ) {\r\n this.balance = balance;\r\n }",
"public void setBalance(Double balance) {\r\n this.balance = balance;\r\n }",
"void setBalance(double value);",
"protected void setTotalBalance(double balance)\r\n {\r\n totalBalance = balance;\r\n }",
"public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 입력하셨습니다. 현재 잔고는 \"+this.balance+\"입니다\");\r\n\t}\r\n \r\n}",
"public void setBalance(T balance) {\n transactions = new ArrayList<Transaction>();\n\t\ttransactions.add(new Transaction<T>('+', balance));\n }",
"Account(int balance) {\n if(balance <0) this.balance=0;\n this.balance = balance;\n }",
"public void setBalance() {\n System.out.print(\"Set the balance of your credit card: \");\n this.balance = Double.parseDouble(scanner.nextLine());\n }",
"public void setBalance(float value)\n {\n balanceCtrl.setValue(value);\n }",
"public void setNewBalance() {\n\t\tacc.setBankBalance(acc.getBalance() - keyboard.getAmt());\r\n\t}",
"public void setBalance(double newBalance) {\n\t\tbalance = newBalance;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}",
"public void updateBalance(UUID accountId, double amount) {\n Account account = repository.getAccount(accountId);\n account.updateBalance(amount);\n repository.save(account);\n }",
"public Account(double balance) {\n\t\tthis.balance = balance;\n\t}",
"public void setBalance(final double newBalance) {\n this.balance = newBalance;\n }",
"void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}",
"public void changeBalance (int amount){\n balance += amount;\n }",
"public void setCurrent_balance(com.token.vl.service.MoneyWs current_balance) {\n this.current_balance = current_balance;\n }",
"public boolean setBalance(float balance) {\r\n\t\tif(isValidBalance(balance)){\r\n\t\t\tthis.balance = balance;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}",
"public synchronized double setBalanceForAccId(int AccId, double bal) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"UPDATE accounts SET acc_balance = \" + bal + \" WHERE acc_id = \" + AccId;\n\t\t\tpsttmnt = dbAccess.prepareStatement(querySting);\n\t\t\tint result = psttmnt.executeUpdate();\n\t\t\tif (result != 0) {\n\t\t\t\t balance = getBalanceForAccId(AccId);\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn balance;\n\t}",
"private void updateBalance(int balance) throws SQLException {\n\t\tupdateBalanceStatement.clearParameters();\n\t\tupdateBalanceStatement.setInt(1, balance);\n\t\tupdateBalanceStatement.setString(2, this.username);\n\t\tupdateBalanceStatement.executeUpdate();\n\t}",
"public BankAccount(int balance) {\n\n this.balance = balance;\n\n }",
"public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }",
"public void increaseBalance(final double balance) {\n this.balance += balance;\n }",
"public void setBankAccount(final int newBAccount) {\n this.bankAccount = newBAccount;\n }",
"public void addBalance(long balance) {\r\n this.balance += balance;\r\n }",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"public Builder setBalance(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n balance_ = value;\n onChanged();\n return this;\n }",
"@Transactional(isolation = Isolation.SERIALIZABLE)\n public void updateAccountBalance(Long accountId, Double newBalance) {\n Account account =accountRepository.findById(accountId)\n .orElseThrow(() -> new AccountNotFoundException(\"Account not found\"));\n account.setBalance(newBalance);\n accountRepository.save(account);\n }",
"public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }",
"public BankAccount(double initialBalance) {\r\n\t\tbalance=initialBalance;\r\n\t}",
"public BankAccount(String accountName, int balance) {\n this.accountName = accountName;\n this.balance = balance;\n this.valueDeposits = balance;\n this.valueWithdrawals = 0;\n this.maximumBalance = balance;\n this.minimumBalance = balance;\n }",
"Account(int id, double balance){\r\n\t\t//sets the default values and than the specified values of the id and balance\r\n\t\tsetId(id);\r\n\t\tsetBalance(balance);\t\t \r\n\t\tsetAnnualInterestRate(0);\r\n\t\tthis.dateCreated = new Date(System.currentTimeMillis());\r\n\t }",
"public SavingsAccount(double balance)\n {\n startingBalance = balance;\n }",
"public Builder setBalanceBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n balance_ = value;\n onChanged();\n return this;\n }",
"void setAccount(final Account account);",
"public synchronized void setPendingBalance(double pendingBalance) {\n this.pendingBalance = pendingBalance;\n }",
"@Override\n public void changeBalance (ChangeBalanceDto changeBalanceDto) {\n new AccountDaoImpl(new StatementsRunnerImpl()).changeBalance(changeBalanceDto);\n }",
"public Balance(final BigDecimal value) {\r\n this.value = value;\r\n }",
"public void editBalance() {\n\t\tAccount account = getAccountForEditBalance();\n\n\t\tif (adminDao.editBalance(account))\n\t\t\tSystem.out.println(\"Balance edited!\");\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"public void decreaseBalance(final double balance) {\n this.balance -= balance;\n }",
"public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }",
"public void credit(double amount) {\n this.balance += amount;\n }",
"public void setCreditBalance(java.math.BigDecimal creditBalance) {\n this.creditBalance = creditBalance;\n }",
"public BankAccount(int accountNo, String name, double balance) {\n this.accountNo = accountNo;\n this.name = name;\n if(balance > 0.0)\n this.balance = balance;\n }",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }",
"public void deposit(BigDecimal amount) {\n this.setBalance(this.getBalance().add(amount));\n }",
"public abstract void updateBalance(Balance balance, LedgerEntry.Subtype subtype, long amount) throws TransactionException;",
"protected void enableActionSetBalance()\n {\n Action action = new Action(\"SetBalance\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyBalance));\n iDelegateSetBalance = new DoSetBalance();\n enableAction(action, iDelegateSetBalance);\n }",
"public void setInitialBalance(double value) {\n this.initialBalance = value;\n }",
"public void sendBankBalance(int amount) {\n sendMessage(Prefix.BANKBALANCE, amount + \"\");\n }",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"Account(String name, double balance)\r\n\t{\r\n\t\t\r\n\t\tthis.name = name; //assign name to the instance variable name \r\n\t\t\r\n\t\t// validate that the balance is greater that 0.0; if it is not,\r\n\t\t// instance variable balance keeps its default value 0.0\r\n\t\tif(balance > 0.0) // if balance is valid\r\n\t\t\tthis.balance = balance; // assign balance to the instance variable balance\t\t\t\t\t\r\n\t}",
"public void setSaldoBank(double saldoBank) {\n this.saldoBank = saldoBank;\n }",
"@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"public void addBalance(float deposit) {\r\n\t\tthis.balance += deposit;\r\n\t}",
"@Test\n public void testSetBalance() {\n System.out.println(\"setBalance\");\n double balance = 9.0;\n Account instance = new Account(\"Piper\", 10.0);\n instance.setBalance(balance);\n double expResult = 9.0;\n double result = instance.getBalance();\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"public Account(int id, double balance) {\n this();\n this.id = id;\n this.balance = balance;\n }",
"public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}",
"public void setFinalBalance(double value) {\n this.finalBalance = value;\n }",
"public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}",
"public void updateBalance(String mobileNo,int balance)\n\t{\n\t\tContext ctx;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\tstmt.executeUpdate(\"update mobile set balance=\"+balance+\" where mobileno=\"+mobileNo);\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void setBalanceBonus(BigDecimal balanceBonus) {\n this.balanceBonus = balanceBonus;\n }",
"public void setAccount(String bank, String account)\n\t{\n\t\tbank = bank.trim().replaceAll(\" +\",\" \");\n\t\t\n\t\tif(account.length() == 19) //length of digits including hyphen(-)\n\t\t{\n\t\t this.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-####\");\n\t\t}\n\t\tif(bank.equals(\"HSBC Canada\"))\n\t\t{\n\t\t\t\n\t\t\tthis.account = MaskDigits.mask(account, \"##xx-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"Royal Bank of Canada\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"####-xxxx-xxxx-xxxx\");\n\t\t}\n\t\t\n\t\tif(bank.equals(\"American Express\"))\n\t\t{\n\t\t\tthis.account = MaskDigits.mask(account, \"xxxx-xxxx-xxxx-###\");\n\t\t}\n\t}",
"public void setAmountBank(double amountBank) {\n this.amountBank = amountBank;\n }",
"@Test\n public void testSetBalance() {\n System.out.println(\"setBalance\");\n Member instance = member;\n \n double balance = 100.00;\n instance.setBalance(balance);\n \n double expResult = balance;\n double result = instance.getBalance();\n \n assertEquals(expResult,result, 100.00);\n }",
"public BankAccount(int accountNum, String customerName, double balance){\n this.accountNum = accountNum;\n this. customerName = customerName;\n this.balance = balance;\n }",
"public BankAccount() {\r\n\t\tbalance=0;\r\n\t\t\r\n\t}",
"public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }",
"public BankAccount(String holderName, String number, float balance){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = balance;\r\n\t}",
"public void updateBal(int value) {\r\n bal = bal + value;\r\n }",
"public void withdraw(BigDecimal amount) {\n this.setBalance(this.getBalance().subtract(amount));\n }",
"public void setTotalDebit(java.math.BigDecimal totalDebit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTALDEBIT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTALDEBIT$0);\n }\n target.setBigDecimalValue(totalDebit);\n }\n }",
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}",
"@Override\n\tpublic void updateAccountBalance(double newBalance, int id) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString updateQuery = \"update accounts set balance=? where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(updateQuery);\n\t\t\tprepStmt.setDouble(1, newBalance);\n\t\t\tprepStmt.setInt(2, id);\n\t\t\tprepStmt.executeUpdate();\n\t}",
"public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }",
"private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }",
"public double getBalance(){\r\n\t\treturn balance;\r\n\t}",
"public void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}"
]
| [
"0.7874032",
"0.77663",
"0.7691289",
"0.7667401",
"0.7661307",
"0.76573473",
"0.7649006",
"0.7597309",
"0.7597309",
"0.75686896",
"0.7545439",
"0.7531321",
"0.7531321",
"0.7527017",
"0.7456958",
"0.74481696",
"0.7418039",
"0.7311854",
"0.73034734",
"0.71082187",
"0.7094833",
"0.6923923",
"0.6905861",
"0.68797606",
"0.68631506",
"0.68583834",
"0.67478126",
"0.670351",
"0.67004555",
"0.66822076",
"0.661381",
"0.65780056",
"0.6557197",
"0.65112644",
"0.6497948",
"0.64772475",
"0.64321053",
"0.63680273",
"0.63442296",
"0.63160735",
"0.62747264",
"0.6257083",
"0.6220209",
"0.61737186",
"0.6122455",
"0.6115657",
"0.61079085",
"0.61052036",
"0.60899514",
"0.60846543",
"0.6036202",
"0.60194325",
"0.60142416",
"0.60019565",
"0.600143",
"0.5990211",
"0.59841233",
"0.59839684",
"0.5979853",
"0.59795",
"0.59644854",
"0.5946358",
"0.5942464",
"0.59395015",
"0.59375197",
"0.5931652",
"0.5930142",
"0.5923216",
"0.58953494",
"0.5894639",
"0.58661395",
"0.5862667",
"0.58591276",
"0.5858363",
"0.5854528",
"0.58522695",
"0.58393633",
"0.58380425",
"0.5837427",
"0.58310544",
"0.5830426",
"0.58219934",
"0.58167124",
"0.58124125",
"0.5810516",
"0.58037543",
"0.5798121",
"0.57846075",
"0.5780034",
"0.5775535",
"0.5768167",
"0.5767364",
"0.57645106",
"0.5759483",
"0.5746822",
"0.5743246",
"0.5730129",
"0.5722847",
"0.57188606",
"0.5710244"
]
| 0.75664896 | 10 |
Return the balance of this account | public double getBalance(){
return balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBalance() {\n return total_bal;\n }",
"public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}",
"public java.math.BigDecimal getBalance() {\n return balance;\n }",
"public Integer getBalance() {\n return balance;\n }",
"public Integer getBalance() {\n return balance;\n }",
"public BigDecimal getBalance() {\n return balance;\n }",
"public BigDecimal getBalance() {\n return balance;\n }",
"public long getBalance() {\n return this.balance;\n }",
"public final float getBalance() {\n return balance;\n }",
"public int getBalance() {\n return balance;\n }",
"public int getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public double getBalance(){\n return balance.getBalance();\n }",
"public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}",
"public int getBalance() {\n\t\treturn balance;\n\t}",
"public long getBalance() {\n\t\n\treturn balance;\n}",
"public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public String getBalance() {\n return balance;\n }",
"public int getBalance()\n {\n return balance;\n }",
"public double getBalance() {\n return this.balance;\n }",
"public double getBalance(){\r\n\t\treturn balance;\r\n\t}",
"public double getBal() {\n\t\t return balance;\r\n\t }",
"public double getBankAccountBalance() {\r\n\t\t\r\n\t\tdouble balance = 0.0;\r\n\t\t\r\n\t\t\t\tif( customerBankAccountList.contains(this.getCustomer() ) ) \r\n\t\t\t\t{\t\r\n\t\t\t\t\tbalance = this.getCustomer().getBalance();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\treturn balance;\r\n\t\t}",
"public Double getBalance() {\r\n return balance;\r\n }",
"public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}",
"public double getBalance()\n {\n return balance;\n }",
"public double getBalance()\n \n {\n \n return balance;\n \n }",
"public float getBalance() {\n return balance;\n }",
"public double getBalance()\t{\n\t\treturn balance;\n\t}",
"public Money getTotalBalance();",
"public String getBalance() {\n return this.balance;\n }",
"public int getBalance() {\n return this.balance;\n\n }",
"public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}",
"double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }",
"public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }",
"double getBalance();",
"double getBalance();",
"public double getCurrentBalance(){\n if(!checkAccountOpen()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n System.out.println(\"Your current balance is: $\"+currentBalance);\n return currentBalance;\n }",
"public static double totalBalance() {\n return totalBalance;\n }",
"public java.lang.String getTotalbalance() {\n return totalbalance;\n }",
"public float getAmount() {\n System.out.println(\"Account Balance:\" + amount);\n return amount;\n }",
"public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n balance_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public double getBalance(){\n return this.balance;\r\n }",
"public double getBalance(){\n return balance;\n }",
"public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT BALANCE FROM ACCOUNTS WHERE ACCOUNT_ID = \" + account_id)) {\n\n if (res.next())\n return res.getInt(\"BALANCE\");\n } catch (SQLException ex) {\n return null;\n }\n\n return null;\n }",
"public BigDecimal getBalance()\n\t{\n\t\tBigDecimal retValue = Env.ZERO;\n\t//\tlog.config( toString() + \" Balance=\" + retValue);\n\t\treturn retValue;\n\t}",
"BigDecimal getClosingDebitBalance();",
"public static Double getCurrentBalance() {\n\t\treturn BankAccount.currentBalance;\n\t}",
"protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }",
"@java.lang.Override\n public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n balance_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}",
"@Override\r\n\tpublic double getBalance() {\n\t\treturn (super.getBalance()+cashcredit);\r\n\t}",
"public double getBalance(){\n return balance;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public double getBalance()\n {\n return startingBalance;\n }",
"public double getBalance(){\n return balance;\n }",
"public float showBalance() {\n\t\treturn dao.showBalance();\r\n\t}",
"public AmountOfMoney getCashRegisterBalance(){\n return cashRegister.getBalance();\n }",
"public double getBalance(){\n return balance;\r\n }",
"public Long getAvailableBalance() {\n return availableBalance;\n }",
"BigDecimal getClosingCreditBalance();",
"BigDecimal getOpeningDebitBalance();",
"BigDecimal getOpeningDebitBalance();",
"private double getBalance() { return balance; }",
"public float getAccBalance() {\n\t\treturn accBalance;\n\t}",
"public AccountDto getBalanceFor(UUID accountId) {\n Account account = repository.getAccount(accountId);\n return getAccountDtoFor(account);\n }",
"public int getCurBalance() {\n\t\treturn curBalance;\n\t}",
"public java.math.BigDecimal getTotalInvoiceBalance() {\n return totalInvoiceBalance;\n }",
"private int getBalance() throws SQLException {\n\t\tgetBalanceStatement.clearParameters();\n\t\tgetBalanceStatement.setString(1, this.username);\n\t\tResultSet result = getBalanceStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}",
"public com.token.vl.service.MoneyWs getCurrent_balance() {\n return current_balance;\n }",
"public Double getBalance() {\n return null;\n }",
"public static BigDecimal getBalance(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a valid account id, establish a connection\n if (cdt1) {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n BigDecimal balance = DatabaseSelector.getBalance(accountId, connection);\n connection.close();\n return balance;\n }\n return null;\n }",
"@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}",
"public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }",
"public BaseJson<BigDecimal> wallet_balance() throws Exception {\n String s = main(\"wallet_balance\",\"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }",
"@Override\n public BigDecimal getBalance(String customerId, EMCUserData userData) {\n BigDecimal outstandingDebit = null;\n\n //Get total outstanding credits for customer, which existed at atDate\n EMCQuery query = new EMCQuery(enumQueryTypes.SELECT, DebtorsOpenTransactions.class);\n query.addFieldAggregateFunction(\"debit\", \"SUM\");\n query.addFieldAggregateFunction(\"debitAmountSettled\", \"SUM\");\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n //Customer is optional.\n if (customerId != null) {\n query.addAnd(\"customerId\", customerId);\n }\n\n query.addAnd(\"transactionDate\", Functions.nowDate(), EMCQueryConditions.LESS_THAN_EQ);\n\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(query, userData);\n\n if (debitTotals != null) {\n BigDecimal totalDebit = debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal totalDebitSettled = debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n BigDecimal totalCredit = debitTotals[2] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[2];\n BigDecimal totalCreditSettled = debitTotals[3] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[3];\n outstandingDebit = totalDebit.subtract(totalDebitSettled);\n totalCredit = totalCredit.subtract(totalCreditSettled);\n outstandingDebit = outstandingDebit.subtract(totalCredit);\n }\n return outstandingDebit;\n }",
"public double getFinalBalance() {\n return finalBalance;\n }",
"public synchronized double getBalanceForAccId(int AccId) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tResultSet rs;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"SELECT acc_balance FROM accounts where acc_id = \" + AccId;\n\t\t\tpsttmnt = dbAccess.prepareStatement(querySting);\n\t\t\trs = psttmnt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tbalance = rs.getDouble(\"acc_balance\");\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn balance;\n\t}",
"@Override\npublic Money getBalance(Enterprise enterprise, Clerk clerk)\n\t\tthrows PermissionsException {\n\treturn balance;\n}",
"public java.math.BigDecimal getCreditBalance() {\n return creditBalance;\n }",
"public BigDecimal getBalance(String accountNumber) throws TransferServiceException {\n\n\t\tAccount acc = repository.findByAccountNumber(accountNumber);\n\t\tisAccountValid(acc);\n\t\treturn acc.getBalance();\n\t}",
"BigDecimal getOpeningCreditBalance();",
"BigDecimal getOpeningCreditBalance();",
"public int getBankAccount() {\n return bankAccount;\n }",
"public com.token.vl.service.MoneyWs getAvailable_Balance() {\n return available_Balance;\n }",
"@Override\n\tpublic Account getBalance(String username) {\n\t\treturn account.findByUsername(username);\n\t}",
"public double getPendingBalance() {\n return pendingBalance;\n }",
"double getBalance(UUID name);",
"public long balanceForAccount(int acctnum) {\n if (acctnum != -1) {\n return mAccounts.get(acctnum).balance();\n } else {\n long sum = 0;\n for (HDAccount hda : mAccounts)\n sum += hda.balance();\n return sum;\n }\n }"
]
| [
"0.8186586",
"0.8176756",
"0.8104551",
"0.80433553",
"0.80433553",
"0.8039612",
"0.8039612",
"0.80119646",
"0.79757226",
"0.7929124",
"0.7929124",
"0.78989035",
"0.78933656",
"0.7890252",
"0.787447",
"0.785991",
"0.78539157",
"0.78521335",
"0.78521335",
"0.78521335",
"0.78521335",
"0.78521335",
"0.7835681",
"0.7835681",
"0.7835681",
"0.7835681",
"0.7831131",
"0.78212124",
"0.781399",
"0.7801451",
"0.7800968",
"0.7784814",
"0.77722967",
"0.77688366",
"0.77609766",
"0.7744334",
"0.77386904",
"0.77338386",
"0.77292615",
"0.7689728",
"0.76760024",
"0.7636651",
"0.7636416",
"0.7629259",
"0.7622822",
"0.7536544",
"0.7536544",
"0.752733",
"0.74606264",
"0.741977",
"0.74046195",
"0.7395215",
"0.7392673",
"0.7370928",
"0.7368715",
"0.7330237",
"0.72677904",
"0.7265611",
"0.7236337",
"0.723628",
"0.72347134",
"0.7234042",
"0.7219971",
"0.7210723",
"0.7201683",
"0.7181005",
"0.71575725",
"0.71005213",
"0.70932275",
"0.70610255",
"0.7047538",
"0.70310396",
"0.702741",
"0.702741",
"0.6996601",
"0.6972001",
"0.69689405",
"0.6902662",
"0.6891681",
"0.6882458",
"0.68692356",
"0.6867628",
"0.67962456",
"0.67862386",
"0.6779733",
"0.67743933",
"0.67643386",
"0.67576855",
"0.6753961",
"0.67185664",
"0.67005914",
"0.6698738",
"0.6692921",
"0.6692921",
"0.66908395",
"0.6689024",
"0.6668767",
"0.6649667",
"0.66474235",
"0.66412526"
]
| 0.7744822 | 35 |
end of Display method Select account from database | public void selectDB(String newAcctNo) {
acctNo = newAcctNo;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Select * from Accounts where AcctNo='"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
ResultSet rs = stmt.executeQuery(sql);
// Set the Account properties
rs.next();
setCID(rs.getString(2));
setType(rs.getString(3));
setBalance(rs.getDouble(4));
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}",
"public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }",
"private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}",
"public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }",
"public void getUserAccounts(){\n UserAccountDAO userAccountsManager = DAOFactory.getUserAccountDAO();\n //populate with values from the database\n if(!userAccountsManager.readUsersHavingResults(userAccounts)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read user accounts from database. Please check your internet connection and try again.\");\n System.exit(-4);\n }\n }",
"private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }",
"public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getPart().getAccount());\n ctx.setLabelWithKey(\"part_account\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n return ctx.view();\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi(this);\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(this, getString(R.string.str_needs_account),\n REQUEST_PERMISSION_GET_ACCOUNTS, Manifest.permission.GET_ACCOUNTS);\n }\n }",
"java.lang.String getAccount();",
"@Override\n\tpublic Account displayAccountDetails(int accountNo) {\n\t\treturn genericRepository.fetchById(Account.class, accountNo);\n\t}",
"public void chooseAccount() {\n context.startActivityForResult(\n mCredential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);\n }",
"private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\r\n private void chooseAccount() {\r\n if (EasyPermissions.hasPermissions(\r\n getActivity(), Manifest.permission.GET_ACCOUNTS)) {\r\n String accountName = getActivity().getPreferences(Context.MODE_PRIVATE)\r\n .getString(PREF_ACCOUNT_NAME, null);\r\n\r\n if (accountName != null) {\r\n mCredential.setSelectedAccountName(accountName);\r\n Log.i(accountName,\"accountName:\");\r\n getResultsFromApi();\r\n } else {\r\n // Start a dialog from which the user can choose an account\r\n startActivityForResult(\r\n mCredential.newChooseAccountIntent(),\r\n REQUEST_ACCOUNT_PICKER);\r\n }\r\n } else {\r\n // Request the GET_ACCOUNTS permission via a user dialog\r\n EasyPermissions.requestPermissions(\r\n this,\r\n \"This app needs to access your Google account (via Contacts).\",\r\n REQUEST_PERMISSION_GET_ACCOUNTS,\r\n Manifest.permission.GET_ACCOUNTS);\r\n }\r\n }",
"private void chooseAcc() {\n //If there are no accounts in the database, you will be sent back to home (MainActivity).\n //Otherwise all the accounts of the logged in user will be added to a list and the list will\n // be added to a spinner\n if (db.getAllAccounts().size() == 0) {\n Toast.makeText(CreateCardActivity.this, \"You don't have any accounts. Create an account first.\",\n Toast.LENGTH_LONG).show();\n Intent intent = new Intent(CreateCardActivity.this, MainActivity.class);\n startActivity(intent);\n } else {\n List<String> accList = new ArrayList<>();\n for (int i = 0; i < db.getAllAccounts().size(); i++) {\n if (db.getAllAccounts().get(i).getUsername().equals(logUser)) {\n accList.add(db.getAllAccounts().get(i).getAccNum());\n }\n }\n\n ArrayAdapter<String> accAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_dropdown_item, accList);\n accSpinner.setAdapter(accAdapter);\n accSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n chosenAcc = parent.getItemAtPosition(position).toString();\n Toast.makeText(CreateCardActivity.this, \"Selected: \" + chosenAcc, Toast.LENGTH_SHORT).show();\n\n //Sets the visibility of different fields and therefore allows or denys creation\n // of cards based on whether a card can be created to that account or not.\n //An error message will tell why creating a card for a certain account isn't\n // allowed, if necessary\n if (!db.getAllCards().isEmpty()) {\n for (int i = 0; i < db.getAllAccounts().size(); i++) {\n for (int j = 0; j < db.getAllCards().size(); j++) {\n if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) &&\n db.getAllCards().get(j).getAccNum().equals(chosenAcc)) {\n withdrawLimit.setVisibility(View.GONE);\n payLimit.setVisibility(View.GONE);\n wholeWorld.setVisibility(View.GONE);\n europe.setVisibility(View.GONE);\n nordic.setVisibility(View.GONE);\n finland.setVisibility(View.GONE);\n save.setVisibility(View.GONE);\n withdrawText.setVisibility(View.GONE);\n payText.setVisibility(View.GONE);\n checkText.setVisibility(View.GONE);\n\n Toast.makeText(CreateCardActivity.this, \"Card already exists for this account\",\n Toast.LENGTH_LONG).show();\n } else if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) &&\n db.getAllAccounts().get(i).getType().equals(\"Savings\")) {\n\n withdrawLimit.setVisibility(View.GONE);\n payLimit.setVisibility(View.GONE);\n wholeWorld.setVisibility(View.GONE);\n europe.setVisibility(View.GONE);\n nordic.setVisibility(View.GONE);\n finland.setVisibility(View.GONE);\n save.setVisibility(View.GONE);\n withdrawText.setVisibility(View.GONE);\n payText.setVisibility(View.GONE);\n checkText.setVisibility(View.GONE);\n\n Toast.makeText(CreateCardActivity.this, \"Can't create a card to a savings account\",\n Toast.LENGTH_LONG).show();\n } else if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) && db.getAllAccounts().get(i).getCanPay() == 0) {\n withdrawLimit.setVisibility(View.GONE);\n payLimit.setVisibility(View.GONE);\n wholeWorld.setVisibility(View.GONE);\n europe.setVisibility(View.GONE);\n nordic.setVisibility(View.GONE);\n finland.setVisibility(View.GONE);\n save.setVisibility(View.GONE);\n withdrawText.setVisibility(View.GONE);\n payText.setVisibility(View.GONE);\n checkText.setVisibility(View.GONE);\n\n Toast.makeText(CreateCardActivity.this, \"Can't create a card to an account that doesn't allow payments\",\n Toast.LENGTH_LONG).show();\n } else if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) &&\n !db.getAllAccounts().get(i).getType().equals(\"Savings\") &&\n !db.getAllCards().get(j).getAccNum().equals(chosenAcc) &&\n db.getAllAccounts().get(i).getCanPay() == 1) {\n withdrawLimit.setVisibility(View.VISIBLE);\n payLimit.setVisibility(View.VISIBLE);\n wholeWorld.setVisibility(View.VISIBLE);\n europe.setVisibility(View.VISIBLE);\n nordic.setVisibility(View.VISIBLE);\n finland.setVisibility(View.VISIBLE);\n save.setVisibility(View.VISIBLE);\n withdrawText.setVisibility(View.VISIBLE);\n payText.setVisibility(View.VISIBLE);\n checkText.setVisibility(View.VISIBLE);\n }\n }\n }\n } else {\n for (int i = 0; i < db.getAllAccounts().size(); i++) {\n if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) &&\n db.getAllAccounts().get(i).getType().equals(\"Savings\")) {\n\n withdrawLimit.setVisibility(View.GONE);\n payLimit.setVisibility(View.GONE);\n wholeWorld.setVisibility(View.GONE);\n europe.setVisibility(View.GONE);\n nordic.setVisibility(View.GONE);\n finland.setVisibility(View.GONE);\n save.setVisibility(View.GONE);\n withdrawText.setVisibility(View.GONE);\n payText.setVisibility(View.GONE);\n checkText.setVisibility(View.GONE);\n\n Toast.makeText(CreateCardActivity.this, \"Can't create a card to a savings account\",\n Toast.LENGTH_LONG).show();\n } else if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) && db.getAllAccounts().get(i).getCanPay() == 0) {\n withdrawLimit.setVisibility(View.GONE);\n payLimit.setVisibility(View.GONE);\n wholeWorld.setVisibility(View.GONE);\n europe.setVisibility(View.GONE);\n nordic.setVisibility(View.GONE);\n finland.setVisibility(View.GONE);\n save.setVisibility(View.GONE);\n withdrawText.setVisibility(View.GONE);\n payText.setVisibility(View.GONE);\n checkText.setVisibility(View.GONE);\n\n Toast.makeText(CreateCardActivity.this, \"Can't create a card to an account that doesn't allow payments\",\n Toast.LENGTH_LONG).show();\n } else if (db.getAllAccounts().get(i).getAccNum().equals(chosenAcc) &&\n !db.getAllAccounts().get(i).getType().equals(\"Savings\") &&\n db.getAllAccounts().get(i).getCanPay() == 1) {\n withdrawLimit.setVisibility(View.VISIBLE);\n payLimit.setVisibility(View.VISIBLE);\n wholeWorld.setVisibility(View.VISIBLE);\n europe.setVisibility(View.VISIBLE);\n nordic.setVisibility(View.VISIBLE);\n finland.setVisibility(View.VISIBLE);\n save.setVisibility(View.VISIBLE);\n withdrawText.setVisibility(View.VISIBLE);\n payText.setVisibility(View.VISIBLE);\n checkText.setVisibility(View.VISIBLE);\n }\n }\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n selections();\n }\n }",
"private void showUser() {\n\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\tString sql=\"select * from Users\";\r\n\t\tResultSet rs=ado.executeSelect(sql);\r\n\t\tString str=\"\";\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString user=rs.getString(\"UserName\");\r\n\t\t\t\tString pass=rs.getString(\"Password\");\r\n\t\t\t\tString type=rs.getString(\"UserType\");\r\n\t\t\t\tif(type.equals(\"管理员\"))\r\n\t\t\t\t\tpass=\"******\";\r\n\t\t\t\tif(user.length()<12){\r\n\t\t\t\t\tfor(int i=user.length();i<=12;i++)\r\n\t\t\t\t\t\tuser+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(pass.length()<12){\r\n\t\t\t\t\tfor(int i=pass.length();i<=12;i++)\r\n\t\t\t\t\t\tpass+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(type.length()<12){\r\n\t\t\t\t\tfor(int i=type.length();i<=12;i++)\r\n\t\t\t\t\t\ttype+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tstr+=\"用户名:\"+user;\r\n\t\t\t\tstr+=\" 密码:\"+pass;\r\n\t\t\t\tstr+=\" 用户类型:\"+type+\"\\n\";\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttextAreaUser.setText(str);\r\n\t}",
"public Account selectAccount(String benutzername) {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor meinZeiger;\n meinZeiger = db.rawQuery(\"SELECT * FROM \" + TABELLE_ACC +\n \" WHERE \" + SPALTE_ACC_BENUTZERNAME + \"= '\" + benutzername + \"'\", null);\n meinZeiger.moveToFirst();\n\n Account acc = new Account();\n acc.setId(meinZeiger.getInt(meinZeiger.getColumnIndex(SPALTE_ACC_ID)));\n acc.setBenutzerName(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_BENUTZERNAME)));\n acc.setVorname(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_VORNAME)));\n acc.setNachname(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_NACHNAME)));\n acc.setAnrede(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_GESCHLECHT)));\n acc.setGrad(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_GRAD)));\n acc.setTelenummer(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_TELEFONNUMMER)));\n acc.setPassword(meinZeiger.getString(meinZeiger.getColumnIndex(SPALTE_ACC_PASSWORD)));\n meinZeiger.close();\n return acc;\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(\n this,\n \"This app needs to access your Google account (via Contacts).\",\n REQUEST_PERMISSION_GET_ACCOUNTS,\n Manifest.permission.GET_ACCOUNTS);\n }\n }",
"private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }",
"@FXML\n private void viewSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"View DonorReceiver\");\n } else {\n ViewProfilePaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.VIEW);\n }\n }",
"public boolean selectExisitingAccount(int choice, String bankAccount);",
"private static void displayAccount(Account account) {\n\t\tSystem.out.println(account.toString());\n\t\tSystem.out.println();\n\t}",
"private String searchAllUserAccountSQL(){\n\t\tString sql = (\"SELECT username, type From user\");\n\t\tString addsql;\n\t\tif(!accountNameViewTextField.getText().equals(\"\")){\n\t\t\taddsql = \" WHERE username = \\'\" + accountNameViewTextField.getText() + \"\\'\";\n\t\t\tsql = sql + addsql;\n\t\t}\n\t\tSystem.out.println(sql);\n\t\treturn sql;\n\t}",
"@Override\n public void onClick(View arg0) {\n\n Cursor c = db.rawQuery(\"select * from ureq where email= '\"+uid.getText()+\"' and bank='\"+sp.getSelectedItem()+\"' \", null);\n if(c.getCount()==0)\n {\n Toast.makeText(getApplicationContext(), \"No Records Found!\", Toast.LENGTH_SHORT).show();\n return;\n }\n while(c.moveToNext())\n {\n acno.setText(c.getString(2));\n bal.setText(c.getString(3));\n }\n }",
"Account selectByPrimaryKey(Long accountid);",
"public SeeAnAccount() {\n initComponents();\n }",
"public void login() throws SQLException {\n\t\tBank b = new Bank();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\t\n String sql = \"SELECT first_name, last_name, user_name, password FROM bank.login WHERE user_name = \\\"\" + user.toLowerCase() + \"\\\"AND password = \\\"\" + \n pw.toLowerCase() + \"\\\"\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = connect.connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql);\n b.setKey(b.getKey());\n while (resultSet.next()) {\n /*\tbank.customers.add(new Pair <Integer, Customer> (b.getKey(), new Customer(\n \t\t\tresultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"user_name\"),\n resultSet.getString(\"password\"))));\n */\n bank.customers.add(new Customer(\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"user_name\"),\n resultSet.getString(\"password\")));\n connect.databaseClose();\n bank.pickCustomer();\n }\n }\n\n catch(SQLException e){\n System.out.println(\"That username or password does not exist. Please try again.\");\n Menus.custMenu();\n\n }\n\n \n\n \n }",
"@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}",
"Account selectByPrimaryKey(String id);",
"public int getAccount1() // getAccount1 method start\n\t\t{\n\t\t\treturn debitBox1.getSelectedIndex();\n\t\t}",
"public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}",
"@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }",
"@RequestMapping(value=\"/settings/account\", method=RequestMethod.GET)\n\tpublic String showForm(Model model, HttpServletRequest request, HttpServletResponse response) {\n\t\tString users_id = SessionHandler.sessionExists(request, response);\n\t\tif (users_id == null)\n\t\t\treturn \"login\";\n\t\t\n\t\tUserModel user = UserModel.selectUser(users_id);\t\t\n\t\tmodel.addAllAttributes(user.getUser());\t\t\n\t\treturn \"settingsaccount\";\n\t\t\n\t}",
"@Override\n\tpublic BankPrompt run() {\n\t\tBankUser user = bankAuthUtil.getCurrentUser();\n\t\t// if(bankAuthUtil.getCurrentUser().getRole().contentEquals(\"Customer\")) {\n\t\tList<Transactions> transactions = transactionsDao.findAll(user.getUserId(), user.getRole());\n\n\t\tfor (int i = 0; i < transactions.size(); i++) {\n\t\t\tTransactions thisTransaction = transactions.get(i);\n\t\t\tint userId = thisTransaction.getUserId();\n\t\t\tBankUser thisUser = bankUserDao.findById(userId);\n\t\t\tString fullname = thisUser.getFullname();\n\n\t\t\t// bankUserDao.findById(accounts.get(i).getUserId()).getFullname();\n\n\t\t\t// if (accounts.get(i).getActiveStatus() == 1) {\n\t\t\tSystem.out.println(\"Enter \" + i + \"for: \" + transactions.get(i).getUserId() + \" \" + fullname\n\t\t\t\t\t+ transactions.get(i).getBankAccountId() + \" \" + transactions.get(i).getAction() + \" \"\n\t\t\t\t\t+ transactions.get(i).getAmount());\n\t\t}\n\t\t// }\n\n\t\t// System.out.println(\"Sorry, something went wrong.\");\n\n\t\tif (bankAuthUtil.getCurrentUser().getRole().contentEquals(\"Customer\")) {\n\t\t\treturn new CustomerMainMenuPrompt();\n\t\t} else {\n\n\t\t\treturn new AdminMainMenuPrompt();\n\n\t\t}\n\n\t}",
"public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}",
"public ResultSet selectAccount(UUID uuid)\n {\n PreparedStatement preparedStatement = null;\n try\n {\n preparedStatement = connection.prepareStatement(\n String.format(\"SELECT * FROM %s.accounts WHERE uuid = ?;\",\n simpleEconomy.getConfig().getString(\"db.database\")));\n preparedStatement.setString(1, uuid.toString());\n return preparedStatement.executeQuery();\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n return null;\n }",
"public boolean selectBankAccount(String bankAccount, String user, int choose);",
"private void LoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoginActionPerformed\n\n Connection connection = null;\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n\n String ConnectionURL = \"jdbc:mysql://localhost:3306/weddinghallreservation\";\n \n PreparedStatement q;\n\n \n connection = DriverManager.getConnection(ConnectionURL, \"root\", \"1212\");\n \n\n Id = id.getText();\n \n if (Id.startsWith(\"12\")) {\n // Query to bring the login information of the owner from Owner table\n q = connection.prepareStatement(\"Select `idOwner` , `Password` from `owner` where `idOwner`=? AND `Password`=? \");\n q.setString(1, Id);\n q.setString(2, String.valueOf(Password.getPassword()));\n ResultSet r = q.executeQuery();\n \n if (r.next()) { // Moving to the Owner home page\n OwnerPage_Home ob = new OwnerPage_Home();\n ob.setVisible(true);\n this.setVisible(false);\n\n } else { // In case the password is incorrect\n incorrectPass.setText(\"Incorrect email or password\");\n }\n\n } else {\n // Query to bring the login information of the tenant from Tenant table\n q = connection.prepareStatement(\"Select `idTenant` , `Password` from `tenant` where `idTenant`=? AND `Password`=? \");\n q.setString(1, Id);\n q.setString(2, String.valueOf(Password.getPassword()));\n ResultSet r = q.executeQuery();\n\n if (r.next()) { // Moving to the Tenant home page\n TenantPage_Home ob = new TenantPage_Home();\n ob.setVisible(true);\n this.setVisible(false);\n } else {\n\n incorrectPass.setText(\"Incorrect email or password\");\n }\n\n }\n\n connection.close();\n\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, ex.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"@Override\n\tpublic String getName() {\n\t\treturn \"viewAccount.do\";\n\t}",
"FinanceAccount selectByPrimaryKey(Integer id);",
"@Override\n public void actionPerformed(ActionEvent e){\n String nam = JOptionPane.showInputDialog(\"Account Name?\");\n \n String accn = bankSystem.getAccount(nam).name;\n \n String baln = Integer.toString(bankSystem.getAccount(nam).balance);\n \n textSpace.setText(\"\");\n \n textSpace.append(accn + \"\\n\" + baln + \"\\n\" );\n \n current = bankSystem.getAccount(nam);\n \n }",
"CusBankAccount selectByPrimaryKey(Integer id);",
"@RequestMapping(value=\"creditLedgerAccountHead\" , method={RequestMethod.GET})\n\tpublic List<DropDownModel> creditLedgerAccountHead() {\n\t\tlogger.info(\"Method : creditLedgerAccountHead starts\");\n\n\t\tlogger.info(\"Method : creditLedgerAccountHead ends\");\n\t\treturn creditLedgerDao.creditLedgerAccountHead();\n\t}",
"private void login() {\n if (usrField.getText().equals(\"\") || passwordField.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(rootPane,\n \"YOU MUST ENTER USER AND PASSWORD\",\n \"ERROR\",\n JOptionPane.WARNING_MESSAGE);\n return;\n }\n\n //User.ID = userField.getText();\n User.ID = \"BPDB\";\n\n //User.password = passwordField.getText();\n\n User.password = \"BPDB\";\n\n\n //String sql = \"SELECT desig FROM BPDB.usr WHERE name = '\" + userField.getText() + \"',\"and\" +passwordField.getText() +\"'\";\n\n String sql = \"select desig from BPDB.usr where name='\" + usrField.getText()\n + \"' and password='\" + passwordField.getText() + \"'\";\n\n User.desig = Utility2.singleStOPQuery(login, sql);\n System.out.println(\"Designation : \" + User.desig);\n if (User.desig.isEmpty()) {\n\n\n JOptionPane.showMessageDialog(rootPane,\n \"YOU MUST ENTER USER AND PASSWORD\",\n \"ERROR\",\n JOptionPane.WARNING_MESSAGE);\n return;\n } else {\n\n sql = \"SELECT name FROM BPDB.usr WHERE name = '\" + usrField.getText() + \"'\";\n User.name = Utility2.singleStOPQuery(login, sql);\n\n if (User.desig.equalsIgnoreCase(\"BPDB\")) {\n setVisible(false);\n dispose();\n new HomeFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"DRAFT\")) {\n setVisible(false);\n dispose();\n new DRAFTFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"APPLY\")) {\n setVisible(false);\n dispose();\n new APPLYFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"HR\")) {\n setVisible(false);\n dispose();\n new HRFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"ADMIN\")) {\n setVisible(false);\n dispose();\n new ADMINFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"ACCOUNT\")) {\n setVisible(false);\n dispose();\n new ACCOUNTFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"SALARY\")) {\n setVisible(false);\n dispose();\n new SALARYFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"BILLING\")) {\n setVisible(false);\n dispose();\n new BILLINGFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"DISTRIBUTION\")) {\n setVisible(false);\n dispose();\n new DISTRIBUTIONFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"GENERATION\")) {\n setVisible(false);\n dispose();\n new GENERATIONFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"DHAKA\")) {\n setVisible(false);\n dispose();\n new DHAKAFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"KHULNA\")) {\n setVisible(false);\n dispose();\n new KHULNAFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"RAUJAN\")) {\n setVisible(false);\n dispose();\n new RAUJANFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"SHIDDERGANJ\")) {\n setVisible(false);\n dispose();\n new SHIDDERGANJFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"GRASHAL\")) {\n setVisible(false);\n dispose();\n new GRASHALFrame().setVisible(true);\n }\n }\n }",
"public String getAccount(){\n\t\treturn account;\n\t}",
"public void SelectDB(int anum){\n accNo = anum;\n try{\n try{\n System.out.println(\"Starting DB Tester................\");\n System.out.println(\"Loading Drivers....................\");\n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");// Loads the drivers needed to execute all SQL commands\n }catch(ClassNotFoundException e){\n System.out.println(\"There is a Class Not Found Exception!\");\n System.out.println(e);\n }\n System.out.println(\"DB Application Started!\");\n System.out.println(\"Drivers Loaded!\");\n \n Connection con;// This is used to make a connnection with the database \n con = DriverManager.getConnection(\"jdbc:ucanaccess://C://Users//makaf//Desktop//Database//ChattBankMDB.mdb\");\n System.out.println(\"Database successfully connected!\");\n \n \n Statement stmt = con.createStatement();\n System.out.println(\"Compiling SQL compiling..........\");\n \n String sql;\n sql = \"Select * from Accounts where AcctNo='\"+accNo+\"'\";// SQL statement \n \n System.out.println(\"SQL Statement Compiled!\"); \n System.out.println(sql);\n \n ResultSet rs = stmt.executeQuery(sql);\n rs.next();\n //accNo = rs.getInt(1);\n id = rs.getInt(2);\n atype = rs.getString(3);\n abal = rs.getDouble(4);\n \n con.close();\n System.out.println(\"Database connection terminated!\");\n }catch(SQLException ex){\n System.out.println(\"There is a SQL Exception!\");\n System.out.println(ex);\n }\n }",
"public void Display(){\n System.out.println(\"************************************************************\");\n System.out.println(\"Customer Account Number: \"+getAccountNo());\n System.out.println(\"Customer Account Id: \"+getAccountId());\n System.out.println(\"Customer Type: \"+getAccountType());\n System.out.println(\"Customer Balance: $\"+getAccountBal());\n System.out.println(\"Thank you for banking with us!\");\n System.out.println(\"************************************************************\");\n }",
"private String searchAllViewerAccountSQL(){\n\t\tString sql = (\"SELECT username, type From viewer\");\n\t\tString addsql;\n\t\tif(!accountNameViewTextField.getText().equals(\"\")){\n\t\t\taddsql = \" WHERE username = \\'\" + accountNameViewTextField.getText() + \"\\'\";\n\t\t\tsql = sql + addsql;\n\t\t}\n\t\tSystem.out.println(sql);\n\t\treturn sql;\n\t}",
"public void account() throws SQLException {\r\n String name = tf_firstAndLastName.getText();\r\n String password = tf_employeePass.getText();\r\n if ((!name.equals(\"\")) && (!password.equals(\"\"))) {\r\n myEmployee = new Employee(name, password);\r\n if ((!myEmployee.getUsername().equals(\"\")) && (!myEmployee.getPassword().equals(\"\"))) {\r\n String employeeCode = JOptionPane.showInputDialog(\"Input Employee Code\");\r\n if (employeeCode.equals(\"AS123\")) {\r\n String productQuery = \"INSERT INTO EMPLOYEE(NAME, USERNAME, PASSWORD, EMAIL) VALUES (?,?,?,?)\";\r\n PreparedStatement addEmployee = Login_Controller.conn.prepareStatement(productQuery);\r\n\r\n addEmployee.setString(1, name);\r\n addEmployee.setString(2, myEmployee.getUsername());\r\n addEmployee.setString(3, password);\r\n addEmployee.setString(4, myEmployee.getEmail());\r\n addEmployee.executeUpdate();\r\n addEmployee.close();\r\n\r\n tf_firstAndLastName.clear();\r\n tf_employeePass.clear();\r\n ta_employeeAccount.appendText(myEmployee.toString() + \"\\n\\n\");\r\n\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Invalid employee code. \" +\r\n \"\\nNote: Only employees need to create accounts and log in\");\r\n }\r\n } else {\r\n JFrame frame = new JFrame(\"\");\r\n JOptionPane.showMessageDialog(\r\n frame.getContentPane(),\r\n \"Username or password has invalid format.\\n\",\r\n \"Invalid Format\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Name or password is empty.\");\r\n }\r\n\r\n }",
"public void Dbdisplay_For_Edit() {\n String Reg = editAccessionNoText.getText();\n\n try {\n con = DbConnection();\n\n st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\n ResultSet rs = st.executeQuery(\"select * from bookdetails where AccessionNo ='\" + Reg + \"'\");\n while (rs.next()) {\n editISBNNoText.setText(rs.getString(\"ISBNNo\"));\n editCLAccessiontext.setText(rs.getString(\"CL Accession\"));\n editBookTitletext.setText(rs.getString(\"BookTitle\"));\n editAuthorNametext.setText(rs.getString(\"Author Name\"));\n editEditionText.setText(rs.getString(\"Edition\"));\n editBookshelfNotext.setText(rs.getString(\"Book Self No\"));\n editColumnNotext.setText(rs.getString(\"Row No\"));\n editRowNotext.setText(rs.getString(\"Column No\"));\n\n }\n\n } catch (Exception ex) {\n Logger.getLogger(StudentInformation.class\n .getName()).log(Level.SEVERE, null, ex);\n\n }\n }",
"Account getAccount();",
"public String getAccount() {\r\n return account;\r\n }",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"static String getAccountStatement(int accountNum) {\n int accountCompare; // for comparison\n try {\n // Select all the SQL columns needed to output a statement\n rs = st.executeQuery(\"SELECT AccountNum, LastName, FirstName, UserBalanceC, UserBalanceS FROM CashiiDB2\");\n\n // Keep comparing till the if statement finds what it needs, then output\n while (rs.next()) {\n accountCompare = rs.getInt(\"AccountNum\");\n if (accountCompare == accountNum)\n return \"<h1>\" + rs.getString(\"FirstName\") + \" \" + rs.getString(\"LastName\") + \"</h1>\" + \"Account Number: \" + rs.getInt(\"AccountNum\") + \"<br> <p>Savings: $\" + rs.getInt(\"UserBalanceS\") + \"<br>Chequing: $\" + rs.getInt(\"UserBalanceC\") + \"<p>\";\n // accountCompare + \", \" + rs.getInt(\"UserPIN\") + \", \\n\" + rs.getString(\"LastName\") + \", \" + rs.getString(\"FirstName\") + \", \" + rs.getDouble(\"UserBalanceC\") + \", \" +rs.getDouble(\"UserBalanceS\");\n }\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n return \"NOTFOUND\"; // This should not happen in any circumstance\n }",
"public String printAccounts() {\n StringBuilder result;\n result = new StringBuilder((\"--Listing accounts in the database--\\n\"));\n for (int i = 0; i < size; i++) {\n result.append(accounts[i].toString()).append(\"\\n\");\n }\n result.append(\"--end of listing--\");\n return result.toString();\n }",
"public String getAccountNo();",
"public List<Person> UserSelect() {\n\t\t System.out.println(\"UserSelect\");\n\t\t return personDAO.getPersons();\n\t}",
"public static void displayAccount(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"You have no account\");\r\n } else {\r\n //print out all the IDs\r\n System.out.println(\"List of all your ids:\");\r\n for (int i = 0; i < accounts.size(); i++){\r\n System.out.println(accounts.get(i).id);\r\n }\r\n\r\n //prompt user to choose a specific account\r\n System.out.println(\"Enter the id of your account\");\r\n Scanner input = new Scanner(System.in);\r\n boolean out = false;\r\n\r\n do {\r\n int idInput = input.nextInt();\r\n int idIndex = idIndex(accounts, idInput);\r\n \r\n //check ID input\r\n if (idIndex == -1){\r\n System.out.println(\"Invalid input of ID. Try again\");\r\n } else {\r\n if (accounts.get(idIndex) instanceof CheckingAccount){\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println(\"The number of pending checks: \" + ((CheckingAccount)accounts.get(idIndex)).countPendingChecks());\r\n System.out.println();\r\n out = true;\r\n } else {\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println();\r\n out = true;\r\n } \r\n }\r\n } while (out == false);\r\n }\r\n }",
"private void logino(int selected) {\n ExtendedAccountData data = queriedaccounts.get(selected);\n AltManager.getInstance().setUserOffline(data.alias);\n loginfailed = null;\n Minecraft.getMinecraft().displayGuiScreen(null);\n ExtendedAccountData current = getCurrentAsEditable();\n current.useCount++;\n current.lastused = JavaTools.getJavaCompat().getDate();\n }",
"AccountDetail getAccount(String number) throws Exception;",
"public account() {\n initComponents();\n autoID();\n branch();\n }",
"@Override\r\n\t\t\t\r\n\t\t\tpublic Account viewDetails(String MobileNo) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn dao.viewDetails(MobileNo);\r\n\t\t\t}",
"public accountant() {\n initComponents();\n conn = connector.ConnectDB();\n update_table();\n fill_combo();\n }",
"public Account getInputOfUsersAccount() {\n\n\t\tString accountNumber = InputsValidator.getAccountFromPerson(\"Enter account:\");\n\n\t\tif (!log.isAccountInList(accountNumber)) {\n\t\t\tSystem.out.println(\"Account \" + accountNumber + \" dosn't exist!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\tAccount accountForEditOrDelete = infos.getAccount(accountNumber);\n\t\treturn accountForEditOrDelete;\n\t}",
"public void login(){\r\n try{\r\n stmt = conn.createStatement();\r\n String userEmail = textEmail.getText();\r\n String userPass = textPassword.getText();\r\n String sql = \"SELECT * FROM admin WHERE mail= '\"+userEmail+\"' && password = '\"+ userPass+\"'\";\r\n rs = stmt.executeQuery(sql);\r\n if(rs.next()){\r\n String foundType = rs.getString(\"password\");\r\n System.out.println(foundType);\r\n }\r\n\r\n if(userEmail.equals(rs.getString(\"mail\")) && userPass.equals(rs.getString(\"password\"))){\r\n System.out.println(\"test1\");\r\n JOptionPane.showMessageDialog(null, \"Login Successful\");\r\n try {\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"home.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Home\");\r\n stage.setScene(new Scene(root1));\r\n stage.show();\r\n }catch (Exception e){\r\n JOptionPane.showMessageDialog(null,e);\r\n }\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Login failed\");\r\n dispose();\r\n }\r\n\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null,e);\r\n }\r\n\r\n ConnectionClass connectionClass=new ConnectionClass();\r\n\r\n }",
"@FXML\r\n void createAccount(MouseEvent event) throws SQLException {\r\n ta_employeeAccount.clear();\r\n account();\r\n\r\n }",
"List<Account> selectAll();",
"public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"public String getCurrentUserAccount();",
"public void viewUsers(){\n Database manager = new Database(\n this,\n \"mypets\",\n null,\n 1\n );\n //2. Let write on DB\n SQLiteDatabase mypets = manager.getWritableDatabase();\n //3. Get information from database\n int idAdmin = 1;\n Cursor row = mypets.rawQuery(\n \"SELECT * FROM users WHERE id not in (?)\",\n idAdmin\n );\n\n if (row.getCount() == 0) {\n Toast.makeText(\n this,\n \"::: There isn't any user registered:::\",\n Toast.LENGTH_SHORT\n ).show();\n } else {\n while(row.moveToNext()) {\n listUsers.add(row.getString(1));\n listUsers.add(row.getString(3));\n }\n adapter = new ArrayAdapter<>(\n this,\n android.R.layout.simple_list_item_1,\n listUsers\n );\n userList.setAdapter(adapter);\n }\n }",
"private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }",
"@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}",
"@Override\n public void mouseClicked(MouseEvent e) {\n if (userList.getSelectedIndex() < 0) {\n userList.setSelectedIndex(0);\n }\n String selectedItem = (String) userList.getSelectedValue();\n // load entry data from db\n currentUser = (DBUser) DBHandler.getSingleObject(\n \"FROM DBUser WHERE xname='\" + selectedItem + \"'\");\n // fill gui elements with data\n loadUserDetails(currentUser);\n // enable control buttons\n enableButtons(true);\n }",
"public static Account getAccountDetails(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a account id, establish a connection\n if (cdt1) {\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet results = DatabaseSelector.getAccountDetails(accountId, connection);\n while (results.next()) {\n // get the account details\n String name = results.getString(\"NAME\");\n BigDecimal balance = new BigDecimal(results.getString(\"BALANCE\"));\n // make an account class (either chequing, savings, or tfsa) based on the type\n if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.CHEQUING)) {\n ChequingAccount chequing = new ChequingAccountImpl(accountId, name, balance);\n connection.close();\n return chequing;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.SAVINGS)) {\n SavingsAccount savings = new SavingsAccountImpl(accountId, name, balance);\n connection.close();\n return savings;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.TFSA)) {\n TFSA tfsa = new TFSAImpl(accountId, name, balance);\n connection.close();\n return tfsa;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.RESTRICTEDSAVING)) {\n RestrictedSavingsAccount rsa = new RestrictedSavingsAccountImpl(accountId, name, balance);\n connection.close();\n return rsa;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.BALANCEOWING)) {\n BalanceOwingAccount boa = new BalanceOwingAccountImpl(accountId, name, balance);\n connection.close();\n return boa;\n }\n }\n }\n return null;\n }",
"private void displayUserInfo(String name) {\n\t\tString username = null;\n\t\tPattern p = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n\t\tMatcher m = p.matcher(name);\n\t\tif (m.find())\n\t\t{\n\t\t username = m.group(1);\n\t\t lastClickedUser = username;\n\t\t}\n\t\tUser u = jdbc.get_user(username);\n\t\ttextFirstName.setText(u.get_firstname());\n\t\ttextLastName.setText(u.get_lastname());\n\t\ttextUsername.setText(u.get_username());\n\t\tif (u.get_usertype() == 1) {\n\t\t\trdbtnAdminDetails.setSelected(true);\n\t\t} else if (u.get_usertype() == 2) {\n\t\t\trdbtnManagerDetails.setSelected(true);\n\t\t} else {\n\t\t\trdbtnWorkerDetails.setSelected(true);\n\t\t}\n\t\tif (u.get_email() != null) {textEmail.setText(u.get_email());} else {textEmail.setText(\"No Email Address in Database.\");}\n\t\tif (u.get_phone() != null) {textPhone.setText(u.get_phone());} else {textPhone.setText(\"No Phone Number in Database.\");}\t\t\t\t\n\t\tcreateQualLists(u.get_userID());\n\t}",
"public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }",
"public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }",
"public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }",
"ShopAccount selectByPrimaryKey(Integer spAccount);",
"public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"public String printAccounts() { \n\t\t\n\t\tStringBuilder output = new StringBuilder(\"\");\n\t\t\n\t\tif(size > 0) {\n\t\t\t\n\t\t\toutput.append(\"--Listing accounts in the database--\\n\");\n\t\t\t//System.out.println(\"--Listing accounts in the database--\");\n\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\toutput.append(accounts[i].toString());\n\t\t\t\toutput.append(\"\\n\");\n\t\t\t\t//System.out.println(accounts[i].toString());\n\t\t\t}\n\t\t\t\n\t\t\toutput.append(\"--end of listing--\\n\");\n\t\t\t//System.out.println(\"--end of listing--\");\t\n\t\t\t\n\t\t}\n\n\t\telse {\n\t\t\toutput.append(\"Database is empty.\\n\");\n\t\t\t//System.out.println(\"Database is empty.\");\n\t\t}\n\t\t\n\t\treturn output.toString();\n\t}",
"@Override\n public void display(){\n System.out.println(\"***************\");\n System.out.println(\"Checking Account\");\n super.display();\n System.out.println(\"Routing Number: \" + routingNumber);\n }",
"private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }",
"public static void Display() {\n\t\tStockAccountImp SAI = new StockAccountImp();\n\t\tSystem.out.println(\"************Menu*************\");\n\t\tSystem.out.println(\"1.Add the User into the file\");\n\t\tSystem.out.println(\"2.Buy the Share\");\n\t\tSystem.out.println(\"3.Sell the Share\");\n\t\tSystem.out.println(\"4.Display\");\n\t\tSystem.out.println(\"5.Exit\");\n\t\tSystem.out.println(); \n\t\tSystem.out.println(\"Enter the Choice\");\n\t\tint choice =sc.nextInt();\n\t\tswitch(choice) {\n\t\tcase 1:\n\t\t\t\ttry {\n\t\t\t\t\tSAI.createUser();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\tcase 2:try {\n\t\t\t\t\tSAI.buyShare();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 3:try {\n\t\t\t\t\tSAI.sellShare();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\tbreak;\n\t\t\tcase 4:try {\n\t\t\t\t\tdisplayReport();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tbreak;\n\t\tcase 5: break;\n\t\t\n\t\t}\n\t\t\n\t}",
"Account getAccount(int id);",
"@Override\r\n\tpublic void actionPerformed(Object e) {\n\t\tif(e == loginButton) {\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT * FROM users WHERE username LIKE ? AND password LIKE ?\");\r\n\t\t\t\tps.setString(1, usernameField.getText());\r\n\t\t\t\tps.setString(2, passField.getText());\r\n\t\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\t\r\n\t\t\t\tif(!rs.next()) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"invalid username/password\",\"error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tint i = rs.getInt(\"UserId\");\r\n\t\t\t\t\tString name = rs.getString(\"Name\");\r\n\t\t\t\t\tBlob blob = rs.getBlob(\"ProfilePic\");\r\n\t\t\t\t\tUser user = User.getUser(i, name,usernameField.getText(), passField.getText(),blob);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Login Successfull !\");\r\n\t\t\t\t\tsm.setNewPage(StateManager.HOME);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@FXML\n private void editSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"Edit DonorReceiver\");\n } else {\n EditPaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.EDIT);\n }\n }",
"@GetMapping\n public String displayUser(Model model) {\n User newUser = new User(\"Sven Svennis\",\"Svennegatan 2\", new ArrayList<Loan>());\n userRepository.save(newUser);\n\n //TODO this is where we need to fetch the current user instead!\n User user = userRepository.getOne(1l);\n\n model.addAttribute(\"user\", user);\n\n return \"displayUser\";\n }",
"public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}"
]
| [
"0.703479",
"0.6827097",
"0.66794544",
"0.66352636",
"0.6558955",
"0.65449077",
"0.6446918",
"0.64326024",
"0.63181347",
"0.62783",
"0.6242372",
"0.62218165",
"0.62153596",
"0.61769",
"0.61755764",
"0.61731654",
"0.6164655",
"0.6163302",
"0.6079473",
"0.60685194",
"0.60411733",
"0.60409224",
"0.6038635",
"0.60372305",
"0.60185486",
"0.60052776",
"0.60008687",
"0.5998465",
"0.59916806",
"0.5990475",
"0.5979891",
"0.5969055",
"0.59648925",
"0.5920253",
"0.59110916",
"0.5910867",
"0.58754426",
"0.5853036",
"0.5830274",
"0.5828816",
"0.5824615",
"0.5821749",
"0.57987916",
"0.5785258",
"0.57819146",
"0.5781249",
"0.57737863",
"0.57735705",
"0.5772633",
"0.575884",
"0.5752492",
"0.5750316",
"0.57423633",
"0.5738368",
"0.5737715",
"0.57376176",
"0.5731877",
"0.573142",
"0.57206297",
"0.57101476",
"0.5708451",
"0.56994736",
"0.5693543",
"0.5685635",
"0.56810725",
"0.56736964",
"0.5660669",
"0.5659775",
"0.5653759",
"0.56535155",
"0.56510174",
"0.56477416",
"0.56408566",
"0.5640572",
"0.56401414",
"0.56246537",
"0.5624611",
"0.5619746",
"0.56139433",
"0.5613651",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.5606517",
"0.55962855",
"0.5595867",
"0.55929434",
"0.5574599",
"0.5569382",
"0.5566259",
"0.55597335",
"0.555848",
"0.5542318",
"0.5537063"
]
| 0.6344106 | 8 |
end selectDB() Deposit to this account | public void deposit(double amount) {
balance += amount;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Update Accounts set Balance = "+getBalance()+
" where AcctNo='"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
int n = stmt.executeUpdate(sql);
if (n == 1)
System.out.println("Update was successful!");
else
System.out.println("Update failed!");
// Close Connection
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectDB(String newAcctNo) {\n acctNo = newAcctNo;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string\n String sql = \"Select * from Accounts where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n ResultSet rs = stmt.executeQuery(sql);\n \n // Set the Account properties\n rs.next();\n setCID(rs.getString(2));\n setType(rs.getString(3));\n setBalance(rs.getDouble(4));\n con.close();\n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n \n }",
"private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }",
"public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}",
"@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"public void DepositMoneyInBank() {\n\n for (int i = 0; i < commands.length; i++) {\n commands[i].execute();\n storage.push(commands[i]);\n }\n }",
"public void deposit(double depAmnt){\n try {\n String queryStr = \"update dummybank set amount = ? where accountNo = ?\";\n ps = con.prepareStatement(queryStr);\n ps.setDouble(1,this.amnt + depAmnt );\n ps.setString(2, accNo);\n ps.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(BankDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"public void deposit();",
"@Override\n public int execute() throws InterruptedOperationException, CancelOperationException {\n Logger logger = Log4j.getLogger();\n int success = 0;\n try {\n String accountNumber = null;\n BigDecimal amount = BigDecimal.ONE;\n Transaction transaction;\n LocalDateTime now;\n String userId = BankApp.getCurrentUser().getUserId();\n List<String> accountNumbers = accountDao.getAccountNumbers(userId);\n ConsoleHelper.println(\"\");\n ConsoleHelper.displayMenuBanner();\n ConsoleHelper.printlnWithTab(\"[DEPOSIT]\");\n ConsoleHelper.printAccountList();\n\n boolean isValidInput = false;\n do {\n ConsoleHelper.printWithTab(\"Into: \");\n String input = ConsoleHelper.readString();\n for (int i = 1; i <= accountNumbers.size(); i++) {\n if (input.equals(String.valueOf(i))) {\n accountNumber = accountNumbers.get(i - 1);\n isValidInput = true;\n break;\n }\n }\n\n } while (!isValidInput);\n\n isValidInput = false;\n do {\n ConsoleHelper.printWithTab(\"Amount: \");\n String input = ConsoleHelper.readString();\n try {\n double inputValue = Double.parseDouble(input);\n amount = BigDecimal.valueOf(inputValue);\n int decimalPlaces = ConsoleHelper.getNumberOfDecimalPlaces(amount);\n if (decimalPlaces == 0 && amount.compareTo(BigDecimal.valueOf(0)) > 0) {\n isValidInput = true;\n } else {\n ConsoleHelper.printlnWithTab(\"Invalid amount, we only accept whole number deposit.\");\n }\n } catch (NumberFormatException e) {\n // the amount format is not valid\n }\n } while (!isValidInput);\n\n int countAccount = accountDao.deposit(accountNumber, amount);\n now = LocalDateTime.now();\n Account account = accountDao.getAccount(accountNumber);\n transaction = new Transaction(TransactionType.DEPOSIT, userId, now, amount, account);\n int countTransaction = transactionDao.addTransaction(transaction);\n success = countAccount == 1 && countTransaction == 1 ? 1 : 0;\n if (success == 1) {\n ConsoleHelper.printlnWithTab(\"Deposit completed.\");\n ConsoleHelper.println(\"\");\n } else {\n ConsoleHelper.printlnWithTab(\"System failure, deposit cancelled. Please try later.\");\n }\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n logger.error(\"Interrupted Exception when thread sleep\", e);\n }\n } catch (CancelOperationException e) {\n // do nothing, allow user to return to main menu\n }\n return success;\n }",
"public Deposit(int userAccountNumber, Screen atmScreen, BankDataBase bankDatabase, UserInterface UI, DepositSlot atmDepositSlot)\n {\n super( userAccountNumber, atmScreen, bankDatabase);\n face = UI;\n depositSlot = atmDepositSlot;\n }",
"public BankDatabase() {\r\n accounts = new Account[3];\r\n Connection c = null;\r\n Statement stmt = null;\r\n try {\r\n Class.forName(\"org.postgresql.Driver\");\r\n c = DriverManager\r\n .getConnection(\"jdbc:postgresql://localhost:5432/ATM\",\r\n \"postgres\", \"0000\");\r\n c.setAutoCommit(false);\r\n stmt = c.createStatement();\r\n ResultSet rs = stmt.executeQuery( \"SELECT * FROM accounts;\" );\r\n var i = 0;\r\n while ( rs.next() ) {\r\n int theAccountNumber = rs.getInt(\"accountnumber\");\r\n int thePin = rs.getInt(\"pin\");\r\n double theAvailiableBalance = rs.getDouble(\"availiablebalance\");\r\n double theTotalBalance = rs.getDouble(\"totalbalance\");\r\n accounts[i] = new Account( theAccountNumber, thePin, theAvailiableBalance, theTotalBalance);\r\n i++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n c.close();\r\n } catch ( Exception e ) {\r\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\r\n System.exit(0);\r\n }\r\n\r\n\r\n// accounts = new Account[2]; // just 2 accounts for testing\r\n// accounts[0] = new Account(12345, 54321, 1000.0, 1200.0);\r\n// accounts[1] = new Account(98765, 56789, 200.0, 200.0);\r\n }",
"int deposit(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n accountBalance += amount;\n break;\n } else\n return -1;\n }\n // Run the operation to update the balance only for the user's account\n updateAccount(id, accountBalance, account);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n System.out.println(\"AMOUNT: \" + accountBalance);\n return 1;\n }",
"public void makeDeposit() {\n deposit();\n }",
"public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}",
"private void depositBank() throws InterruptedException{\n\n log(\"banking!\");\n if(!getBank().isOpen()){\n getBank().open();\n Timing.waitCondition(() -> getBank().isOpen(), 5000);\n }else{\n getBank().depositAllExcept(item -> item.getName().endsWith(\" axe\"));\n\n }\n\n }",
"public void SelectDB(int anum){\n accNo = anum;\n try{\n try{\n System.out.println(\"Starting DB Tester................\");\n System.out.println(\"Loading Drivers....................\");\n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");// Loads the drivers needed to execute all SQL commands\n }catch(ClassNotFoundException e){\n System.out.println(\"There is a Class Not Found Exception!\");\n System.out.println(e);\n }\n System.out.println(\"DB Application Started!\");\n System.out.println(\"Drivers Loaded!\");\n \n Connection con;// This is used to make a connnection with the database \n con = DriverManager.getConnection(\"jdbc:ucanaccess://C://Users//makaf//Desktop//Database//ChattBankMDB.mdb\");\n System.out.println(\"Database successfully connected!\");\n \n \n Statement stmt = con.createStatement();\n System.out.println(\"Compiling SQL compiling..........\");\n \n String sql;\n sql = \"Select * from Accounts where AcctNo='\"+accNo+\"'\";// SQL statement \n \n System.out.println(\"SQL Statement Compiled!\"); \n System.out.println(sql);\n \n ResultSet rs = stmt.executeQuery(sql);\n rs.next();\n //accNo = rs.getInt(1);\n id = rs.getInt(2);\n atype = rs.getString(3);\n abal = rs.getDouble(4);\n \n con.close();\n System.out.println(\"Database connection terminated!\");\n }catch(SQLException ex){\n System.out.println(\"There is a SQL Exception!\");\n System.out.println(ex);\n }\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"abstract void addDepositTransaction(Transaction deposit, Ui ui, String bankType) throws BankException;",
"private static void actualizaBBDD(String id, String saldo) {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(contexto, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\t\tdb.execSQL(\"UPDATE Tarjetas set saldo='\" + saldo + \"' where id='\" + id\n\t\t\t\t+ \"';\");\n\n\t\tdb.close();\n\n\t}",
"public static void recargarWallet(Wallet w, int recarga) {\n boolean realizada = true;\n Connection conexion = null;\n try {\n conexion = Conexion.getConnection();\n if (conexion.getAutoCommit()) {\n conexion.setAutoCommit(false);\n }\n\n //actualizar datos del wallet\n WalletDAO daow = new WalletDAO(conexion);\n w.setSaldo(w.getSaldo() + recarga);\n daow.update(w);\n\n //comprobar que estamos en la fecha correcta\n int dia = Integer.parseInt((new SimpleDateFormat(\"dd\")).format(new java.util.Date()));\n if (dia > 5) {\n conexion.rollback();\n System.out.println(\"Rollback: No puede hacer la recarga, fuera de fecha.\");\n realizada = false;\n }\n conexion.commit();\n conexion.close();\n } catch (SQLException e) {\n if (conexion != null) {\n try {\n conexion.rollback();\n System.out.println(\"Rollback: \" + e.getMessage());\n conexion.close();\n } catch (SQLException ex) {\n System.out.println(\"Error al hacer el rollback\");\n }\n }\n realizada = false;\n }\n if (realizada) {\n System.out.println(\"Gracias por su recarga.\");\n }\n }",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic double depositDao(double money) throws EwalletException {\n\t\ttemp.setCustBal(temp.getCustBal()+money);\r\n\t\ttry {\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\treturn temp.getCustBal();\r\n\t\t\r\n\t}",
"public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }",
"public void closeAccount() {}",
"public void closeAccount() {}",
"@Override\n\tpublic void createSavingAccount(Account as) {\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\tString saving = \"insert into savings( owner_id, balance) values (?,?)\";\n\t\t\tCallableStatement chaccount = con.prepareCall(saving);\n\t\t\n\t\t\tchaccount.setInt(1,as.getOwner_id() );\n\t\t\tchaccount.setDouble(2, as.getBalance());\n\t\t\tchaccount.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"In CheckingDaoDB Exception\");\n\t\t\te.printStackTrace();\n\t\t}\n}",
"private void ini_SelectDB()\r\n\t{\r\n\r\n\t}",
"@Override\r\n\tpublic boolean deposit(DepositBean db, double amount) throws WalletException {\n\t\tboolean isValid = true;\r\n\t\tfor (CustomerBean cb : customerList) {\r\n\t\t\tif(cb.getPhoneNum()==db.getPhoneNum()) {\r\n\t\t\t\tdb.setBalance(db.getBalance()+amount);\r\n\t\t\t\tdb.setDate(LocalDateTime.now());\r\n\t\t\t\tisValid = true;\r\n\t\t\t\tWalletTransactions transac = new WalletTransactions();\r\n\t\t\t\ttransac.setAmount(amount);\r\n\t\t\t\ttransac.setBalance(db.getBalance());\r\n\t\t\t\ttransac.setDate(db.getDate());\r\n\t\t\t\ttransac.setPhoneNum(db.getPhoneNum());\r\n\t\t\t\ttransac.setType(\"deposit\");\r\n\t\t\t\ttransacList.add(transac);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new WalletException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}",
"@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}",
"private void doDeposit() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountDeposited = ui.takeDepositEnvelope();\n userAccount.credit(amountDeposited);\n ui.deliverMoney(amountDeposited);\n ui.displayNewBalance(userAccount);\n break;\n\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n\n }",
"public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}",
"public BankAccount findAccountById(int currentBankID) throws SQLException;",
"public Deposit(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase,\n Keypad atmKeypad, DepositSlot atmDepositSlot) {\n // initialize superclass variables\n super(userAccountNumber, atmScreen, atmBankDatabase);\n // initialize references to keypad and deposit slot\n keypad = atmKeypad;\n depositSlot = atmDepositSlot;\n }",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"private void doDeposit() {\n System.out.println(\"How much do you want to deposit?\");\n boolean keepgoing = true;\n int amount = -1;\n while (keepgoing) {\n amount = input.nextInt();\n if (amount > 0) {\n keepgoing = false;\n pickedAccount.deposit(amount);\n }\n }\n System.out.println(\"deposited \" + amount + \" $\");\n }",
"@FXML\r\n void createAccount(MouseEvent event) throws SQLException {\r\n ta_employeeAccount.clear();\r\n account();\r\n\r\n }",
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }",
"public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}",
"public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }",
"public boolean deposit(long id, String password, String currency, double amount);",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"@Override\n\tpublic void deposit(User loggedInUser, String depositBook) {\n\n\t}",
"protected void exit() {\n (new CSVFile(bankDB)).writeCSV();\n try{\n FileUtil.writeTransactions(bankDB.getTransactions());\n }catch(IOException e){\n AlertBox.display(ERROR, \"There was an error printing the transactions\");\n }\n System.exit(0);\n }",
"public boolean selectExisitingAccount(int choice, String bankAccount);",
"@Override\n\tpublic void DepositMoney(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yatıracağınız para miktarını giriniz\");\n\t\tint newDepositMoney;\n\t\tnewDepositMoney=sc.nextInt();\n\t\tsc.nextLine();\n\t\tgamer.setWalletBalance(gamer.getWalletBalance()+newDepositMoney);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni bakiyeniz \"+gamer.getWalletBalance()+\" olarak güncellendi.\");\n\t\t\n\t}",
"private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}",
"public static void main(String[] args) {\n\t\n // Code to test Account class \n \n // testing selecting an account from the database - Lab #3 Part II\n /*Account a1 = new Account();\n a1.selectDB(\"90002\");\n\t\tdouble abalance = a1.getBalance();\n System.out.println(\"Balance: \" + abalance); */\n \n // testing deposit and withraw methods Lab #4 Part I\n Account a1 = new Account();\n a1.selectDB(\"90002\");\n a1.display();\n //a1.deposit(300.00);\n /*try {\n a1.withdraw(3000.00);\n }\n catch (InsufficientFundsException ex) {\n System.out.println(ex);\n } */\n \n //a1.display(); \n \n\t}",
"@FXML\n void depositFunds(ActionEvent event) {\n \ttry {\n \t\t\n \t\tProfile person = new Profile(fName_DepWith.getText(), lName_DepWith.getText());\n \t\tdouble inpBalance = Double.parseDouble(amount.getText());\n \t\tboolean deposited = false;\n \t\t\n \tif(inpBalance < 0) {\n \t\tthrow new IllegalArgumentException(\"No negative numbers, please enter a valid balance.\\n\");\n \t}\n \t\t\n \t\tString accType = ((RadioButton) tgDepositWithdraw.getSelectedToggle()).getText();\n \t\t\n \t\t//deposits funds in specified account by according to account type\n \t\tswitch(accType) {\n \t\tcase \"Checking\":\n \t\t\tAccount currCheckingAcc = new Checking(person);\n \t\t\tdeposited = db.deposit(currCheckingAcc, inpBalance);\n \t\t\tbreak;\n \t\tcase \"Savings\":\n \t\t\tAccount currSavingsAcc = new Savings(person);\n \t\t\tdeposited = db.deposit(currSavingsAcc, inpBalance);\n \t\t\tbreak;\n \t\tcase \"Money Market\":\n \t\t\tAccount currMoneyMarketAcc = new MoneyMarket(person);\n \t\t\tdeposited = db.deposit(currMoneyMarketAcc, inpBalance);\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t\n \t\tif (deposited) {\n \t\t\tmessageArea.appendText(String.format(\"%.2f\", inpBalance) + \" deposited to account.\\n\");\n \t\t}\n \t\telse {\n \t\t\tmessageArea.appendText(\"Account does not exist.\\n\");\n \t\t}\n \t\t\n \t\t\n \t}\n \tcatch(NumberFormatException e) {\n \t\tmessageArea.appendText(\"Number format exception, enter a valid amount to deposit.\\n\");\n \t}\n \tcatch(NullPointerException e) {\n \t\tmessageArea.appendText(\"Select a valid account type to deposit into.\\n\");\n \t}\n \tcatch (IllegalArgumentException e) {\n \t\tmessageArea.appendText(\"No negative numbers, please enter a valid balance.\\n\");\n \t}\n }",
"public void execute() {\n\t\t// get references to bank database and screen\n\t\tatmg.BankDatabase bankDatabase = getBankDatabase();\n\n\t\t// get the available balance for the account involved\n\t\tdouble availableBalance = bankDatabase.getAvailableBalance(getAccountNumber());\n\n\t\t// get the total balance for the account involved\n\t\tdouble totalBalance = bankDatabase.getTotalBalance(getAccountNumber());\n\n\t\t// display the balance information on the screen\n\t\tint input = JOptionPane.showOptionDialog(null,\n\t\t\t\t\"\\nBalance Information:\" + \"\\n\" + \" - Available balance: \" + availableBalance + \"\\n - Total balance:\"\n\t\t\t\t\t\t+ totalBalance + \"\\n\\n\",\n\t\t\t\tnull, JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null,\n\t\t\t\tnew String[] { \"OK\"}, \"default\");\n\t\tif (input == JOptionPane.OK_OPTION) {\n\t\t\t\n\n\t\t} else {\n\t\t\t//windowT.disable();\n\t\t}\n\n\t}",
"public void enterData(IBankDB bankDB) {\n this.bankDB = bankDB;\n }",
"public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }",
"@Override\n\tpublic void run(String... args) throws Exception {\n\t\taccountListRepository.deleteAll();\n\t\taccountTransactionRepository.deleteAll();\n\t\t\n\t\tAccountListDTO account1 = new AccountListDTO();\n\t\taccount1.setAccountNumber(585309209);\n\t\taccount1.setAccountName(\"SGSavings726\");\n\t\taccount1.setAccountType(\"Savings\");\n\t\taccount1.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount1.setCurrency(\"SGD\");\n\t\taccount1.setOpeningAvailableBalance(84327.51);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account1));\n\t\t\n\t\tAccountListDTO account2 = new AccountListDTO();\n\t\taccount2.setAccountNumber(791066619);\n\t\taccount2.setAccountName(\"AUSavings933\");\n\t\taccount2.setAccountType(\"Savings\");\n\t\taccount2.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount2.setCurrency(\"AUD\");\n\t\taccount2.setOpeningAvailableBalance(88005.93);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account2));\n\t\t\n\t\tAccountListDTO account3 = new AccountListDTO();\n\t\taccount3.setAccountNumber(347786244);\n\t\taccount3.setAccountName(\"AUCurrent433\");\n\t\taccount3.setAccountType(\"Current\");\n\t\taccount3.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount3.setCurrency(\"AUD\");\n\t\taccount3.setOpeningAvailableBalance(38010.62);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account3));\n\t\t\n\t\tAccountTransactionDTO transaction1 = new AccountTransactionDTO();\n\t\ttransaction1.setAccountNumber(1232223212);\n\t\ttransaction1.setAccountName(\"Current Account\");\n\t\ttransaction1.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction1.setCurrency(\"SGD\");\n\t\ttransaction1.setCreditAmount(9540.98);\n\t\ttransaction1.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction1));\n\t\t\n\t\tAccountTransactionDTO transaction2 = new AccountTransactionDTO();\n\t\ttransaction2.setAccountNumber(1232223212);\n\t\ttransaction2.setAccountName(\"Current Account\");\n\t\ttransaction2.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction2.setCurrency(\"SGD\");\n\t\ttransaction2.setCreditAmount(7497.82);\n\t\ttransaction2.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction2));\n\t\t\n\t\tAccountTransactionDTO transaction3 = new AccountTransactionDTO();\n\t\ttransaction3.setAccountNumber(1232223212);\n\t\ttransaction3.setAccountName(\"Current Account\");\n\t\ttransaction3.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction3.setCurrency(\"SGD\");\n\t\ttransaction3.setCreditAmount(5564.79);\n\t\ttransaction3.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction3));\n\t\t\n\t}",
"void deleteBet(Account account, int id, BigDecimal amount) throws DAOException;",
"public abstract void closeAccount();",
"int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }",
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"public void dbDisconnect() {\n Logger.write(\"INFO\", \"DB\", \"Disconnecting from database\");\n try {\n dbConnection.close();\n } catch(Exception e) { //Exception logged to disk, program allowed to continue\n Logger.write(\"FATAL\", \"DB\", \"Could not disconnect: \" + e.getClass().getName() + \": \" + e.getMessage() );\n }\n \n if (!Crypto.encryptDB(password))\n Logger.write(\"FATAL\", \"DB\", \"failed to encrypt database\");\n }",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public boolean selectBankAccount(String bankAccount, String user, int choose);",
"public static void main(String[] args) {\n\t\t\n\t\tBanking s1 = AccountFactory.openSavingAccount(\"Polo\");\n\t\ttry {\n\t\t\ts1.withdraw(2000);\n\t\t} catch (BalanceException e) {\n\t\t\t//e.printStackTrace(); \t//For debugging - used by developers\n\t\t\t//System.out.println(e); \t//used for loggers\n\t\t\tSystem.out.println(e.getMessage()); \t//for end user\n\t\t}\n\t\t\n\t\ts1.deposit(3000);\n//\t\ts1.withdraw(2000);\n//\t\ts1.deposit(4000);\n//\t\t\n//\t\ts1.statement();\n\t\t\n\n\t}",
"public boolean withdraw(long id, String password, String currency, double amount);",
"public boolean deposit(String accountNumber, double amount) {\r\n\t\tif (!DaoUtility.isAccountNumberValid(accountNumber))\r\n\t\t\treturn false;\r\n\r\n\t\tConnection conn = null;\r\n\r\n\t\ttry {\r\n\t\t\tStatement st;\r\n\t\t\tResultSet rs;\r\n\t\t\tString sql;\r\n\r\n\t\t\tconn = dbConnector.getConnection();\r\n\t\t\tif (conn == null)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// atomic operation\r\n\t\t\tst = conn.createStatement();\r\n\r\n\t\t\t// get the aid and old balance\r\n\t\t\tint aid = 0;\r\n\t\t\tdouble oldbalance = 0;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"select * from tbAccount where acnumber='%s' \",\r\n\t\t\t\t\taccountNumber);\r\n\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\taid = rs.getInt(\"aid\");\r\n\t\t\t\toldbalance = rs.getDouble(\"balance\");\r\n\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\r\n\t\t\t\t// If the account is Frozen(isactive=false), then cannot\r\n\t\t\t\t// deposit.\r\n\t\t\t\tif (!isactive) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// ac.balance += amount.\r\n\t\t\t// update tbAccount set balance='new balance' where\r\n\t\t\t// acnumber='acnumber'\r\n\t\t\tdouble newBalance = oldbalance + amount;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"update tbAccount set balance=%f where acnumber='%s' \",\r\n\t\t\t\t\tnewBalance, accountNumber);\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// insert a transaction record\r\n\t\t\t// insert into tbTransaction(aid,trtype,amount,description)\r\n\t\t\t// values( select aid from tbAccount where acnumber='acnumber',\r\n\t\t\t// DEPOSIT_TRANSACTION_TYPE_ID,\r\n\t\t\t// amount, 'deposit 123.4 dollars on 2014-09-19')\r\n\t\t\t//\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tString currentDate = dateFormat.format(date); // 2014-08-06\r\n\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t+ \" values( %d, \" + \"\t\t\t%d, \"\r\n\t\t\t\t\t\t\t+ \"\t\t\t%f, 'deposit %.2f dollars on %s' ) \", aid,\r\n\t\t\t\t\tDEPOSIT_TRANSACTION_TYPE_ID, amount, amount, currentDate);\r\n\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// Execute transaction\r\n\t\t\tint[] nRes = st.executeBatch();\r\n\t\t\tif (nRes[1] > 0)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"void deleteDepositTransaction(int index, Ui ui, boolean isCardBill) throws TransactionException, BankException {\n throw new BankException(\"This account does not support this feature\");\n }",
"public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}",
"private void updateDB() {\n }",
"int insertBet(Account account, Bet bet) throws DAOException;",
"public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}",
"public static String payCurrentBill(String account){\n return \"update current_bills set cb_paid = 1 where cb_account = '\"+account+\"'\";\n }",
"public void useDB(String DB_Name) {\n //SQL statement\n String query = \"USE \" + DB_Name;\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--using teaml_bank--\");\n } catch (SQLException ex) {\n //Handle SQL exceptions\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }",
"private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"int insertSelective(DepAcctDO record);",
"public void schliessen() {\n try {\n mDb.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tConnection con=null;\r\n\t\tPreparedStatement updateSt=null;\r\n\t\tPreparedStatement selectSt=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());\r\n\t\t\tString url=\"jdbc:oracle:thin:@localhost:1521:xe\";\r\n\t\t\tString user=\"hr\";\r\n\t\t\tString pass=\"hr\";\r\n\t\t con=DriverManager.getConnection(url,user,pass);\r\n\t\t\tSystem.out.println(\"Connected\");\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tsc = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Enter Account ID\");\r\n\t\t\tint id=sc.nextInt();\r\n\t\t\tselectSt=con.prepareStatement(\"select * from account where aid=?\");\r\n\t\t\tselectSt.setInt(1, id);\r\n\t\t\tResultSet rs1=selectSt.executeQuery();\r\n double bal1=0.0;\r\n if(rs1!=null) {\r\n \tif(rs1.next()) {\r\n \t\tSystem.out.println(rs1.getString(3));\r\n \t\tbal1=rs1.getDouble(\"balance\");\r\n \t\tSystem.out.println(\"Your balance is \"+bal1);\r\n \t}\r\n }\r\n \r\n /*\r\n \tPreparedStatement st=con.prepareStatement(sqlQuery);\r\n \tst.setInt(1,id);\r\n \tst.setLong(2,mb);\r\n \tst.setString(3,ah);\r\n \tst.setDouble(4,bal);\r\n \t\r\n int insertedRec=st.executeUpdate();\r\n \r\n\t\tSystem.out.println(+insertedRec);\r\n \t\r\n con.commit();\r\n con.close()\t;\r\n }*/}\r\n \tcatch(SQLException e)\r\n \t{\r\n System.out.println(e.getMessage()+\"\"+e.getErrorCode()+\"\"+e.getSQLState());\r\n e.printStackTrace();\r\n }\r\n\t\t\r\n\t}",
"public void saveToDB() throws java.sql.SQLException\n\t{\n\t\tStringBuffer sSQL=null;\n Vector vParams=new Vector();\n\t\t//-- Chequeamos a ver si es un objeto nuevo\n\t\tif(getID_BBDD()==-1) {\n\t\t\tsSQL = new StringBuffer(\"INSERT INTO INF_BBDD \");\n\t\t\tsSQL.append(\"(NOMBRE,DRIVER,URL,USUARIO,CLAVE,JNDI\");\n\t\t\tsSQL.append(\") VALUES (?,?,?,?,?,?)\");\n\n vParams = new Vector();\n vParams.add(getNOMBRE());\n vParams.add(getDRIVER());\n vParams.add(getURL());\n vParams.add(getUSUARIO());\n vParams.add(getCLAVE());\n vParams.add(getJNDI());\n\t\t}\n\t\telse {\n\t\t\tsSQL = new StringBuffer(\"UPDATE INF_BBDD SET \");\n sSQL.append(\" NOMBRE=?\");\n sSQL.append(\", DRIVER=?\");\n sSQL.append(\", URL=?\");\n sSQL.append(\", USUARIO=?\");\n sSQL.append(\", CLAVE=?\");\n\t\t\tsSQL.append(\", JNDI=?\");\n\t\t\tsSQL.append(\" WHERE ID_BBDD=?\");\n\n vParams = new Vector();\n vParams.add(getNOMBRE());\n vParams.add(getDRIVER());\n vParams.add(getURL());\n vParams.add(getUSUARIO());\n vParams.add(getCLAVE());\n vParams.add(getJNDI());\n vParams.add(new Integer(getID_BBDD()));\n\t\t}\n\n\t\tAbstractDBManager dbm = DBManager.getInstance();\n dbm.executeUpdate(sSQL.toString(),vParams);\n\n // Actualizamos la caché\n com.emesa.bbdd.cache.QueryCache.reloadQuery(\"base_datos\");\n\t}",
"@Override\n\tpublic void closeDB()\n\t{\n\n\t}",
"void commit();",
"void commit();",
"private void transferToBankAccount() {\n ArrayList<Coin> selectedCoins;\n String collection;\n mGoldAmount = 0.0;\n mBankTransferTotal = 0;\n\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n selectedCoins = getSelectedCoins(Data.COLLECTED);\n collection = Data.COLLECTED;\n // Impose 25 coin limit\n if (selectedCoins.size() > (25 - Data.getCollectedTransferred())) {\n displayToast(getString(R.string.msg_25_coin_limit));\n return;\n }\n } else {\n selectedCoins = getSelectedCoins(Data.RECEIVED);\n collection = Data.RECEIVED;\n }\n\n if (selectedCoins.size() == 0) {\n displayToast(getString(R.string.msg_please_select_coins));\n return;\n }\n\n // Transfer selected coins to bank account\n mBankTransferInProgress = true;\n mProgressBar.setVisibility(View.VISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer in progress...\");\n\n for (Coin c : selectedCoins) {\n double value = c.getValue();\n String currency = c.getCurrency();\n double exchange = value * mExchangeRates.get(currency);\n mGoldAmount += exchange;\n Data.removeCoinFromCollection(c, collection, new OnEventListener<String>() {\n\n @Override\n public void onSuccess(String string) {\n mBankTransferTotal++;\n Log.d(TAG, \"[transferToBankAccount] number processed: \" + mBankTransferTotal);\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Get current date\n LocalDateTime now = LocalDateTime.now();\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\n \"yyyy/MM/dd\", Locale.ENGLISH);\n String date = format.format(now);\n\n // Add transaction to firebase\n Transaction transaction = new Transaction(mGoldAmount, date);\n Data.addTransaction(transaction, mBankTransferTotal, collection);\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer complete\");\n displayToast(getString(R.string.msg_transfer_complete));\n }\n }\n\n @Override\n public void onFailure(Exception e) {\n mBankTransferTotal++;\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer failed\");\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n\n } else {\n displayToast(getString(R.string.msg_failed_to_transfer) + c.getCurrency()\n + \" worth \" + c.getValue());\n }\n Log.d(TAG, \"[sendCoins] failed to transfer coin: \" + c.getId());\n }\n });\n }\n }",
"private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}",
"Databank getBank();",
"Account refresh();",
"public void deleteDB() {\n \n sql = \"Delete from Order where OrderID = \" + getOrderID();\n db.deleteDB(sql);\n \n }",
"public static void main(String[] args) throws SQLException {\n\r\nScanner sc = new Scanner(System.in);\r\n\t\tString driver = \"com.mysql.cj.jdbc.Driver\";\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString url = \"jdbc:mysql://localhost/Bank?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\";\r\n\t\tConnection con = DriverManager.getConnection(url, \"root\", \"Bottomass1375\");\r\n\t\tStatement st = con.createStatement();\r\n\r\n\t\tboolean check = true;\r\n\t\twhile (check) {\r\n\t\t\tSystem.out.println(\"What are you going to do?\\n\" + \"1)Open the bill\\n\" + \"2)Close the bill\\n\"\r\n\t\t\t\t\t+ \"3)Put money on the bill\\n\" + \"4)Take money from the bill\\n\" + \"5)Show the sum\\n\"\r\n\t\t\t\t\t+ \"6)Show all bills\\n\"+\"7)Show all transactions\\n\"\r\n\t\t\t\t\t+ \"0)Finish\\n \");\r\n\t\t\tint temp = sc.nextInt();\r\n\r\n\t\t\tswitch (temp) {\r\n\t\t\tcase 1: {\r\n\t\t\t\tSystem.out.println(\"Input the number of bill :\\n \");\r\n\t\t\t\tint bill = sc.nextInt();\r\n\r\n\t\t\t\tTransaction.openBill(bill);\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\r\n\t\t\t\tSystem.out.println(\"Input the number of bill :\\n \");\r\n\t\t\t\tint bill = sc.nextInt();\r\n\t\t\t\tTransaction.closeBill(bill);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tcase 3: {\r\n\t\t\t\tSystem.out.println(\"Input the number of bill :\\n \");\r\n\t\t\t\tint bill = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Input sum which you want to put :\\n\");\r\n\t\t\t\tint sum = sc.nextInt();\r\n\t\t\t\tTransaction.putMoney(bill, sum);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tcase 4: {\r\n\r\n\t\t\t\tSystem.out.println(\"Input the number of bill :\\n \");\r\n\t\t\t\tint bill = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Input sum which you want to take :\\n\");\r\n\t\t\t\tint sum = sc.nextInt();\r\n\t\t\t\tTransaction.takeMoney(bill, sum);\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tcase 5: {\r\n\t\t\t\tSystem.out.println(\"Input the number of bill :\\n \");\r\n\t\t\t\tint bill = sc.nextInt();\r\n\t\t\t\tTransaction.showBill(bill);\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcase 6:{\r\n\t\t\t\tTransaction.showBills();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 7:{\r\n\t\t\t\tTransaction.showTransactions();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"exit\");\r\n\t\t\t\tcheck = false;\r\n\r\n\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n//\t\tString sql1 = \"CREATE TABLE TRANSACTION(ID_TRANSACT INT NOT NULL,ID INT NOT NULL,SUM INT NOT NULL,\"\r\n//\t\t\t\t+ \"FOREIGN KEY(ID) references BILL(BILL_ID));\";\r\n//\r\n//\t\tString sql1 = \"CREATE TABLE BILL(BILL_ID INT NOT NULL,NAME VARCHAR(50) NOT NULL,SURNAME VARCHAR(50) NOT NULL,\"\r\n//\t\t\t\t+ \"STATUS VARCHAR(50) NOT NULL\\r\\n\" + \r\n//\t\t\t\t\",PRIMARY KEY(BILL_ID)); \\r\\n\" + \r\n//\t\t\t\t\"\";\r\n//\t\t\r\n\t\t\r\n//\t\tString sqlInsert = \"insert into bill values('\" +1+ \"', '\" +\"Igor\"+ \r\n//\t\t\"', '\" +\"Sidorov\"+ \"', '\" +\"Open\"+ \"')\";\r\n//\t\t\t\t\r\n//\t\tint x = statement.executeUpdate(sqlInsert);\r\n//\t\t\r\n//\t\tif (x > 0) \r\n//\t\t{\r\n// System.out.println(\"Successfully Inserted\"); \r\n//\t\t}\r\n//\t\telse \r\n//\t\t{\r\n//\t System.out.println(\"Insert Failed\");\r\n//\t\t}\r\n\t\t\r\n//statement.executeUpdate(sql1);\r\n//System.out.println(\"Database created successfully...\");\r\n\t\t\r\n//String sql1 = \"Drop table Transaction\";\r\n//statement.executeUpdate(sql1);\r\n//System.out.println(\"Database was deleted\");\r\n\t\t\r\n//String sql2 = \"Drop table Bill;\";\r\n//statement.executeUpdate(sql2);\r\n//System.out.println(\"Database was deleted\");\r\n\r\n//\t\tString sql = \"Delete from bill where bill_id=2;\";\r\n//\t\tstatement.executeUpdate(sql)\r\n//\t\t\r\n\t\t\r\n//\t\tString sql1 = \"delete from bill where id_bill>2;\";\r\n//\t\tst.executeUpdate(sql1);\r\n//\t\tSystem.out.println(\"column was deleted\");\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n//\t\tString sqlList = \"SELECT * FROM BILL\";\r\n//\r\n//\t\tResultSet resultSet = st.executeQuery(sqlList);\r\n//\t\tSystem.out.println(\" id_bill\"+ \" Name\"+\" Surname\"+\" status_of_bill\");\r\n//\t\twhile (resultSet.next()) {\r\n//\t\t\tint bill_id = resultSet.getInt(\"id_bill\");\r\n//\t\t\tString name = resultSet.getString(\"NAME\");\r\n//\t\t\tString surName = resultSet.getString(\"SURNAME\");\r\n//\t\t\tString status = resultSet.getString(\"STATUS_of_bill\");\r\n//\r\n//\t\t\tSystem.out.println(\" \" + resultSet.getInt(\"id_bill\") + \"\\t \" + resultSet.getString(\"NAME\") + \" \\t\"\r\n//\t\t\t\t\t+ resultSet.getString(\"SURNAME\") + \" \\t\" + resultSet.getString(\"STATUS_of_bill\") + \"\\t \");\r\n//\r\n//\t\t}\r\n//\t\t\r\n//\t\tresultSet.close();\r\n//\t\tSystem.out.println(\"\\n\");\r\n//\r\n//\t\tString sqlList1 = \"SELECT * FROM TRANSACTION\";\r\n//\r\n//\t\tResultSet resultSet1 = st.executeQuery(sqlList1);\r\n//\r\n//\t\t\r\n//\t\tSystem.out.println(\" ID\"+ \" id_transact_bill\"+\" sum\\n\");\r\n//\t\twhile (resultSet1.next()) {\r\n//\t\t\tint id_transact = resultSet1.getInt(\"ID\");\r\n//\t\t\tint sum1 = resultSet1.getInt(\"sum\");\r\n//\t\t\tint id = resultSet1.getInt(\"id_transact_bill\");\r\n//\t\t\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\" \" + resultSet1.getInt(\"ID\") + \"\\t \" + resultSet1.getInt(\"id_transact_bill\") + \"\\t\"\r\n//\t\t\t\t\t+ \" \"\r\n//\t\t\t\t\t+ resultSet1.getInt(\"sum\") + \"\\t \");\r\n//\r\n//\t\t}\r\n//\r\n//\t\tresultSet1.close();\r\n//\t\t\r\n//\t\t\r\n\t\t\r\n\t}",
"@Test\n\tpublic void createAccountDebtsTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnDebt.setSelected(true);\n\t\tdata.setRdbtnDebt(rdbtnDebt);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.DEBITS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}",
"private void initial(){\n storeAccount(\"201799990001030047\");\n }",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"private void BorrarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(this, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tdb.execSQL(\"DELETE from Tarjetas;\");\n\n\t\t\tdb.close();\n\t\t}\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==signup)\n\t\t{\n\t\t\tnewaccount l = new newaccount();\t\t\t\n\t\t}\n\t\tif(e.getSource()==go)\n\t\t{\n\t\t\ttry{\n\t\t\t\tClass.forName(JDBC_DRIVER);//JDBC드라이버 로드\n\t\t\t\tconn = DriverManager.getConnection(DB_URL,USERNAME,PASSWORD);//DB연결\n\t\t\t\tSystem.out.println(\"\\n- DB연결 성공\");\n\t\t\t\tstmt = conn.createStatement();//\n\t\t\t\t\n\t\t\t\tString king;\n\t\t\t\tking = \"SELECT * FROM rank ORDER BY jumsu DESC LIMIT 1\";\n\t\t\t\tResultSet rsking = stmt.executeQuery(king);\n\t\t\t\twhile(rsking.next())\n\t\t\t\t{\n\t\t\t\t\tkingjumsu=rsking.getString(2);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tString sql;\n\t\t\t\t//현재 입력된 아이디와 동일한 아이디가 있는지 검사\n\t\t\t\tsql = \"SELECT * FROM user WHERE user_ID ='\" + id.getText() +\n\t\t\t\t\t\t\t\t\t\t\"' AND user_PW ='\" + pw.getText() +\"'\";\n\t\t\t\tResultSet rs1 = stmt.executeQuery(sql);\n\t\t\t\t\n\t\t\t\tint i=0;\n\t\t\t\twhile(rs1.next())\n\t\t\t\t{\n\t\t\t\t\ti++;\n\t\t\t\t}\t\t\n\t\t\t\trs1.close();\n\t\t\t\t//i가 1이상이면(1이면)중복된 값이 있는것이기 때문에 실행 o\n\t\t\t\tif(i!=0)\n\t\t\t\t{\n\t\t\t\t\tnowid = id.getText();//넘겨주기 위해 선언\n\t\t\t\t\t\n\t\t\t\t\t//현재 입력된 아이디의 저장 데이터가 있는지 검사\n\t\t\t\t\tString sql2;\n\t\t\t\t\tsql2 = \"SELECT * FROM save WHERE user_ID ='\" + nowid + \"'\";\n\t\t\t\t\tResultSet rs2 = stmt.executeQuery(sql2);\t \n\t\t\t\t\t\n\t\t\t\t\tint j=0;\n\t\t\t\t\twhile(rs2.next())\n\t\t\t\t\t{\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\t\t\n\t\t\t\t\trs2.close();\n\t\t\t\t\t\n\t\t\t\t\t//j가 1 이상이면 중복된 값이 있는것이기 때문에 물어보고 실행 o\n\t\t\t\t\tif(j!=0)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tint result = 0;\n\t\t\t\t\t\tresult = JOptionPane.showConfirmDialog(null, \"저장된 데이터가 있습니다. 불러오시겠습니까?\\n(※경고 : 불러오지 않으면 저장되있던 데이터는 삭제됩니다.)\"\n\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\t\t\t \",\"불러오기\",JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\t// (result 리턴값)\n\t\t\t\t\t\t// JOptionPane.YES_OPTION, JOptionPane.NO_OPTION,\n\t\t\t\t\t\t// JOptionPane.CANCEL_OPTION 등\n\t\t\t\t\t\t\n\t\t\t\t\t\t//저장된 값부터 시작\n\t\t\t\t\t\tif(result==JOptionPane.YES_OPTION){\n\t\t\t\t\t\t\tload=false;\n\t\t\t\t\t\t\tString sql3;\n\t\t\t\t\t\t\tsql3 = \"SELECT * FROM save WHERE user_ID ='\" + id.getText() + \"'\";\n\t\t\t\t\t\t\t//현재아이디로 저장된 save데이터를 받아서 버튼배열에 저장\t\t\n\t\t\t\t\t\t\tResultSet rs3 = stmt.executeQuery(sql3);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint x=0;\n\t\t\t\t\t\t\twhile(rs3.next())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor(int y=0;y<=15;y++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbtnnum[x]=rs3.getString(x+3);\n\t\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tjumsu = rs3.getString(2);\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\tsavenum=1;\n\t\t\t\t\t\t\trs3.close();\n\t\t\t\t\t\t\tCore c = new Core();\n\t\t\t\t\t\t}//처음부터 시작(세이브 데이터 초기화됨)\n\t\t\t\t\t\tif(result==JOptionPane.NO_OPTION){\n\t\t\t\t\t\t\tString set;\n\t\t\t\t\t\t\tset = \"DELETE FROM save WHERE user_ID='\"+ nowid + \"'\";\n\t\t\t\t\t\t\tst = conn.prepareStatement(set);\n\t\t\t\t\t\t\tst.executeUpdate();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tCore c = new Core();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//아니라면 그냥 처음부터 실행\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"로그인 성공\");\n\t\t\t\t\t\tmain main = new main();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//i가 0이면 정보가 없기때문에 실행 x\n\t\t\t\tif(i==0)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"아이디, 비밀번호를 확인해주세요\");\n\t\t\t\t}\n\t\t\t\tstmt.close();\n\t\t\t\tconn.close();\n\t\t\t}catch(SQLException se1){\n\t\t\t\tse1.printStackTrace();\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}finally{\n\t\t\t\ttry{\n\t\t\t\t\tif(stmt!=null)\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t}catch(SQLException se2){\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t\t\tif(conn!=null)\n\t\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException se){\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void disconnectDB() {\n try {\n this.conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n if (this.conn != null) {\n try {\n this.conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void backUpDb() throws FileNotFoundException, IOException {\n backUpDb(Options.toString(Options.DATABASE));\n }",
"public void comboBoxDbSetupActionPerformed(ActionEvent e) {\n\t\tint selectedIndex = comboBoxDbSetup.getSelectedIndex();\n\t\ttextFieldDbHost.setText(dbSetups.host(selectedIndex));\n\t\ttextFieldDbPort.setText(dbSetups.port(selectedIndex));\n\t\ttextFieldDbName.setText(dbSetups.name(selectedIndex));\n\t\ttextFieldDbUser.setText(dbSetups.user(selectedIndex));\n\t\tcheckBoxProxyEnabled.setSelected(dbSetups.proxy(selectedIndex));\n\t\tString dbType = dbSetups.type(selectedIndex);\n\t\tif (dbType.equals(\"mysql\"))\n\t\t\tmysqlButton.setSelected(true);\n\t\telse if (dbType.equals(\"oracle\"))\n\t\t\toracleButton.setSelected(true);\n\t\telse\n\t\t\tnoneButton.setSelected(true);\n\n\t\t// textFieldDbUser.requestFocusInWindow();\n\t\t// textFieldDbUser.selectAll();\n\t\ttextFieldDbPwrd.requestFocusInWindow();\n\t\ttextFieldDbPwrd.selectAll();\n\t}",
"DepAcctDO selectByPrimaryKey(String depCode);",
"@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}"
]
| [
"0.62852556",
"0.58171946",
"0.57240105",
"0.5723263",
"0.5685893",
"0.5683938",
"0.55999434",
"0.5553555",
"0.55334836",
"0.5517742",
"0.5507153",
"0.5459169",
"0.5458524",
"0.5455475",
"0.54390466",
"0.54300857",
"0.54078794",
"0.5407592",
"0.5404369",
"0.5388637",
"0.53743297",
"0.53309274",
"0.53269905",
"0.53255624",
"0.531371",
"0.5308414",
"0.5307552",
"0.5307163",
"0.5307163",
"0.53041047",
"0.5291167",
"0.5290143",
"0.5285813",
"0.52630895",
"0.5257875",
"0.5232669",
"0.52230895",
"0.5219438",
"0.5217879",
"0.5215475",
"0.521451",
"0.5205642",
"0.5204436",
"0.5192264",
"0.5171215",
"0.5163122",
"0.51580936",
"0.51558197",
"0.5154712",
"0.51406986",
"0.5130284",
"0.5128712",
"0.51248974",
"0.5111391",
"0.5092522",
"0.50865775",
"0.50846046",
"0.5079849",
"0.50773644",
"0.50743425",
"0.50571054",
"0.50498253",
"0.5045696",
"0.5042026",
"0.50404674",
"0.503682",
"0.50330335",
"0.5028258",
"0.50232965",
"0.5022373",
"0.5020418",
"0.50170654",
"0.50170654",
"0.50102854",
"0.49960566",
"0.49897894",
"0.4986795",
"0.4981145",
"0.49806604",
"0.49743587",
"0.49457335",
"0.49457335",
"0.4944918",
"0.49423453",
"0.49415255",
"0.4938513",
"0.49374145",
"0.49373502",
"0.49346307",
"0.49325296",
"0.493216",
"0.4926773",
"0.49265254",
"0.49228135",
"0.49219042",
"0.49187106",
"0.49162143",
"0.49110997",
"0.49089313",
"0.49070674"
]
| 0.57148385 | 4 |
end deposit Withdraw from this account | public void withdraw(double amount) throws InsufficientFundsException {
if (amount <= balance) {
balance -= amount;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Update Accounts set Balance = "+getBalance()+
" where AcctNo= '"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
int n = stmt.executeUpdate(sql);
if (n == 1)
System.out.println("Update was successful!");
else
System.out.println("Update failed!");
// Close Connection
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} //end if
else {
throw new InsufficientFundsException(amount);
} //end else
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public void deposit();",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void withdraw(long amount) {\n\t\n\tif(canWithdraw == true) {\n\t\tSystem.out.println(\"before \"+balance);\n\t\tbalance\t-= amount;\n\t\tSystem.out.println(\"after \"+balance);\n\t\t//add to log\n\t\tlog += \"Withdraw made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\t\tlog += log += \" Current balance is \"+balance+\" \\n\"+date;\n\t\tupdate();\n\t}else {\n\t\tlog += \"Overdraft account on \"+date+\" \\n\";\n\t\tSystem.out.println(\"Insufficients funds to complete tranaction!\");\n\t\t}//end else statement\n}",
"public void deposit(int depositAmount)\r\n {\n this.balance += depositAmount;\r\n System.out.println(\"Deposit of \" + depositAmount + \" made. New Balance is \" + this.balance);\r\n }",
"public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}",
"public void deposit(double deposit){\n accTransactions.add(new Transaction('D', deposit, balance, \"deposit\"));\n balance += deposit;\n }",
"public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}",
"private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }",
"public void makeDeposit() {\n deposit();\n }",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"public void deposit(double amount){\n\t\tbalance += amount;\n\t}",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"public void deposit(double amount)\n {\n startingBalance += amount;\n }",
"public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}",
"public void withdraw(double amount)\n {\n if (amount <= balance) {\n balance = balance - amount;\n }\n else {\n System.err.println(\"Transaction Declined\");\n remainder = balance - amount;\n System.out.println(\"Your balance would have been \" + remainder);\n }\n }",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"void deposit(double amount){\r\n\t\t//add to the current balance the amount\r\n\t\t setBalance(getBalance() + amount);\r\n\t }",
"@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}",
"public void withdraw(double amount)\n {\n startingBalance -= amount;\n }",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void deposit(int amountToDeposit) {\n if (amountToDeposit > 0) {\n balance = balance + amountToDeposit;\n }\n }",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public int deposit(int depositAmmount);",
"public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }",
"@Override\n public boolean deposit(Account account, BigDecimal amount) {\n return false;\n }",
"public void subtractCreditTransaction(double withdrawAmount){\n if(!checkAccountOpen()){\n System.out.println(\"Your credit transaction in the amount of -$\" + withdrawAmount +\" has been declined\");\n }\n else {\n this.currentBalance = this.currentBalance - withdrawAmount;\n if(this.currentBalance<0){\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n this.currentBalance = this.currentBalance + withdrawAmount;\n }\n else {\n System.out.println(\"Your credit transaction has been approved!\");\n System.out.println(\"Your current balance is: $\" + currentBalance);\n }\n }\n\n }",
"public void deposit (int amount) {\n if (amount >= 0) {\n balance = balance + amount;\n valueDeposits = valueDeposits + amount;\n if (balance > maximumBalance) {\n maximumBalance = balance;\n }\n }\n }",
"@Override\r\npublic void deposit() {\n\t\r\n}",
"public void deposit(String accountType, double amount) {\r\n\t\tif(accountType.equals(\"savings\")) {\r\n\t\t\tthis.savingsBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse if(accountType.equals(\"checking\")) {\r\n\t\t\tthis.checkingBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Deposit failed\");\r\n\t\t}\r\n\t}",
"@Override\n public void deposit(double amount) {\n double balance = getBalance();\n setBalance(balance+amount);\n }",
"public void withdraw(double amount) {\n this.balance -= amount;\n }",
"public void withdraw(String PIN, float amount, String currentDate) {\n String finalDate = ProcessingDates.computeFinalDay(currentDate, this.period);\n if(finalDate.compareTo(currentDate) < 0) {\n System.out.println(\"Daca retrageti bani inainte de data scadenta a contului, va veti pierde dobanda\");\n }\n else if(finalDate == currentDate) {\n if (amount <= this.getCurrentBalance()) {\n this.setCurrentBalance(this.getCurrentBalance() - amount);\n\n AccountStatement accountStatement = new AccountStatement(currentDate, \"Retragere numerar\", \"Debit\", amount);\n this.addAccountStatement(accountStatement);\n System.out.println(\"Retragere realizata cu succes!\");\n } else {\n System.out.println(\"Fonduri insuficiente!\");\n }\n }\n }",
"public boolean deposit(long id, String password, String currency, double amount);",
"public void deposit (double amount)\n {\n imposeTransactionFee ();\n super.deposit (amount);\n }",
"public boolean withdraw(long id, String password, String currency, double amount);",
"public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"@Override\n public void deposit(double amount) {\n try {\n doDepositing(amount);\n } catch (BankException e) {\n System.out.println(e.getMessage());\n }\n }",
"public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}",
"void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}",
"public void deposit(double depositAmmount)\r\n\t{\r\n\t\tif(depositAmmount > 0.0) // it the deposit is valid\r\n\t\t\tbalance = balance + depositAmmount; // add it to the balance\r\n\t}",
"public void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}",
"public void deposit(double amount){\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else{\n balance += amount;\n savingTransactions[arrayLocation]= \"Deposit into savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"void deposit(float amount) {\n\n float newBalance;\n if (this.transactionHistory.isEmpty()) {\n newBalance = amount;\n } else {\n newBalance = this.transactionHistory.getLastTransaction().getBalanceAfter() + amount;\n }\n Transaction transaction = new Transaction(amount, true, newBalance);\n transactionHistory.addTransaction(transaction);\n }",
"private void doDeposit() {\n System.out.println(\"How much do you want to deposit?\");\n boolean keepgoing = true;\n int amount = -1;\n while (keepgoing) {\n amount = input.nextInt();\n if (amount > 0) {\n keepgoing = false;\n pickedAccount.deposit(amount);\n }\n }\n System.out.println(\"deposited \" + amount + \" $\");\n }",
"public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }",
"@Override\n\tpublic void deposit(User loggedInUser, String depositBook) {\n\n\t}",
"private void makeWithdraw() {\n\t\t\r\n\t}",
"void deposit() {\n System.out.println(\"Enter the amount to deposit : \");\n int deposit = scan.nextInt();\n balance += deposit;\n }",
"@Override\n public void deposit(double amount) {\n super.deposit(amount);\n store_trans(amount);\n }",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }",
"@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }",
"private void deleteTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n boolean isDebtValid = true;\n if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n List<Debt> debts = mDbHelper.getAllDebts();\n\n Double repayment = 0.0, borrow = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) { // Repayment\n repayment += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n borrow += debt.getAmount();\n }\n }\n\n if(borrow - mTransaction.getAmount() < repayment) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_delete_invalid));\n }\n }\n\n if(isDebtValid) {\n mDbHelper.deleteTransaction(mTransaction.getId());\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n\n cleanup();\n\n // Return to FragmentListTransaction\n getFragmentManager().popBackStackImmediate();\n LogUtils.logLeaveFunction(Tag);\n }\n }",
"public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }",
"public void withdraw(double amount) {\n\t\tbalance -= amount;\n\t}",
"public void deposit(double amount)\t{\n\t\tbalance = balance + amount;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}",
"public void withdrawFromBalance(double withdrawBalanceAmount) \n\t{\n\t\taccountBalance -= withdrawBalanceAmount;\n\t}",
"boolean debit(TransactionRequest transaction) throws ebank.InsufficientBalanceException,ebank.CardNumberException, SQLException, ClassNotFoundException;",
"private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"void withdraw() {\n System.out.println(\"Enter the amount to withdraw : \");\n int withdraw = scan.nextInt();\n balance -= withdraw;\n }",
"public void withdraw(double dollarAmount) throws InsufficientFundsException {\r\n\t\tif (this.accountBalance - dollarAmount < 0 || this.accountBalance - dollarAmount - 1.50 < 0) {\r\n\t\t\tthrow new InsufficientFundsException();\r\n\t\t} else {\r\n\t\t\ttransactionTracker++;\r\n\t\t\tSystem.out.println(transactionTracker);\r\n\t\t\tif (transactionTracker > 4) {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount - 1.50;\r\n\t\t\t} else {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void deposit (double depositAmount, String userName) {\n\t\tBankAccountRepositoryJdbc bar = new BankAccountRepositoryJdbc();\n\t\tbalance = bar.getBalance(userName);\n\t\t\n\t\ttry {\n\t\t\tif(depositAmount != 0) {\n\t\t\t\tif(depositAmount > 0) {\n\t\t\t\t\tbalance = balance+depositAmount;\n\t\t\t\t\taccount.setBalance(balance);\n\t\t\t\t\taccount.setUsername(userName);\n\t\t\t\t\tbar.updateAccount(account);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NegativeAmountDepositException (\"You attempted to deposit a negative amount.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NegativeAmountDepositException e) {\n\t\t\tLOGGER.info(e);\n\t\t}\n\t}",
"public void deposit(double value)\r\n {\r\n //TODO need logic to make sure you can't deposit more then you have in cash\r\n subtractCash(value);\r\n savings += value;\r\n }",
"public void withdraw(double withdrawalAmount) {\n if (withdrawalAmount < 0) throw new IllegalArgumentException(\"Withdrawal amount cannot be negative\");\n if (balance - withdrawalAmount < 0) throw new IllegalArgumentException(\"Cannot withdraw more than account balance\");\n balance -= withdrawalAmount;\n numWithdrawals++;\n }",
"public void deposit (int amount){\n if(amount>=3000){\n super.deposit(amount+200);\n } else {\n super.deposit(amount);\n }\n }",
"public void deposit(double amount)\n {\n balanceChangeLock.lock();\n try\n {\n System.out.print(\"Depositando \" + amount);\n double newBalance = balance + amount;\n System.out.println(\", novo saldo igual a \" + newBalance);\n balance = newBalance;\n sufficientFundsCondition.signalAll();\n }\n finally\n {\n balanceChangeLock.unlock();\n }\n }",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"void withdraw(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Withdrawing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (check(amount)) {\n\t\t\tbalance -= amount;\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" successfully.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" unsuccessfully. Do not have enough available funds.\");\n\t\t}\n\t}",
"public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }",
"public void deposit(double depositAmount) {\n if (depositAmount < 0) throw new IllegalArgumentException(\"Deposit Amount cannot be negative\");\n balance += depositAmount;\n ++numDeposits;\n }",
"@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}",
"public abstract boolean deposit(float amount);",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"public int withdraw(int amount) {\n\n this.balance -= amount;\n if (balance < 0) {\n\n this.balance = 0;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return this.balance;\n\n } else {\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n }\n }",
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }",
"public boolean debit(double amount) throws InsufficientFundsException,InvalidAmountException {\r\n\t\tif (getAmount() + overdraftBalance < amount){\r\n\t\t\tthrow new InsufficientFundsException(\"Insufficient funds to withdraw the amount.\");\r\n\t\t}\r\n\t\tif (amount <= 0){\r\n throw new InvalidAmountException(\"Amount can't be negative or 0.\");\r\n }\r\n\t\tsetAmount(getAmount() - amount);\r\n\t\tthis.setCountVal(this.getCountVal() + 1);\r\n return true;\r\n\t}",
"public long deposit(long amount) {\n balance += amount;\n return balance;\n }",
"public void withdrawOrDeposit(double amount, boolean isWithdraw){\n if(amount > 0.0) {\n if (isWithdraw) {\n balance -= amount;\n } else {\n balance += amount;\n }\n }\n }",
"protected boolean withdraw(double amount)\n\t{\n\t\tif(amount>acc_balance)\n\t\t\treturn false;\n\t\t\n\t\t//else the deduction is done from balance and success message is passed\n\t\tacc_balance-=amount;\n\t\treturn true;\n\t}",
"public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }",
"private static void withdraw(double amount) {\n double resultWithdraw = balance - amount;\r\n if (resultWithdraw < 0 || amount > 2000) {\r\n System.out.println(\"Withdrawal cannot exceed $2000. Balance cannot be reduced below $0.\");\r\n } else {\r\n System.out.println(amount + \" has been withdrawn from your bank account.\\nCurrent balance \" + resultWithdraw + \".\");\r\n }\r\n }",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }",
"@Override\n\tpublic int withdraw(double amount) throws RaiseException {\n\t\tValidator.validateWithdraw(this.getBalance(), amount);\n\t\tif(amount <= this.getBalance()) {\n\t\t\tthis.setBalance(this.getBalance() - amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.withdraw);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}"
]
| [
"0.75072724",
"0.7431837",
"0.73939365",
"0.72944117",
"0.7179737",
"0.71725374",
"0.7056611",
"0.702328",
"0.7018444",
"0.7016631",
"0.7003016",
"0.69527465",
"0.6936079",
"0.69343597",
"0.6873681",
"0.68696296",
"0.6862844",
"0.6859874",
"0.68407214",
"0.68383485",
"0.68242127",
"0.68103325",
"0.6773938",
"0.67710626",
"0.67467886",
"0.6744155",
"0.6743367",
"0.6740849",
"0.67375195",
"0.6718532",
"0.6708571",
"0.6681228",
"0.6679696",
"0.6679696",
"0.6669058",
"0.66654944",
"0.6665091",
"0.66479766",
"0.6635784",
"0.661077",
"0.65891796",
"0.65826017",
"0.65710557",
"0.6566289",
"0.6554813",
"0.6554582",
"0.6536667",
"0.6534878",
"0.6530436",
"0.6526279",
"0.65191925",
"0.65155697",
"0.6489855",
"0.648808",
"0.64859986",
"0.6482663",
"0.6471245",
"0.6466711",
"0.64596033",
"0.64543873",
"0.6449211",
"0.6440335",
"0.64313376",
"0.64309406",
"0.6421354",
"0.64212257",
"0.6418043",
"0.6416912",
"0.640696",
"0.6400619",
"0.63987535",
"0.6389878",
"0.63829887",
"0.6381868",
"0.6381764",
"0.6368015",
"0.6366751",
"0.63661164",
"0.6365955",
"0.635955",
"0.6318457",
"0.63057196",
"0.6303613",
"0.6293738",
"0.6289636",
"0.6277922",
"0.6272761",
"0.62714547",
"0.626807",
"0.6262727",
"0.6262646",
"0.6258122",
"0.62579733",
"0.6257902",
"0.6257286",
"0.62519556",
"0.62471884",
"0.62464654",
"0.62453675",
"0.6241091"
]
| 0.63032323 | 83 |
end withdraw Main method (Using to test Account class) | public static void main(String[] args) {
// Code to test Account class
// testing selecting an account from the database - Lab #3 Part II
/*Account a1 = new Account();
a1.selectDB("90002");
double abalance = a1.getBalance();
System.out.println("Balance: " + abalance); */
// testing deposit and withraw methods Lab #4 Part I
Account a1 = new Account();
a1.selectDB("90002");
a1.display();
//a1.deposit(300.00);
/*try {
a1.withdraw(3000.00);
}
catch (InsufficientFundsException ex) {
System.out.println(ex);
} */
//a1.display();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeAccount() {}",
"public void closeAccount() {}",
"public abstract void closeAccount();",
"@Test\n public void testWithdraw() {\n System.out.println(\"withdraw\");\n double d = 1.0;\n Account instance = new Account(\"Piper\", 10.0);\n double expResult = 9.0;\n double result = instance.withdraw(d);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"private void makeWithdraw() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n SavingAccount savings = new SavingAccount(1112, 200);\r\n CheckingAccount checking = new CheckingAccount(1113, 200, -200);\r\n\r\n //account.setAnnualInterestRate(4.5);\r\n savings.setAnnualInterestRate(4.5);\r\n checking.setAnnualInterestRate(4.5);\r\n\r\n\r\n //account.withdraw(250);\r\n //account.deposit(30);\r\n //System.out.println(account.toString());\r\n\r\n\r\n\r\n\r\n checking.withdraw(250);\r\n checking.deposit(30);\r\n System.out.println(checking.toString());\r\n\r\n savings.withdraw(2504);\r\n savings.deposit(30);\r\n System.out.println(savings.toString());\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }",
"public static void main(String[] args){\n\t\tAccount Nick_account = new Account(1122,20000);\n\t\t\n\t\t\n\t\t//Setting annual interest rate to 4.5%\n\t\tNick_account.set_AnnualInterest(4.5);\n\t\t\n\t\t//Withdraw\n\t\ttry{\t\n\t\t\tSystem.out.println(\"Withdrawing $2000\");\n\t\t\tNick_account.Withdraw(2000);\n\t\t}\n\t\tcatch(InsufficientFundsException e)\n\t {\n\t System.out.println(\"Sorry, but you are short $\"\n\t + e.getAmount());\n\t e.printStackTrace();\n\t }\n\t\t\n\t\t//Deposit\n\t\tSystem.out.println(\"Depositing $3000\");\n\t\tNick_account.Deposit(3000);\n\t\t\n\t\t//Withdraw that throws exception\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.printf(\"Your account contains $ %.2f\\n\", Nick_account.get_Balance());\n\t\t\n\t\tSystem.out.println(\"Your monthly interest is \" + Nick_account.get_MonthyInterest()+\"%\");\n\t\tSystem.out.println(\"Your account was created on \" + Nick_account.get_Date());\n\t\t\n\n\t}",
"@Test\n\tpublic void testWithdraw() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);;\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(01, \"acc1\", 00000, 50.00, \"\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tArrayList<Account> expected = new ArrayList<>();\n\t\texpected.add(0, new Account(00000, \"acc1\", true, 949.90, 0002, false));\n\n\t\tif (outContent.toString().contains(\"Withdrawl Successful\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"fail withdrawing $50 + fee\", testResult);\n\t}",
"@Test\n\tpublic void withdrawTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.withdraw(cAcc, 300);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == -300.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}",
"public void makeWithdraw() {\n withDraw();\n }",
"@Test \n\tpublic void test1() {\n\t\taccount.withdraw(1000);\n\t\t//Sample (Expected) Output\n\t\tassertEquals(1000, account.getAmount(),0.01);\n\t}",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"public void finished() {\n\t\tSystem.out.println(\"Account1 : \" + a1.getBalance());\n\t\tSystem.out.println(\"Account2 : \" + a2.getBalance());\n\t}",
"public static void main(String[] args) {\n\t\t Scanner input=new Scanner(System.in);//Input through Scanner Class\n\t\t System.out.println(\"You have Rs 500 in account\"); \n\t\t System.out.println(\"Enter the amount to be withdrawed\");\n\t\t int amount = input.nextInt();\n\t\t //Enter the amount \n\t\t CurrentAccount deposit=new CurrentAccount();\n\t\t payment(deposit, amount);\n\t\t //Withdraw the amount from bank\n\t\t System.out.println(\"Enter the amount to be deposited\");\n\t\t amount = input.nextInt();\n\t deposit(new SavingsAccount(), amount);\n //Deposit the amount bank\n }",
"public static void main(String[] args) {\n BankAccount Yaoming = new BankAccount(0, \"blobfis@h\");\n BankAccount Hoshi = new BankAccount(2348123, \"Seventeen\");\n BankAccount Pewpew = new BankAccount(1245, \" \");\n\n System.out.println(Yaoming.getBalance());\n System.out.println(Hoshi.getAccountID());\n // System.out.println(Yaoming.getPassword());\n Yaoming.setPassword(\"donkey\");\n // System.out.println(Yaoming.getPassword());\n System.out.println(Yaoming.deposit(53.43));\n System.out.println(Yaoming.getBalance());\n if ( Yaoming.deposit(-100) ) System.out.println(\"Deposit successful!\");\n else {System.out.println(\"Deposit failed!\");}\n System.out.println();\n\n // System.out.println(Pewpew.getPassword());\n System.out.println(Pewpew.getBalance());\n System.out.println(Pewpew.deposit(2147823.23));\n System.out.println(Pewpew.withdraw(9999999));\n System.out.println(Pewpew.withdraw(-1231784.23));\n System.out.println(Pewpew.withdraw(0.23));\n System.out.println(Pewpew.getBalance());\n System.out.println();\n\n System.out.println(Hoshi.toString());\n System.out.println(Yaoming.toString());\n System.out.println(Pewpew.toString());\n System.out.println();\n\n BankAccount Sophia = new BankAccount(123456, \"meowmeow\");\n BankAccount Funky = new BankAccount(7890, \"woofwoof\");\n Sophia.deposit(7500);\n System.out.println(Sophia.getBalance());\n System.out.println(Funky.getBalance());\n System.out.println(Sophia.transferTo(Funky, 500, \"meowmeow\")); //should be true\n System.out.println(Funky.transferTo(Sophia, 1000, \"woofwoof\")); //should be false\n System.out.println(Funky.transferTo(Sophia, 300, \"hehehe\")); //should be false\n System.out.println(Sophia.getBalance()); //should be 7000.0\n System.out.println(Funky.getBalance()); //should be 500.0\n\n }",
"public static void main(String[] args) {\n Bank newBank = new Bank(123456789);\n newBank.createAccount(45);\n newBank.createAccount(9);\n newBank.createAccount(342267);\n newBank.createAccount(7);\n newBank.createAccount(3);\n newBank.createAccount(343);\n newBank.createAccount(7);\n newBank.createAccount(789);\n newBank.createAccount(5645);\n //newBank.removeAccount(7);\n //System.out.println(\"New account: \" + newBank.createAccount(44));\n //System.out.println(\"2. account \" + newBank.createAccount(6));\n newBank.printAllAccounts();\n }",
"public void denyDraw(){\n System.out.println(\"No cuenta con suficiente money\");\n System.out.println(\"\");\n}",
"@Test(groups = \"Transactions Tests\", description = \"Delete account with Transaction\")\n\tpublic void deleteAccountWithTransaction() {\n\t\tMainScreen.clickAddAccountBtn();\n\t\tNewAccountScreen.typeAccountName(\"Freelance jobs\");\n\t\tNewAccountScreen.clickAccountColor();\n\t\tNewAccountScreen.clickColorOption();\n\t\tNewAccountScreen.typeAccountDescription(\"Account to control my freelance jobs money\");\n\t\tNewAccountScreen.clickPlaceholderAccountOption();\n\t\tNewAccountScreen.clickSaveBtn();\n\t\tMainScreen.accountItem(\"Freelance jobs\").shouldBe(visible);\n\t\ttest.log(Status.PASS, \"Account created successfully\");\n\n\t\t//Creating a new sub-account, testing if it's visible and logging the result to the report\n\t\tMainScreen.clickAccountItem(\"Freelance jobs\");\n\t\tSubAccountScreen.clickAddSubAccountBtn();\n\t\tNewAccountScreen.typeAccountName(\"Test Automation jobs\");\n\t\tNewAccountScreen.clickAccountColor();\n\t\tNewAccountScreen.clickColorOption();\n\t\tNewAccountScreen.typeAccountDescription(\"Sub-account to control meu Test Automation freelance jobs\");\n\t\tNewAccountScreen.clickSaveBtn();\n\t\tSubAccountScreen.subAccountItem(\"Test Automation jobs\").shouldBe(visible);\n\t\ttest.log(Status.PASS, \"Sub-account created successfully\");\n\n\t\t//Creating a new transaction, testing if it's visible, if the value is correct and logging the result to the report\n\t\tSubAccountScreen.clickSubAccountItem(\"Test Automation jobs\");\n\t\tTransactionsScreen.clickAddTransactionBtn();\n\t\tTransactionsScreen.typeTransactionDescription(\"N26 Home Task\");\n\t\tTransactionsScreen.typeTransactionAmount(\"250\");\n\t\tTransactionsScreen.clickSaveBtn();\n\t\tTransactionsScreen.transactionItem(\"N26 Home Task\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$250\"));\n\t\ttest.log(Status.PASS, \"Transaction created and the value is correct\");\n\n\t\t//Testing if the transaction was created in the 'Double Entry' account and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"N26 Home Task\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$250\"));\n\t\ttest.log(Status.PASS, \"Transaction in the 'Double Entry' account created and the value is correct\");\n\n\t\t//Deleting the account with the transaction, testing if it's not listed and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickOptionsBtnFromAccountItem(\"Freelance jobs\");\n\t\tMainScreen.clickDeleteAccountOption();\n\t\tMainScreen.clickDeleteTransactionRadioOption();\n\t\tMainScreen.clickDeleteBtn();\n\t\tMainScreen.accountItem(\"Freelance jobs\").shouldNotBe(visible);\n\t\ttest.log(Status.PASS, \"Account and Transaction deleted successfully\");\n\n\t\t//Testing if the transaction were deleted from the 'Double Entry' account and logging the result to the report\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"N26 Home Task\").shouldNotBe(visible);\n\t\ttest.log(Status.PASS, \"Transaction deleted successfully from the 'Double Entry' account\");\n\n\t}",
"public void deposit();",
"@Test\r\n\tpublic void withdraw() {\n\t\tResult<String> loanWithdraw = qddPaymentService.loanWithdraw(141227113319030002L);\r\n\t\tSystem.out.println(loanWithdraw);\r\n\t}",
"private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"void withdraw() {\n System.out.println(\"Enter the amount to withdraw : \");\n int withdraw = scan.nextInt();\n balance -= withdraw;\n }",
"public boolean withdraw(long id, String password, String currency, double amount);",
"public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void withdraw(double amount)\n {\n startingBalance -= amount;\n }",
"public static void main(String[] args) \n\t{\n\t\tExercise039 account1 = new Exercise039( 50.00 ); // create Exercise039 object\n\t\tExercise039 account2 = new Exercise039( -7.53 ); // create Exercise039 object\n\t\t\n\t\t// display initial balance of each object\n\t\tSystem.out.printf( \"account1 balance: $%.2f\\n\", account1.getBalance() );\n\t\tSystem.out.printf( \"account2 balance: $%.2f\\n\\n\", account2.getBalance() );\n\t\t\n\t\t// create Scanner to obtain input from command window\n\t\tScanner input = new Scanner ( System.in );\n\t\tdouble withdrawAmount; // debit amount read from user\n\t\t\n\t\tSystem.out.print( \"Enter debit amount for account1: \" ); // prompt\n\t\twithdrawAmount = input.nextDouble(); // obtain user input\n\t\tSystem.out.printf(\"\\ndeducting %.2f from account1 balance\\n\\n\", withdrawAmount );\n\t\taccount1.debit(withdrawAmount); // deduct from account1 balance\n\t\t\n\t\t// display balances\n\t\tSystem.out.printf( \"account1 balance: $%.2f\\n\", account1.getBalance() );\n\t\tSystem.out.printf( \"account2 balance: $%.2f\\n\\n\", account2.getBalance() );\n\t\t\n\t\tSystem.out.print( \"Enter withdraw amount for account2: \"); // prompt\n\t\twithdrawAmount = input.nextDouble(); // obtain user input\n\t\tSystem.out.printf( \"\\ndeducting %.2f from account2 balance\\n\\n\", withdrawAmount );\n\t\taccount2.debit( withdrawAmount ); //deduct from account2 balance\n\t\t\n\t\t// display balances\n\t\tSystem.out.printf( \"account1 balance: $%.2f\\n\", account1.getBalance() );\n\t\tSystem.out.printf( \"account2 balance: $%.2f\\n\", account2.getBalance() );\n\t}",
"public static void close(){\n System.out.println(\"Thank you for choosing our Bank\");\r\n System.out.println();\r\n if(CLIENT.length() == 16 && PASSWORD.length() == 4){ //if the user lenght is equal to 16 and password lenght to 4 (if they are valid) then the user closes by saying the account number\r\n System.out.println(\"Farewell user \" +CLIENT); //farewell for the client\r\n }\r\n else{ //if the account or password isnt valid then the following is displayed\r\n System.out.println(\"PLEASE CONTACT THE BANK FOR ASSISTANCE IF NEEDED\");\r\n }\r\n System.exit(0); //the system forces the exit of the program\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tBanking s1 = AccountFactory.openSavingAccount(\"Polo\");\n\t\ttry {\n\t\t\ts1.withdraw(2000);\n\t\t} catch (BalanceException e) {\n\t\t\t//e.printStackTrace(); \t//For debugging - used by developers\n\t\t\t//System.out.println(e); \t//used for loggers\n\t\t\tSystem.out.println(e.getMessage()); \t//for end user\n\t\t}\n\t\t\n\t\ts1.deposit(3000);\n//\t\ts1.withdraw(2000);\n//\t\ts1.deposit(4000);\n//\t\t\n//\t\ts1.statement();\n\t\t\n\n\t}",
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"public void withdraw() {\n\t\t\t\n\t\t}",
"public static void main(String[] args){\n System.out.println(\"\\nSTEP 1:\\n Create a new bank account.\");\n BankAccount a = new BankAccount(args[0], args[1], args[2]);\n System.out.println(a);\n\n // Get and set names\n System.out.println(\"\\nSTEP 2:\\n Get account holder name.\");\n String name = a.getName();\n System.out.println(\"The name is \" + name);\n System.out.println(a);\n\n System.out.println(\"\\nSTEP 3:\\n Set account holder name.\");\n a.setName(\"Mary Berry\");\n System.out.println(a);\n\n // Get and set account number\n System.out.println(\"\\nSTEP 4:\\n Get account number.\");\n String number = a.getNumber();\n System.out.println(\"The account number is \" + number);\n System.out.println(a);\n\n System.out.println(\"\\nSTEP 5:\\n Set account number.\");\n a.setNumber(\"0012044\");\n System.out.println(a);\n\n // Withdraw money with no funds\n System.out.println(\"\\nSTEP 6:\\n Attempt to withdraw money with insufficient funds.\");\n a.withdraw(22.0);\n System.out.println(a);\n\n // Deposit to account\n System.out.println(\"\\nSTEP 7:\\n Deposit to bank account.\");\n a.deposit(50.0);\n System.out.println(a);\n\n // Check balance\n System.out.println(\"\\nSTEP 8:\\n Check account balance.\");\n double balance = a.checkBalance();\n System.out.println(\"The balance is \" + balance);\n System.out.println(a);\n\n // Withdraw with sufficient funds\n System.out.println(\"\\nSTEP 9:\\n Withdraw from account.\");\n a.withdraw(22.0);\n System.out.println(a);\n }",
"public void withdraw(long amount) {\n\t\n\tif(canWithdraw == true) {\n\t\tSystem.out.println(\"before \"+balance);\n\t\tbalance\t-= amount;\n\t\tSystem.out.println(\"after \"+balance);\n\t\t//add to log\n\t\tlog += \"Withdraw made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\t\tlog += log += \" Current balance is \"+balance+\" \\n\"+date;\n\t\tupdate();\n\t}else {\n\t\tlog += \"Overdraft account on \"+date+\" \\n\";\n\t\tSystem.out.println(\"Insufficients funds to complete tranaction!\");\n\t\t}//end else statement\n}",
"public void withdraw() {\n\t\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tLocale.setDefault(Locale.US);\r\n\t\t\r\n\t\t/*Account ac = new Account();\r\n\t\t 1-Manter essa instancia no inicio geraria erros pois os construtores pedem inicialização na CLASS account */\r\n\t\t\r\n\t\tAccount ac;//Declaramos acima pois será necessário utilizar fora do escopo dos construtores\r\n\t\t\r\n\t\tdouble deposit;\r\n\t\tSystem.out.print(\"Enter account number: \");\r\n\t\tint number=sc.nextInt();//2-Com isso devo criar novas variaveis \r\n\t\tSystem.out.print(\"Enter account holder: \");\r\n\t\tString holder=sc.next();\r\n\t\tSystem.out.print(\"Is the initial deposit(y/n)? \");\r\n\t\tchar response = sc.next().charAt(0);\r\n\t\tif (response=='y') {\r\n\t\t\tSystem.out.print(\"Enter initial deposite value: \");\r\n\t\t\tdeposit = sc.nextDouble();\r\n\t\t\tac = new Account(number,holder, deposit);/*Ponto de inicio do construtor pois ao escolher iniciar \r\n\t\t\tcom deposito ele inicia o metodo com parametos definidos*/\r\n\t\t} \r\n\t\telse {\r\n\t\t ac = new Account(number,holder);/*Poderia colocar o 0 no lugar do deposito mas como isso poderia gerar algum erro,a boa prática \r\n\t\t é fazer um outro metodo sobrecarga*/ \r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.printf(\"Account Data: %n\"+ac);\r\n\t\r\n\t\tSystem.out.println(\"Enter a deposit value:\");\r\n\t\tdeposit = sc.nextDouble();\r\n\t\tac.depositar(deposit); //Esse parametro objinstanciada.metodo(parametro) garante que o dado esta sendo armazendo no metodo\r\n\t\t\r\n\t\tSystem.out.printf(\"Updated Data: %n\"+ac);\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n System.out.println();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter a withdraw value:\");\r\n\t\tdeposit = sc.nextDouble();\r\n\t\tac.saca(deposit);\r\n\t\t\r\n\t\tSystem.out.printf(\"Updated Data: %n\"+ac);\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tsc.close();\r\n\r\n\t\t\r\n\t}",
"public static void exit() {\n\t\t\n\t\t//\tlog out\n\t\tlogout();\n\t\t\n\t\t//\tclean up\n\t\taccountNames.clear();\n\t\taccountsByName.clear();\n\t\tdataProvider = null;\n\t\trememberedUserNames = null;\n\t}",
"public void deposit(String accountType, double amount) {\r\n\t\tif(accountType.equals(\"savings\")) {\r\n\t\t\tthis.savingsBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse if(accountType.equals(\"checking\")) {\r\n\t\t\tthis.checkingBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Deposit failed\");\r\n\t\t}\r\n\t}",
"public void withdraw(double amount)\n {\n if (amount <= balance) {\n balance = balance - amount;\n }\n else {\n System.err.println(\"Transaction Declined\");\n remainder = balance - amount;\n System.out.println(\"Your balance would have been \" + remainder);\n }\n }",
"public static void main(String[] args) {\n\t\tAccount a = new Account(\"윤영주\");\r\n\t\t\ta.total=a.save(12000,\"알바비\",\"2017.04.01\");\r\n\t\t\ta.print();\r\n\t\t\ta.total += a.withdraw(5000,\"편의점\",\"2017.04.11\");\r\n\t\t\ta.print();\r\n\t\t\ta.total += a.save(30000,\"용돈\",\"2017.04.20\");\r\n\t\t\ta.print();\r\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"public static void main(String[] args) {\n\t\tBank b = new Bank();\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < 29; i++) {\n\t\t\tb.addAccount(new Account(i*100000, r.nextInt(1000000)*r.nextDouble(),Integer.toString(i)));\n\t\t}\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(b.addAccount(new Account(1500l, r.nextInt(1000000)*r.nextDouble(), \"100\")));\n\t\tSystem.out.println(b.removeAccount(1500l));\n\t\tSystem.out.println(b.deposit(1500l, 1000d));\n\t\tSystem.out.println(b.deposit(0l, 1000d));\n\t\tSystem.out.println(b.withdraw(0l, 1000000000000000000d));\n\t}",
"int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }",
"public void testOneWithdrawal(){\n\t\t//Pre-conditions\n\t\tteller.setWorking(true);\n\t\tteller.setHost(host);\n\t\t\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\t\n\t\tassertEquals(\"Teller should have no pending loans, but it has \" + teller.pendingLoans.size(),0,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller should have no accountsListed, but it has \" + teller.accountsListed.size(),0,teller.accountsListed.size());\n\t\t\n\t\t//Step 0 of test - Teller has an account for this customer already \n\t\tteller.accountsListed.add(new BankAccount(withdraw,100));\n\t\t\n\t\t//Post-conditions of step 0 \n\t\tassertEquals(\"Teller should have one account listed, instead it has \" + teller.accountsListed.size(),1,teller.accountsListed.size());\n\t\tassertEquals(\"Teller's only account should have a balance of 100, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t100.0,teller.accountsListed.get(0).getBalance());\n\t\t\n\t\t//Step 1 of test\n\t\t//msgGoSeeTeller(Banker)\n\t\twithdraw.msgGoSeeTeller(teller);\n\t\t\n\t\t//Post-conditions of step 1 \n\t\tassertEquals(\"Teller's state should be busy, but instead it is: \" + teller.getState(),\"Busy\",teller.getState());\n\t\tassertEquals(\"Teller should have one pending transaction, but it has: \" +teller.pendingTransactions.size(),\n\t\t\t\t1,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller's transaction should be to withdraw 100 dollars, instead it is for \" + teller.pendingTransactions.get(withdraw), \n\t\t\t\t-100.0, teller.pendingTransactions.get(withdraw));\n\t\t\n\t\t//Step 2 of test\n\t\tassertTrue(\"Teller's scheduler should return true, but it doesn't.\", teller.pickAndExecuteAnAction());\n\t\t\n\t\t//Post-conditions of step 2 \n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\tassertTrue(\"Host's log should have a message stating \\\"Updated account, and added teller\\\", instead it reads: \" + host.log.getLastLoggedEvent().toString(), \n\t\t\t\thost.log.containsString(\"Updated account, and added teller\"));\n\t\tassertTrue(\"Customer's log should have a message stating \\\"Got 100.0 dollars, leaving bank.\\\", instead it reads: \" + withdraw.log.getLastLoggedEvent().toString(),\n\t\t\t\twithdraw.log.containsString(\"Got 100.0 dollars, leaving bank.\"));\n\t\tassertEquals(\"Customer's account stored in teller should be updated with the correct balance of 0.0, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t0.0, teller.accountsListed.get(0).getBalance());\n\t\t\n\t}",
"@Test\n public void testDeposit() {\n System.out.println(\"deposit\");\n double d = 1.0;\n Account instance = new Account(\"Piper\", 10.0);\n double expResult = 11.0;\n double result = instance.deposit(d);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"@Test\n @Order(16)\n void delete_account_2() {\n Account protect = client.getAccounts().iterator().next();\n boolean isDeleted = service.deleteAccount(client2.getId(), protect.getId());\n Assertions.assertFalse(isDeleted);\n }",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"public void accountElection(){\n System.out.println(\"Elija una de las cuentas\");\n System.out.println(\"\");\n}",
"@Test\n public void testDeleteAccountFromUser() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n bank.deleteAccountFromUser(user.getPassport(), acc);\n accs.remove(acc);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }",
"void withdraw(double amount){\r\n\t\t//subtract to the current balance the amount\r\n\t\tsetBalance(getBalance() - amount);\r\n\t\t\r\n\t\t//alert the user that his bank account is in the red if the balance lower than 0\r\n\t\tif(getBalance()<0){\r\n\t\t\tSystem.out.println(\"Your bank account is in the red.\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tBank Reynolds_Bank = new Bank();\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter an account number, followed by a starting balance or type -1 to quit: \");\r\n\t\tint new_account_number = scan.nextInt();\r\n\t\tdouble new_account_balance = scan.nextDouble();\r\n\t\t\r\n\t\t//The while loop will check for the -1 in the new_account_number variable even if typed in at this beginning point\r\n\t\t//The user will have to type a second number anyway before the while will test for the -1 and quit\r\n\t\t//Note that typing a -1 for the very first value will result in a code error because the program\r\n\t\t//will attempt to do the procedures below the while loop concerning high and low bank accounts but\r\n\t\t//there are no accounts within the bank at such a point\r\n\t\twhile (new_account_number != -1)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tBankAccount New_Account = Reynolds_Bank.add_Account(new_account_number, new_account_balance);\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"Please enter an amount to withdraw: \");\r\n\t\t\tdouble withdraw_amount = scan.nextDouble();\r\n\t\t\tSystem.out.print(\"Please enter an amount to deposit: \");\r\n\t\t\tdouble deposit_amount = scan.nextDouble();\r\n\t\t\t\r\n\t\t\tNew_Account.withdraw(withdraw_amount);\r\n\t\t\tNew_Account.deposit(deposit_amount);\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"Please enter a new account number or -1 to quit: \");\r\n\t\t\tnew_account_number = scan.nextInt();\r\n\t\t\t\r\n\t\t\t//Leaves loop at this point if the new account number input is -1\r\n\t\t\t//Will not ask for a balance\r\n\t\t\tif (new_account_number == -1)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Please enter a balance for the new account: \");\r\n\t\t\tnew_account_balance = scan.nextDouble();\r\n\t\t}\r\n\t\t\r\n\t\tint Highest_Account_Number = Reynolds_Bank.get_HighBankAccount().getAccountNumber();\r\n\t\tdouble Highest_Account_Balance = Reynolds_Bank.get_HighBankAccount().getBalance();\r\n\t\t\r\n\t\tint Lowest_Account_Number = Reynolds_Bank.get_LowBankAccount().getAccountNumber();\r\n\t\tdouble Lowest_Account_Balance = Reynolds_Bank.get_LowBankAccount().getBalance();\r\n\t\t\r\n\t\tdouble High_Average = Reynolds_Bank.get_HighBankAccount().getAverage();\r\n\t\tdouble Low_Average = Reynolds_Bank.get_LowBankAccount().getAverage();\r\n\t\t\r\n\t\tSystem.out.println(\"Account with the Highest Balance: \");\r\n\t\tSystem.out.println(\"#\" + Highest_Account_Number + \", resulting balance = \" + Highest_Account_Balance + \", average transaction amount = \" + High_Average );\r\n\t\t\r\n\t\tSystem.out.println(\"Account with the Lowest Balance: \");\r\n\t\tSystem.out.println(\"#\" + Lowest_Account_Number + \", resulting balance = \" + Lowest_Account_Balance + \", average transaction amount = \" + Low_Average );\r\n\t\t\r\n\t\tscan.close();\r\n\t}",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"@Test\n public void deleteAccount() {\n Account accountToBeDeleted = new Account(\"deleteMe\", \"deleteMe\", false,\n \"Fontys Stappegoor\", \"[email protected]\");\n accountQueries.addAccount(accountToBeDeleted);\n\n // Get ID of recently inserted Account to be able to test deletion\n Account toDelete = accountQueries.getAccountByUserName(\"deleteMe\");\n boolean succeeded = accountQueries.deleteAccount(toDelete.getID());\n\n assertEquals(succeeded, true);\n }",
"void endcredits() {\n }",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public static void eraseAccount(MC x, MC y)\n {\n MC resetHero = new MC (\"player\", 0, 0, 20, 5, 5, 5, 20, null, null, 1, 20, 1, 5, 5, 0, 20, 0); //this is orignal settings\n if (x.getLevel() != 0 || y.getLevel() != 0)\n {\n System.out.print(\"Would you like to override your account to create a new one? (Y/N)\" + \"\\n\" + \"Response:\");\n Scanner scan = new Scanner (System.in);\n scan.nextLine();\n String response = scan.nextLine();\n if (response.equals(\"Y\")) //asks if you want to delete\n {\n System.out.println(\"Account 1: \" + \"\\n\" + \"Hero: \" + x.getName() + \" Level: \" + x.getLevel());\n System.out.println(\"Account 1: \" + \"\\n\" + \"Hero: \" + y.getName() + \" Level: \" + y.getLevel());\n System.out.print(\"What account would you like to delete? (1 / 2 / All)\" + \"\\n\" + \"Response:\");\n response = scan.nextLine();\n if (response.equals(\"1\")) //delete first one\n {\n x.setName(resetHero.getName()); //makes all of variables same\n x.setQuestNumber(resetHero.getQuestNumber());\n x.setExperience(resetHero.getExperience());\n x.setCurrentHP(resetHero.getCurrentHP());\n x.setAgility(resetHero.getAgility());\n x.setDefence(resetHero.getDefence());\n x.setStrength(resetHero.getStrength());\n x.setMoney(resetHero.getMoney());\n x.setWeapon(resetHero.getWeapon());\n x.setArmor(resetHero.getArmor());\n x.setMaxHP(resetHero.getMaxHP());\n x.setMinHeal(resetHero.getMinHeal());\n x.setMaxHeal(resetHero.getMaxHeal());\n x.setPoints(resetHero.getPoints());\n x.setTotalExperience(resetHero.getTotalExperience());\n x.setTotalCurrentExperience(resetHero.getTotalCurrentExperience());\n x.setTotalMoney(resetHero.getTotalMoney());\n x.setLevel0();\n }\n else if (response.equals(\"2\"))//deletes account 2\n {\n y.setName(resetHero.getName());\n y.setQuestNumber(resetHero.getQuestNumber());\n y.setExperience(resetHero.getExperience());\n y.setCurrentHP(resetHero.getCurrentHP());\n y.setAgility(resetHero.getAgility());\n y.setDefence(resetHero.getDefence());\n y.setStrength(resetHero.getStrength());\n y.setMoney(resetHero.getMoney());\n y.setWeapon(resetHero.getWeapon());\n y.setArmor(resetHero.getArmor());\n y.setMaxHP(resetHero.getMaxHP());\n y.setMinHeal(resetHero.getMinHeal());\n y.setMaxHeal(resetHero.getMaxHeal());\n y.setPoints(resetHero.getPoints());\n y.setTotalExperience(resetHero.getTotalExperience());\n y.setTotalCurrentExperience(resetHero.getTotalCurrentExperience());\n y.setTotalMoney(resetHero.getTotalMoney());\n y.setLevel0();\n }\n else if (response.equalsIgnoreCase(\"All\")) //deletes them both;\n {\n y.setName(resetHero.getName());\n y.setQuestNumber(resetHero.getQuestNumber());\n y.setExperience(resetHero.getExperience());\n y.setCurrentHP(resetHero.getCurrentHP());\n y.setAgility(resetHero.getAgility());\n y.setDefence(resetHero.getDefence());\n y.setStrength(resetHero.getStrength());\n y.setMoney(resetHero.getMoney());\n y.setWeapon(resetHero.getWeapon());\n y.setArmor(resetHero.getArmor());\n y.setMaxHP(resetHero.getMaxHP());\n y.setMinHeal(resetHero.getMinHeal());\n y.setMaxHeal(resetHero.getMaxHeal());\n y.setPoints(resetHero.getPoints());\n y.setTotalExperience(resetHero.getTotalExperience());\n y.setTotalCurrentExperience(resetHero.getTotalCurrentExperience());\n y.setTotalMoney(resetHero.getTotalMoney());\n y.setLevel0();\n \n x.setName(resetHero.getName());\n x.setQuestNumber(resetHero.getQuestNumber());\n x.setExperience(resetHero.getExperience());\n x.setCurrentHP(resetHero.getCurrentHP());\n x.setAgility(resetHero.getAgility());\n x.setDefence(resetHero.getDefence());\n x.setStrength(resetHero.getStrength());\n x.setMoney(resetHero.getMoney());\n x.setWeapon(resetHero.getWeapon());\n x.setArmor(resetHero.getArmor());\n x.setMaxHP(resetHero.getMaxHP());\n x.setMinHeal(resetHero.getMinHeal());\n x.setMaxHeal(resetHero.getMaxHeal());\n x.setPoints(resetHero.getPoints());\n x.setTotalExperience(resetHero.getTotalExperience());\n x.setTotalCurrentExperience(resetHero.getTotalCurrentExperience());\n x.setTotalMoney(resetHero.getTotalMoney());\n x.setLevel0();\n }\n else\n {System.out.println(\"Error. Unknown command.\" + \"\\n\" + \"\\n\");} //returns no idea what you are typing\n }\n else\n {return;} //breaks from the erase, ends method\n }\n else//breaks from the erase, ends method\n {return;}\n }",
"public static void main(String[] args) {\r\n\t SavingAccount a= new SavingAccount();\r\n\t a.deposit(5000);\r\n\t a.withdraw(1000);\r\n\t a.getBalance();\r\n\t a.addInterest();\r\n\t \r\n\t \r\n\t\t\r\n\r\n\t}",
"@Test\r\n public void testDeleteAccount() {\r\n System.out.println(\"deleteAccount\");\r\n \r\n Users instance = new Users();\r\n Account.cName = \"Admin4\";\r\n Account.cPasswordAndRights[0] = \"123456789\";\r\n Account.cPasswordAndRights[1] = \"A\";\r\n instance.deleteAccount();\r\n fail(\"The test case is a prototype.\");\r\n }",
"public static void main(String[] args) {\n BankAccount bankAccount = new BankAccount(11211, 0, \"adam smith\", \"[email protected]\", \"9090980980\");\n BankAccount tim = new BankAccount(\"tim\", \"[email protected]\", \"9090980980\");\n System.out.println(\"Account Number = \" + tim.getAccountNumber());\n System.out.println(\"Balance = \"+ tim.getBalance());\n System.out.println(\"Customer Name = \" + bankAccount.getCustomerName());\n System.out.println(\"Email = \" + bankAccount.getEmailAddress());\n System.out.println(\"Phone Number = \" + bankAccount.getPhoneNumber());\n System.out.println(\"deposit = \"+ bankAccount.getDeposit(90));\n System.out.println(\"new balance = \"+ bankAccount.getWithdrawal(200));\n }",
"public void makeDeposit() {\n deposit();\n }",
"public static void main(String[] args) {\n\n BankAccount rustemAccount=new BankAccount(\"Rustem\",\"Erdem\");\n\n System.out.println(\"rustemAccount.firstName = \" + rustemAccount.firstName);\n System.out.println(\"rustemAccount.getAccountHolder() = \" + rustemAccount.getAccountHolder());\n\n\n System.out.println(\"getBalance() = \" + rustemAccount.getBalance());\n\n rustemAccount.setBalance(150);\n System.out.println(\"getBalance() = \"+rustemAccount.getBalance());\n\n rustemAccount.deposit(150);\n rustemAccount.avaliableBalance();\n rustemAccount.withdraw(100);\n rustemAccount.avaliableBalance();\n\n\n rustemAccount.setAccountNumber(23112432);\n System.out.println(\"rustemAccount.getAccountNumber() = \" + rustemAccount.getAccountNumber());\n\n\n System.out.println(rustemAccount);\n }",
"public static void main(String[] args) {\n \t\t\t Random numGen = new Random();\n \tdouble balance=(numGen.nextDouble()*4000+1000); //random number between 1000 and 5000\n Scanner myScanner = new Scanner( System.in );\n System.out.print(\"Would you like to VIEW your balance, make a DEPOSIT, or WITHDRAW? \");\n String choice= myScanner.next(); //accept user input\n //switch statement depending on what the user wants to do\nswitch (choice){\n case (\"VIEW\"): //view bank account\n System.out.print(\"your balance is $\"+balance); //display ballance\n break;\ncase (\"DEPOSIT\"): //deposit to account\n System.out.print(\"how much would you like to diposit? $\");\n double deposit= myScanner.nextDouble(); //amount user wants to deposit\n if (deposit>0){ //make sure its a valid entry\n double totalDeposit=deposit+balance; //find amount in bank after deposit\n System.out.print(\"Your total balance is \"+totalDeposit);\n }\n else {\n System.out.print(\"That is not a possitive number.\");\n }\n break;\ncase (\"WITHDRAW\"): //withdraw from account\n System.out.print(\"how much would you like to withdraw? $\");\n double withdraw= myScanner.nextDouble(); //how much will be withdrawn\n if (withdraw>0 && withdraw<balance){\n double totalWithdraw=balance-withdraw; //amount left after transacton\n System.out.print(\"Your total balance is $\"+totalWithdraw);\n }\n else{\n System.out.print(\"This amount can not be withdrawn\");\n }\n break;\n default:\nSystem.out.print(\"enter VIEW, DEPOSIT, or WITHDRAW\"); //incase of invalid entery\nreturn;\n}// swich\n}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\n\t\t// Prompt the user to create a savings or a checking account\n\t\t//*** Start #1 ***//\n\t\tint type = 0;\n\t\tdo {\n\t\t\tSystem.out.println(\"What kind of account do you wish to create?\");\n\t\t\tSystem.out.print(\"Enter 1 for savings and 2 for checking: \");\n\t\t\ttype = input.nextInt();\n\t\t}\n\t\twhile (type != 1 && type != 2);\n\n\t\tAccount account;\n\t\tif (type == 1) account = new SavingsAccount();\n\t\telse account = new CheckingAccount();\n\n\t\t// Prompt the user to enter the account id, balance, and annual interest rate\n\t\tSystem.out.print(\"\\nEnter the account id (int): \");\n\t\tint id = input.nextInt();\n\t\taccount.setId(id);\n\n\t\tSystem.out.print(\"Enter the account balance (double): \");\n\t\tdouble balance = input.nextDouble();\n\t\taccount.setBalance(balance);\n\n\t\tSystem.out.print(\"Enter the annual interest rate (double): \");\n\t\tdouble annualInterestRate = input.nextDouble();\n\t\tAccount.setAnnualInterestRate(annualInterestRate);\n\t\t//*** End #1 ***//\n\t\t\n\t\tdo {\n\t\t\t// Display options to users\n\t\t\t//*** Start #2 ***//\n\t\t\tdisplayOptions(account);\n\n\t\t\tint option = input.nextInt();\n\t\t\tif (option == 0)\n\t\t\t\tbreak; \n\n\t\t\tswitch (option) {\n\t\t\tcase 1: \n\t\t\t\tSystem.out.println(\"\\n\\tThe id is: \" + account.getId());\n\t\t\t\tSystem.out.println(\"\\tThe account was created on: \" + account.getDateCreated());\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.printf(\"\\n\\tThe balance is: %.2f\\n\", account.getBalance());\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.printf(\"\\n\\tThe monthly interest is: %.2f\\n\", account.getMonthlyInterest());\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"\\n\\tEnter the amount to withdraw: \");\n\t\t\t\tdouble withdrawAmount = input.nextDouble();\n\t\t\t\taccount.withdraw(withdrawAmount);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"\\n\\tEnter the amount to deposit: \");\n\t\t\t\tdouble depositAmount = input.nextDouble();\n\t\t\t\taccount.deposit(depositAmount);\n\t\t\t\tbreak;\t\n\t\t\tcase 6:\n\t\t\t\tif (account instanceof CheckingAccount)\n\t\t\t\t\tSystem.out.printf(\"\\n\\tThe overdraft limit is: %.2f\\n\", ((CheckingAccount)account).getOverdraftLimit());\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"\\n\\tOption not available\");\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tif (account instanceof CheckingAccount) {\n\t\t\t\t\tSystem.out.print(\"\\n\\tEnter the new overdraft limit: \");\n\t\t\t\t\tdouble limit = input.nextDouble();\n\t\t\t\t\t((CheckingAccount)account).setOverdraftLimit(limit);\n\t\t\t\t} else\n\t\t\t\t\tSystem.out.println(\"\\n\\tOption not available\");\n\t\t\t\tbreak;\t\n\t\t\tdefault: \n\t\t\t\tSystem.out.println(\"\\n\\tInvalid option. Try again.\");\n\t\t\t//*** End #2 ***//\n\t\t\t};\n\t\t} while (true);\n\n\t\t// Display a final message\n\t\tSystem.out.println(\"\\nGoodbye\");\n\n\t\t// Close the Scanner\n\t\tinput.close();\n\t}",
"public static void main(String[] args) {\n Account firstAccount = new Account(\"first Account\",100.00);\n \n \n System.out.println(\"Initial State\");\n System.out.println(firstAccount);\n \n \n firstAccount.deposit(20);\n System.out.println(\"the balance of first Account is : \" + firstAccount.toString());\n \n \n }",
"private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }",
"@Test\n public void testLeaveParty()\n {\n System.out.println(\"leaveParty\");\n Account leaveAccount = null;\n Party instance = null;\n Account expResult = null;\n Account result = instance.leaveParty(leaveAccount);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public static void main (String[] args)\r\n{\nAccount a = new SavingsAccount(\"john\",500,4);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+a.getName()+\"has an initial balance of:\"+a.getBalance());\r\na.deposit(200);\r\na.withdraw(200);\r\nSystem.out.println(\"\"+a.getName()+\"at the end of transaction has a balance of \"+a.getBalance());\r\n\r\nSystem.out.println(\"\\n checking account details\");\r\nSystem.out.println(\"----------------------\");\r\nCheckingAccount cAobj = new CheckingAccount(\"Stephen\",200,200);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+cAobj.getName()+\"has an initial balance of:\"+cAobj.getBalance());\r\ncAobj.deposit(200);\r\ncAobj.withdraw(500);\r\nSystem.out.println(\"\"+cAobj.getName()+\"at the end of transaction has a balance of \"+cAobj.getBalance());\r\n}",
"void withdraw(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Withdrawing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (check(amount)) {\n\t\t\tbalance -= amount;\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" successfully.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" unsuccessfully. Do not have enough available funds.\");\n\t\t}\n\t}",
"@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"@Override\n public BigDecimal withdraw(Account account, BigDecimal bigDecimal) {\n return null;\n }",
"public static void main(String[] args) throws Exception {\n Scanner scanner = new Scanner(System.in);\n\n currentAccounts.put(\"Jennifer\", 100.00);\n currentAccounts.put(\"Ben\", 30.00);\n\n\n while (true) {\n\n System.out.println(\"\\nWelcome!\");\n System.out.println(\"Please enter your account name?\");\n\n String account = scanner.nextLine();\n\n\n if (!currentAccounts.containsKey(account)) {\n System.out.println(\"You do not currently have an account.\\n Would you like to create one? [y/n]\");\n String newAccount = scanner.nextLine();\n\n if (newAccount.equalsIgnoreCase(\"y\")) {\n currentAccounts.put(account, 0.00);\n System.out.println(\"Your account has been created. \" +\n \"Your current balance is $\" + currentAccounts.get(account));\n\n } else {\n System.out.println(\"Thank you\");\n continue;\n }\n } else {\n System.out.println(\"Hello \" + account + \"!\");\n\n }\n\n int session = 1;\n while (session == 1) {\n\n double balance = currentAccounts.get(account);\n\n System.out.println(\"\\nWhat would you like to do today?\\n\" +\n \"1. Check my balance\\n\" +\n \"2. Make a withdrawal\\n\" +\n \"3. Make a deposit\\n\" +\n \"4. Transfer funds\\n\" +\n \"5. Cancel my account\\n\" +\n \"6. Log out\");\n\n int activity = scanner.nextInt();\n\n switch (activity) {\n case 1:\n System.out.println(\"Your current balance is \" + balance);\n break;\n\n case 2:\n System.out.println(\"How much would you like to withdraw today?\");\n int withdrawAmount = scanner.nextInt(); // want to bring over from atm class, but cant figure out how to bring over balance\n\n if (withdrawAmount > balance) {\n System.out.println(\"You do not have enough money.\"); // changed this to error because exception can't continue the loop?\n break;\n } else if (withdrawAmount % 5 != 0) {\n System.out.println(\"Please enter in multiples of $5, $10 or $20\");\n break;\n } else {\n System.out.println(\"Please take your $\" + withdrawAmount);\n currentAccounts.put(account, currentAccounts.get(account) - withdrawAmount);\n System.out.println(\"Your current balance is $\" + (balance - withdrawAmount));\n break;\n }\n\n case 3:\n System.out.println(\"How much would you like to deposit today?\");\n int depositAmount = scanner.nextInt();\n\n System.out.println(\"You have deposited $\" + depositAmount);\n System.out.println(\"Your current balance is $\" + (balance + depositAmount));\n currentAccounts.put(account, currentAccounts.get(account) + depositAmount);\n break;\n\n case 4:\n scanner.nextLine(); // if i don't have this then it's taking inputs from before, this way it refreshes the input\n System.out.println(\"Enter the account name to which you wish to transfer funds.\");\n String accountTransfer = scanner.nextLine();\n\n System.out.println(\"Enter the amount you would like to transfer.\");\n double transferAmount = scanner.nextInt();\n\n // add or subtract transfer amount from hashmap\n currentAccounts.put(account, currentAccounts.get(account) - transferAmount);\n currentAccounts.put(accountTransfer, currentAccounts.get(accountTransfer) + transferAmount);\n\n System.out.println(\"Your current balance is now $\" + currentAccounts.get(account));\n break;\n\n case 5: //\n System.out.println(\"Are you sure you want to cancel your account today [y/n]?\");\n scanner.nextLine(); // if i don't have this then it's taking inputs from before. This way it input refreshes.\n String cancel = scanner.nextLine();\n\n if (cancel.equalsIgnoreCase(\"y\")) {\n currentAccounts.remove(account);\n System.out.println(\"We are sorry to see you go\");\n session = 0;\n } else {\n System.out.println(\"Great, you are a valued customer.\");\n }\n break;\n\n case 6:\n System.out.println(\"Thank you and please come again.\");\n session = 0;\n scanner.nextLine(); // if i don't have this then it's taking inputs from before, this way it refreshes the input\n break;\n }\n\n\n }\n\n\n }\n }",
"Account apply();",
"public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tBankAccount joe = new BankAccount();\n\t\tSystem.out.println(joe.getAccountNumber());\n\t\tjoe.deposit(\"checking\", 4000.00);\n\t\tjoe.withdraw(\"savings\", 300.00);\n\t}",
"public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}",
"public static void main(String[] args) {\n\t\tIAccount accountObjWithSavingsAcc=new SavingsAccount();\n\t\t\n\t\taccountObjWithSavingsAcc.depositAmount(100000);\n\t}",
"@Override\n public void apply(Map<Integer, Account> accounts) {\n Account account = accounts.get(accountNumber);\n if (account == null) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from non-existent account \" + accountNumber\n );\n }\n\n // Make sure the account is enabled.\n if (!account.isEnabled()) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from disabled account \" + accountNumber\n );\n }\n\n // Check that the account belongs to accountHolder.\n if (!account.getAccountHolder().equals(accountHolder)) {\n throw new ViolatedConstraintException(\n \"User \\\"\" + accountHolder + \"\\\" tried to perform transaction \" +\n \"on account \" + accountNumber +\n \" which belongs to user \\\"\" + account.getAccountHolder() + \"\\\"\"\n );\n }\n\n // Compute fee based on whether it was admin initiated or not\n // and whether they are a student or not.\n int fee = (adminInitiated) ? 0 : (\n (account.isStudent()) ? Constants.STUDENT_FEE : Constants.NORMAL_FEE\n );\n\n // Check that the final balance of the account after removing the funds\n // and fee is greater than zero.\n int finalBalance = account.getBalance() - amount - fee;\n if (finalBalance < 0) {\n throw new ViolatedConstraintException(\n \"Final balance should be >= 0, got \" + finalBalance\n );\n }\n\n // If the transaction isn't admin initiated, check that the final\n // withdrawal total is less than the withdrawal limit.\n int finalWithdrawalTotal = 0;\n\n if (!adminInitiated) {\n finalWithdrawalTotal = account.getWithdrawalTotal() + amount;\n\n if (finalWithdrawalTotal > Constants.WITHDRAWAL_LIMIT) {\n throw new ViolatedConstraintException(\n \"Final withdrawal total should be <= \" + Constants.WITHDRAWAL_LIMIT +\n \", got \" + finalWithdrawalTotal\n );\n }\n }\n\n // Remove the funds and fee from the account.\n account.setBalance(finalBalance);\n\n // If the transaction isn't admin initiated update withdrawal total\n // and increment the transaction count.\n if (!adminInitiated) {\n account.setWithdrawalTotal(finalWithdrawalTotal);\n account.incrementTransactionCount();\n }\n }",
"protected void exit() {\n (new CSVFile(bankDB)).writeCSV();\n try{\n FileUtil.writeTransactions(bankDB.getTransactions());\n }catch(IOException e){\n AlertBox.display(ERROR, \"There was an error printing the transactions\");\n }\n System.exit(0);\n }",
"@Test\n public void withdrawCheckingTest(){\n userC.withdraw(200.00);\n assertEquals(\"Balance is now $100.00\", userC.getCurrentBalance(), 100.00, DELTA);\n }",
"public static void main(String[] args) {\n int acc1 = 123456;\n // Password is also declared as pass1\n int pass1 = 2003;\n // Initial balance of acc1 or account\n int balance = 10000;\n Scanner sc = new Scanner(System.in);\n\n try {\n for (int n = 1; n > 0; n++) {\n System.out.println(\"Enter Account nos.\");\n int acc = sc.nextInt();\n System.out.println(\"Entered Account number : \" + acc);\n\n System.out.println(\"Enter Password\");\n int pass = sc.nextInt();\n System.out.println(\"Entered Password : \" + pass);\n\n\n if (acc1 == acc) {\n if (pass == pass1) {\n System.out.println(\"Account Found\");\n System.out.println(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\");\n System.out.println(\"Select type :-\");\n System.out.println(\"For Saving A/c press 1\");\n System.out.println(\"For Current A/c press 2\");\n\n int type1 = sc.nextInt();\n if (type1 == 1) {\n System.out.println(\"Welcome to your Saving Account\");\n System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^############################^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n System.out.println();\n System.out.println(\"Select operations you have to perform :\");\n System.out.println(\"For Balance Inquiry press 3\");\n System.out.println(\"For Deposit Cash press 4\");\n System.out.println(\"For Withdrawl Cash press 5\");\n int entered_op = sc.nextInt();\n\n if (entered_op == 3) {\n System.out.println(\"Current balance in your Saving A/c is \" + balance);\n } else if (entered_op == 4) {\n System.out.println(\"Enter Deposit amount :\");\n int deposit_amu = sc.nextInt();\n int update_bal = balance + deposit_amu;\n System.out.println(\"Your balance is :\" + update_bal);\n } else if (entered_op == 5) {\n System.out.println(\"Enter Withdrawl amount :\");\n int withdrawl_amu = sc.nextInt();\n int update_with = balance - withdrawl_amu;\n if (update_with >= 0) {\n System.out.println(\"Balance is :\" + update_with);\n } else {\n System.out.println(\"Balance is not negative\");\n }\n } else {\n System.out.println(\"Select Valid Operation\");\n }\n } else if (type1 == 2) {\n System.out.println(\"Welcome to your Current Account\");\n System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^############################^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n System.out.println();\n\n // Operations are not mentioned for current account\n System.out.println(\"OPERATIONS ARE NOT MENTIONED FOR CURRENT ACCOUNT MODIFIED IN FUTURE\");\n\n } else {\n System.out.println(\"Invalid type\");\n }\n\n\n } else {\n System.out.println(\"Invalid Password\");\n }\n }\n System.out.println(\"Want to continue press any number but if not then press 0\");\n int num = sc.nextInt();\n if (num == 0) {\n break;\n }\n }\n }catch (InputMismatchException e){\n System.out.println(\"Enter valid number\");\n }\n\n\n\n\n\n\n\n\n }",
"public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"void askEndTurn();",
"public static void main(String[] args) {\n\t\t HDFC withdraw = new HDFC();\n\t\t Scanner input = new Scanner(System.in);\n\t\t System.out.println(\"Enter Withdrawl Ammount\");\n\t\t int withdrawl=input.nextInt();\n\t\t int minBalance =10000;\n\t\t int balance=100000;\n\t\t withdraw.balanceInAccount(balance, minBalance, withdrawl);\n\t\t withdraw.withdrawing();\n\n\t}",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"@Test\n\tvoid testDeleteAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample2\", \"CreateAccount2\", \"[email protected]\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword2\");\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertFalse(exist);\n\t}",
"public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }",
"public void withdraw(double amount) {\n this.balance -= amount;\n }",
"protected void end() {\n drivebase.setArcade(0, 0);\n drivebase.disableTurnController();\n }",
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"@Test\n public void SameTokenNameCloseNoAccount() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(firstTokenId));\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_NOACCOUNT, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail(\"account[+OWNER_ADDRESS_NOACCOUNT+] not exists\");\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"account[\" + OWNER_ADDRESS_NOACCOUNT + \"] not exists\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}",
"void withdraw(double amount) {\n try {Thread.sleep(10l);} catch (InterruptedException e) {}\r\n balance -= amount;\r\n System.out.println(\"Inside withdraw\"+ balance);\r\n }"
]
| [
"0.68178904",
"0.68178904",
"0.6552104",
"0.64492273",
"0.63657296",
"0.6364995",
"0.6310912",
"0.630965",
"0.6277639",
"0.61957663",
"0.61945665",
"0.6163316",
"0.61593515",
"0.61576784",
"0.61486566",
"0.61098826",
"0.61044335",
"0.60588616",
"0.6040432",
"0.6026476",
"0.6024367",
"0.6017392",
"0.60051334",
"0.5991699",
"0.5989516",
"0.5985337",
"0.59571594",
"0.59538496",
"0.5943949",
"0.59316325",
"0.5908779",
"0.589621",
"0.58777565",
"0.58766073",
"0.5859617",
"0.58522767",
"0.5848939",
"0.5842973",
"0.5841663",
"0.5833869",
"0.5830215",
"0.58230114",
"0.5822742",
"0.58132356",
"0.5811834",
"0.58101255",
"0.5798341",
"0.57977927",
"0.5797442",
"0.5792025",
"0.57901263",
"0.5789916",
"0.57896036",
"0.5787911",
"0.5776852",
"0.57764447",
"0.57756525",
"0.57733446",
"0.57720584",
"0.57672775",
"0.576417",
"0.5755428",
"0.57548904",
"0.5749969",
"0.57467294",
"0.5743216",
"0.5742384",
"0.57333785",
"0.5721125",
"0.57186425",
"0.57155895",
"0.57098544",
"0.5705222",
"0.570171",
"0.5699511",
"0.56987417",
"0.56972325",
"0.56712264",
"0.56669974",
"0.5661908",
"0.5660423",
"0.56545407",
"0.5654271",
"0.56538516",
"0.5653819",
"0.5653493",
"0.5649208",
"0.5645452",
"0.5636645",
"0.5635253",
"0.5627885",
"0.5624563",
"0.56221545",
"0.5619787",
"0.5618843",
"0.56180817",
"0.56132245",
"0.56099516",
"0.5609205",
"0.5601245"
]
| 0.6338325 | 6 |
When same method is present in parent class as well as in child class with the same name and same no of arg is called method overriding | public void start() {
System.out.println("BMW start method");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n\tvoid method() {\n\t\tSystem.out.println(\"Method from Child\");\n\t}",
"@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam in a subclass\");\r\n\t}",
"public void myMethod(){\n\t\t\tsuper.myMethod();\n\t\t\tSystem.out.println(\"Overriding method\");\n\t\t }",
"boolean overrides(MethodDeclaration sub, MethodDeclaration sup);",
"public static void main(String [] args){\n MethodOverridingParentClass obj = new MethodOverridingChildClass();\n // It calls the child class method myMethod()\n obj.myMethod();\n\n\n\t\t/* When Parent class reference refers to the parent class object\n\t\t * then the method of parent class (overriden method) is called.\n\t\t */\n MethodOverridingParentClass obj1 = new MethodOverridingParentClass();\n obj1.myMethod();\n\n }",
"void method() {\n\t\tSystem.out.println(\"Method from Parent\");\n\t}",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"public void override() {\n isOverridden = true;\n }",
"public void aMethod(){\n\t\tSystem.out.println(\"this is the parent aMethod()\");\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}",
"@Override\n\tpublic void myMethod() {\n\t\tSystem.out.println(\"D\");\n\t\tB.super.myMethod();\n\t}",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void eat(){ //overriding method eat in subclass\r\n System.out.println(\"Life Is Precious Though\");\r\n eat2();\r\n \r\n }",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"abstract void method();",
"public abstract void process(final EClass Super, final EClass Sub);",
"@Override\n\tvoid func() {\n\t\tSystem.out.println(\"Overriden Abstract Method\");\n\t}",
"public void eat(){\n System.out.println(\"This Method Override Message\");\n }",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"public void doGeneralThings() {\n logger.debug(\"Overrided or implememted method - doGeneralThings!\");\n }",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n public void method1() {\n\n // we have 2 method (this method1 and method2 from A) in this class. Not the abstract.\n }",
"void fun() {\n\t\tSystem.out.println(\"Overriden Normal Method\");\n\t}",
"public boolean overrideEquivalent(MethodType other) {\n return this.sameSubsignature(other) || other.sameSubsignature(this);\n }",
"public void addOverride(JMethod toAdd) {\n assert canBePolymorphic();\n overrides = Lists.add(overrides, toAdd);\n }",
"@Override\n public void m1() {\n Left.super.m1();\n Right.super.m1();\n System.out.println(\"Over ridden\");\n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time polymorphism - override\n //Override a method that is in a super class in a lower class\n // Create a method in BaseBO and create the same method in Empl\n BaseBO obj1 = new BaseBO();\n System.out.println(obj1.test_method());\n\n EntityType obj2 = new EntityType();\n System.out.println(obj2.test_method());\n }",
"private void testInheritance() {\n AbstractVehicle myCar = new Car();\n\n myCar.drive();\n\n //So a super class can be instantiated using instance of its subclass\n //But reverse is not true, so although VolvoCar extends Car,\n //we cannot create instance of VolvoCar from Car instance.\n //VolvoCar volvoCar = new Car();\n VolvoCar volvoCar = new VolvoCar();\n volvoCar.drive();\n\n //However, in such a scenario the super class can only invoke its own methods,\n // and not methods of the sub-class.....\n //So myCar can invoke methods defined in Vehicle class where actual\n //implementation comes from Car instance.\n //so getNoOfDoors will return 4.\n System.out.println(\"Car doors - \" + myCar.getNoOfDoors());\n\n //But myCar cannot invoke isInsured() which is defined only in subclass Car.\n //Below line gives error cannot resolve isInsured() in Vehicle.\n //myCar.isInsured();\n \n Car testCar = new Car();\n testCar.isInsured();\n\n }",
"boolean isOverride();",
"public void act(){\n super.act();\n }",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"public void fun(){\n System.out.println(\"I overrided fun() in In1\");\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\npublic void method2() {\n\t\r\n}",
"boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }",
"public static void main(String[] args) {\n\n\t\tDerived d2 = new Derived(\"홍길동\");\n\t\t//부모쪽에도 내가 처리하는 홍길동 넘겨서 overloading 된 생성자 호출..\n\t\td2.baseMethod(); //재정의 한 함수만 호출\n\t\t\n\t\t//어느날 부모님 자원이 그리워요 ....재정의 (x)\n\t\t//유일한 방법 : super 사용 (자식 클래스 내부)\n\t\td2.p_method();\n\t}",
"@Override\n\tpublic void myMethod() {\n\t\t\n\t}",
"@Override\n\tpublic void method2() {\n\t\tSystem.out.println(\"AbstractClass 추상메쏘드 method2()를 재정의(implement)\");\n\t}",
"@Override //this is optional\n public void eat(int amount) {\n\n }",
"public static void main(String[] args) {\n\t\tXYZ obj = new XYZ();\n\t\tobj.myMethod();\n\t\t//XYZ hyd=new DEF();\n\t\t//hyd.myMethod();\n\t//\thyd.childspecificMethod();\n //DEF oy=new DEF();\n\t\t//oy.myMethod();\n\t\tDEF def=new DEF();\n\t\tdef.childspecificMethod();\n\t\tdef.myMethod();\n\n\t}",
"public boolean shouldOverride(String name) {\n if (context.isParentLoaderPriority()) {\n return false;\n }\n return true;\n }",
"protected void checkSubclass() {\n }",
"private void forEachOverridenMethod(final ClassTypingContext ctc, final CtMethod<?> thisMethod, Set<String> distintTypesSet, final CtConsumer<CtMethod<?>> outputConsumer) {\n\t\tfinal CtQuery q = ctc.getAdaptationScope()\n\t\t\t.map(new AllTypeMembersFunction(CtMethod.class).distinctSet(distintTypesSet));\n\t\tq.\tforEach(new CtConsumer<CtMethod<?>>() {\n\t\t\t@Override\n\t\t\tpublic void accept(CtMethod<?> thatMethod) {\n\t\t\t\tif (thisMethod == thatMethod) {\n\t\t\t\t\t//do not return scope method\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//check whether method is overridden by searched method\n\t\t\t\t/*\n\t\t\t\t * note: we are in super inheritance hierarchy of type declaring input `method`, so we do not have to check isSubTypeOf.\n\t\t\t\t * Check for isSubSignature is enough\n\t\t\t\t */\n\t\t\t\tif (ctc.isSubSignature(thisMethod, thatMethod)) {\n\t\t\t\t\toutputConsumer.accept(thatMethod);\n\t\t\t\t\tif (query.isTerminated()) {\n\t\t\t\t\t\tq.terminate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void absMethod() {\n\t\tSystem.out.println(\"This is extends from AbstactClass.\");\n\t\t\n\t}",
"public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }",
"@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tOverrideTest tu=new OverrideTest();\r\n\t\tOverride rr=new Override();\r\n\t\ttu.eat();//얘 class가보면 super키워드를 사용해서 부모클래스에 접근.\r\n\t\trr.eat();//여기서 그냥 부모 클래스의 메소드 호출해도 된다\r\n\t\ttu.eat(10);\t\t\r\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"public static void main(String[] args) {\n\t\t\t\tJ_S4A2 p = new Child();\r\n\t\t\tp.method2();\r\n\t\t\t}",
"public List<SemanticError> checkMethodInheritance() {\n\t\tList<SemanticError> errors = new LinkedList<>();\n\n\t\tif (superClass == null)\n\t\t\treturn errors;\n\t\t\n\t\tint max = -1;\n\n\t\tfor (String key : superClass.methods.keySet()) {\n\t\t\tVSOPMethod m = superClass.methods.get(key);\n\t\t\tmax = Math.max(max, m.ord);\n\t\t\tVSOPMethod old = methods.putIfAbsent(key, m);\n\n\t\t\tif(old != null)\n\t\t\t\told.ord = m.ord;\n\t\t\t\t\n\t\t\tif (old != null && (!m.args.equals(old.args) || m.returnType != old.returnType))\n\t\t\t\terrors.add(new SemanticError(m.ln, m.col,\n\t\t\t\t\t\tString.format(\"method %s is redefined in class %s with wrong signature\", m.id, this.id)));\n\n\t\t}\n\n\t\tfor(VSOPMethod m: methods().values()) {\n\t\t\tif(m.ord == -1) {\n\t\t\t\tmax++;\n\t\t\t\tm.ord = max;\n\t\t\t}\n\t\t}\n\n\t\treturn errors;\n\t}",
"protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );",
"@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\n public int getMethodCount()\n {\n return 1;\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"public ATObject base_apply(ATTable arguments, ATContext ctx) throws InterpreterException {\n\t\t// should be: method_.base_apply(arguments, ctx.base_withLexicalEnvironment(lexicalScope_),\n\t\t// but this version is more efficient, as we immediately create the right context, rather than\n\t\t// creating a temporary context which will in turn be modified by method_.base_apply\n\t\t\n\t\t// hostObject = the object to which the external method was added (actually the object in which\n\t\t// the external method was now found)\n\t\tATObject hostObject = ctx.base_lexicalScope();\n\t\tATObject hostParent = hostObject.base_super();\n\t\t\n\t\tNATCallframe externalFrame = new NATCallframe(lexicalScope_);\n\t\t// super = the parent of the object to which this method was added\n\t\texternalFrame.meta_defineField(NATObject._SUPER_NAME_, hostParent);\n\t\t\n\t\treturn method_.base_applyInScope(arguments, ctx.base_withLexicalEnvironment(externalFrame));\n\t}",
"abstract void sub();",
"@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}",
"private void handleVirtualCallsAndSuperConstructors() {\n Set<String> affectedClasses = new HashSet<String>();\n for(MethodData m : usedAppMethodData) {\n Set<MethodData> callers = callGraph.get(m);\n if(callers.isEmpty() && !entryPoints.contains(m)) {\n // this is a virtual call that is never invoked at runtime\n // exclude it from used methods\n String subSignature = m.getSubSignature();\n String className = m.getClassName();\n usedAppMethods.get(className).remove(subSignature);\n affectedClasses.add(className);\n } else if (m.getName().equals(\"<init>\")) {\n // check if this constructor is only called in the constructors of its subclasses\n String className = m.getClassName();\n if(!childrenMap.containsKey(className)) {\n // this class has no subclasses, so no need to check\n continue;\n }\n\n Set<String> subClasses = childrenMap.get(className);\n boolean onlyCalledInSubClassConstructor = true;\n for(MethodData caller : callers) {\n String callerClass = caller.getClassName();\n if(!subClasses.contains(callerClass)) {\n // this constructor is not only called in its subclasses\n onlyCalledInSubClassConstructor = false;\n break;\n }\n }\n\n if(onlyCalledInSubClassConstructor) {\n String subSignature = m.getSubSignature();\n usedAppMethods.get(className).remove(subSignature);\n affectedClasses.add(className);\n }\n }\n }\n\n // after removing unused virtual calls and superclass constructor calls\n // we need to update the used classes to filter out those used classes that are included due to these calls\n for(String className : affectedClasses) {\n if(usedAppMethods.get(className).isEmpty()) {\n usedAppMethods.remove(className);\n usedAppClasses.remove(className);\n }\n }\n }",
"@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}"
]
| [
"0.7156641",
"0.6765282",
"0.67108023",
"0.6705529",
"0.66780216",
"0.66408557",
"0.65808094",
"0.6526458",
"0.6429887",
"0.64005196",
"0.63609564",
"0.6277843",
"0.62507254",
"0.6225401",
"0.6225401",
"0.6225401",
"0.60710657",
"0.60676533",
"0.6065377",
"0.6013036",
"0.59793556",
"0.5970844",
"0.596579",
"0.5889904",
"0.5885172",
"0.58847314",
"0.58789194",
"0.58738875",
"0.5855073",
"0.58517456",
"0.58376586",
"0.58312523",
"0.58287686",
"0.57985854",
"0.57846427",
"0.57583654",
"0.57575655",
"0.57081366",
"0.5707357",
"0.5702513",
"0.5695642",
"0.56923294",
"0.568881",
"0.5661037",
"0.56560713",
"0.5648611",
"0.56451964",
"0.5634194",
"0.56337726",
"0.5631885",
"0.5627497",
"0.56248254",
"0.560319",
"0.5586733",
"0.5586035",
"0.5580221",
"0.55695045",
"0.556039",
"0.55601525",
"0.5558118",
"0.5558118",
"0.5558118",
"0.5556256",
"0.554445",
"0.5537641",
"0.5537546",
"0.5537546",
"0.5537546",
"0.55352944",
"0.5534557",
"0.55332327",
"0.55331665",
"0.5531203",
"0.5531203",
"0.5531203",
"0.5519991",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5517181",
"0.5492561",
"0.54895383",
"0.548934",
"0.5487928",
"0.5484549",
"0.5480466",
"0.5480466",
"0.5480466"
]
| 0.0 | -1 |
It computes all the subsequence of an string | static void subsequence(String str)
{
// iterate over the entire string
for (int i = 0; i < str.length(); i++) {
// iterate from the end of the string
// to generate substrings
for (int j = str.length(); j > i; j--) {
String sub_str = str.substring(i, j);
if (!st.contains(sub_str))
st.add(sub_str);
// drop kth character in the substring
// and if its not in the set then recur
for (int k = 0; k < sub_str.length(); k++) {
StringBuffer sb = new StringBuffer(sub_str);
// drop character from the string
sb.deleteCharAt(k);
if (!st.contains(sb)) {
subsequence(sb.toString());
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}",
"public static Set<String> getAllSubSeq(String s) {\n if (s == null || s.isEmpty()) {\n return null;\n }\n\n int n = s.length();\n if (n > 31) {\n throw new IllegalArgumentException(\"max str length is 31\");\n }\n int total = (int) Math.pow(2, n) - 1;\n Set<String> set = new HashSet<String>(total);\n\n boolean[] mask = new boolean[n];\n set.add(s);\n\n // let get all other combinations except of \"all false and all true\" masks\n for (int i = 1; i < total; i++) {\n nextMask(mask);\n String subSeq = getSubseq(s, mask);\n set.add(subSeq);\n }\n return set;\n }",
"public static void main(String[] args) {\n\t\tString string1 = \"acbdfbdfacb\";\n\t\tint length = string1.length();\n\t\tString[] sub = new String[length*(length+1)/2];\n\t\tint temp = 0;\n\t\tfor(int i =0;i<length;i++) {\n\t\t\tfor(int j = i;j<length;j++) {\n\t\t\t\tString parts = string1.substring(i,j+1);\n\t\t\t\tsub[temp] = parts;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tfor(int j =0;j<sub.length;j++) {\n\t\t\tSystem.out.println(sub[j]);\n\t\t}\n\t\tArrayList<String> rep = new ArrayList<String>();\n\t\tfor(int i=0;i<sub.length;i++) {\n\t\t\tfor(int j =i+1;j<sub.length;j++) {\n\t\t\t\tif(sub[i].equals(sub[j])) {\n\t\t\t\t\trep.add(sub[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint largestString = 0;\n\t\tSystem.out.println(rep);\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\t\tif(rep.get(k).length()>largestString) {\n\t\t\t\tlargestString = rep.get(k).length();\n\t\t\t}\t\t\n\t\t}\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\tif(rep.get(k).length()==largestString) {\n\t\t\tSystem.out.println(\"the longest repeating sequence in a string : \"+rep.get(k));\n\t\t}\n\t\t}\n\t}",
"@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"public static void main (String[] args) {\n String s1 = \"hac\";\n String s2 = \"cathartic\";\n\n System.out.println(subsequence(s1,s2, 0, 0));\n }",
"@Test\n public void subSequencesTest2() {\n String text = \"hashco\"\n + \"llisio\"\n + \"nsarep\"\n + \"ractic\"\n + \"allyun\"\n + \"avoida\"\n + \"blewhe\"\n + \"nhashi\"\n + \"ngaran\"\n + \"domsub\"\n + \"setofa\"\n + \"larges\"\n + \"etofpo\"\n + \"ssible\"\n + \"keys\";\n\n String[] expected = new String[6];\n expected[0] = \"hlnraabnndslesk\";\n expected[1] = \"alsalvlhgoeatse\";\n expected[2] = \"siacloeaamtroiy\";\n expected[3] = \"hsrtyiwsrsogfbs\";\n expected[4] = \"cieiudhhaufepl\";\n expected[5] = \"oopcnaeinbasoe\";\n String[] owns = this.ic.subSequences(text, 6);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"public static void main(String[] args){\n\t\tSystem.out.println(makeThreeSubstr(\"hello\",0,2)); //should be hehehe\n\t\tSystem.out.println(makeThreeSubstr(\"shenanigans\",3,7)); //should be naninaninani\n\t}",
"public int distinctSubseqII(String S) {\n int[] end = new int[26]; // 本字符添加之前的长度\n int res = 0;\n int added; // 当前额外增加的数量\n int mod = (int) 1e9 + 7;\n\n System.out.println('\\n' + S);\n for (char c : S.toCharArray()) {\n // 额外增加的数量等于前面的数量加上1(当前字符串)减去最后一次相同字符添加之前的数量\n added = (res + 1 - end[c - 'a']) % mod;\n\n end[c - 'a'] = (res + 1) % mod; // 影响的为前一个字符的数量加上单字符的数量\n\n res = (res + added) % mod;\n System.out.printf(\"%2c, %2d, %2d\\n\", c, res, end[c - 'a']);\n }\n return (res + mod) % mod;\n }",
"public static void main(String[] args) {\n String s = \"abc\";\n String t = \"ahbgdc\";\n boolean res = isSubsequence(s,t);\n System.out.println(res);\n }",
"@Test\n public void subSequencesTest1() {\n String text = \"crypt\"\n + \"ograp\"\n + \"hyand\"\n + \"crypt\"\n + \"analy\"\n + \"sis\";\n\n String[] expected = new String[5];\n expected[0] = \"cohcas\";\n expected[1] = \"rgyrni\";\n expected[2] = \"yrayas\";\n expected[3] = \"panpl\";\n expected[4] = \"tpdty\";\n String[] owns = this.ic.subSequences(text, 5);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }",
"public int palsubsequence2(String str) {\r\n\t\tint m = str.length();\r\n\t\tint[][] mem = new int[m + 1][m + 1];\r\n\r\n\t\tfor (int i = 1; i <= m; ++i) {\r\n\t\t\tmem[i][i] = 1;\r\n\t\t}\r\n\t\t// Bottom-up row-wise filling\r\n\t\tfor (int i = m - 1; i >= 1; --i) {\r\n\t\t\tfor (int j = i + 1; j <= m; ++j) {\r\n\r\n\t\t\t\tif (str.charAt(i - 1) == str.charAt(j - 1))\r\n\t\t\t\t\tmem[i][j] = mem[i + 1][j - 1] + 2;\r\n\t\t\t\telse {\r\n\t\t\t\t\tint incr = mem[i + 1][j];\r\n\t\t\t\t\tint decr = mem[i][j - 1];\r\n\t\t\t\t\tmem[i][j] = Math.max(incr, decr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintMemory(mem);\r\n\t\t// printSequence(mem, 1, m, str);\r\n\t\tSystem.out.println();\r\n\t\treturn mem[1][m];\r\n\r\n\t}",
"public abstract String getLongestRepeatedSubstring();",
"public abstract void createLongestRepeatedSubstring();",
"public String findAllSubstring(String s) {\n Set<String> set = new HashSet<>();\n String res = \"\";\n int max = -1;\n\n for (int i = 0; i < s.length(); i++) {\n String cur = \"\";\n for (int j = i; j < s.length(); j++) {\n cur += s.charAt(j);\n if (set.contains(cur) && cur.length() > max) {\n res = cur;\n max = cur.length();\n } else {\n set.add(cur);\n }\n }\n }\n return res;\n }",
"public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }",
"public int countPalindromicSubsequences(String s) {\n \n Integer[][][] memo = new Integer[s.length()][s.length()][4];\n \n int ans = 0;\n for (int i = 0; i < 4; i++) {\n ans = (ans + distinct(s, memo, 0, s.length() - 1, i)) % MOD;\n }\n \n return ans;\n }",
"private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tint n=str.length();\n\t\tString out[]=new String[(int) Math.pow(2,n)];\n\t\t\n\t\tSystem.out.println(Subseq(str,out));\n\t\t\n\t\tfor(String a:out)\n\t\t\tSystem.out.println(a);\n\t\tsc.close();\n\t}",
"public static void main(String[] args) {\n Subsequence s=new Subsequence();\n int ll= s.longestSubSequnce(\"elephant\",\"eretpat\",0,0);\n System.out.println(ll);\n }",
"private static void subStringNonrepchars(String input) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString s =\"\";\n\n\t\tint j=0,max=0,len=0, i=0;\n\t\tboolean[] flag = new boolean[256];\n\t\tfor(i=0;i<input.length();i++){\n\t\t\tif(!flag[input.charAt(i)]){\n\t\t\t\tSystem.out.println(\"char: \"+input.charAt(i)+\" bool: \"+!flag[input.charAt(i)]);\n\t\t\t\tlen++;\n\t\t\t}else{\n\t\t\t\t//System.out.println(\"coming to else\");\n\t\t\t\tif(len>max){\n\t\t\t\t\tmax= len;len=1;\n\t\t\t\t\tSystem.out.println(j+\" j \"+max +\" :max substring: \"+input.substring(j,i));\n\t\t\t\t}\n\t\t\t\tj = i;\n\t\t\t\tSystem.out.println(\"max len is: \"+max+\" j: \"+j);\n\t\t\t\tflag = new boolean[256];\n\t\t\t}\n\t\t\tflag[input.charAt(i)] = true;\n\n\t\t}\n\t\tif(len>max){\n\t\t\tmax=len;\n\t\t\tj=i;\n\t\t}\n\t\tif(max>j)\n\t\t\tSystem.out.println(input.substring(max-j,max+1));\n\t\telse{\n\t\t\tSystem.out.println(input.substring(j-max,max+1));\n\t\t}\n\n\n\n\t}",
"public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}",
"public int countSubstrings(String s) {\n int l = s.length();\n cache = new int[l][l];\n\n for (int[] is : cache) {\n Arrays.fill(is, -1);\n }\n\n for (int i = 0; i < l; i++) {\n cache[i][i] = 1;\n }\n\n for (int i = 0; i < l; i++) {\n for (int j = i + 1; j < l; j++) {\n char c1, c2;\n c1 = s.charAt(i);\n c2 = s.charAt(j);\n if (c1 == c2) {\n if (j == i + 1 && cache[i][j] == -1) {\n cache[i][j] = 1;\n } else if (cache[i][j] == -1) {\n cache[i][j] = solve(s, i + 1, j - 1);\n }\n } else {\n cache[i][j] = 0;\n }\n }\n }\n\n int total = 0;\n\n for (int[] is : cache) {\n for (int i : is) {\n if (i > 0) {\n total += i;\n }\n }\n }\n\n return total;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}",
"private void start(Substring sub) {\n\t\tint i=0,j=0,k=0,l=0,m=0,n=0,sum=sub.n;\n\t\tfor(i=1;i<sub.n;i++)\n\t\t{\n\t\t\tfor(j=0,l=i;l<sub.n;j++,l++)\n\t\t\t{\n\t\t\t\t//HashMap<Integer,Integer> map=new HashMap<Integer,Integer>();\n\t\t\t\tint[]count=new int[10000];\n\t\t\t\t\t\tfor(m=j;m<=l;m++) {\n\t\t\t\t\t\t\tcount[sub.arr[m]]++;\n\t\t\t\t\t\t\tif(count[sub.arr[m]]<=1) {continue;}\n\t\t\t\t\t\t\telse break;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\tif(m==l+1)sum=sum+i+1;\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"public int countSubstrings(String s) {\n int cnt = 0;\n\n char[] str = s.toCharArray();\n\n\n for(int j=0; j<2; j++) {\n for(int i=0; i< str.length; i++) {\n int left = i;\n int right = i+j;\n\n while(left>=0 && right<str.length && str[left] == str[right]) {\n cnt++;\n left--;\n right++;\n }\n\n }\n }\n\n return cnt;\n }",
"static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }",
"private void helper(String s, int index, List<String> path){\n //base condition to stop recursion\n //when there is no substring to process, add the path to output\n if(index == s.length()){\n output.add(new ArrayList<String>(path));\n return;\n }\n \n //logic\n for(int i=index+1; i <= s.length(); i++){\n /* Generate all possible substrings that start from the current index\n * For each substring, check if it is a palindrome. \n * For each palindromic substring, call the helper function recursively to generate substrings for rest of the string\n */\n String substr = s.substring(index, i);\n if(isPalindrome(substr)){\n path.add(substr);\n helper(s, i, path);\n path.remove(path.size()-1);\n }\n }\n }",
"static String findSubString(String str) \n { \n int n = str.length(); \n \n // Count all distinct characters. \n int dist_count = 0; \n \n boolean[] visited = new boolean[MAX_CHARS]; \n Arrays.fill(visited, false); \n for (int i=0; i<n; i++) \n { \n if (visited[str.charAt(i)] == false) \n { \n visited[str.charAt(i)] = true; \n dist_count++; \n } \n } \n \n // We basically maintain a window of characters that contains all characters of given string. \n int start = 0, start_index = -1; \n int min_len = Integer.MAX_VALUE; \n \n int count = 0; \n int[] curr_count = new int[MAX_CHARS]; \n for (int j=0; j<n; j++) \n { \n // Count occurrence of characters of string \n curr_count[str.charAt(j)]++; \n \n // If any distinct character matched, then increment count \n if (curr_count[str.charAt(j)] == 1 ) \n count++; \n \n // if all the characters are matched \n if (count == dist_count) \n { \n // Try to minimize the window i.e., check if \n // any character is occurring more no. of times \n // than its occurrence in pattern, if yes \n // then remove it from starting and also remove \n // the useless characters. \n while (curr_count[str.charAt(start)] > 1) \n { \n if (curr_count[str.charAt(start)] > 1) \n curr_count[str.charAt(start)]--; \n start++; \n } \n \n // Update window size \n int len_window = j - start + 1; \n if (min_len > len_window) \n { \n min_len = len_window; \n start_index = start; \n } \n } \n } \n // Return substring starting from start_index \n // and length min_len \n return str.substring(start_index, start_index+min_len); \n }",
"public List<String> findRepeatedDnaSequences(String s) {\n if(s.length() < 10) return new ArrayList<String>();\n \n int[] map = new int[256];\n map['A'] = 0;\n map['T'] = 1;\n map['C'] = 2;\n map['G'] = 3;\n \n List<String> result = new ArrayList<String>();\n \n //this set contains string that occurs before\n Set<Integer> visited = new HashSet<Integer>();\n //this set contains string that we have inserted into result\n Set<Integer> inResult = new HashSet<Integer>();\n \n int key = 0;\n \n //Since we only partially modify the key, we need to firstly initialize it\n for(int i = 0; i < 9; i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n }\n \n for(int i = 9; i < s.length(); i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n //our valid key has 20 digits, we use 0xFFFFF to remove digits that beyong this range\n key &= 0xFFFFF;\n \n String temp = s.substring(i - 9, i+1);\n \n //if this is not the first time we visit this substring\n if(!visited.add(key)){\n //if this is the first time we add this substring into result\n if(inResult.add(key)){\n result.add(temp);\n }\n }\n }\n \n return result;\n }",
"@Test\n public void testSubSequence() {\n LOGGER.info(\"testSubSequence\");\n final AtomString atomString1 = new AtomString(\"Hello\");\n final CharSequence expected = \"el\";\n final CharSequence actual = atomString1.subSequence(1, 3);\n assertEquals(expected, actual);\n }",
"public boolean strCopies(String str, String sub, int n) {\n//Solution to problem coming soon\n}",
"@Override\n public CharSequence subSequence(int start, int end) {\n return mString.subSequence(start, end);\n }",
"public static void main(String[] args) {\n\t\tString s = \"caaab\";\n\t\tString[] res = getUniqueSubstring(s,2);\n\t\tfor(String a : res){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"66. All Valid Permutations Of Parentheses I\";\n//\t\tString str = \"Determine If One String Is Another's Substring\";\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t\tSystem.out.println(leet(str));\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t}",
"public void permutationOfString(String s, int start, int end){\n if(start == end && !hs.contains(s)){\n hs.add(s);\n System.out.println(s);\n return;\n }\n\n for(int i=start;i<=end;i++){\n s=swap(s,i,start);\n permutationOfString(s,start+1, end);\n s=swap(s,i,start);\n }\n\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n for(int ii=0;ii<t;ii++){\n String str = sc.next();\n int sa[] = getSuffixArray(str);\n int lcp[] = getLCP(sa,str);\n int n = str.length();\n long range[] = new long[n];\n for(int i=0;i<n;i++){\n long len = (long)(n-sa[i]);\n range[i] = (long)(len*(len+1)/2)-(long)(lcp[i]*(lcp[i]+1)/2);\n }\n long k = sc.nextLong();\n for(int i=0;i<n;i++){\n int s = sa[i];\n int lc = lcp[i];\n if(range[i]>=k){\n int len = 1+lc;\n while(k>len){\n k -= len;\n len++;\n }\n System.out.println(str.charAt(s+(int)k-1));\n break;\n }\n else\n k -= range[i];\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint a [] = {1,0,0,1,1,0,0,1,0,1,0,0,0,1};\r\n\t\t\r\n\t\tboolean start = false;\r\n\t\t//boolean end = false;\r\n\t\tString s = \"\";\r\n\t\tString k = Arrays.toString(a);\r\n\t\tString[] strings = (k.replace(\"[\", \"\").replace(\"]\", \"\").split(\", \"));\r\n\t\tString s1 = (k.replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\tString s2 = (s1.replace(\",\", \"\"));\r\n\t\tString s3 = s2.replaceAll(\"\\\\s\", \"\");\r\n\t\t//String stringss = strings.toString();\r\n\t\t//String[] stringss = strings.replaceAll(\"\\\\s\", \"\").split(\"\");\r\n\t\t\r\n\t\tint Startindex = 0;\r\n\t\tint Endindex = 0;\r\n\t\tArrayList<String> ai = new ArrayList<String>();\r\n\t\tfor (int i =0;i<=strings.length-1;i++) {\r\n\t\t\tint result = Integer.parseInt(strings[i]);\r\n\t\t\t\r\n\t\t\tif (result==1 && !start) {\r\n\t\t\t\t\r\n\t\t\t\tstart = true;\r\n\t\t\t\tStartindex = i;\r\n\t\t\t\t\r\n\t\t\t}else if (result==1 && start) {\r\n\t\t\t\tstart = false;\r\n\t\t\t\tEndindex = i;\r\n\t\t\t\ts = s3.substring(Startindex, Endindex+1);\r\n\t\t\t\tai.add(s);\r\n\t\t\t\ti =i-1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\nSystem.out.println(ai);\r\n\t}",
"public static void main(String[] args) {\n String s = \"ab\";\n\n\n int res = countSubstrings(s);\n System.out.println(res);\n\n }",
"public static void main(String[] args) {\n String str = \"geeksforgeeks\";\n System.out.println(longestRepeatedSubstring(str));\n String str1 = \"aaaaaaabbbbbaaa \";\n System.out.println(longestRepeatedSubstring(str1));\n }",
"public ArrayList<String> getSubset(String s) {\n\n\t int length = s.length();\n\t int[] mult = new int[length];\n\t \n\t char[] tempchar = new char[length];\n\t for (int i = 0; i < length; i++) {\n\t\t tempchar[i] = s.charAt(i);\n\t }\n\t \n\t for (int i = 0; i < length; i++) {\n\t\t for (int j = i; j > 0; j--) {\n\t\t\t if (tempchar[j] < tempchar[j-1]) {\n\t\t\t\t exchange(tempchar[j], tempchar[j-1]);\n\t\t\t }else {\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\t }\n\t \n\t String unique = \"\";\n\t int count = 1;\n\t int count_l = 0;\n\t int i = 0, j = 1;\n\t unique += tempchar[0];\n\t while (j < length) {\n\t\t if (tempchar[i] == tempchar[j]) {\n\t\t\t count++;\n\t\t\t i++;\n\t\t\t j++;\n\t\t }else {\n\t\t\t mult[count_l] = count;\n\t\t\t count_l++;\n\t\t\t count = 1;\n\t\t\t unique += tempchar[j];\n\t\t\t i++;\n\t\t\t j++;\n\t\t }\n\t }\n\t \n\t return allSubsets(unique, mult, 0);\n\t}",
"public int countBinarySubstrings(String s) {\n\n int pre = 0, cur = 1, res = 0;\n for (int i = 1; i < s.length(); i++) {\n if (s.charAt(i) == s.charAt(i - 1)) {\n cur++;\n } else {\n res += Math.min(cur, pre);\n pre = cur;\n cur = 1;\n }\n }\n res += Math.min(cur, pre);\n return res;\n }",
"CharSequence subSequence(int start, int end) throws IndexOutOfBoundsException;",
"public static boolean isSubsequence(String s, String t) {\n int pos = -1;\n for(int i=0; i<s.length(); i++){\n pos = t.indexOf(s.charAt(i), pos+1);\n if(pos == -1){\n return false;\n }\n }\n return true;\n }",
"public static void main(String[] args) {\nsub_seq(\"abc\", \"\");\nSystem.out.println();\nSystem.out.println(sub_seq_count(\"ab\", \"\"));\n\t}",
"public int countBinarySubstrings(String s) {\n \tint prevRunLen = 0;\n \tint currRunLen = 1;\n \tint cnt = 0;\n\n \tfor (int i = 1; i < s.length(); i++) {\n \t\tif (s.charAt(i) == s.charAt(i - 1)) {\n \t\t\tcurrRunLen += 1;\n \t\t} else {\n \t\t\tprevRunLen = currRunLen;\n \t\t\tcurrRunLen = 1;\n \t\t}\n \t\t// one qualifying substring\n \t\tif (prevRunLen >= currRunLen) {\n \t\t\tcnt++;\n \t\t}\n \t}\n\n \treturn cnt;\n }",
"public static void main(String[] args) {\n\t\tString s= \"remya\";\n\t\tSystem.out.println(s.subSequence(0, 3));\n\t\tCharSequence c=s.subSequence(0, 3);\n\t\tSystem.out.println((c.charAt(0)));\n\t\t\n\t\t\n\t\t// subSequence is a method available for string class.\n\t\t// it is similar to subString ,like substring arguments for subSequence are beginIndex and endIndex\n\t\t// it will return a CharSequence Object\n\t}",
"public static void main(String[] args) {\n String s = \"axc\";\n String t = \"ahbgdc\";\n System.out.println(\"new Solution392().isSubsequence(s, t) = \" + new Solution392().isSubsequence(s, t));\n }",
"public static String longestSubSequence(String str1, int st1, String str2, int st2) {\n if ((st1 >= str1.length()) || (st2 >= str2.length()))\n return null;\n String subStr1 = str1.substring(st1, str1.length());\n String subStr2 = str2.substring(st2, str2.length());\n String lonSeq1 = null;\n String lonSeq2 = null;\n if (subStr1.length() == 1) {\n lonSeq1 = (str2.contains(subStr1)) ? subStr1 : null;\n } else {\n lonSeq1 = longestSubSequence(str1, st1 + 1, str2, st2);\n if ((lonSeq1 != null) && (!lonSeq1.isEmpty())) {\n String sub2 = str2.substring(0, str2.indexOf(lonSeq1.charAt(0)));\n if ((sub2 != null) && (!sub2.isEmpty())) {\n if (sub2.contains(String.valueOf(str1.charAt(st1)))) {\n lonSeq1 = str1.charAt(st1) + lonSeq1;\n }\n }\n }\n }\n if (subStr2.length() == 1) {\n lonSeq2 = (str1.contains(subStr2)) ? subStr2 : null;\n } else {\n // find longestSequence with str1 index increased\n lonSeq2 = longestSubSequence(str1, st1, str2, st2 + 1);\n if ((lonSeq2 != null) && (!lonSeq2.isEmpty())) {\n // find the index of longSeq2 in str1\n String sub1 = str1.substring(0, str1.indexOf(lonSeq2.charAt(0)));\n if ((sub1 != null) && (!sub1.isEmpty())) {\n if (sub1.contains(String.valueOf(str2.charAt(st2)))) {\n lonSeq2 = str2.charAt(st2) + lonSeq2;\n }\n }\n }\n\n }\n\n if ((lonSeq1 == null) || (lonSeq1.isEmpty())) return lonSeq2;\n if ((lonSeq2 == null) || (lonSeq2.isEmpty())) return lonSeq1;\n return (lonSeq1.length() > lonSeq2.length()) ? lonSeq1 : lonSeq2;\n }",
"private static void longestSubstringAllUnique(String s) {\n\t\tif(s == null || s.length() == 0) {\n\t\t\tSystem.out.println(\"\");\n\t\t\treturn;\n\t\t}\n\t\t//sliding window : 2 pointers (one is use for traverse)\n\t\tint l = 0;\n\t\tSet<Character> set = new HashSet<>();//keep track of current window char\n\t\tint longest = 0;\n\t\t\n\t\tfor(int r = 0; r < s.length(); r++) {\n//\t\t\tif(set.contains(s.charAt(r))) {\n//\t\t\t\twhile(set.contains(s.charAt(r))) {\n//\t\t\t\t\tset.remove(s.charAt(l));\n//\t\t\t\t\tl++;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t\n\t\t\twhile(set.contains(s.charAt(r))) {//set == itself give distinct key: our requirement is all distinct \n\t\t\t\tset.remove(s.charAt(l));\n\t\t\t\tl++;\n\t\t\t}\n\t\t\t\n\t\t\tset.add(s.charAt(r));\n\t\t\tint currentWindowSize = r - l + 1;\n\t\t\tlongest = Math.max(longest, currentWindowSize);\n\t\t}\n\t\tSystem.out.println(longest);\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(longestRepeatingSubstringUsingSuffixArray(\"abcabc\"));\n\n\t}",
"public int countSubstrings_expand2(String s) {\n\t\tint count = 0;\n\t\t\n\t\t// Loop across different middle points.\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tcount += extractPalindrome_expand2(s, i, i); // odd length mid i\n\t\t\tcount += extractPalindrome_expand2(s, i, i + 1); // even length mid i, i+1\n\t\t}\n\t\treturn count;\n\t}",
"public static void main(String[] args) {\n\t\t// Longest Palindromic Substring Part I\n\t\tString s = \"adfsdaffadada\";\n\t\tfindLongestSubPalindramic(s);\n\n\t\tSystem.out.println(findLongestSubPalindramic2(s));\n\t}",
"public static void main(String[] args)\n {\n Pattern pattern = Pattern.compile(\"aba\");\n Matcher m = pattern.matcher(\"abababa\");\n //boolean find()//return true if found the pattern and go to the next sub sequence\n while(m.find()){\n System.out.print(m.start());//0 and 4 but not 2!\n System.out.print(m.end());//3 and 7 (return the position of the last char matched + 1)\n System.out.print(m.group());// = s.substring(m.start(), m.end());\n System.out.print(\"\\n\");\n }\n //what's append?\n //first occurence starts at 0, ends at 2 and aba\n //search for the second occurence from 3\n //second occurence starts at 4, ends at 6 and aba\n //search for the thrid occurence from 7\n \n System.out.print(\"========\\n\");\n \n //0-length matches\n Pattern pattern2 = Pattern.compile(\"a?\");\n Matcher m2 = pattern2.matcher(\"aba\");\n while(m2.find()){\n System.out.print(m2.start());//the char a is or not is at position 0,1,2 and 3\n System.out.print(m2.end());//1,1,3,3 ==> ?? @see page 500\n System.out.print(\"\\n\");\n }\n \n /** Expressions **/\n // \\d digit\n // \\s whitespace\n // \\w letters, digits or _\n // [abc] searching for a, b or c\n // [a-f] searching for a letter to f lettre included\n // [A-F] searching for A letter to F lettre included\n // [a-fA-F] search for a letter to f or A letter to F lettre included\n // 0 [x-X] search for 0 followed by x or X\n /** quantifiers **/\n //? Zero or one\n //* Zero or more\n //+ One or more\n// 0[x-X]+ => 0 followed by one x or one X\n// (0[x-X])+ => 0 followed by x or X one time\n \n //. = any char (whitespace is a char)\n //Escaping special char !!! . = any char, \\. = compilator error, \\\\. = .\n }",
"public int longestPalindromeSubseqV2(String s) {\n int n = s.length();\n Integer[][] memo = new Integer[n][n];\n return helper(s, memo, 0, n - 1);\n }",
"public int countSubstrings(String S) {\n int N = S.length(), ans = 0;\n for (int center = 0; center <= 2*N-1; ++center) {\n int left = center / 2;\n int right = left + center % 2;\n while (left >= 0 && right < N && S.charAt(left) == S.charAt(right)) {\n ans++;\n left--;\n right++;\n }\n }\n return ans;\n }",
"public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }",
"public static String lrs(String s) {\n\n // form the N suffixes\n int N = s.length();\n String[] suffixes = new String[N];\n for (int i = 0; i < N; i++) {\n suffixes[i] = s.substring(i, N);\n }\n\n // sort them\n Arrays.sort(suffixes);\n\n // find longest repeated substring by comparing adjacent sorted suffixes\n String lrs = \"\";\n for (int i = 0; i < N - 1; i++) {\n String x = lcp(suffixes[i], suffixes[i+1]);\n if (x.length() > lrs.length())\n lrs = x;\n }\n return lrs;\n }",
"private void permutation(String prefix, String str) {\n \r\n int n = str.length();\r\n if (n == 0)\r\n {\r\n \r\n ls.add(prefix);\r\n System.out.print(prefix+\",\");\r\n if(ls.isEmpty()==true)\r\n {\r\n ls.remove(ls.indexOf(n)); \r\n }\r\n \r\n al.add(ls);\r\n calc(al);\r\n \r\n }\r\n\r\n else {\r\n \r\n //System.out.print(ls);\r\n \r\n for (int i = 0; i < n; i++)\r\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));\r\n \r\n \r\n }\r\n \r\n \r\n \r\n}",
"public int countSubstrings_brute_force(String s) {\n\t\tint ans = 0;\n\n for (int start = 0; start < s.length(); ++start)\n for (int end = start; end < s.length(); ++end) \n ans += isPal_brute_force(s, start, end) ? 1 : 0;\n\n return ans;\n\t}",
"public int countSubstrings(String s) {\n int count =0;\n int n = s.length();\n boolean[][] isPall = new boolean[n][n];\n \n for(int len =0;len<n;len++){\n \n for(int i=0,j=len;j<n;i++,j++){\n if(len == 0){\n isPall[i][j] = true;\n }\n else if(len == 1){\n isPall[i][j] = s.charAt(i) == s.charAt(j);\n }\n else{\n isPall[i][j] = (s.charAt(i) == s.charAt(j) &&\n isPall[i+1][j-1]);\n }\n \n if(isPall[i][j]){\n count++;\n }\n }\n \n } \n return count;\n }",
"public static void SubString(String str, int n)\r\n {\r\n\t\tint count = 0;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < n; i++) { \r\n for (int j = i+1; j <= n; j++) {\r\n \t String subs = str.substring(i, j);\r\n \t \r\n \t if((Integer.valueOf(subs)) <= 26) {\r\n \t\t System.out.println(subs);\r\n \t\t sb.append(subs);\r\n \t\t \r\n \t }\r\n }\r\n }\r\n \r\n for(int i = 0; i < sb.length() - 2; i++) {\r\n \t for(int j = i + 1; j < sb.length() - 1; j++) {\r\n \t\t for(int k = j + 1; k < sb.length(); k++) {\r\n \t\t\t StringBuilder temp = new StringBuilder();\r\n \t\t\t temp.append(sb.charAt(i));\r\n \t\t\t temp.append(sb.charAt(j));\r\n \t\t\t temp.append(sb.charAt(k));\r\n \t\t\t //System.out.println(temp.toString());\r\n \t\t\t if(temp.toString().equals(str)) { // !!! have to use equals!!!!\r\n \t\t\t\t count++;\r\n \t\t\t }\r\n \t\t }\r\n \t } \r\n \t}\r\n System.out.println(\"count \" + count);\r\n }",
"public static int subStr(String str)\n\t{\n\t\tif(str.isEmpty()) return 0;\n\t\tint len=0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < str.length(); i++) \n\t\t{\n\t\t\tboolean visited[]=new boolean[256];\n\t\t\t\n\t\t\tfor (int j = i; j < str.length(); j++) \n\t\t\t{\n\t\t\t\t//if current jth character is already visited, break loop and move to next ith \n\t\t\t\tif(visited[str.charAt(j)])\n\t\t\t\t\tbreak;\n\t\t\t\t//take the len and compare with global len and make current char as true\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlen=Math.max(len, j-i+1);\n\t\t\t\t\tvisited[str.charAt(j)]=true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//when element is removed from window, mark it as false\n\t\t\tvisited[str.charAt(i)]=false;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn len;\n\t}",
"public int longestRepeatingSubsequenceII(String str, int k) {\n HashMap<String, Integer> cache = new HashMap<>();\n\n int max = 0;\n for (int i = str.length(); 0<=i; i--) {\n for (int j = 0; j+i < str.length(); j++) {\n String sub = str.substring(j, j+i);\n int count = repeat(str, sub, k , cache);\n if (count>=k) {\n return sub.length();\n }\n }\n }\n\n return max;\n\n }",
"public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public List<String> decode(String s) {\n \tint i=0;\n List<String> result = new ArrayList<String>();\n while(i<s.length()){\n int j=i+1;\n while(s.charAt(j)!='[') j++;\n \tString n=s.substring(i, j);\n int t=Integer.valueOf(n);\n System.out.print(t);\n result.add(s.substring(i+n.length()+1, i+n.length()+1+t));\n \n i=i+n.length()+1+t+1;\n }\n return result;\n }",
"int lcs(int x, int y, string s1, string s2,int[][] str){\n \n if(text1.length()==0||text2.length()==0) {\n return 0;\n }\n \n if(str[x][y]!=0) {\n return str[x][y];\n }\n \n int ans =0;\n \n if(text1.charAt(0)== text2.charAt(0)) {\n \n \n \n ans = 1 + longestCommonSubsequence(x+1,y+1,ros1, ros2,str);\n \n \n }\n else {\n \n int first = longestCommonSubsequence(x,y+1,ros1, text2,str);\n int second = longestCommonSubsequence(x+1,y,text1, ros2,str);\n \n ans = Math.max(first,second);\n \n \n \n }\n \n str[x][y] = ans;\n return ans;\n \n \n \n \n \n}",
"public static void main(String[] args) {\n\t\tint loop,t,i;\n\t\tScanner sc=new Scanner(System.in);\n\t\tt=sc.nextInt();\n\t\tSubstring[] sub=new Substring[t];\n\t\tfor(loop=0;loop<t;loop++) {\n\t\t\tsub[loop]=new Substring();\n\t\t\tsub[loop].n=sc.nextInt();\n\t\t\tsub[loop].arr=new int[sub[loop].n];\n\t\t\tfor(i=0;i<sub[loop].n;i++)\n\t\t\t\tsub[loop].arr[i]=sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(loop=0;loop<t;loop++) {\n\t\t\tsub[loop].start(sub[loop]);\n\t\t}\n\n\t}",
"@Test\n\tpublic void eg1() {\n\t\tString s=\"babad\";\n\t\tSystem.out.println(longestPalindromicSubString(s));\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\n//\t\tint n = s.nextInt();\n//\t\t\n//\t\tint nums[] = new int[n];\n//\t\t\n//\t\t\n//\t\tfor (int i = 0; i < nums.length; i++) {\n//\t\t\tnums[i] = s.nextInt();\n//\t\t}\n//\t\tint m = s.nextInt();\n//int maxs[] = new int[m];\n//\t\t\n//\t\t\n//\t\tfor (int i = 0; i < maxs.length; i++) {\n//\t\t\tmaxs[i] = s.nextInt();\n//\t\t}\n//\n//\t\tString[] strarr = new String[n];\n//\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\tstrarr[i] = s.next();\n//\t\t}\n//\n//\t\tint []inArr =minimalChange(strarr);\n//\n////\t\t\n////\t\tint[] inArr =subArray(nums, maxs);\n//\t\tfor (int i = 0; i < inArr.length; i++) {\n//\n//\t\t\tSystem.out.println(inArr[i]);\n//\t\t}\n\n\t\tSystem.out.println(longestSubsequence(s.next()));\n\t\t\n//\t\ts.close();\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\n String expresson = \"1+((2+3)*40)-5\";\n List<String> strings = toInffixExpresion(expresson);\n System.out.println(strings.toString());\n\n List<String> parse = parseSuffix(strings);\n System.out.println(parse);\n }",
"public int countSubstrings_dp(String s) {\n\t\tint n = s.length();\n\t\tint res = 0;\n\t\tboolean[][] dp = new boolean[n][n];\n\t\tfor (int i = n - 1; i >= 0; i--) {\n\t\t\tfor (int j = i; j < n; j++) {\n\t\t\t\tdp[i][j] = s.charAt(i) == s.charAt(j) \n\t\t\t\t\t\t&& (j - i + 1 < 3 || dp[i + 1][j - 1]);\n\t\t\t\t\n\t\t\t\tif (dp[i][j])\n\t\t\t\t\t++res;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"@Test\n\tvoid testPalindromicSubstrings() {\n\t\tassertEquals(3, new PalindromicSubstrings().countSubstrings(\"abc\"));\n\t\tassertEquals(6, new PalindromicSubstrings().countSubstrings(\"aaa\"));\n\t\tassertEquals(1, new PalindromicSubstrings().countSubstrings(\"a\"));\n\t\tassertEquals(0, new PalindromicSubstrings().countSubstrings(\"\"));\n\t\tassertEquals(12, new PalindromicSubstrings().countSubstrings(\"aabaaa\"));\n\t}",
"public static String iterate(String input, String[] subkeys){\n\n String leftInput;\n String rightInput = input.substring(32);\n String result = \"\";\n\n for (String subkey : subkeys) {\n leftInput = rightInput;\n rightInput = xor(leftInput, fFunction(rightInput, subkey));\n result = leftInput + rightInput;\n }\n\n return result;\n }",
"public static void main(String[] args) {\n\n\n String str = \"ABAB\";\n // index number:123\n\n\n String result = \"\"; // \"CD\" We store expected result\n\n for(int i=0; i <= str.length()-1 ; i++){ // 0 , 1, 2 ,3\n /*\n if( !result.contains( \"\"+str.charAt(i)) ) {\n result += str.charAt(i);\n }\n */\n\n if(result.contains( \"\"+str.charAt(i) )){// is in the index number\n continue;// if the string result does not contains str.charAt(i), then we concate it to the result,\n // if it does we will not concate it to the result\n }\n\n result += str.charAt(i);\n\n }\n\n System.out.println(result);\n\n\n\n\n\n\n\n\n }",
"static long substrCount(int n, String s) {\n \tlong output=0;\n \t\n \tboolean[][] matrix = new boolean[n][n];\n \t\n \tfor(int i=0; i<n; i++) {\n \t\tmatrix[i][i] = true;\n \t\toutput++;\n \t}\n \t\n \tfor(int gap=1; gap<n; gap++) {\n \t\tfor(int i=0; i+gap <n; i++) {\n \t\t\tint j = i+gap;\n \t\t\t\n \t\t\tif(gap ==1) {\n \t\t\t\tif(s.charAt(i) == s.charAt(j)) {\n \t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif(s.charAt(i) == s.charAt(j) && matrix[i+1] [j-1]) {\n \t\t\t\t\t\n \t\t\t\t\tif(j-i >= 4 && s.charAt(i)== s.charAt(i+1)) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else if(j-i <4) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \t\n \treturn output;\n }",
"public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n boolean characterMatch = false;\n for (int j = 1; j < dp[i].length; j++) {\n // leverage the previous result to determine what the\n // starting number will be, since we are using that\n // to enable comparing the characters at i and j and\n // appending that to what the previous longest subsequence\n // was.\n\n if (dp[i - 1][j] > dp[i][j - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n // ONLY update the length IF the choice was if the subseq length came from\n // the same index for i, because it \n if (!characterMatch && text1.charAt(i) == text2.charAt(j)) {\n dp[i][j]++;\n characterMatch = true;\n }\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }",
"public int countBinarySubstrings(String s) {\n int result = 0;\n int[] count = new int[2];\n int cur = s.charAt(0) - '0';\n count[cur]++;\n for (int i = 1; i < s.length(); i++) {\n \tchar c = s.charAt(i);\n \tif (c - '0' == cur) count[cur]++;\n \telse {\n \t\tresult += Math.min(count[0], count[1]);\n \t\tcur = c - '0';\n \t\tcount[cur] = 1;\n \t}\n }\n result += Math.min(count[0], count[1]);\n return result;\n }",
"public long numberOfSubstrings(String s) {\n int[] letterCounts = new int[26];\n long substringCount = 0;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n int letterCount = ++letterCounts[c - 'a'];\n substringCount += letterCount;\n }\n return substringCount;\n }",
"private boolean isSubSequence(char str1[], char str2[]) {\n int j = 0;\n int m = str1.length;\n int n = str2.length;\n for (int i=0; i<n&&j<m; i++)\n if (str1[j] == str2[i])\n j++;\n return (j==m);\n }",
"public static void main(String[] args) {\n\t\tString input = \"GEEKSFORGEEKS\";\n\t\tsubStringNonrepchars(input);\n\t\t//rotation(\"abcd\",\"dabc\");\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"aaabbbbbbddcmmm\";\n\t\tString[] arr1 = str.split(\"\");\n\t\t\n\t\tString last=\"\";\n\t\tint count = 1;\n\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\tcount = 1;\n\t\t\t\n\t\t\tfor (int j = i+1; j < arr1.length; j++) {\n\t\t\t\tif(arr1[i].equals(arr1[j])) {\n\t\t\t\t\tcount++;\n\t\t\t\t\ti=j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tlast += count + arr1[i];\n\t\t}\n\t\t\n\t\n\t\t//return last;\n\t\t\n\t\tSystem.out.println(last);\n\t}",
"public static void sub_seq(String Ques, String ans) {\n\t\tif(Ques.length()==0) {\n\t\t\tSystem.out.print(ans+\" \");\n\t\t\treturn;\n\t\t}\n\t\tchar ch = Ques.charAt(0);\n\t\tsub_seq(Ques.substring(1), ans + ch);// char\n\t\tsub_seq(Ques.substring(1), ans);// No\n\t\tsub_seq(Ques.substring(1), ans + (int)(ch));// Ascii\n\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"aabacbebebe\";\n\n\t\tSystem.out.println(\"Given String : \" + s);\n\n\t\tSystem.out.println(\"Longest Substring Using Set (2-pointer) : \"\n\t\t\t\t+ lengthOfLongestSubstringUsingSet(s));\n\t\tSystem.out.println(\"Longest Substring Using Sliding Window : \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with 2 distinct characters ===== \");\n\t\tSystem.out.println(\"Original String : \" + s);\n\t\tSystem.out\n\t\t\t\t.println(\"Length of Longest Substring with at most 2 distinct characters: \"\n\t\t\t\t\t\t+ longestStringWithTwoDistinctChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair = longestStringWithKDistinctChars(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair.getKey() + \", \" + pair.getValue().getKey() + \" \"\n\t\t\t\t+ pair.getValue().getValue());\n\n\t\tif (pair.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair.getValue().getKey(), pair.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\t\t\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters (AS approach) ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair1 = longestStringWithKDistinctCharsAS(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair1.getKey() + \", \" + pair1.getValue().getKey() + \" \"\n\t\t\t\t+ pair1.getValue().getValue());\n\n\t\tif (pair1.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair1.getValue().getKey(), pair1.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\n\t\tSystem.out.println(\"\\n ===== Longest string with no repeating characters ===== \");\n\n\t\ts = \"abcabcbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"bbbbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"pwwkew\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\t}",
"public static HashSet<String> getAllPermutations(String str) {\n\t\tHashSet<String> permutations = new HashSet<String>();\r\n\r\n\t\tif (str == null || str.length() == 0) {\r\n\t\t\tpermutations.add(\"\");\r\n\t\t\treturn permutations;\r\n\t\t}\r\n\r\n\t\tchar first = str.charAt(0);\r\n\t\tString remainingString = str.substring(1);\r\n\t\tHashSet<String> words = getAllPermutations(remainingString);\r\n\t\tfor (String word : words) {\r\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\r\n\t\t\t\tString prefix = word.substring(0, i);\r\n\t\t\t\tString suffix = word.substring(i);\r\n\t\t\t\tpermutations.add(prefix + first + suffix);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}",
"public static String getSubstring(String s, int i, int j){\n if(i>j){\n throw new IllegalArgumentException(\"The second integer cannot be smaller than the first integer\");\n }\n else{\n String subString = \"\";\n for(int n = i; n<=j; n++){\n subString += s.charAt(n);\n }\n return subString; \n }\n }",
"public int minInsertions(String s) {\n int n = s.length();\n //Initialising dp array. It will represent the longest common subsequence between first i characters of first string and first j characters of second string\n int[][] dp = new int[n+1][n+1];\n \n //Looping through start and end of the string. Thus dp will consider the string from start and string from end and then store the ans\n for (int i = 0; i < n; ++i){\n for (int j = 0; j < n; ++j){\n \n //If both the characters are equal, then we increment the previous dp value otherwise we take max of the next character considered for both strings\n dp[i + 1][j + 1] = s.charAt(i) == s.charAt(n - 1 - j) ? dp[i][j] + 1 : Math.max(dp[i][j + 1], dp[i + 1][j]);\n } \n }\n //Returning ans\n return n - dp[n][n];\n }",
"public static boolean isSubsequence(String s, String t) {\n if (s.length() == 0)\n return true;\n else if (t.length() == 0)\n return false;\n\n int indexS = 0;\n int indexT = 0;\n\n // Step2 - Traverse String t\n while (indexT < t.length() && indexS < s.length()) {\n char currentT = t.charAt(indexT);\n char currentS = s.charAt(indexS);\n System.out.println(\"currentS:\" + currentS + \" currentT: \" + currentT );\n\n // Step3 - If match, increment indexS\n if (currentS == currentT) {\n ++indexS;\n }\n\n ++indexT;\n }\n\n return indexS == s.length(); // indexS HAS to the same length as String s for a match\n }",
"static long repeatedString(String s, long n) {\n \t\n \tchar first;\n \tfirst = s.charAt(0);\n \t\n \tint count = 0;\n \tlong[] fill = new long[n];\n \t\n \tfor(int i=1; i<n; i++) {\n \t\tif(first == s.charAt(i)) count++;\n \t}\n \t\n \tlong result = ((n / s.length()) * count) + (n % s.length());\n \treturn result;\n\n }",
"private void dfs(int start, int end, String str, String s, List<Integer>[] cache, LinkedList<String> res) {\n\t\tif (start == -1) {\n\t\t\tres.add(str.substring(1));\n\t\t} else {\n\t\t\tfor (int n : cache[start]) {\n\t\t\t\tdfs(n, start, \" \" + s.substring(start, end) + str, s, cache, res);\n\t\t\t}\n\t\t}\n\t}",
"public int longestCommonSubsequence(String text1, String text2) {\n int[][] dp = new int[text1.length()][text2.length()];\n\n // init the first column\n for (int i = 0; i < text1.length(); i++) {\n // if they match characters\n if (text1.charAt(i) == text2.charAt(0)) {\n dp[i][0] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[i - 1][0] > dp[i][0]) {\n dp[i][0] = dp[i - 1][0];\n }\n }\n // init the first row\n for (int i = 0; i < text2.length(); i++) {\n // if they match characters\n if (text1.charAt(0) == text2.charAt(i)) {\n dp[0][i] = 1;\n }\n // check if the the subseq length is larger from the substring at 0...i-1\n if (i > 0 && dp[0][i - 1] > dp[0][i]) {\n dp[0][i] = dp[0][i - 1];\n }\n }\n\n // use the results from the previous DP indexes for the text 1 and 2 subsequences\n // to compare which subsequence we should use\n for (int i = 1; i < dp.length; i++) {\n for (int j = 1; j < dp[i].length; j++) {\n // check if we found a character match\n if (text1.charAt(i) == text2.charAt(j)) {\n // if so, use the LCS from the i-1,j-1 index to hold the new length\n dp[i][j] = dp[i - 1][j - 1] + 1;\n } else if (dp[i - 1][j] > dp[i][j - 1]) {\n // if there was no character match, use the\n // LCS length from the column before or row above\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i][j - 1];\n }\n }\n }\n // return the result from dp[text1.length()-1][text2.length()-1]\n // as it holds the longest subseqence\n return dp[text1.length()-1][text2.length()-1];\n }",
"private static int longestPalindromicSubsequence(String str1) {\n\t\tStringBuilder str2 = new StringBuilder(str1);\n\t\tstr2.reverse().toString();\n\t\tString strtemp = str2.toString(); \n\t\treturn LCSDP(str1,strtemp,str1.length(),str1.length());\n\t}",
"public static void findLongestSubPalindramic(String s) {\n\t\tchar[] arr = s.toCharArray();\n\t\tint begin = -1;\n\t\tint end;\n\t\tint temp_begin;\n\t\tint maxLength = -1;\n\t\tboolean[][] table = new boolean[1000][1000];\n\n\t\tfor (int i = 0; i < table.length; i++) {\n\t\t\ttable[i][i] = true;\n\t\t}\n\t\tfor (int i = 0; i < s.length() - 1; i++) {\n\t\t\tif (arr[i] == arr[i + 1]) {\n\t\t\t\ttable[i][i + 1] = true;\n\t\t\t\tbegin = i;\n\t\t\t\tmaxLength = 2;\n\t\t\t}\n\t\t}\n\t\tfor (int len = 2; len < arr.length; len++) {\n\t\t\tfor (int i = 0; i < arr.length - len + 1; i++) {\n\t\t\t\tint j = len + i - 1;\n\t\t\t\tif (table[i + 1][j - 1] && (arr[i] == arr[j])) {\n\t\t\t\t\ttable[i][j] = true;\n\t\t\t\t\tif (j - i + 1 > maxLength) {\n\t\t\t\t\t\tbegin = i;\n\t\t\t\t\t\tmaxLength = maxLength + 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"begin:\" + begin + \", length:\" + maxLength);\n\t}",
"public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}",
"public static LinkedList<String> findSubsequence(String givenWord, String words[]){\n LinkedList<String> subSeqList = new LinkedList<String>();\n for(String word : words){\n int givenIndex = 0;\n boolean isSubsequence= true;\n for(int i = 0;i < word.length(); i++){\n boolean foundLetter = false;\n while(!foundLetter && givenIndex < givenWord.length())\n if (word.charAt(i) == givenWord.charAt(givenIndex)){\n givenIndex++;\n foundLetter = true;\n }\n else {\n givenIndex++;\n }\n if(!foundLetter){\n isSubsequence = false;\n }\n }\n if(isSubsequence){\n subSeqList.add(word);\n }\n }\n return subSeqList;\n }",
"public void testSubSequence() {\n System.out.println(\"subSequence\");\n int start = 0;\n int end = 0;\n BufferedCharSequence instance = null;\n CharSequence expResult = null;\n CharSequence result = instance.subSequence(start, end);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public List<String> decode(String s) {\r\n int i = 0, n = s.length();\r\n List<String> output = new ArrayList();\r\n while (i < n) {\r\n int length = stringToInt(s.substring(i, i + 4));\r\n i += 4;\r\n output.add(s.substring(i, i + length));\r\n i += length;\r\n }\r\n return output;\r\n }",
"private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }",
"public static void permutation(String str) { \n permutation(\"\", str); \n}",
"private static ArrayList<Integer> findAll(String input, String subString) {\n int lastIndex = 0;\n ArrayList<Integer> indices = new ArrayList<Integer>();\n while (lastIndex != -1) {\n\n lastIndex = input.indexOf(subString, lastIndex);\n\n if (lastIndex != -1) {\n indices.add(lastIndex);\n lastIndex += subString.length();\n }\n }\n return indices;\n }"
]
| [
"0.7005486",
"0.68961304",
"0.6754325",
"0.6683946",
"0.6628094",
"0.651601",
"0.6465333",
"0.6345887",
"0.6335364",
"0.6332789",
"0.629756",
"0.62834364",
"0.62548655",
"0.62508696",
"0.6147099",
"0.60892355",
"0.6060913",
"0.60541743",
"0.6049438",
"0.60328525",
"0.5990584",
"0.5985448",
"0.59438556",
"0.593784",
"0.5924342",
"0.59131444",
"0.59081507",
"0.5888208",
"0.58834785",
"0.58588356",
"0.58581483",
"0.58556813",
"0.5844597",
"0.58221716",
"0.58153665",
"0.58091366",
"0.57945275",
"0.57864416",
"0.5781525",
"0.57815087",
"0.5780285",
"0.57616836",
"0.57469404",
"0.57461417",
"0.57440966",
"0.5736715",
"0.5726553",
"0.5690848",
"0.5690658",
"0.56894916",
"0.5687888",
"0.56866467",
"0.5664791",
"0.5650763",
"0.56472653",
"0.5642567",
"0.5636066",
"0.5634412",
"0.5625591",
"0.5608439",
"0.5608166",
"0.55993885",
"0.5599129",
"0.5592501",
"0.5582507",
"0.5568823",
"0.55470055",
"0.5538659",
"0.5519132",
"0.5517061",
"0.5513492",
"0.55101615",
"0.5506265",
"0.5506225",
"0.550416",
"0.5504066",
"0.5501085",
"0.5497349",
"0.5496771",
"0.5493978",
"0.5492279",
"0.5491786",
"0.5490209",
"0.5483423",
"0.5482968",
"0.5475289",
"0.5473312",
"0.5468317",
"0.54662156",
"0.54611623",
"0.5460471",
"0.54565936",
"0.54514116",
"0.5449052",
"0.5445141",
"0.543937",
"0.54376847",
"0.543598",
"0.543409",
"0.54339033"
]
| 0.7615498 | 0 |
TODO Autogenerated method stub | public static void main(String[] args)
{
try
{
Scanner inFile = new Scanner(new FileReader(args[0]));
BufferedWriter outFile = new BufferedWriter(new FileWriter(args[1]));
if(args.length < 1)
{
System.out.println("Error to open file");
System.exit(1);
}
int numNodes = inFile.nextInt();
graphColoring graphColor = new graphColoring(numNodes);
int i, j;
while(inFile.hasNext())
{
i = inFile.nextInt();
j = inFile.nextInt();
graphColor.loadMatrix(i, j);
Node newNode = new Node(i, j);
}
graphColor.constructNodeList();
graphColor.printNodeList(outFile);
graphColor.newColor = 0;
graphColor.printMatrix(outFile);
while(graphColor.findUncolorNode())
{
graphColor.newColor++;
Node current = graphColor.listHead.next;
while(current != null)
{
if(current.color == 0 && graphColor.checkAdjacent(current.ID, graphColor.newColor) == 0)
{
graphColor.adjacencyMatrix[current.ID][current.ID] = graphColor.newColor;
current.color = graphColor.newColor;
current = current.next;
}
else
{
current = current.next;
}
}
}
outFile.write("Number of colors used is: " + graphColor.newColor + "\n");
graphColor.printNodeList(outFile);
graphColor.printMatrix(outFile);
inFile.close();
outFile.close();
}
catch(Exception e)
{
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
Constructor of class Card takes an int as a value for ranks and suit | public Card (int aRank , int aSuit)
{
this.ranks = aRank;
this.suits = aSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Card(int cardRank, int cardSuit){\n this.rank = cardRank;\n this.suit = cardSuit;\n }",
"public Card (Rank rank, Suit suit)\n {\n this.rank = rank;\n this.suit = suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"public Card(){\n suit = 0;\n rank = 0;\n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public Card(int s, int r)\n {\n suit = s;\n rank = r;\n }",
"public Card(int s, int r){\n suit = s;\n rank = r;\n }",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(int suit, int rank) {\n\n // pre-condition: suit and rank are valid\n \n this.suit = suit;\n this.rank = rank;\n }",
"public Card(short rank, short suit){\r\n this.rank = rank;\r\n this.suit = suit;\r\n }",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"public Card (Suit s, int v) {\n suit = s;\n val = v;\n }",
"public Card(String suit, String rank){\r\n\t\t\t// assume input is valid!\r\n\t\t\tthis.suit = suit; \r\n\t\t\tthis.rank = rank;\r\n\t\t\tthis.rankValue = new HashMap<String,Integer>(15);\r\n\t\t\tfor(int r = 2; r < RANKS.length; r+=1){\r\n\t\t\t\tthis.rankValue.put(RANKS[r], r);\r\n\t\t\t}\r\n\t }",
"public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }",
"public Card(Rank rank, Suit suit)\n\t{\n\t\tthis.rank = rank;\n\t\tthis.suit = suit;\n\t}",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }",
"public Card(Suit suit, Value value){\n this.value = value;\n this.suit = suit;\n }",
"public Card(){\n\t\trank = (int) (Math.random()*(13-1));\n\t\tsuit = (int) (Math.random()*4);\n\t}",
"public Card(String s, int c)\r\n { suit = s;\r\n count = c;\r\n }",
"public Card(Rank rank, Suit suit) {\r\n\t\tthis.rank = rank;\r\n\t\tthis.suit = suit;\r\n\t\tfaceUp = true;\r\n\t}",
"public Card(int value, int suit) {\n if (value <= 13 && value >= 1 && suit <= 4 && suit >= 1) {\n this.faceUp = false;\n this.value = value;\n this.suit = suit;\n if (suit == 1 || suit == 4) {\n this.color = CardColor.BLACK;\n } else {\n this.color = CardColor.RED;\n }\n } else {\n throw new IllegalArgumentException(\"Invalid Card\");\n }\n }",
"public BlackjackCard(Suit suit, int value){\r\n\t\tthis.suit = suit;\r\n\t\tthis.value = value;\r\n\t}",
"public Card(char value, Suit suit) {\n this.set(value, suit);\n }",
"public Card(Rank r, Suit s){\n\t\tthis.rank = r;\n\t\tthis.suit = s;\t\t\n\t}",
"public CardDetail(String suit, String rank){\r\n this.suit = suit;\r\n this.rank = rank;\r\n }",
"public Card(int value, int suit) {\n if (value < 2 || value > 14 || suit < 0 || suit > 3) {\n throw new IllegalArgumentException(\"invalid card\");\n }\n this.value = value;\n this.suit = suit;\n }",
"public Card(int type, int suit) {\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[type];\n this.suit = allSuits[suit];\n }",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(CardRank rank, CardSuit suit) {\n\t\tthis.rank = rank;\n\t\tthis.suit = suit;\n\t}",
"public Card(int s, int v){\n\t\t//make a card with suit s and value v\n\t\tsuit = s;\n\t\tvalue = v; \n\t\t\n\t}",
"public Card(char s, int r) {\n this.suit = s;\n this.rank = r;\n }",
"public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }",
"public Card(Suit suit, int number) {\n\t\tthis.suit = suit;\n\t\tthis.number = number;\n\t\tswitch(number) {\n\t\t\t//place in CardType\n\t\t\tcase 1:\n\t\t\t\ttype = \"Ace\";\n\t\t\t\tsetNumber(14);\n\t\t\t\tbreak;\n\t\t\tcase 2:\t\t\t\t\n\t\t\t\tmagic = Magic.startAgain;\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tmagic = Magic.seeThrough;\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tmagic = Magic.missAGo;\n\t\t\t\tbreak;\n\t\t\tcase 9: \n\t\t\t\tmagic = Magic.playBelow;\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tmagic = Magic.burn;\n\t\t\tcase 11:\n\t\t\t\ttype = \"Jack\";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\ttype = \"Queen\";\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\ttype = \"King\";\n\t\t\t\tbreak;\n\t\t}\n\t\tif(number > 1 && number < 11) {\n\t\t\ttype = Integer.toString(number);\n\t\t}\n\t}",
"public Card(String s, String r) {\n\t\tsuit=s;\n\t\trank=r;\n\t\n\t\tif(rank.equalsIgnoreCase(\"Jack\")||rank.equalsIgnoreCase(\"Queen\")||rank.equalsIgnoreCase(\"King\")||rank.equalsIgnoreCase(\"10\")) {\n\t\t\tscore=10;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"2\")){\n\t\t\tscore=2;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"3\")) {\n\t\t\tscore=3;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"4\")) {\n\t\t\tscore=4;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"5\")) {\n\t\t\tscore=5;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"6\")){\n\t\t\tscore=6;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"7\")) {\n\t\t\tscore=7;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"8\")){\n\t\t\tscore=8;\n\t\t}\n\t\telse if(rank.equalsIgnoreCase(\"9\")) {\n\t\t\tscore=9;\n\t\t}\n\t\telse {\n\t\t\tscore=1;\n\t\t\t}\n\t\t\t\n\t}",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public Card(int cType, char suit, int value){\n this.cardType = cType;\n this.cardRank = value;\n this.cardSuit = suit;\n scaleCard(this.cardType);\n if(cType == 1) {\n cardId = getId(suit, value);\n }\n this.isClick = false;\n this.inValidGroup = false;\n }",
"public Card(int rank, int suit)\r\n throws InvalidRankException,\r\n InvalidSuitException {\r\n if (!isValidRank(rank)) {\r\n throw new InvalidRankException(rank);\r\n }\r\n\r\n if (!isValidSuit(suit)) {\r\n throw new InvalidSuitException(suit);\r\n }\r\n\r\n this.rank = rank;\r\n this.suit = suit;\r\n }",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public Card() { this(12, 3); }",
"public Card(String cardRank, String cardSuit, int cardPointValue) {\r\n\t\t/* *** TO BE IMPLEMENTED IN ACTIVITY 1 *** */\r\n rank = cardRank;\r\n suit = cardSuit;\r\n pointValue = cardPointValue;\r\n \r\n\t}",
"public PokerHand(int ranking){\r\n this.ranking = ranking;\r\n }",
"public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }",
"public Card(int rank, int suit) {\n this.rank = rank;\n this.suit = suit;\n\n String fName = \"images\" + File.separator + this.toString().toLowerCase() + \".gif\";\n try {\n this.img = javax.imageio.ImageIO.read(new File(fName));\n }\n catch (java.io.IOException ioe) {\n System.out.println(fName + \" not found.\");\n }\n }",
"public Card(String cardFace, String cardSuit) {\r\n this.face = cardFace; // initialize face of card\r\n this.suit = cardSuit; // initialize suit of card\r\n }",
"public Card() {\n var random = new SecureRandom();\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[random.nextInt(10)];\n this.suit = allSuits[random.nextInt(4)];\n }",
"public Card(Rank pRank, Suit pSuit)\n {\n assert pRank != null && pSuit != null;\n aRank = pRank;\n aSuit = pSuit;\n }",
"public Card(int suitInt, int valueA)\r\n {\r\n \r\n if( suitInt == 1)\r\n suit = \"SPADE\";\r\n if(suitInt == 2)\r\n suit = \"CLUB\";\r\n if(suitInt == 3)\r\n suit = \"HEART\";\r\n if(suitInt == 4)\r\n suit = \"DIAMOND\";\r\n \r\n card = CARDS[valueA-1];\r\n try{\r\n image = ImageIO.read(new File(card+\"_\"+suit+\".jpg\"));\r\n }\r\n catch(Exception e){}\r\n \r\n if(valueA >= 11)\r\n value = 10;\r\n else\r\n value = valueA;\r\n if(valueA == 1)\r\n value = 11;\r\n }",
"private Card(Color c, Rank r) {\n this.nbCard = pack(c,r);\n }",
"public Card(int deckValue){\n\t\t\n\t\t//Guard against an invalid state:\n\t\tif((deckValue < 1) || (deckValue > 52))\n\t\t{\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tthis.deckValue = deckValue;\n\t\tfaceValue = toFaceValue(deckValue);\n\t\tsuitValue = toSuitValue(deckValue);\n\t}",
"public Card() {\n\t\tthis.suit = \" \";\n this.rank = 0;\n this.face = \" \";\n this.color = \" \";\n\t}",
"public Card(int order) {\n if (order <= 13) {\n this.suit = \"Clubs\";\n } else if (order > 13 && order <= 26) {\n this.suit = \"Diamonds\";\n } else if (order > 26 && order <= 39) {\n this.suit = \"Hearts\";\n } else if (order > 39 && order <= 52) {\n this.suit = \"Spades\";\n } else {\n System.out.println(\"Not a valid input\");\n return;\n }\n\n this.value = FACECARDS[(order) % 13];\n }",
"public Card(int v, Suit s, String special) {\n this.value = v;\n this.suit = s;\n this.specialTypeOfCard = special;\n\n }",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public Shoe(Card.Suit suit, int numCards)\n \n { \n cardAry = new Card[numCards];\n\n int numSuits = numCards / 13;\n\n for(int deckIdx = 0; deckIdx<= numSuits; deckIdx++)\n {\n int cardsInSuit;\n if(deckIdx == numSuits)\n cardsInSuit = numCards % 13;\n else\n cardsInSuit = 13;\n for(int rankIdx = 1; rankIdx<=cardsInSuit; rankIdx++)\n {\n cardAry[deckIdx*13 + rankIdx-1] = new Card(suit, rankIdx);\n }\n }\n\n this.numDecks = 0;\n this.numCards = numCards;\n }",
"public Deck()\n {\n deck = new Stack<Card>();\n /* Increments through each suit, and then for each suit through each rank,\n * and pushes a\n * new card with the corresponding information onto the deck.\n */\n /* The above comment did not show up in the checkstyle. */\n for (Suit suit : Suit.values())\n {\n /* Increments through each card value. */\n for (CardValue value : CardValue.values())\n {\n deck.push(new Card(suit, value));\n }\n }\n Collections.shuffle(deck);\n }",
"public Card() {\n this(new Random().nextInt(54));\n establishHierarchicalValue();\n }",
"public Cards(String cardFace, String cardSuit) {\n\t\t// face of the card\n\t\tface = cardFace;\n\t\t// suit of the card\n\t\tsuit = cardSuit;\n\t}",
"public Card(String[] card) {\r\n\t\tthis.deckIndex = Integer.parseInt(card[0]);\r\n\t\tthis.suit = (char) Integer.parseInt(card[1]);\r\n\t\tthis.name = (char) Integer.parseInt(card[2]);\r\n\t\tthis.ordinal = Integer.parseInt(card[3]);\r\n\t\tthis.value = Integer.parseInt(card[4]);\r\n\t}",
"public CardChecker(ArrayList<CardRank> ranks, ArrayList<CardSuit> suits){\n this.suits = suits;\n this.ranks = ranks;\n }",
"public Card(String faceName, String suit, int faceValue) {\n\n setFaceName(faceName);\n setSuit(suit);\n setFaceValue(faceValue);\n }",
"public BlackjackHand() {\n super(0);\n aceCount = 0;\n cards = new ArrayList<>();\n }",
"public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }",
"public KCard (Card.Color c, int value) {\n this.color = c;\n this.value = value;\n }",
"public CardSwitch(Rank r, Suit s){\n\t\t// constructor to create card for the game Switch\n\n\t}",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"public Card(String s, int r) {\n\t\tif (s.equals(\"S\") || s.equals(\"D\")) {\n\t\t\tsuit = s;\n\t\t}\n\t\tif (1 <= r && r <= 12) {\n\t\t\trank = r;\n\t\t}\n\t\tshow[0] = false;\n\t\tshow[1] = false;\n\t\tshow[2] = false;\n\t\tshow[3] = false;\n\t}",
"public poker_class ()\n\t{\n\t face = \"Two\";\n\t suit = \"Clubs\";\n\t}",
"public Card(int x) {\n\t\tid = x;\n\t}",
"public Card(String faceName, String suit) {\n setFaceName(faceName);\n setSuit(suit);\n }",
"public Deck(){\n\t\tcount = 51;\n\t\tcards = new Card[52];\n\t\trand = new Random();\n\t\tfor(Suit suit : Suit.values()){\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\tcards[suit.ordinal()*13 + i - 2] = new Card(suit,i);\n\t\t\t}\n\t\t}\n\t}",
"public Card (char inSuit, int inFace) {\r\n\t\tif (!setSuit(inSuit)) {\r\n\t\t\tSystem.out.println(\"Card class reports incorrect suit: \" + inSuit);\r\n\t\t\tSystem.out.println(\"Setting suit to: \" + DEFAULT_SUIT);\r\n\t\t}\r\n\t\t\r\n\t\tif (!setFace(inFace)) {\r\n\t\t\tSystem.out.println(\"Card class reports incorrect face: \" + inFace);\r\n\t\t\tSystem.out.println(\"Setting face to: \" + DEFAULT_FACE);\r\n\t\t}\r\n\t\t\r\n\t\t// not a wildcard by default\r\n\t\twildcard = false;\r\n\t}",
"public Deck() {\n cards = new Card[52];\n size = 0;\n for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {\n for (int rank = Card.ACE; rank <= Card.KING; rank++) {\n cards[size] = new Card(rank, suit);\n size += 1;\n }\n }\n }",
"public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }",
"public Card(boolean vis, int suit, Integer... vals) {\r\n\t\tvalues = Arrays.asList(vals);\r\n\t\tthis.suit = suit;\r\n\t\tthis.visible = vis;\r\n\t}",
"Cards(String cardName, String cardDes, int puntosHabilidad) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = puntosHabilidad;\n }",
"Cards(String cardName, String cardDes, int ataque, int defensa) {\n this.nombre = cardName;\n this.descripcion = cardDes;\n this.puntos = ataque;\n this.def = defensa;\n }",
"public CardGame( int handSize, int copiesPerDeck ){\n this.handOne = new Hand(handSize);\n this.handTwo = new Hand(handSize);\n this.gameDeck = new Deck(copiesPerDeck);\n this.playerScore = 0;\n this.oppoScore = 0;\n }",
"public Hand(Shuffleable cards) {\n this.setLayout(new BorderLayout());\n this.cards = cards;\n this.busted = false; //Player not busted by default\n this.value = 0; //Value starts at 0\n values.add(0);\n nameLabel = new JLabel(\"\", SwingConstants.LEFT); //Initializes name label\n valueLabel = new JLabel(\"Value: \" + value, SwingConstants.LEFT); //Initilizes value label\n cardPane = new JPanel(new FlowLayout());\n cardPane.setBackground(Color.GREEN); //Background color green\n this.add(nameLabel, BorderLayout.NORTH);\n this.add(valueLabel, BorderLayout.SOUTH);\n this.add(cardPane, BorderLayout.CENTER);\n }",
"public Card(Suit suit, Face face) {\n\t\tthis.suit = suit;\n\t\tthis.face = face;\n\t}",
"private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }",
"public Card () {}",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }",
"public Card(int value2, int suit2, String path2) {\r\n\t\tif (suit2 != SPADES && suit2 != HEARTS && suit2 != DIAMONDS && suit2 != CLUBS)\r\n\t\t\tthrow new IllegalArgumentException(\"Illegal playing card suit\");\r\n\t\tif (value2 < 1 || value2 > 13)\r\n\t\t\tthrow new IllegalArgumentException(\"Illegal playing card value\");\r\n\t\tvalue = value2;\r\n\t\tsuit = suit2;\r\n\t\tpath = path2;\r\n\t}",
"public Hand() {\n cards = new int[16];\n numSoft = 0;\n score = 0;\n numCards = 0;\n }",
"public Card(int cardNumber, JButton jButton) {//upon creation;\n this.cardNumber = cardNumber;//set the card number of this card;\n this.jButton = jButton;//set the JButton of this card;\n// System.out.println(cardNumber);//SOUT the card numbers;\n }",
"public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }",
"public GCardImage(int rank, int suit) {\n\t\t//must invoke super constructor first, so create a temporary 1x1 image, we will reset it momentarily\n super(new int[1][1]);\n \n if (! isCardsImageLoaded) {\n \t//get the image of the entire deck from the cards.png resource and store in a static variable\n \t//update isCardsImageLoaded accordingly\n cardsGImage = new GImage(new int[1][1]);\n InputStream cardsInputStream = this.getClass().getResourceAsStream(\"cards.png\");\n try {\n \tImage cardsImage = ImageIO.read(cardsInputStream);\n \tcardsGImage.setImage(cardsImage);\n \tisCardsImageLoaded = true;\n }\n catch (IOException e) {\n \tSystem.out.println(\"There was a problem loading the cards.png image\");\n }\n }\n \n //reset the image so the correct card is displayed\n this.displayCard(rank, suit);\n\t}",
"public HumanPlayer(int num){\r\n super(num);\r\n getHand().drawCards(7);\r\n }",
"public Card(String inFaceValue, int inTrueValue, String inSuit, ImageIcon inPicture)\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value\n\tfaceValue = inFaceValue;\n\n\t// Set true value\n\ttrueValue = inTrueValue;\n\n\t// Set suit\n\tsuit = inSuit;\n\n\t// Set picture\n\tpicture = inPicture;\n\n }",
"Card(){\t \n}",
"public SpadeCard(int value)\n\t{\n\t\tsuper(value);\n\t\tweight = 0;\n\t\t\n\t\tswitch(value)\n\t\t{\n\t\tcase 0:\n\t\t\tpicPath = \"pictures/cards_PNG/3_of_spades.png\";\n\t\t\tbreak;\t\t\n\t\tcase 1:\n\t\t\tpicPath = \"pictures/cards_PNG/4_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tpicPath = \"pictures/cards_PNG/5_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tpicPath = \"pictures/cards_PNG/6_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tpicPath = \"pictures/cards_PNG/7_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tpicPath = \"pictures/cards_PNG/8_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tpicPath = \"pictures/cards_PNG/9_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tpicPath = \"pictures/cards_PNG/10_of_spades.png\";\n\t\t\tbreak;\n\t\t\n\t\t\t\n\t\tcase 8:\n\t\t\tpicPath = \"pictures/cards_PNG/jack_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tpicPath = \"pictures/cards_PNG/queen_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tpicPath = \"pictures/cards_PNG/king_of_spades.png\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tpicPath = \"pictures/cards_PNG/ace_of_spades.png\";\n\t\t\tbreak;\n\t\t\t\n\t\tcase 12:\n\t\t\tpicPath = \"pictures/cards_PNG/2_of_spades.png\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tpicPath = \"pictures/cards_PNG/black_joker.png\";\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\ttry {\n\t\t\timg = ImageIO.read(new File(picPath));\n\t\t}catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public Card(String name) {\n setValue(name);\n }",
"public CardGame(){\n this.handOne = new Hand();\n this.handTwo = new Hand();\n this.gameDeck = new Deck();\n this.playerScore = 0;\n this.oppoScore = 0;\n }",
"@Override\n public void createDeck(){\n for (char suit:standardSuits) {\n for (Map.Entry<Character, Integer> item:deckCards.entrySet()) {\n Card card = new Card(item.getKey(),item.getValue(),suit);\n deckOfCards.add(card);\n }\n }\n }",
"public Card()\r\n {\r\n rand = new Random();\r\n value = rand.nextInt(28); \r\n // Assigning value\r\n if (value >= 14) // Check if value is greater than 14 then value = value - 14;\r\n value -= 14;\r\n // Assigning color\r\n rand = new Random();\r\n // Switch statement for assigning different colors\r\n switch(rand.nextInt(4) )\r\n {\r\n case 0: color = \"Red\"; \r\n break;\r\n case 1: color = \"Green\"; \r\n break;\r\n case 2: color = \"Blue\"; \r\n break;\r\n case 3: color = \"Yellow\"; \r\n break;\r\n }\r\n // If the card is a wild card and value is greater than or equal to 13 then none value is assigned to color variable\r\n if (value >= 13)\r\n color = \"none\";\r\n }",
"public Deck( ) {\r\n int ordinal;\r\n alalSets = new ArrayList<>();\r\n \r\n // load the cards\r\n for ( ordinal = 1; ordinal <= 13; ordinal++) {\r\n for( int iCount = 1; iCount <= 4; iCount++) {\r\n // the deck adds one set which contains one card\r\n \r\n ArrayList<Card> redCardSet = new ArrayList<>();\r\n Card redCard = new Card();\r\n redCard.value = ordinal;\r\n redCard.color = Enums.RED;\r\n redCardSet.add(redCard); // add card to set\r\n alalSets.add( redCardSet ); // add set to deck\r\n\r\n ArrayList<Card> blackCardSet = new ArrayList<>();\r\n Card blackCard = new Card();\r\n blackCard.value = ordinal;\r\n blackCard.color = Enums.BLACK;\r\n blackCardSet.add(blackCard);\r\n alalSets.add( blackCardSet );\r\n }\r\n }\r\n }"
]
| [
"0.84860814",
"0.8480903",
"0.84568715",
"0.84008217",
"0.83987087",
"0.8398255",
"0.83046645",
"0.8297313",
"0.82968086",
"0.82508934",
"0.8226564",
"0.8200651",
"0.819904",
"0.8146524",
"0.813476",
"0.81168145",
"0.80926496",
"0.79648274",
"0.7958177",
"0.7947673",
"0.7913094",
"0.7840168",
"0.78386414",
"0.78302306",
"0.7744228",
"0.7734955",
"0.77194935",
"0.77047426",
"0.76874876",
"0.76500547",
"0.75945127",
"0.75851923",
"0.74886525",
"0.7427294",
"0.73907185",
"0.73704773",
"0.73564464",
"0.732802",
"0.73212767",
"0.7306287",
"0.73030555",
"0.72993106",
"0.72765917",
"0.72727746",
"0.72399074",
"0.71998566",
"0.71700627",
"0.7157937",
"0.7139186",
"0.7085661",
"0.70838046",
"0.70822054",
"0.70288104",
"0.70000553",
"0.69917643",
"0.68987995",
"0.68707454",
"0.6861239",
"0.6819888",
"0.6808231",
"0.6804348",
"0.67830604",
"0.67737323",
"0.67725736",
"0.6766949",
"0.675771",
"0.67533886",
"0.67468405",
"0.67411286",
"0.6738814",
"0.67323256",
"0.6716859",
"0.6703122",
"0.667418",
"0.6646242",
"0.6631432",
"0.6605793",
"0.6604549",
"0.6583238",
"0.65399206",
"0.6532824",
"0.65181607",
"0.6513148",
"0.648816",
"0.6480548",
"0.64714545",
"0.6464771",
"0.6461475",
"0.6452462",
"0.6445198",
"0.64395374",
"0.64212805",
"0.64002496",
"0.6375833",
"0.6371551",
"0.6366012",
"0.6361245",
"0.63501114",
"0.63311374",
"0.63270056"
]
| 0.85542667 | 0 |
This will return the rank f the receiver as value | public int getRank ()
{
return this.ranks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getRank();",
"public int getRank(){\n return Value;\n }",
"public int getRank();",
"public int getRank();",
"public Integer getRankValue() {\r\n\t\treturn rank;\r\n\t}",
"public int rank() { return this.rank; }",
"public Integer getRank(){\r\n\t\treturn rank;\r\n\t}",
"public int getRank() {\r\n return rank;\r\n }",
"public int getRank()\n {\n return rank;\n }",
"public int getRank()\n {\n return rank;\n }",
"long getToRank();",
"public byte getRank() {\n return rank;\n }",
"public int getRank()\n\t{\n\t\treturn rank;\n\t}",
"public int getRank(){\r\n return this.rank;\r\n }",
"public int getRank()\r\n {\r\n return this.rank;\r\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0])){ return -1; } // \"no card\"\r\n\t\treturn rankValue.get(this.rank);\r\n\t}",
"public long getRank() {\n return rank_;\n }",
"public Integer getRank() {\n return this.rank;\n }",
"@Override\n public int getRank() {\n return rank;\n }",
"public int getRank(){\n return rank;\n }",
"public int getRank(){\n return this.rank;\n }",
"public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}",
"public RankType getRank() {\n return rank;\n }",
"public long getRank() {\n return rank_;\n }",
"public int Rank();",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public Integer getRank() {\r\n\t\treturn this.rank;\r\n\t}",
"public Rank getRank()\n\t{\n\t\treturn rank;\n\t}",
"public Vector getRank() {\n return rank;\n }",
"public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}",
"public int getrank() {\n\t\treturn this.rank;\n\t}",
"public String rank() {\r\n return rank;\r\n }",
"public int getRank() {\n validify();\n return Client.INSTANCE.pieceGetRank(ptr);\n }",
"public Rank getRank()\n {\n return rank;\n }",
"long getFromRank();",
"public int value() {\n return this.intRank;\n }",
"public String getRank() {\r\n return rank;\r\n }",
"public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}",
"public Rank rank(){\n return PackedCard.rank(this.nbCard);\n }",
"public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}",
"public String getRank()\n {\n return _rank;\n }",
"public long getToRank() {\n return toRank_;\n }",
"public String getRank() {\n return rank;\n }",
"public int returnRank() {\n return this.data.returnRank();\n }",
"public String getRank() {\n\t\treturn rank;\n\t}",
"public long getToRank() {\n return toRank_;\n }",
"public Integer rank() {\n return data.getInt(FhirPropertyNames.PROPERTY_RANK);\n }",
"int getRanking();",
"public int getRanking() {\n return ranking_;\n }",
"public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }",
"public Card.Rank rank() {\n return PackedCard.rank(packedCard);\n }",
"public int getIdentifiableRank(Identifiable identifiable) {\n\t\tString key = identifiable.getURI().lastSegment();\n\t\tif(rankCache.containsKey(key)) \n\t\t\treturn rankCache.get(key);\n\t\t\n\t\tActivator.logError(\"Unable to find server rank for node \"+key+\". Assigning to first server\", new Exception());\n\t\treturn 0;\n\t\t// Random\n//\t\tint hash = identifiable.getURI().toString().hashCode();\n//\t\thash = Math.abs(hash);\n//\t\tint node = hash % getNumNodes();\n//\t\treturn node;\n\n\t\t// USA Mexico\n//\t\tif((identifiable.getURI().lastSegment().startsWith(\"MX\") || identifiable.getURI().lastSegment().startsWith(\"MEX\"))) return 1; \n//\t\treturn 0; // everything else is on the first node.\n\t}",
"public void rank(){\n\n\t}",
"public long getFromRank() {\n return fromRank_;\n }",
"public int getRanking() {\n return ranking_;\n }",
"public int rank(K key);",
"public long getFromRank() {\n return fromRank_;\n }",
"private int getRank(DiceModel playerToRank) {\n\t\tint rank = 1;\n\t\tint ph; // placeholder\n\t\tint d1 = playerToRank.getDie1();\n\t\tint d2 = playerToRank.getDie2();\n\t\tint d3 = playerToRank.getDie3();\n\t\t\n\t\t// sorting them in ascending order\n\t\t// switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t} // switch the 3rd number into second position if it is bigger\n\t\tif (d3 > d2) {\n\t\t\tph = d2;\n\t\t\td2 = d3;\n\t\t\td3 = ph;\n\t\t} // switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t}\n\t\t\n\t\t// now to get their ranking\n\t\t// check for 4,2,1\n\t\tif (d1 == 4 && d2 == 2 && d3 == 1) {\n\t\t\trank = 4;\n\t\t} else if (d1 == d2 && d1 == d3) { // checks for triples\n\t\t\trank = 3;\n\t\t} else if ((d1 == d2 && d1 != d3) || d2 == d3) { // pairs\n\t\t\trank = 2;\n\t\t} else {\n\t\t\trank = 1;\n\t\t}\n\t\t\n\t\treturn rank;\n\t}",
"public LSPRanking getRanking () {\r\n return ranking;\r\n }",
"public String getRankString(){ return this.rank; }",
"public Ranking getRanking() {\n return ranking;\n }",
"public static int GetRankNumber(RankingSystem rank) {\n\t\tif (rank == RankingSystem.Strong) {\n\t\t\treturn 5;\n\t\t}\n\t\telse if (rank == RankingSystem.AboveAverage) {\n\t\t\treturn 4;\n\t\t}\n\t\telse if (rank == RankingSystem.Average) {\n\t\t\treturn 3;\n\t\t}\n\t\telse if (rank == RankingSystem.BelowAverage) {\n\t\t\treturn 2;\n\t\t}\n\t\treturn 1;\n\t}",
"public Rank getRank() {\n return cardRank;\n }",
"public Integer getGameRank() {\n return gameRank;\n }",
"public int Rank() {\n return group_.Rank();\n }",
"public double getRankScore() {\n return this.rankScore;\n }",
"private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }",
"public int calcRank() {\n sortCardsInHand();\n\n // check Royal flush\n if (this.areCardsInStraight() && this.cards[0].getValue() == 10 && areCardsInSameSuite()) return 10;\n\n // Straight flush: All five cards in consecutive value order, with the same suit\n if (areCardsInSameSuite() && areCardsInStraight()) return 9;\n\n int pairCheck = CardOperations.numberOfPairs(this.getHashMapOfValues());\n\n // Four of a kind: Four cards of the same value\n if (pairCheck == 4) return 8;\n\n // Full house: Three of a kind and a Pair\n if (pairCheck == 5) return 7;\n\n // Flush: All five cards having the same suit\n if (areCardsInSameSuite()) return 6;\n\n // Straight: All five cards in consecutive value order\n if (areCardsInStraight()) return 5;\n\n // Three of a kind: Three cards of the same value\n if (pairCheck == 3) return 4;\n\n // Two pairs: Two different pairs\n if (pairCheck == 2) return 3;\n\n // A pair: Two cards of same value\n if (pairCheck == 1) return 2;\n\n // High card: Highest value card\n return 1;\n }",
"public Integer getApplyRank()\r\n \t{\r\n \t\treturn applyRank;\r\n \t}",
"@Override\r\n\tpublic float getRank() {\r\n\t\tfloat rank = 0;\r\n\t\tif( players != null && !players.isEmpty() ) {\r\n\t\t\tfloat totalAbility = 0;\r\n\t\t\tfor (Player player : players) {\r\n\t\t\t\ttotalAbility += player.getAbility();\r\n\t\t\t}\r\n\t\t\trank = totalAbility / players.size();\r\n\t\t}\r\n\t\t\r\n\t\treturn rank;\r\n\t}",
"DataFrameRank<R,C> rank();",
"abstract int getSpeedRank();",
"public static int getRankValue(String rank)\r\n\t{\n\t\tint rankValue = 0;\r\n\t\t\t\t\r\n\t\tif (rank.equals(\"J\") || rank.equals(\"Q\") || rank.equals(\"K\"))\r\n\t\t{\r\n\t\t\t// face cards have rank of 10\r\n\t\t\trankValue = 10;\r\n\t\t}\r\n\t\telse if (rank.equals(\"A\"))\r\n\t\t{\r\n\t\t\t// ace has rank of 1\r\n\t\t\trankValue = 1;\r\n\t\t}\r\n\t\telse if (rank.equals(\"2\") || rank.equals(\"3\") || rank.equals(\"4\") || \r\n\t\t\t\t rank.equals(\"5\") || rank.equals(\"6\") || rank.equals(\"7\") || \r\n\t\t\t\t rank.equals(\"8\") || rank.equals(\"9\") || rank.equals(\"10\"))\r\n\t\t{\r\n\t\t\t// all others have rank of face value\r\n\t\t\trankValue = Integer.valueOf(rank);\r\n\t\t}\r\n\r\n\t\treturn rankValue;\r\n\t}",
"public int getRank() {\n\t\tDependencyElement p = prev;\n\t\tint rank = 0;\n\t\twhile (p != null) {\n\t\t\trank++;\n\t\t\tp = p.prev;\n\t\t}\n\t\treturn rank;\n\t}",
"public String getRank() {\n if(dbMgr.checkAdmin(username))\n return \"Admin\";\n\n else if(dbMgr.checkBannedUser(username))\n return \"Banned\";\n\n else if(dbMgr.checkReviewUser(username))\n return \"Review User\";\n\n else if(dbMgr.checkPremiumUser(username))\n return \"Premium User\";\n\n else \n return \"user\";\n }",
"public int rank(Key key) \n {\n return rank(key, root);\n }",
"public int getRank(int score) {\n int i = 0;\n for (i = 0; i < scoreInfoList.size(); i++) {\n if (score > scoreInfoList.get(i).getScore()) {\n break;\n }\n }\n System.out.println(\"rank \" + (i + 1));\n return i + 1;\n }",
"private int setRank() {\n this.rank = 0;\n for(int row = 0; row < SIZE; row++){\n for(int col = 0; col < SIZE; col++){\n int currentBoardNumber = row * 3 + col + 1;\n if(row == 2 && col == 2) {\n currentBoardNumber = 0;\n }\n if(this.board[row][col] != currentBoardNumber) {\n this.rank += 1;\n }\n }\n }\n this.rank += this.prevMoves.length();\n return this.rank;\n }",
"public int rank(final Key key){\n int lo = 0;\n int hi = size - 1;\n while (lo <= hi) {\n int mid = lo + (hi - lo) / 2;\n int comp = key.compareTo(keys[mid]);\n if (comp < 0) {\n hi = mid - 1;\n } else if (comp > 0) {\n lo = mid + 1;\n } else {\n return mid;\n }\n }\n return lo;\n }",
"public int rank(Key key)\n\t{\n\t\treturn rank(root,key);\n\t}",
"public void setRank(int value);",
"public void setRank(byte value) {\n this.rank = value;\n }",
"public void setRank(String value)\n {\n _rank = value;\n }",
"public Float getBonusRank() {\n return bonusRank;\n }",
"public int rank(Key key) {\n return rank(root, key);\n }",
"public int rank(Key key) {\n return rank(key, root);\n }",
"public String getNumRank(int rank){\n\t\tString num;\n\t\tswitch (rank) {\n\t\tcase 1: num = \"2\";break;\n\t\tcase 2: num = \"4\"; break;\n\t\tcase 3: num = \"8\"; break;\n\t\tcase 4: num = \"16\"; break;\n\t\tcase 5: num = \"32\"; break;\n\t\tcase 6: num = \"64\"; break;\n\t\tcase 7: num = \"128\"; break;\n\t\tcase 8: num = \"256\"; break;\n\t\tcase 9: num = \"512\"; break;\n\t\tdefault: num = \"2\";\n\t\t\tbreak;\n\t\t}\n\t\treturn num;\n\t}",
"public int rank(K key) {\n \n int lo = 0, hi = N - 1;\n K loK = nvps[lo].getKey(), hiK = nvps[hi].getKey();\n \n if (compare(key, loK) <= 0)\n return 0;\n \n while (lo <= hi) {\n int mid = lo + (hi - lo)\n * (int) ((key.doubleValue() - loK.doubleValue()) / (hiK.doubleValue() - loK.doubleValue()));\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0) {\n hi = mid - 1;\n hiK = nvps[hi].getKey();\n } else if (cmp > 0) {\n lo = mid + 1;\n loK = nvps[lo].getKey();\n } else\n return mid;\n }\n return lo;\n \n /*\n int lo = 0, hi = N - 1;\n while (lo <= hi) {\n int mid = lo + (hi - lo) / 2;\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0)\n hi = mid - 1;\n else if (cmp > 0)\n lo = mid + 1;\n else\n return mid;\n }\n return lo;\n */\n }",
"public boolean compareRank(int toCompare){\n if(this.data.compareRank(toCompare)){\n return true;\n } else {\n return false;\n }\n }",
"public void rankMatches();",
"public int rank() throws MPJException {\n\n IbisIdentifier id = MPJ.getMyId();\n if (this.table != null) {\n for (int i = 0; i < this.table.size(); i++) {\n IbisIdentifier a = this.table.elementAt(i);\n if (a.equals(id)) {\n return (i);\n }\n }\n }\n\n return (MPJ.UNDEFINED);\n }",
"public int compareByRank(Card otherCard){\n\t\tint num = 0;\n\t\tif (this.rank == otherCard.rank)\n\t\t\tnum = 0;\n\t\telse if (this.rank > otherCard.rank)\n\t\t\tnum = 1;\n\t\telse if (this.rank < otherCard.rank)\n\t\t\tnum = -1;\n\t\treturn num;\n\t}",
"public int getPowerRank() {\r\n return powerRank;\r\n }",
"@Override\r\n\t\t\tpublic int compare(Rank o1, Rank o2) {\n\t\t\t\treturn o1.x - o2.x;\r\n\t\t\t}"
]
| [
"0.793635",
"0.7922317",
"0.7905197",
"0.7905197",
"0.78681576",
"0.78352344",
"0.78322625",
"0.77827317",
"0.7759304",
"0.77579236",
"0.77579135",
"0.77356",
"0.7730963",
"0.7721184",
"0.77187777",
"0.77178186",
"0.77178186",
"0.77178186",
"0.7683019",
"0.76497513",
"0.761897",
"0.7614906",
"0.7613218",
"0.7610185",
"0.76059383",
"0.75977325",
"0.7570059",
"0.7561112",
"0.7558368",
"0.7558368",
"0.7558368",
"0.7558368",
"0.7554294",
"0.7548473",
"0.75295705",
"0.7485414",
"0.748504",
"0.7478514",
"0.747242",
"0.74351007",
"0.74255294",
"0.7424303",
"0.7399576",
"0.73939407",
"0.7391033",
"0.7372554",
"0.7369395",
"0.73563445",
"0.73462415",
"0.7335692",
"0.7269549",
"0.72580266",
"0.724292",
"0.7182964",
"0.7118419",
"0.7088118",
"0.707272",
"0.7071851",
"0.7049715",
"0.7035407",
"0.70203835",
"0.69840926",
"0.6944938",
"0.69139653",
"0.688039",
"0.6818827",
"0.68100464",
"0.6802999",
"0.6759282",
"0.67583704",
"0.6753335",
"0.67339313",
"0.6722687",
"0.6717245",
"0.6715474",
"0.6656591",
"0.66369873",
"0.6633829",
"0.6620495",
"0.6593412",
"0.65442765",
"0.6535526",
"0.6508944",
"0.6495339",
"0.6484131",
"0.6482634",
"0.64773464",
"0.6435406",
"0.64352506",
"0.6416491",
"0.64001834",
"0.63951886",
"0.63909626",
"0.6381973",
"0.6353975",
"0.63298297",
"0.6329106",
"0.63194084",
"0.6318435",
"0.6311714"
]
| 0.7163572 | 54 |
This will return the suit of the receiver as a value | public int getSuit ()
{
return this.suits;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit() {\r\n return suit;\r\n }",
"public String suit() {\r\n return suit;\r\n }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public String getSuit()\r\n { return suit; }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public String getSuit() {\r\n return suit;\r\n }",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n return suit;\n }",
"public int getSuit(){\n return suit;\n }",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit() {\n return this.suit;\n }",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public Suit getSuit() {\n return suit;\n }",
"public String getSuit() {\n return this.suit;\n }",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public String getCardSuit() {\n return Csuit;\n }",
"public String getSuit(){ return this.suit; }",
"private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }",
"public int suitNum() {\r\n return this.i;\r\n }",
"public String toString()\n {\n return value + \" \" + suit;\n }",
"public int getSuitInt() {\n return this.suit;\n }",
"public Suit getSuit() {\n return cardSuit;\n }",
"private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public String toString ()\n {\n return rank + \" of \" + suit;\n }",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}",
"public char getSuit(){\n return Suits;\n }",
"public String toString() {\n return \"The \" + value + \" of \" + suit;\n }",
"public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}",
"public int getSuit() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id < 14)\n\t\t\treturn 1;\n\t\telse if (id >= 14 && id < 27)\n\t\t\treturn 2;\n\t\telse if (id >= 27 && id < 40)\n\t\t\treturn 3;\n\t\telse\n\t\t\treturn 4;\n\t}",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"public static int suit(int card){\n //check if card is out of bounds\n if(card < 1 || card > 52){\n return 0;\n }\n //subtract 1 from card to include multiples of 13\n //add 1 so that it matches up with the desired output\n return (card - 1) / 13 + 1;\n }",
"public String GetHumanCard(int value){\n return handHuman.get(value);\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"String getSuit(int suitNumber) {\n\t\tswitch(suitNumber) {\n\t\tcase 0:\n\t\t\treturn \"Clubs\";\n\t\tcase 1:\n\t\t\treturn \"Diamonds\";\n\t\tcase 2:\n\t\t\treturn \"Hearts\";\n\t\tcase 3:\n\t\t\treturn \"Spades\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public int getHandValue() {\n\t\tint value = 0;\n\t\tint aces = 0;\n\t\tfor (Card card : cardHand) {\n\t\t\t// convert suits to 10\n\t\t\tif (card.getValue() > 10) {\n\t\t\t\tvalue += 10;\n\t\t\t} else if (card.getValue() == 1) {\n\t\t\t\taces++;\n\t\t\t} else {\n\t\t\t\tvalue += card.getValue();\n\t\t\t}\n\t\t}\n\t\tvalue += calculateAce(value, aces);\n\n\t\treturn value;\n\t}",
"public short getSuit(){\n\t\treturn srtSuit;\r\n\t}",
"public int handValue() {\n int handValue = 0;\n for (Card card : cards) {\n switch (((BlackjackCard)card).getRank()) {\n case TWO:\n handValue += 2;\n break;\n case THREE:\n handValue += 3;\n break;\n case FOUR:\n handValue += 4;\n break;\n case FIVE:\n handValue += 5;\n break;\n case SIX:\n handValue += 6;\n break;\n case SEVEN:\n handValue += 7;\n break;\n case EIGHT:\n handValue += 8;\n break;\n case NINE:\n handValue += 9;\n break;\n case TEN:\n handValue += 10;\n break;\n case JACK:\n handValue += 10;\n break;\n case QUEEN:\n handValue += 10;\n break;\n case KING:\n handValue += 10;\n break;\n }\n }\n\n for (int i = 0; i < aceCount; i++) {\n if (handValue < 11) {\n handValue += 11;\n } else {\n handValue += 1;\n }\n }\n\n return handValue;\n }",
"public void setSuit(String value) {\n suit = value;\n }",
"public int cardValue(Card card) //translate string into card's numerical value\r\n {\r\n if (card.face.equals(\"Deuce\"))\r\n return 2;\r\n if (card.face.equals(\"Three\"))\r\n return 3;\r\n if (card.face.equals(\"Four\"))\r\n return 4;\r\n if (card.face.equals(\"Five\"))\r\n return 5;\r\n if (card.face.equals(\"Six\"))\r\n return 6;\r\n if (card.face.equals(\"Seven\"))\r\n return 7;\r\n if (card.face.equals(\"Eight\"))\r\n return 8;\r\n if (card.face.equals(\"Nine\"))\r\n return 9;\r\n if (card.face.equals(\"Ten\"))\r\n return 10;\r\n if (card.face.equals(\"Jack\"))\r\n return 11;\r\n if (card.face.equals(\"Queen\"))\r\n return 12;\r\n if (card.face.equals(\"King\"))\r\n return 13;\r\n if (card.face.equals(\"Ace\"))\r\n return 14;\r\n return -2;\r\n }",
"public String getSuitString()\n {\n switch (suit)\n {\n case SPADES: return \"SPADES\";\n case CLUBS: return \"CLUBS\";\n case DIAMONDS: return \"DIAMONDS\";\n case HEARTS: return \"HEARTS\";\n default: return \"Invalid\";\n }\n \n }",
"public String toString(){\n String card = null; \n //clubs\n if(suit==1){\n \tcard = \"c\" + Integer.toString(value);\n }\n //diamonds\n if(suit==2){\n \tcard = \"d\" + Integer.toString(value);\n }\n //hearts\n if(suit==3){\n \tcard = \"h\" + Integer.toString(value);\n }\n //spades\n if(suit==4){\n \tcard = \"s\" + Integer.toString(value);\n }\n return card; \n\t}",
"public String getSuitAsString(){\n\t\tString str = \"\";\n\t\tif (suit == 0)\n\t\t\tstr = new String(\"Clubs\");\n\t\telse if (suit == 1)\n\t\t\tstr = new String(\"Diamonds\");\n\t\telse if (suit == 2)\n\t\t\tstr = new String(\"Hearts\");\n\t\telse if (suit == 3)\n\t\t\tstr = new String(\"Spades\");\n\t\treturn str;\n\t}",
"public String GetComputerCard(int value){\n return handComputer.get(value);\n }",
"@Override\n public String toString() {\n CardValue cardValue = new CardValue(value).invoke();\n\n // Change the value to the actual name when printing out\n // the card.\n\n return cardValue.getValueName() + \" of \" + suit;\n }",
"@Override\r\n public final String toString(){\n if(this.rank.equals(RANKS[0])){ \r\n\t\t\treturn \"no card\"; \r\n\t\t}\r\n\t\t\r\n int r = getRank();\r\n if( r >= 2 && r <= 14 ){\r\n return r + getSuit().substring(0,1);\r\n\t\t}\r\n return \"no card\";\r\n }",
"public String toString() {\n return faceName + \" of \" + suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }",
"private int getSuit(int tile)\n\t{\n\t\tif(TilePattern.getSuit(tile)==TilePattern.BAMBOOS) return BAMBOO;\n\t\telse if(TilePattern.getSuit(tile)==TilePattern.CHARACTERS) return CHARACTERS;\n\t\telse if(TilePattern.getSuit(tile)==TilePattern.DOTS) return DOTS;\n\t\telse if(TilePattern.getSuit(tile)==TilePattern.HONOURS) return HONOURS;\n\t\telse if(TilePattern.getSuit(tile)==TilePattern.FLOWERS) return BONUS;\n\t\telse if(TilePattern.getSuit(tile)==TilePattern.SEASONS) return BONUS;\n\t\t// fail\n\t\treturn -1;\n\t}",
"public String chooseSuit()\t{\n\t\tString choose = \"\";\n\t\tSystem.out.println(\"Choose a suit: h) hearts, d) diamonds, s) spades, c) clubs\");\n\t\tchoose = input.nextLine();\n\t\tswitch(choose.toLowerCase())\t{\n\t\tcase \"h\":\n\t\t\tchoose = \"Hearts\";\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\tchoose = \"Diamonds\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tchoose = \"Spades\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\tchoose = \"Clubs\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again!\");\n\t\t\tchooseSuit();\n\t\t\tbreak;\n\t\t}\n\t\treturn choose;\n\t}",
"public int highCardVal()\n\t{\n\t\tint value = 0;\n\t\t\n\t\tfor (int i=0; i<MAX_CARDS; i++)\n\t\t\tvalue += hand[i].getValue();\n\t\t\n\t\treturn value;\n\t}",
"public int getHandValue() {\r\n int handValue = 0;\r\n for (Card card : this) {\r\n handValue += card.getCardValue();\r\n }\r\n return handValue;\r\n }",
"public int handValue() {\n\t\tint val = 0;\n\t\tfor(Card card: hand) {\n\t\t\tval += card.getValue();\n\t\t}\n\t\tif(val > 21) {\n\t\t\tif(checkOverflow()) {\n\t\t\t\treturn val - 10;\n\t\t\t}\n\t\t\treturn val;\n\t\t\t\n\t\t}\n\t\telse\n\t\t\treturn val;\n\t}",
"public void determineHandType(){\n \r\n if(isStraightFlush()){\r\n handType = HandType.STRAIGHT_FLUSH;\r\n }\r\n else if(isFourOfAKind()){\r\n handType = HandType.FOUR_OF_A_KIND;\r\n }\r\n else if(isFullHouse()){\r\n handType = HandType.FULL_HOUSE;\r\n }\r\n else if(isFlush()){\r\n handType = HandType.FLUSH;\r\n }\r\n else if(isStraight()){\r\n handType = HandType.STRAIGHT;\r\n }\r\n else if(isThreeOfAKind()){\r\n handType = HandType.THREE_OF_A_KIND;\r\n }\r\n else if(isTwoPairs()){\r\n handType = HandType.TWO_PAIRS;\r\n }\r\n else if(isPair()){\r\n handType = HandType.PAIR;\r\n }\r\n else{\r\n //High Card: Hands which do not fit any higher category are ranked by\r\n //the value of their highest card. If the highest cards have the same\r\n //value, the hands are ranked by the next highest, and so on.\r\n handType = HandType.HIGH_CARD;\r\n handValue = cards.get(cards.size()-1).getValue();\r\n }\r\n }",
"public char[] getSuitArr() {\r\n return suitArr;\r\n }",
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public Card chooseCard(Hand h, Trick t);",
"public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }",
"public static Suit getSuit(int num) {\r\n switch (num) {\r\n case 1:\r\n return Suit.Clubs;\r\n case 2:\r\n return Suit.Diamonds;\r\n case 3:\r\n return Suit.Hearts;\r\n case 4:\r\n return Suit.Spades;\r\ndefault:\r\n throw new IllegalArgumentException(\"num must be 1-4\");\r\n }\r\n }",
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public String toString() {\n String info = values[value] + \" of \" + suits[suit];\n return info;\n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public int evaluate (Player p) {\r\n\t\t/* Adding players hand and the cards from the game board */\r\n\t\t\r\n\t\tfor (Card c: p.hand) {\r\n\t\t\tcards.add(c);\r\n\t\t}\r\n\t\tfor (Card c: board) {\r\n\t\t\tcards.add(c);\r\n\t\t}\r\n\t\t/*Return the value based on the card evaluated. Will check in\r\n\t\t * order to the strength of the hand starting from the \r\n\t\t * strongest hand in order to avoid overlapping between certain \r\n\t\t * hands. (Ex. Three pair includes two pair but three pair will be \r\n\t\t * checked first)*/\r\n\t\tif (hasRoyalFlush(cards)) \r\n\t\t\treturn ROYALFLUSH;\r\n\t\t else if (hasStraightFlush(cards)) \r\n\t\t\treturn STRAIGHTFLUSH;\r\n\t\t else if (hasQuads(cards)) \r\n\t\t\treturn QUADS;\r\n\t\t else if (hasFlush(cards)) \r\n\t\t\treturn FLUSH;\r\n\t\t else if (hasStraight(cards)) \r\n\t\t\treturn STRAIGHT;\r\n\t\t else if (hasSet(cards)) \r\n\t\t\treturn SET;\r\n\t\t else if (hasTwoP(cards)) \r\n\t\t\treturn TWOPAIR;\r\n\t\t else if (hasPair(cards)) \r\n\t\t\treturn PAIR;\r\n\t\t else \r\n\t\t\treturn HIGHCARD;\r\n\t\t\r\n\t}",
"public int compareBySuit(Card otherCard){\n\t\tint num = 0;\n\t\tif (this.suit == otherCard.suit)\n\t\t\tnum = 0;\n\t\telse if (this.suit > otherCard.suit)\n\t\t\tnum = 1;\n\t\telse if (this.suit < otherCard.suit)\n\t\t\tnum = -1;\n\t\treturn num;\n\t}",
"public static int resultBlackjack()\n\t{\n\t\t//return 0 for no black jack, return 1 for player blackjack, return for dealer blackjack, return 3 for double blackjack\n\t\tboolean player =isBlackjack(playersCards),dealer=isBlackjack(dealersCards);\n\t\tif(!player && !dealer)\n\t\t\treturn 0;\n\t\telse if(player && !dealer)\n\t\t\treturn 1;\n\t\telse if(!player && dealer)\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 3;\n\t}",
"public int getHandValue() {\n \n totalScore += nobValue();\n totalScore += flushValue();\n totalScore += pairValue();\n totalScore += fifteenValue();\n totalScore += runValue();\n \n return totalScore;\n }",
"public String toString() {\n if (this.errorFlag == true)\n return \"[INVALID CARD]\";\n else\n return this.value + \" of \" + suit.toString();\n }",
"public String getHand(){\r\n return this.handStr;\r\n }",
"public int playHand(Hand hand){\r\n\r\n if( this.getRank() > hand.getRank()){\r\n System.out.println();\r\n System.out.println(\"Black: \" + this.getHand() + \" White: \" + hand.getHand());\r\n System.out.println(\"Black wins!\");\r\n return 1;\r\n }\r\n\r\n else if(this.getRank() < hand.getRank()){\r\n System.out.println();\r\n System.out.println(\"Black: \" + this.getHand() + \" White: \" + hand.getHand());\r\n System.out.println(\"White wins!\");\r\n return -1;\r\n }\r\n else{\r\n System.out.println();\r\n System.out.println(\"Black: \" + this.getHand() + \" White: \" + hand.getHand());\r\n\r\n if(this.getHighCard() > hand.getHighCard()){\r\n System.out.println(\"Black Wins!\");\r\n return 1;\r\n }\r\n else if(hand.getHighCard() > this.getHighCard()){\r\n System.out.println(\"white Wins!\");\r\n }\r\n System.out.print(\"Tie!\");\r\n return 0;\r\n }\r\n\r\n }",
"public String getSuitAsString (int aSuit)\n {\n switch (aSuit)\n {\n case 1:return(\"Spades\");\n case 2:return(\"Diamonds\");\n case 3:return(\"Clubs\");\n case 4:return(\"Hearts\");\n default:return(\"Invalid Rank\");\n }\n }",
"boolean haveSuit(char suit){\n for (int i=0; i<6; i++)\n if (hand.get(i).suit != suit)\n return false;\n return true;\n }",
"public int getHighCard() {\r\n return highCard;\r\n }",
"private static int play() {\n\n Hand h = new Hand();\n int handValue = 0;\n\n // Deck deck = new Deck(); // Get a new deck of cards, and\n // store a reference to it in\n // the variable, deck.\n\n for (int i=0;i<3;i++) {\n Card c = new Card(3,Card.VICTORY);\n h.addCard(c);\n }\n for (int i=0;i<7;i++) {\n Card c = new Card();\n h.addCard(c);\n }\n\n for (int i=0;i<h.getCardCount();i++) {\n Card c = h.getCard(i);\n System.out.println(c.toString());\n handValue += c.getValue();\n }\n\n return handValue;\n }",
"@Override\r\n\tpublic String toString() {\r\n return rank + \" of \" + suit + \" - Point value: \" + pointValue;\r\n }",
"public char getWinner() {\n if (this.getPlayerHand().getActualValue() == this.getDealerHand().getActualValue()) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '2';\n } else if (this.playerHand.getblack()) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '0';\n } else if (this.getDealerHand().getblack()) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '1';\n } else{\n if (this.getPlayerHand().getblack()) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '0';\n }else if (this.getDealerHand().getActualValue() > 21) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '0';\n } else if(this.getPlayerHand().getActualValue() > 21) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '1';\n } else if (this.getPlayerHand().getActualValue() > this.getDealerHand().getActualValue()) {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '0';\n } else {\n this.getDealerHand().setActualValue(0);\n this.getPlayerHand().setActualValue(0);\n return '1';\n }\n }\n }",
"public void setSuit(String suit) {\n\t\tthis.suit = suit;\n\t}",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public static Suit randomSuit() {\n int pick = new Random().nextInt(Suit.values().length-1); // w/o Excuse\n return Suit.values()[pick];\n }",
"protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }",
"final public String toString() {\r\n\t\tswitch (face) {\r\n\t\tcase 10:\r\n\t\t\treturn \"X\" + Character.toString(suit);\r\n\t\tcase 11:\r\n\t\t\treturn \"J\" + Character.toString(suit);\r\n\t\tcase 12:\r\n\t\t\treturn \"Q\" + Character.toString(suit);\r\n\t\tcase 13:\r\n\t\t\treturn \"K\" + Character.toString(suit);\r\n\t\tdefault:\r\n\t\t\treturn face + Character.toString(suit);\t\t\t\t\r\n\t\t}\r\n\t}",
"int compareValue(Card c);",
"public int score() {\n return hand.handVal(0);\n }",
"@Override\r\n public String toString(){\n StringBuilder displayCard = new StringBuilder();\r\n \r\n if(rank==11)\r\n {\r\n displayCard.append(\"Jack\");\r\n }\r\n else if(rank==12)\r\n {\r\n displayCard.append(\"Queen\");\r\n }\r\n else if(rank == 13)\r\n {\r\n displayCard.append(\"King\");\r\n }\r\n else if(rank==14)\r\n {\r\n displayCard.append(\"Ace\");\r\n }\r\n else\r\n {\r\n displayCard.append(rank);\r\n }\r\n displayCard.append(\" of \"); //setting the format of the output\r\n \r\n if(suit==0)\r\n {\r\n displayCard.append(\"Spades\");\r\n }\r\n else if(suit==1)\r\n {\r\n displayCard.append(\"Hearts\");\r\n }\r\n else if(suit==2)\r\n {\r\n displayCard.append(\"Clubs\");\r\n }\r\n else if(suit==3)\r\n {\r\n displayCard.append(\"Diamonds\");\r\n }\r\n //return the result of an entire cmombined string\r\n return displayCard.toString();\r\n }",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public void testGetHand() throws Exception {\r\n// System.out.println(getClass().getSimpleName() + \": getHand\");\r\n//\r\n// HandRank hr = hand.getHandRank();\r\n// Card[] result = hr.getHand();\r\n// System.out.println(hr.getHandType());\r\n// System.out.println(\"hand:\" + Arrays.toString(result));\r\n// Assert.isTrue(hr.getHandType() == HandType.HIGH);\r\n//\r\n// SimpleHandAggregator sha = new SimpleHandAggregator();\r\n// System.out.println(sha.scoreHand(hand));\r\n }",
"@Test\r\n public void testPlayer_getBoldStrategyCard_numeric_colorBeatsNumber() {\n\r\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // pick a cpc that could return two possible options\r\n // and assert that the higher value card comes back\r\n\r\n // make a cpc that might return a yellow six or a red eight\r\n // assert the yellow comes back, even though the red eight has a higher value\r\n Card redSix = new Card(Card.RED, Card.SIX, cvm);\r\n assertTrue(player2.getBoldStrategyCard(redSix, redSix.getColor()).equals(yellowSix));\r\n }",
"public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }"
]
| [
"0.80989414",
"0.80761296",
"0.8055113",
"0.80431074",
"0.8024078",
"0.7994369",
"0.7994369",
"0.79833597",
"0.7972049",
"0.796433",
"0.7916246",
"0.7895352",
"0.7869132",
"0.78330237",
"0.78314525",
"0.7819368",
"0.7779637",
"0.7779637",
"0.7534547",
"0.74738455",
"0.7448446",
"0.74242324",
"0.7396396",
"0.73838997",
"0.73544616",
"0.7318673",
"0.7274936",
"0.7253355",
"0.71919674",
"0.71340835",
"0.7056861",
"0.69604933",
"0.6954009",
"0.69530845",
"0.68827295",
"0.686204",
"0.6790874",
"0.67887014",
"0.6783809",
"0.6781246",
"0.67393446",
"0.6708694",
"0.66043556",
"0.6532857",
"0.6514397",
"0.6483765",
"0.64421904",
"0.64390326",
"0.6420598",
"0.64117914",
"0.6410822",
"0.6397767",
"0.6385283",
"0.63461334",
"0.6235983",
"0.6207525",
"0.6173894",
"0.6166213",
"0.61587524",
"0.61453605",
"0.6141799",
"0.61216617",
"0.6111747",
"0.608003",
"0.60784835",
"0.6072769",
"0.60698235",
"0.60561466",
"0.60502434",
"0.60091317",
"0.5992726",
"0.5991821",
"0.5977825",
"0.59734315",
"0.59691834",
"0.59554356",
"0.5952747",
"0.59449625",
"0.593512",
"0.59220815",
"0.58910096",
"0.58765036",
"0.58692807",
"0.58628637",
"0.585908",
"0.5823271",
"0.58226305",
"0.582073",
"0.5809387",
"0.58080834",
"0.58031774",
"0.57956606",
"0.5794525",
"0.57862633",
"0.5770039",
"0.57679826",
"0.5766554",
"0.5752069",
"0.5747606",
"0.57410425"
]
| 0.6560468 | 43 |
Method to set rank as value | public void setRank(int aRank)
{
this.ranks = aRank;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRank(int value);",
"private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }",
"public void setRank(String value)\n {\n _rank = value;\n }",
"public void setRank(byte value) {\n this.rank = value;\n }",
"public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}",
"public void setRank(Integer rank) {\n this.rank = rank;\n }",
"public void setRank(int rank) {\n this.rank = rank;\n }",
"public void setRank(int rank)\n {\n this.rank = (short)rank;\n }",
"public Builder setRank(long value) {\n \n rank_ = value;\n onChanged();\n return this;\n }",
"public void setRank(Vector rank) {\n this.rank = rank;\n }",
"public void setRank(int r) {\r\n\t\trank = r;\r\n\t}",
"public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}",
"public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}",
"public void setRank(int num)\r\n {\r\n //Check if the new rank is less than 0 before setting the new rank \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative time\");\r\n }\r\n else \r\n {\r\n this.rank = num;\r\n }//end if\r\n }",
"void setRank(KingdomUser user, KingdomRank rank);",
"@Override\n\tpublic void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}",
"public Builder setRanking(int value) {\n bitField0_ |= 0x00000010;\n ranking_ = value;\n onChanged();\n return this;\n }",
"public void setRank(String rank) {\n this.rank = rank;\n }",
"public int setRank(int rank) {\n\t\treturn this.rank=rank;\n\t}",
"public int getRank(){\n return Value;\n }",
"public int getRank(){\r\n return this.rank;\r\n }",
"public void rank(){\n\n\t}",
"public void set(int rank, int count) {\r\n\t\tisValid = true;\r\n\t\tthis.rank = rank;\r\n\t\tthis.count = count;\r\n\t}",
"public Integer getRank(){\r\n\t\treturn rank;\r\n\t}",
"public int getRank(){\n return rank;\n }",
"public int getRank(){\n return this.rank;\n }",
"public Builder setToRank(long value) {\n \n toRank_ = value;\n onChanged();\n return this;\n }",
"public Integer getRankValue() {\r\n\t\treturn rank;\r\n\t}",
"public int rank() { return this.rank; }",
"public Boolean setRank(Integer rank) {\r\n\t\tif (rank == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.rank = rank;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public int getRank() {\r\n return rank;\r\n }",
"public int getRank()\n {\n return rank;\n }",
"public void setRanking (LSPRanking ranking) {\r\n this.ranking = ranking;\r\n }",
"@Override\n public int getRank() {\n return rank;\n }",
"public int getRank()\n {\n return rank;\n }",
"public int getRank()\r\n {\r\n return this.rank;\r\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public Rank getRank()\n {\n return rank;\n }",
"public void incrank() {\n\t\trank++;\n\t}",
"public byte getRank() {\n return rank;\n }",
"public String getRank() {\r\n return rank;\r\n }",
"public String getRank()\n {\n return _rank;\n }",
"void setDefaultRank(KingdomUser user);",
"public int getRank()\n\t{\n\t\treturn rank;\n\t}",
"public Integer getRank() {\n return this.rank;\n }",
"public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}",
"public String getRank() {\n return rank;\n }",
"public Builder setFromRank(long value) {\n \n fromRank_ = value;\n onChanged();\n return this;\n }",
"public int getRank();",
"public int getRank();",
"public RankType getRank() {\n return rank;\n }",
"public Rank getRank()\n\t{\n\t\treturn rank;\n\t}",
"public void refreshRank() {\n rank = getRank();\n lblUserTitle.setText(username + \" - \" + rank);\n }",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public String rank() {\r\n return rank;\r\n }",
"public abstract void modRanking(ParamRanking pr);",
"public long getRank() {\n return rank_;\n }",
"public int getRank ()\n {\n return this.ranks; \n }",
"Rank(int points){\r\n\t\tthis.points = points;\r\n\t}",
"public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}",
"public Integer getRank() {\r\n\t\treturn this.rank;\r\n\t}",
"long getRank();",
"public long getRank() {\n return rank_;\n }",
"private int setRank() {\n this.rank = 0;\n for(int row = 0; row < SIZE; row++){\n for(int col = 0; col < SIZE; col++){\n int currentBoardNumber = row * 3 + col + 1;\n if(row == 2 && col == 2) {\n currentBoardNumber = 0;\n }\n if(this.board[row][col] != currentBoardNumber) {\n this.rank += 1;\n }\n }\n }\n this.rank += this.prevMoves.length();\n return this.rank;\n }",
"public String getRank() {\n\t\treturn rank;\n\t}",
"RankEnum(String rank)\n\t{\n\t\tthis.rank = rank;\n\t}",
"public Vector getRank() {\n return rank;\n }",
"public String getRankString(){ return this.rank; }",
"public int Rank();",
"public void setGameRank(Integer gameRank) {\n this.gameRank = gameRank;\n }",
"public Integer rank() {\n return data.getInt(FhirPropertyNames.PROPERTY_RANK);\n }",
"public void setPowerRank(int powerRank) {\r\n this.powerRank = powerRank;\r\n }",
"public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}",
"public PokerHand(int ranking){\r\n this.ranking = ranking;\r\n }",
"HandRank(int value, String string) {\n\t\t\tthis.value = value;\n\t\t\tthis.string = string;\n\t\t}",
"Rank(Role role) {\n this.role = role;\n }",
"long getToRank();",
"public void setBonusRank(Float bonusRank) {\n this.bonusRank = bonusRank;\n }",
"public int collegeRank(int rank) {\n\t\tSystem.out.println(rank);\t\r\n\t\treturn rank;\r\n \r\n }",
"public int getRanking() {\n return ranking_;\n }",
"public Division(int rank) {\r\n\t\tthis.rank = rank ; \r\n\t}",
"public LSPRanking getRanking () {\r\n return ranking;\r\n }",
"public void updateRankingValue(double delta) {\n sortingValues.rankingValue += delta;\n }",
"public int value() {\n return this.intRank;\n }",
"public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}",
"int getRanking();",
"public int getRanking() {\n return ranking_;\n }",
"void setScoreValue(int scoreValue);",
"public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }",
"public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}",
"public Ranking getRanking() {\n return ranking;\n }",
"@Override\r\n\tpublic boolean update(RankDefBean t) {\n\t\treturn false;\r\n\t}",
"public Rank rank(){\n return PackedCard.rank(this.nbCard);\n }",
"void showRanking(String winner, String rank);",
"public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }"
]
| [
"0.88902175",
"0.8427976",
"0.8209885",
"0.81215",
"0.8078972",
"0.79803985",
"0.7967745",
"0.79434973",
"0.78755176",
"0.7795364",
"0.7748908",
"0.7712827",
"0.7712827",
"0.77026105",
"0.7697383",
"0.76749426",
"0.755489",
"0.7496505",
"0.7457618",
"0.7340119",
"0.7227765",
"0.7227502",
"0.71842855",
"0.71371245",
"0.7133369",
"0.71187943",
"0.7113848",
"0.7112366",
"0.70017475",
"0.6990438",
"0.698699",
"0.6959939",
"0.6955722",
"0.6946383",
"0.69367695",
"0.69307226",
"0.69119567",
"0.69119567",
"0.69119567",
"0.6846794",
"0.68370163",
"0.6828569",
"0.68243366",
"0.6808537",
"0.68012494",
"0.6795913",
"0.67872715",
"0.6782427",
"0.6740258",
"0.673897",
"0.6735978",
"0.6735978",
"0.67350477",
"0.6734539",
"0.67323154",
"0.6709977",
"0.6709977",
"0.6709977",
"0.6709977",
"0.6707294",
"0.6704274",
"0.66961944",
"0.66948354",
"0.6662823",
"0.6653915",
"0.6648592",
"0.6635695",
"0.66171944",
"0.66111463",
"0.66109955",
"0.6561763",
"0.65286154",
"0.6522802",
"0.6518803",
"0.64461124",
"0.6432819",
"0.63952816",
"0.6359862",
"0.63282114",
"0.63273776",
"0.6304422",
"0.62039196",
"0.61997336",
"0.6199702",
"0.6190808",
"0.61529255",
"0.6129657",
"0.6128268",
"0.61221445",
"0.611955",
"0.61069477",
"0.60886747",
"0.6078451",
"0.6074917",
"0.60699826",
"0.605838",
"0.6053877",
"0.6052586",
"0.6042786",
"0.6024202"
]
| 0.794877 | 7 |
Method to set suit as a value | public void setSuit (int aSuit)
{
this.suits = aSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public void setSuit(String value) {\n suit = value;\n }",
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public void setSuit(String suit) {\n\t\tthis.suit = suit;\n\t}",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public void setSuit(int suit) throws Exception{\n\t\tif (suit < 0 || suit > 3)\n\t\t\tthrow new Exception();\n\t\tthis.suit = suit;\n\t}",
"public void setSuitOfCard(int suitOfCard) {\n this.suitOfCard = suitOfCard;\n }",
"public String suit() {\r\n return suit;\r\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit() {\r\n return suit;\r\n }",
"public int getSuit()\n {\n return suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"public String getSuit()\r\n { return suit; }",
"public int getSuit(){\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public int getSuit()\n {\n return suit;\n }",
"public String getSuit() {\r\n return suit;\r\n }",
"public boolean set(char value, Suit suit) {\n if (Card.isValid(value, suit)) {\n this.errorFlag = false;\n this.value = value;\n this.suit = suit;\n return true;\n } else {\n this.errorFlag = true;\n return false;\n }\n }",
"public Card(char value, Suit suit) {\n this.set(value, suit);\n }",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public Card(int value, int suit) {\n if (value <= 13 && value >= 1 && suit <= 4 && suit >= 1) {\n this.faceUp = false;\n this.value = value;\n this.suit = suit;\n if (suit == 1 || suit == 4) {\n this.color = CardColor.BLACK;\n } else {\n this.color = CardColor.RED;\n }\n } else {\n throw new IllegalArgumentException(\"Invalid Card\");\n }\n }",
"public BlackjackCard(Suit suit, int value){\r\n\t\tthis.suit = suit;\r\n\t\tthis.value = value;\r\n\t}",
"public String getSuit() {\n return suit;\n }",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public Suit getSuit() {\n return suit;\n }",
"public String getSuit(){ return this.suit; }",
"public Card(Suit suit, Value value){\n this.value = value;\n this.suit = suit;\n }",
"public boolean setSuit(char inSuit) {\r\n\t\tinSuit = Character.toUpperCase(inSuit);\r\n\t\tboolean status = false;\r\n\t\t\r\n\t\tswitch (inSuit) {\r\n\t\tcase 'S':\r\n\t\tcase 'H':\r\n\t\tcase 'C':\r\n\t\tcase 'D':\r\n\t\tcase 'T':\r\n\t\tcase '1':\r\n\t\tcase '2':\r\n\t\tcase '3':\r\n\t\t\tsuit = inSuit;\r\n\t\t\tstatus = true;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tsuit = DEFAULT_SUIT;\r\n\t\t\tstatus = false;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn status;\r\n\t}",
"public int getSuit() {\n return this.suit;\n }",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public String getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public Card(int type, int suit) {\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[type];\n this.suit = allSuits[suit];\n }",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public Card (Suit s, int v) {\n suit = s;\n val = v;\n }",
"public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public int getSuitInt() {\n return this.suit;\n }",
"public Suit getSuit() {\n return cardSuit;\n }",
"public Card(int value, int suit) {\n if (value < 2 || value > 14 || suit < 0 || suit > 3) {\n throw new IllegalArgumentException(\"invalid card\");\n }\n this.value = value;\n this.suit = suit;\n }",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public int suitNum() {\r\n return this.i;\r\n }",
"public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public void setSuitArr(char[] suitArr) {\r\n this.suitArr = suitArr;\r\n }",
"public Card(int suitInt, int valueA)\r\n {\r\n \r\n if( suitInt == 1)\r\n suit = \"SPADE\";\r\n if(suitInt == 2)\r\n suit = \"CLUB\";\r\n if(suitInt == 3)\r\n suit = \"HEART\";\r\n if(suitInt == 4)\r\n suit = \"DIAMOND\";\r\n \r\n card = CARDS[valueA-1];\r\n try{\r\n image = ImageIO.read(new File(card+\"_\"+suit+\".jpg\"));\r\n }\r\n catch(Exception e){}\r\n \r\n if(valueA >= 11)\r\n value = 10;\r\n else\r\n value = valueA;\r\n if(valueA == 1)\r\n value = 11;\r\n }",
"@Override\n public void setSuitNum(int total, int normal, int taobao, int imgs) {\n }",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public static int suit(int card){\n //check if card is out of bounds\n if(card < 1 || card > 52){\n return 0;\n }\n //subtract 1 from card to include multiples of 13\n //add 1 so that it matches up with the desired output\n return (card - 1) / 13 + 1;\n }",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"public void setValue(String number)\n {\n switch (number)\n {\n case \"2\":\n value = 2;\n break;\n case \"3\":\n value = 3;\n break;\n case \"4\":\n value = 4;\n break;\n case \"5\":\n value = 5;\n break;\n case \"6\":\n value = 6;\n break;\n case \"7\":\n value = 7;\n break;\n case \"8\":\n value = 8;\n break;\n case \"9\":\n value = 9;\n break;\n case \"10\":\n value = 10;\n break;\n case \"Jack\":\n value = 10;\n break;\n case \"Queen\":\n value = 10;\n break;\n case \"King\":\n value = 10;\n break;\n case \"Ace\":\n value = aceValue;\n break;\n }\n }",
"public Card() {\n this.set('A', Suit.spades);\n }",
"void setCurrentHP(final int newHP);",
"public Card(short rank, short suit){\r\n this.rank = rank;\r\n this.suit = suit;\r\n }",
"public char getSuit(){\n return Suits;\n }",
"public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }",
"public Card(Suit suit, int number) {\n\t\tthis.suit = suit;\n\t\tthis.number = number;\n\t\tswitch(number) {\n\t\t\t//place in CardType\n\t\t\tcase 1:\n\t\t\t\ttype = \"Ace\";\n\t\t\t\tsetNumber(14);\n\t\t\t\tbreak;\n\t\t\tcase 2:\t\t\t\t\n\t\t\t\tmagic = Magic.startAgain;\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tmagic = Magic.seeThrough;\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tmagic = Magic.missAGo;\n\t\t\t\tbreak;\n\t\t\tcase 9: \n\t\t\t\tmagic = Magic.playBelow;\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tmagic = Magic.burn;\n\t\t\tcase 11:\n\t\t\t\ttype = \"Jack\";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\ttype = \"Queen\";\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\ttype = \"King\";\n\t\t\t\tbreak;\n\t\t}\n\t\tif(number > 1 && number < 11) {\n\t\t\ttype = Integer.toString(number);\n\t\t}\n\t}",
"public Card(String s, int c)\r\n { suit = s;\r\n count = c;\r\n }",
"public Card(int cType, char suit, int value){\n this.cardType = cType;\n this.cardRank = value;\n this.cardSuit = suit;\n scaleCard(this.cardType);\n if(cType == 1) {\n cardId = getId(suit, value);\n }\n this.isClick = false;\n this.inValidGroup = false;\n }",
"public String toString()\n {\n return value + \" \" + suit;\n }",
"public SuitImitator(RankedCard model) {\n this(model.getSuit());\n }",
"public Card(Rank rank, Suit suit) {\r\n\t\tthis.rank = rank;\r\n\t\tthis.suit = suit;\r\n\t\tfaceUp = true;\r\n\t}",
"public static Suit getSuit(int num) {\r\n switch (num) {\r\n case 1:\r\n return Suit.Clubs;\r\n case 2:\r\n return Suit.Diamonds;\r\n case 3:\r\n return Suit.Hearts;\r\n case 4:\r\n return Suit.Spades;\r\ndefault:\r\n throw new IllegalArgumentException(\"num must be 1-4\");\r\n }\r\n }",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public Card(int s, int v){\n\t\t//make a card with suit s and value v\n\t\tsuit = s;\n\t\tvalue = v; \n\t\t\n\t}",
"private void setHighCard(int highCard) {\r\n this.highCard = highCard;\r\n }",
"void setCap(int cap);",
"public void setAceValue()\n {\n Scanner scanner = new Scanner(System.in); // Create a Scanner object\n System.out.print(\"Do you want the value of the Ace cards to be 1 or 11? \");\n aceValue = scanner.nextInt(); // Read user input\n }",
"public Card(String suit, String rank){\r\n\t\t\t// assume input is valid!\r\n\t\t\tthis.suit = suit; \r\n\t\t\tthis.rank = rank;\r\n\t\t\tthis.rankValue = new HashMap<String,Integer>(15);\r\n\t\t\tfor(int r = 2; r < RANKS.length; r+=1){\r\n\t\t\t\tthis.rankValue.put(RANKS[r], r);\r\n\t\t\t}\r\n\t }",
"public Card (Rank rank, Suit suit)\n {\n this.rank = rank;\n this.suit = suit;\n }",
"public String chooseSuit()\t{\n\t\tString choose = \"\";\n\t\tSystem.out.println(\"Choose a suit: h) hearts, d) diamonds, s) spades, c) clubs\");\n\t\tchoose = input.nextLine();\n\t\tswitch(choose.toLowerCase())\t{\n\t\tcase \"h\":\n\t\t\tchoose = \"Hearts\";\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\tchoose = \"Diamonds\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tchoose = \"Spades\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\tchoose = \"Clubs\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again!\");\n\t\t\tchooseSuit();\n\t\t\tbreak;\n\t\t}\n\t\treturn choose;\n\t}",
"private void suitRule(Player p){\n if(((p.getPlayCard().getSuit() == trump.getSuit()) && (winner.getPlayCard().getSuit() == trump.getSuit()) )|| (winner.getPlayCard().getSuit() == p.getPlayCard().getSuit())){\n numberRule(p);\n }\nif(p.getPlayCard().getSuit() == trump.getSuit() && winner.getPlayCard().getSuit() != p.getPlayCard().getSuit()){\n setWinner(p);\n }\n\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"public void setChosenDeckNumber(int n){\n this.chosenDeckNumber = n;\n }",
"public Card(){\n suit = 0;\n rank = 0;\n }",
"private boolean isValidSuit(int suit) {\r\n if (suit < 0 || suit > 3) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public Card(Rank r, Suit s){\n\t\tthis.rank = r;\n\t\tthis.suit = s;\t\t\n\t}",
"public Card(int cardRank, int cardSuit){\n this.rank = cardRank;\n this.suit = cardSuit;\n }",
"String getSuit(int suitNumber) {\n\t\tswitch(suitNumber) {\n\t\tcase 0:\n\t\t\treturn \"Clubs\";\n\t\tcase 1:\n\t\t\treturn \"Diamonds\";\n\t\tcase 2:\n\t\t\treturn \"Hearts\";\n\t\tcase 3:\n\t\t\treturn \"Spades\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public Card(Rank rank, Suit suit)\n\t{\n\t\tthis.rank = rank;\n\t\tthis.suit = suit;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"void setPassedHabit(Habit passedHabit);"
]
| [
"0.831271",
"0.8308439",
"0.8207747",
"0.7871436",
"0.7756527",
"0.7594908",
"0.7440697",
"0.74262816",
"0.72283536",
"0.70982736",
"0.7093615",
"0.7093468",
"0.70641214",
"0.7051452",
"0.70289516",
"0.70249194",
"0.70249194",
"0.70021576",
"0.69999593",
"0.6943873",
"0.69129884",
"0.6881092",
"0.68766904",
"0.6871581",
"0.68469894",
"0.68291247",
"0.68225783",
"0.6817285",
"0.6784018",
"0.6765787",
"0.67536587",
"0.67491364",
"0.67474824",
"0.6709922",
"0.6707781",
"0.6707781",
"0.6688704",
"0.6671108",
"0.6634266",
"0.6616893",
"0.65502226",
"0.65319496",
"0.65272135",
"0.65140307",
"0.6474508",
"0.64240915",
"0.6409989",
"0.63835514",
"0.6376573",
"0.6376291",
"0.63597643",
"0.63562834",
"0.63021207",
"0.6296094",
"0.6277626",
"0.62768644",
"0.62728745",
"0.6262417",
"0.6248345",
"0.61943376",
"0.6171825",
"0.6159328",
"0.6136319",
"0.6079685",
"0.60617864",
"0.6049485",
"0.60346824",
"0.6018591",
"0.6009282",
"0.6000803",
"0.5987862",
"0.5937447",
"0.59303474",
"0.5918599",
"0.5912698",
"0.5910928",
"0.58965206",
"0.58772343",
"0.5859792",
"0.5837004",
"0.5835753",
"0.58169293",
"0.58133876",
"0.581025",
"0.5809651",
"0.5802923",
"0.5799889",
"0.57943285",
"0.57329226",
"0.5725834",
"0.57173634",
"0.5699018",
"0.5688702",
"0.5683811",
"0.56778204",
"0.5657242",
"0.5652663",
"0.56422323",
"0.5621942",
"0.5605386"
]
| 0.7539879 | 6 |
This will return the rank as a string | public String getRankAsString (int aRank)
{
switch (aRank)
{
case 1:return("Ace");
case 2:return("Two");
case 3:return("Three");
case 4:return("Four");
case 5:return("Five");
case 6:return("Six");
case 7:return("Seven");
case 8:return("Eight");
case 9:return("Nine");
case 10:return("Ten");
case 11:return("Jack");
case 12:return("Queen");
case 13:return("King");
default: return("Invalid Rank");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRankString()\n {\n switch (rank)\n {\n \n case 2: return \"2\";\n case 3: return \"3\";\n case 4: return \"4\";\n case 5: return \"5\";\n case 6: return \"6\";\n case 7: return \"7\";\n case 8: return \"8\";\n case 9: return \"9\";\n case 10: return \"10\";\n case 11: return \"JACK\";\n case 12: return \"QUEEN\";\n case 13: return \"KING\";\n case 14: return \"ACE\";\n default: return \"JOKER\";\n \n }\n }",
"public String rank() {\r\n return rank;\r\n }",
"public String getRankString(){ return this.rank; }",
"public String getNumRank(int rank){\n\t\tString num;\n\t\tswitch (rank) {\n\t\tcase 1: num = \"2\";break;\n\t\tcase 2: num = \"4\"; break;\n\t\tcase 3: num = \"8\"; break;\n\t\tcase 4: num = \"16\"; break;\n\t\tcase 5: num = \"32\"; break;\n\t\tcase 6: num = \"64\"; break;\n\t\tcase 7: num = \"128\"; break;\n\t\tcase 8: num = \"256\"; break;\n\t\tcase 9: num = \"512\"; break;\n\t\tdefault: num = \"2\";\n\t\t\tbreak;\n\t\t}\n\t\treturn num;\n\t}",
"public String getRankAsString(){\n\t\tString str =\"\";\n\t\tif (rank == 1)\n str = \"Ace\";\n else if (rank == 11)\n str = \"Jack\";\n else if (rank == 12)\n str = \"Queen\";\n else if (rank == 13)\n str = \"King\";\n else\n str = rank + \"\";\n\t\treturn str;\n\t}",
"public String getRank() {\r\n return rank;\r\n }",
"public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}",
"public String getRank() {\n return rank;\n }",
"public String getRank()\n {\n return _rank;\n }",
"public String getRank() {\n\t\treturn rank;\n\t}",
"public String toEvalString() {\n String rank = \"\";\n if (this.rank != 10) {\n rank = rankToString().substring(0, 1).toUpperCase();\n } else {\n rank = \"T\";\n }\n\n String suit = suitToString().substring(0, 1).toLowerCase();\n\n return rank + suit;\n }",
"public static String rankString(int ranks){\n\t\treturn strRank[ranks].toString();\r\n\t}",
"public String getRank() {\n if(dbMgr.checkAdmin(username))\n return \"Admin\";\n\n else if(dbMgr.checkBannedUser(username))\n return \"Banned\";\n\n else if(dbMgr.checkReviewUser(username))\n return \"Review User\";\n\n else if(dbMgr.checkPremiumUser(username))\n return \"Premium User\";\n\n else \n return \"user\";\n }",
"String getRank(int rankNumber) {\n\t\tswitch(rankNumber) {\n\t\tcase 0:\n\t\t\treturn \"2\";\n\t\tcase 1:\n\t\t\treturn \"3\";\n\t\tcase 2:\n\t\t\treturn \"4\";\n\t\tcase 3:\n\t\t\treturn \"5\";\n\t\tcase 4:\n\t\t\treturn \"6\";\n\t\tcase 5:\n\t\t\treturn \"7\";\n\t\tcase 6:\n\t\t\treturn \"8\";\n\t\tcase 7:\n\t\t\treturn \"9\";\n\t\tcase 8:\n\t\t\treturn \"10\";\n\t\tcase 9:\n\t\t\treturn \"Jack\";\n\t\tcase 10:\n\t\t\treturn \"Queen\";\n\t\tcase 11:\n\t\t\treturn \"King\";\n\t\tcase 12:\n\t\t\treturn \"Ace\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"private String rankingsToString () {\n\t\tStringBuilder ps = new StringBuilder();\n\t\tps.append(\"Craft ranking = \"+craftRanking.getSortedRanking()+\"\\n\");\n\t\tps.append(\"Hit ranking = \"+ hitRanking.getSortedRanking()+\"\\n\");\n\t\treturn ps.toString();\n\t}",
"public String toString ()\n {\n return rank + \" of \" + suit;\n }",
"long getRank();",
"public byte getRank() {\n return rank;\n }",
"public long getRank() {\n return rank_;\n }",
"public Integer getRank(){\r\n\t\treturn rank;\r\n\t}",
"public String getResearchrank() {\r\n\t\treturn researchrank;\r\n\t}",
"public String toString()\r\n\t{\n\t\treturn strRank[srtRank] + strSuit[srtSuit];\r\n\t}",
"public int getRank()\n\t{\n\t\treturn rank;\n\t}",
"public int getRank() {\r\n return rank;\r\n }",
"public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}",
"public int getRank()\n {\n return rank;\n }",
"public long getRank() {\n return rank_;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank() {\n return rank;\n }",
"public int getRank();",
"public int getRank();",
"public String toString()\n {\n return getRankString() + \" of \" + getSuitString();\n }",
"public int getRank()\n {\n return rank;\n }",
"public String toString() {\r\n\t\tif (rank == 1) {\r\n\t\t\treturn \"slayer\";\r\n\t\t} else if (rank == 2) {\r\n\t\t\treturn \"scout\";\r\n\t\t} else if (rank == 3) {\r\n\t\t\treturn \"dwraf\";\r\n\t\t} else if (rank == 4) {\r\n\t\t\treturn \"elf\";\r\n\t\t} else if (rank == 5) {\r\n\t\t\treturn \"lavaBeast\";\r\n\t\t} else if (rank == 6) {\r\n\t\t\treturn \"sorceress\";\r\n\t\t} else if (rank == 7) {\r\n\t\t\treturn \"beastRider\";\r\n\t\t} else if (rank == 8) {\r\n\t\t\treturn \"knight\";\r\n\t\t} else if (rank == 9) {\r\n\t\t\treturn \"mage\";\r\n\t\t} else {\r\n\t\t\treturn \"dragon\";\r\n\t\t}\r\n\r\n\t}",
"public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public int getRank() {\n\t\treturn rank;\n\t}",
"public Integer getRank() {\n return this.rank;\n }",
"void showRanking(String winner, String rank);",
"public int getRank()\r\n {\r\n return this.rank;\r\n }",
"public Integer getRankValue() {\r\n\t\treturn rank;\r\n\t}",
"public void setRank(String value)\n {\n _rank = value;\n }",
"public Integer getRank() {\r\n\t\treturn this.rank;\r\n\t}",
"public int rank() { return this.rank; }",
"public int getRank(){\r\n return this.rank;\r\n }",
"public Rank getRank()\n\t{\n\t\treturn rank;\n\t}",
"@Override\r\n public final String toString(){\n if(this.rank.equals(RANKS[0])){ \r\n\t\t\treturn \"no card\"; \r\n\t\t}\r\n\t\t\r\n int r = getRank();\r\n if( r >= 2 && r <= 14 ){\r\n return r + getSuit().substring(0,1);\r\n\t\t}\r\n return \"no card\";\r\n }",
"public int getRank(){\n return rank;\n }",
"@Override\n public int getRank() {\n return rank;\n }",
"public int getRank(){\n return this.rank;\n }",
"public RankType getRank() {\n return rank;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }",
"public int getRank() {\n validify();\n return Client.INSTANCE.pieceGetRank(ptr);\n }",
"@Override\n public String toString()\n {\n return (this.getRankAsString(this.getRank()) +\" of \"\n + this.getSuitAsString(this.getSuit()));\n }",
"long getToRank();",
"public Integer rank() {\n return data.getInt(FhirPropertyNames.PROPERTY_RANK);\n }",
"public int collegeRank(int rank) {\n\t\tSystem.out.println(rank);\t\r\n\t\treturn rank;\r\n \r\n }",
"public int Rank();",
"public String toString() {\n\t\tString result = this.name + \" [\" + this.ranksOfName[0];\n\t\tfor (int i = 1; i < this.ranksOfName.length; i++) {\n\t\t\tresult += \", \" + this.ranksOfName[i];\n\t\t}\n\t\tresult += \"]\";\n\t\treturn result;\n\t}",
"public static String randomRank() {\r\n\t\tString[] rank = {\"assistant\",\"associate\",\"full\"};\r\n\t\treturn rank[(int)(Math.random() * 3)];\r\n\t}",
"public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0])){ return -1; } // \"no card\"\r\n\t\treturn rankValue.get(this.rank);\r\n\t}",
"public Rank rank(){\n return PackedCard.rank(this.nbCard);\n }",
"public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}",
"public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}",
"int getRanking();",
"public static int GetRankNumber(RankingSystem rank) {\n\t\tif (rank == RankingSystem.Strong) {\n\t\t\treturn 5;\n\t\t}\n\t\telse if (rank == RankingSystem.AboveAverage) {\n\t\t\treturn 4;\n\t\t}\n\t\telse if (rank == RankingSystem.Average) {\n\t\t\treturn 3;\n\t\t}\n\t\telse if (rank == RankingSystem.BelowAverage) {\n\t\t\treturn 2;\n\t\t}\n\t\treturn 1;\n\t}",
"public int getRank(){\n return Value;\n }",
"public Rank getRank()\n {\n return rank;\n }",
"public Vector getRank() {\n return rank;\n }",
"public int getRanking() {\n return ranking_;\n }",
"public String displayRank(Vector v) {\n String results = \"\";\n Enumeration vEnum = v.elements();\n Iterator it = v.iterator();\n while (vEnum.hasMoreElements()) {\n //Poney p = (Poney) it;\n results += \" \" + vEnum.nextElement();\n }\n return results;\n }",
"@Override\r\n\tpublic String toString() {\r\n return rank + \" of \" + suit + \" - Point value: \" + pointValue;\r\n }",
"public void setRank(String rank) {\n this.rank = rank;\n }",
"public String getHighestRank() {\n try {\n FileInputStream fis = new FileInputStream(this.databaseName + \".config\");\n\n // Reading in the number of normal records from the .config file starting from offset 104 bytes (where the number for HIGHEST-RANK begins)\n fis.getChannel().position(104);\n byte[] highestRank = new byte[5];\n \n fis.read(highestRank, 0, 5);\n fis.close();\n return new String(highestRank).trim();\n } catch (IOException ex) {\n ex.printStackTrace();\n return \"Error\";\n }\n }",
"long getFromRank();",
"public int getRanking() {\n return ranking_;\n }",
"@Override\r\n public String toString() {\r\n\r\n int num = 1;\r\n String output = String.format(\"Player Name: %s%n%nCurrent \"\r\n + \"Card Ranks:%n\", getName());\r\n for (Card x : currentCards) {\r\n output += String.format(\"%d. %s%n\", num, x.getRank().name());\r\n num++;\r\n\r\n }\r\n return output;\r\n }",
"public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }",
"public static int getRankValue(String rank)\r\n\t{\n\t\tint rankValue = 0;\r\n\t\t\t\t\r\n\t\tif (rank.equals(\"J\") || rank.equals(\"Q\") || rank.equals(\"K\"))\r\n\t\t{\r\n\t\t\t// face cards have rank of 10\r\n\t\t\trankValue = 10;\r\n\t\t}\r\n\t\telse if (rank.equals(\"A\"))\r\n\t\t{\r\n\t\t\t// ace has rank of 1\r\n\t\t\trankValue = 1;\r\n\t\t}\r\n\t\telse if (rank.equals(\"2\") || rank.equals(\"3\") || rank.equals(\"4\") || \r\n\t\t\t\t rank.equals(\"5\") || rank.equals(\"6\") || rank.equals(\"7\") || \r\n\t\t\t\t rank.equals(\"8\") || rank.equals(\"9\") || rank.equals(\"10\"))\r\n\t\t{\r\n\t\t\t// all others have rank of face value\r\n\t\t\trankValue = Integer.valueOf(rank);\r\n\t\t}\r\n\r\n\t\treturn rankValue;\r\n\t}",
"@Override\n public String toString() {\n return rankArray[rank] + suitArray[suit];\n }",
"public String toString(){\n String r = \"\";\n String s = \"\";\n switch(rank){\n case 1: r = \"Ace\"; break;\n case 2: r = \"Two\"; break;\n case 3: r = \"Three\"; break;\n case 4: r = \"Four\"; break;\n case 5: r = \"Five\"; break;\n case 6: r = \"Six\"; break;\n case 7: r = \"Seven\"; break;\n case 8: r = \"Eight\"; break;\n case 9: r = \"Nine\"; break;\n case 10: r = \"Ten\"; break;\n case 11: r = \"Jack\"; break; \n case 12: r = \"Queen\"; break;\n case 13: r = \"King\"; break;\n }\n \n switch(suit) {\n case 1: s = \" of Clubs\"; break;\n case 2: s = \" of Diamonds\"; break;\n case 3: s = \" of Hearts\"; break;\n case 4: s = \" of Spades\"; break;\n }\n return r + s; //returns the name of the card\n }",
"public Card.Rank rank() {\n return PackedCard.rank(packedCard);\n }",
"public int getRank ()\n {\n return this.ranks; \n }",
"public int getrank() {\n\t\treturn this.rank;\n\t}",
"public long getToRank() {\n return toRank_;\n }",
"public void rank(){\n\n\t}",
"public String getMovieNameWithRank(int rank0){\n\t\treturn moviePref[rank0-1].getName();\n\t}",
"public String toString() {\n\t\treturn SUIT_NAMES[suit]+RANK_NAMES[rank];\n\t}",
"public int returnRank() {\n return this.data.returnRank();\n }",
"public Integer getGameRank() {\n return gameRank;\n }",
"public long getToRank() {\n return toRank_;\n }",
"public int value() {\n return this.intRank;\n }",
"public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}",
"public double getRankScore() {\n return this.rankScore;\n }",
"public void setRank(Integer rank) {\n this.rank = rank;\n }",
"public Rank getRank() {\n return cardRank;\n }",
"public LSPRanking getRanking () {\r\n return ranking;\r\n }"
]
| [
"0.85038066",
"0.82002664",
"0.815516",
"0.80304855",
"0.79735726",
"0.7964928",
"0.79556316",
"0.79387224",
"0.7842039",
"0.7793419",
"0.7664397",
"0.76526517",
"0.75697166",
"0.7438936",
"0.7395543",
"0.7340953",
"0.72719294",
"0.72173375",
"0.7156994",
"0.7154259",
"0.71503335",
"0.7141088",
"0.7113666",
"0.71116674",
"0.7105987",
"0.7090549",
"0.708851",
"0.70862883",
"0.70862883",
"0.70862883",
"0.70859313",
"0.70859313",
"0.7070631",
"0.70462525",
"0.7033938",
"0.7031092",
"0.70060885",
"0.70060885",
"0.70060885",
"0.70060885",
"0.70042294",
"0.69965374",
"0.698798",
"0.6973061",
"0.6962027",
"0.69323707",
"0.6920082",
"0.6897371",
"0.6873849",
"0.6857411",
"0.6844541",
"0.682953",
"0.68196446",
"0.6803233",
"0.67970324",
"0.6795433",
"0.6771122",
"0.6767575",
"0.67635584",
"0.6759148",
"0.67546314",
"0.67501044",
"0.6748115",
"0.67461795",
"0.66919756",
"0.6683839",
"0.6681134",
"0.666533",
"0.6646447",
"0.6635876",
"0.6619729",
"0.6611117",
"0.6608562",
"0.65974236",
"0.65910673",
"0.6581716",
"0.65650135",
"0.65328765",
"0.6503434",
"0.64904976",
"0.64510643",
"0.6450867",
"0.6433086",
"0.6417775",
"0.64146495",
"0.6413049",
"0.641057",
"0.6377597",
"0.6376969",
"0.6342614",
"0.63295144",
"0.63274854",
"0.62933093",
"0.62790745",
"0.6271617",
"0.62263143",
"0.6225964",
"0.6190156",
"0.6179639",
"0.6177487"
]
| 0.74994516 | 13 |
This will return the suit of the receiver as a string | public String getSuitAsString (int aSuit)
{
switch (aSuit)
{
case 1:return("Spades");
case 2:return("Diamonds");
case 3:return("Clubs");
case 4:return("Hearts");
default:return("Invalid Rank");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public String suit() {\r\n return suit;\r\n }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }",
"@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}",
"public String getSuit() {\r\n return suit;\r\n }",
"public String getSuit()\r\n { return suit; }",
"public String toString()\n {\n return value + \" \" + suit;\n }",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public String getSuit() {\n return suit;\n }",
"public String getSuitAsString(){\n\t\tString str = \"\";\n\t\tif (suit == 0)\n\t\t\tstr = new String(\"Clubs\");\n\t\telse if (suit == 1)\n\t\t\tstr = new String(\"Diamonds\");\n\t\telse if (suit == 2)\n\t\t\tstr = new String(\"Hearts\");\n\t\telse if (suit == 3)\n\t\t\tstr = new String(\"Spades\");\n\t\treturn str;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String toString ()\n {\n return rank + \" of \" + suit;\n }",
"public String toString() {\n return \"The \" + value + \" of \" + suit;\n }",
"public String getSuitString()\n {\n switch (suit)\n {\n case SPADES: return \"SPADES\";\n case CLUBS: return \"CLUBS\";\n case DIAMONDS: return \"DIAMONDS\";\n case HEARTS: return \"HEARTS\";\n default: return \"Invalid\";\n }\n \n }",
"@Override\r\n public final String toString(){\n if(this.rank.equals(RANKS[0])){ \r\n\t\t\treturn \"no card\"; \r\n\t\t}\r\n\t\t\r\n int r = getRank();\r\n if( r >= 2 && r <= 14 ){\r\n return r + getSuit().substring(0,1);\r\n\t\t}\r\n return \"no card\";\r\n }",
"public String toString() {\n return faceName + \" of \" + suit;\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}",
"public String getSuit() {\n return this.suit;\n }",
"String getSuit(int suitNumber) {\n\t\tswitch(suitNumber) {\n\t\tcase 0:\n\t\t\treturn \"Clubs\";\n\t\tcase 1:\n\t\t\treturn \"Diamonds\";\n\t\tcase 2:\n\t\t\treturn \"Hearts\";\n\t\tcase 3:\n\t\t\treturn \"Spades\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"final public String toString() {\r\n\t\tswitch (face) {\r\n\t\tcase 10:\r\n\t\t\treturn \"X\" + Character.toString(suit);\r\n\t\tcase 11:\r\n\t\t\treturn \"J\" + Character.toString(suit);\r\n\t\tcase 12:\r\n\t\t\treturn \"Q\" + Character.toString(suit);\r\n\t\tcase 13:\r\n\t\t\treturn \"K\" + Character.toString(suit);\r\n\t\tdefault:\r\n\t\t\treturn face + Character.toString(suit);\t\t\t\t\r\n\t\t}\r\n\t}",
"public String toString(){\n String card = null; \n //clubs\n if(suit==1){\n \tcard = \"c\" + Integer.toString(value);\n }\n //diamonds\n if(suit==2){\n \tcard = \"d\" + Integer.toString(value);\n }\n //hearts\n if(suit==3){\n \tcard = \"h\" + Integer.toString(value);\n }\n //spades\n if(suit==4){\n \tcard = \"s\" + Integer.toString(value);\n }\n return card; \n\t}",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit() {\r\n return suit;\r\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit()\n {\n return suit;\n }",
"@Override\r\n public String toString(){\n StringBuilder displayCard = new StringBuilder();\r\n \r\n if(rank==11)\r\n {\r\n displayCard.append(\"Jack\");\r\n }\r\n else if(rank==12)\r\n {\r\n displayCard.append(\"Queen\");\r\n }\r\n else if(rank == 13)\r\n {\r\n displayCard.append(\"King\");\r\n }\r\n else if(rank==14)\r\n {\r\n displayCard.append(\"Ace\");\r\n }\r\n else\r\n {\r\n displayCard.append(rank);\r\n }\r\n displayCard.append(\" of \"); //setting the format of the output\r\n \r\n if(suit==0)\r\n {\r\n displayCard.append(\"Spades\");\r\n }\r\n else if(suit==1)\r\n {\r\n displayCard.append(\"Hearts\");\r\n }\r\n else if(suit==2)\r\n {\r\n displayCard.append(\"Clubs\");\r\n }\r\n else if(suit==3)\r\n {\r\n displayCard.append(\"Diamonds\");\r\n }\r\n //return the result of an entire cmombined string\r\n return displayCard.toString();\r\n }",
"public String getSuit(){ return this.suit; }",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }",
"public String toString() {\n\t\treturn SUIT_NAMES[suit]+RANK_NAMES[rank];\n\t}",
"public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }",
"@Override\n public String toString() {\n CardValue cardValue = new CardValue(value).invoke();\n\n // Change the value to the actual name when printing out\n // the card.\n\n return cardValue.getValueName() + \" of \" + suit;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"public String toString() {\r\n\t\t\r\n\t\tString cardSuit = \"\";\r\n\t\tString cardRank = \"\";\r\n\t\tString cardString = \"\";\r\n\t\t\r\n\t\t\r\n\t\tint cs = getSuit();\r\n\t\tint cr = getRank();\r\n\t\t\r\n\t\tswitch(cr) {\r\n\t\tcase 1:\r\n\t\t\tcardRank = \"ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2: \r\n\t\t\tcardRank =\"2\";\r\n\t\t\tbreak;\r\n\t\tcase 3: \r\n\t\t\tcardRank =\"3\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardRank =\"4\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardRank =\"5\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardRank =\"6\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardRank =\"7\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardRank =\"8\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardRank =\"9\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardRank =\"10\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardRank =\"jack\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardRank =\"queen\";\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardRank =\"king\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardRank = \"n/a\";\r\n\t\t\t\r\n\t\t}//switch rank\r\n\t\t\r\n\t\t//got a string representation of the rank\r\n\t\t//now get a string representation of the siut\r\n\t\t\r\n\t\tswitch(cs) {\r\n\t\tcase 0:\r\n\t\t\tcardSuit = \"hearts\";\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcardSuit = \"diamonds\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardSuit = \"clubs\";\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcardSuit = \"spades\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardSuit = \"n/a\";\r\n\t\t\t\r\n\t\t}\r\n\t\tcardString = \"file:cards/\"+cardRank+\"_of_\"+cardSuit+\".png\";\r\n\t\t\r\n\t\treturn cardString;\r\n\t\t\r\n\t}",
"public String toString() {\n if (this.errorFlag == true)\n return \"[INVALID CARD]\";\n else\n return this.value + \" of \" + suit.toString();\n }",
"public int getSuit(){\n return suit;\n }",
"public String toString(){\n String r = \"\";\n String s = \"\";\n switch(rank){\n case 1: r = \"Ace\"; break;\n case 2: r = \"Two\"; break;\n case 3: r = \"Three\"; break;\n case 4: r = \"Four\"; break;\n case 5: r = \"Five\"; break;\n case 6: r = \"Six\"; break;\n case 7: r = \"Seven\"; break;\n case 8: r = \"Eight\"; break;\n case 9: r = \"Nine\"; break;\n case 10: r = \"Ten\"; break;\n case 11: r = \"Jack\"; break; \n case 12: r = \"Queen\"; break;\n case 13: r = \"King\"; break;\n }\n \n switch(suit) {\n case 1: s = \" of Clubs\"; break;\n case 2: s = \" of Diamonds\"; break;\n case 3: s = \" of Hearts\"; break;\n case 4: s = \" of Spades\"; break;\n }\n return r + s; //returns the name of the card\n }",
"@Override\n public String toString() {\n return rankArray[rank] + suitArray[suit];\n }",
"public String getHand()\n\t{\n\t\tStringBuffer buffer = new StringBuffer(String.format(\"%s:[%d] \", getName(), getHandTotal() ));\n\t\t\n\t\tfor (Card c : hand)\n\t\t{\n\t\t\tbuffer.append(String.format(\"%s: \", c));\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }",
"public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }",
"private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }",
"public String toString() {\n String handString = \"( \";\n for (int i = 0; i < this.numCards; i++) {\n handString += this.myCards[i].toString();\n if (i != this.numCards - 1)\n handString += \", \";\n }\n handString += \" )\";\n return handString;\n }",
"public int getSuit() {\n return this.suit;\n }",
"public static String cardToString(int card){\n StringBuffer sb = new StringBuffer(\"\");\n //add the suit of the card\n //convert the suit number into letter\n //create an array of suits\n String[] suits = {\"S\", \"H\", \"C\", \"D\"};\n sb.append(suits[suit(card) - 1]);\n //add the face of the card\n //convert 1, 10, 11, 12, 13 face numbers into letters\n //create an array of special faces\n String[] faces = {\"X\", \"J\", \"Q\", \"K\"};\n if(face(card) == 1){\n sb.append(\"A\");\n } else if(face(card) >= 10){\n sb.append(faces[face(card) - 10]);\n } else {\n sb.append(face(card));\n }\n return sb.toString();\n }",
"public Suit getSuit() {\n return suit;\n }",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public String cardDisplay(){\n if(this.faceDown) {\n return \"Bicycle\";}\n else{ return \"Friendly Names of: \" + this.rank + \":\"+this.suit;\n\n }\n }",
"@Override\n\tpublic String toString() {\n\t\tif(this.upOrDown == CardFace.FaceUp) {\n\t\t\treturn this.suit.toString() + \" \" + this.rank.toString();\n\t\t}\n\t\telse {\n\t\t\treturn \"Card Face Down\";\n\t\t}\n\t}",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public String toString() {\n String info = values[value] + \" of \" + suits[suit];\n return info;\n }",
"public int suitNum() {\r\n return this.i;\r\n }",
"public String toString() {\n // return \"Card {suit: \"+getSuitString()+\", rank: \"+getRankString()+\"}\";\n return \"{\"+getSuitString()+\",\"+getRankString()+\"}\";\n }",
"public String chooseSuit()\t{\n\t\tString choose = \"\";\n\t\tSystem.out.println(\"Choose a suit: h) hearts, d) diamonds, s) spades, c) clubs\");\n\t\tchoose = input.nextLine();\n\t\tswitch(choose.toLowerCase())\t{\n\t\tcase \"h\":\n\t\t\tchoose = \"Hearts\";\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\tchoose = \"Diamonds\";\n\t\t\tbreak;\n\t\tcase \"s\":\n\t\t\tchoose = \"Spades\";\n\t\t\tbreak;\n\t\tcase \"c\":\n\t\t\tchoose = \"Clubs\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again!\");\n\t\t\tchooseSuit();\n\t\t\tbreak;\n\t\t}\n\t\treturn choose;\n\t}",
"public String GetHumanCard(int value){\n return handHuman.get(value);\n }",
"public String toString(){\n String handString = \"\";\n int i = 1;\n sort();\n for(Card c: cards){\n handString += Integer.toString(i) + \": \" + c + \"\\n\";\n i++;\n }\n handString = handString.substring(0, handString.length() - 1);\n return handString;\n }",
"public String toString()\n {\n return getRankString() + \" of \" + getSuitString();\n }",
"public String toString(){\r\n\t\t\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < this.cardCount()-1; i++)\r\n\t\t\tresult += this.getCard(i).toString() + \", \";\r\n\t\t\r\n\t\treturn result + this.getCard(this.cardCount()-1).toString() + \" has Blackjack value \" + this.value();\r\n\t}",
"@Override\n public String toString() {\n String hand = \"\";\n for (int i = 0; i < cards.size(); i++) {\n hand += \"(\"+(i+1)+\")\"+cards.get(i).toString() + \", \";\n }\n return hand;\n }",
"@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder(\"Hand contains:\\n\");\n for (Card c : cardList) {\n stringBuilder.append(c.getFace().toString());\n stringBuilder.append(\" of \");\n stringBuilder.append(c.getSuit().toString());\n stringBuilder.append(\"\\n\");\n }\n return stringBuilder.toString();\n }",
"public String toString(){\n return \"Hand: \" + cards; \n }",
"private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }",
"public String getRankAsString(){\n\t\tString str =\"\";\n\t\tif (rank == 1)\n str = \"Ace\";\n else if (rank == 11)\n str = \"Jack\";\n else if (rank == 12)\n str = \"Queen\";\n else if (rank == 13)\n str = \"King\";\n else\n str = rank + \"\";\n\t\treturn str;\n\t}",
"public char getSuit(){\n return Suits;\n }",
"public void setSuit(String value) {\n suit = value;\n }",
"public String showCardInHand(){\n String handCard = \"\";\n int cardNum = 0;\n for(Card cards: playerHand)\n {\n String cardDesc;\n if (cards instanceof Mineral) {\n // Description of the Mineral card\n cardDesc = \"No: \" + cardNum + \" \" +\n \"Name: \" + cards.getCardName() + \" \" +\n \"Hardness: \" + ((Mineral) cards).getCardHardness() + \" \" +\n \"Specific Gravity: \" + ((Mineral) cards).getCardSpecGravity() + \" \" +\n \"Cleavage: \" + ((Mineral) cards).getCardCleavage() + \" \" +\n \"Crystal Abundance: \" + ((Mineral) cards).getCardCrystalAbundance() + \" \" +\n \"Economic Value: \" + ((Mineral) cards).getCardEconomicValue() + \"\\n\";\n }\n else{\n // Description of the Supertrump card\n cardDesc = \"No: \"+ cardNum+ \" \" + \"Name: \" + cards.getCardName()+ \" \" + \"Description: \" +\n ((SuperTrumps) cards).effectDescription()+ \"\\n\";\n }\n cardNum += 1;\n handCard += cardDesc; // Used for adding the description of the card in the hand\n }\n return handCard;\n }",
"public Suit getSuit() {\n return cardSuit;\n }",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"public String toString()\r\n {\r\n StringBuilder sBuilder = new StringBuilder();\r\n sBuilder.append(\"Hand: \");\r\n sBuilder.append(\"\\n\");\r\n if (numCards == 0)\r\n {\r\n sBuilder.append(\"Out of Cards\");\r\n return sBuilder.toString();\r\n }\r\n for (int i = 0; i < numCards; i++)\r\n {\r\n if (myCards[i] != null)\r\n {\r\n if (i != numCards - 1)\r\n {\r\n if ((i + 1) % 10 == 0 && i != 0)\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\"\\n\");\r\n } else\r\n {\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\", \");\r\n }\r\n }\r\n\r\n } else\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n }\r\n }\r\n }\r\n return sBuilder.toString();\r\n }",
"public int getSuitInt() {\n return this.suit;\n }",
"public String toString()\r\n\t{\n\t\treturn strRank[srtRank] + strSuit[srtSuit];\r\n\t}",
"public String GetComputerCard(int value){\n return handComputer.get(value);\n }",
"public String getShortName() {\n\t\tif(number == 11){\n\t\t\treturn (suit + \"j\");\n\t\t}\n\t\telse if(number == 12) {\n\t\t\treturn (suit + \"q\");\n\t\t}\n\t\telse if(number == 13) {\n\t\t\treturn (suit + \"k\");\n\t\t}\n\t\telse if(number == 14) {\n\t\t\treturn (suit + \"a\");\n\t\t}\n\t\telse {\n\t\t\treturn (suit + String.valueOf(number));\n\t\t}\n\t}",
"public String displayCard()\n {\n card = \"\";\n \n switch(cardValue)\n {\n case 11:\n card+= \"J\";\n break;\n case 12:\n card+= \"Q\";\n break;\n case 13:\n card+= \"K\";\n break;\n case 14:\n card+= \"A\";\n break; \n default:\n card+= String.valueOf(cardValue); \n break;\n }\n \n switch(cardSuit){\n case 0:\n card+= \" of Clubs\";\n break;\n case 1:\n card+= \" of Diamonds\";\n break;\n case 2:\n card+= \" of Spades\";\n break;\n case 3:\n card+= \" of Hearts\";\n break;\n default:\n break;\n }\n \n return card;\n }",
"public String toString() {\r\n\t\tif (rank == 1) {\r\n\t\t\treturn \"slayer\";\r\n\t\t} else if (rank == 2) {\r\n\t\t\treturn \"scout\";\r\n\t\t} else if (rank == 3) {\r\n\t\t\treturn \"dwraf\";\r\n\t\t} else if (rank == 4) {\r\n\t\t\treturn \"elf\";\r\n\t\t} else if (rank == 5) {\r\n\t\t\treturn \"lavaBeast\";\r\n\t\t} else if (rank == 6) {\r\n\t\t\treturn \"sorceress\";\r\n\t\t} else if (rank == 7) {\r\n\t\t\treturn \"beastRider\";\r\n\t\t} else if (rank == 8) {\r\n\t\t\treturn \"knight\";\r\n\t\t} else if (rank == 9) {\r\n\t\t\treturn \"mage\";\r\n\t\t} else {\r\n\t\t\treturn \"dragon\";\r\n\t\t}\r\n\r\n\t}",
"public Suit getSuit() {\n return this.suit;\n }",
"public String showFirstRoundCards() {\n String message = \"[ Unknown \";\n message += personHand.get(1) + \" ]\";\n return message;\n }",
"public String toEvalString() {\n String rank = \"\";\n if (this.rank != 10) {\n rank = rankToString().substring(0, 1).toUpperCase();\n } else {\n rank = \"T\";\n }\n\n String suit = suitToString().substring(0, 1).toLowerCase();\n\n return rank + suit;\n }",
"public String get_card(int index){\r\n return String.valueOf(hand.get(index).get_value()) + hand.get(index).get_suit() + \".jpg\";\r\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public String printCard(int player) {\n\t\tif (player >= 4 || player < 0) {\n\t\t\treturn \"Error\";\n\t\t}\n\t\tif (show[player]) {\n\t\t\treturn suit + rank;\n\t\t}\n\t\treturn suit;\n\t}",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public String JitterString() {\n MainActivity mainActivity = (MainActivity) getActivity();\n int shakebucket = mainActivity.getShakeBucketed();\n String retval;\n\n switch (shakebucket) {\n case (0):\n retval = \"Very Low\";\n break;\n case (1):\n retval = \"Low\";\n break;\n case (2):\n retval = \"Moderate\";\n break;\n case (3):\n retval = \"High\";\n break;\n case (4):\n retval = \"Very High\";\n break;\n case (5):\n retval = \"Extremly High\";\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + shakebucket);\n }\n return retval;\n }",
"@Override\n public String toString()\n {\n return (this.getRankAsString(this.getRank()) +\" of \"\n + this.getSuitAsString(this.getSuit()));\n }",
"public String getDealerHandString() {\n\t\tString s = \"Dealer's Hand:\\n\";\n\t\ts += this.hand.getHandString() + \"\\n\";\n\t\ts += this.hand.valueString();\n\t\treturn s;\n\t}",
"public String getCardName()\n {\n String returnString = \"\";\n if(num == 14)\n {\n returnString+=(\"Ace\");\n }\n else if(num == 11)\n {\n returnString+=(\"Jack\");\n }\n else if(num == 12)\n {\n returnString+=(\"Queen\");\n }\n else if(num == 13)\n {\n returnString+=(\"King\");\n }\n else\n {\n returnString+=(num);\n }\n returnString+=(\" of \");\n if(suit == 1)\n {\n returnString+=(\"Spades\");\n }\n else if(suit == 2)\n {\n returnString+=(\"Hearts\");\n }\n else if(suit == 3)\n {\n returnString+=(\"Diamonds\");\n }\n else\n {\n returnString+=(\"Clubs\");\n }\n return returnString;\n }",
"public String getInitialDealerString() {\n\t\tString s = \"Dealer's Hand:\\n\";\n\t\tArrayList<Card> c= this.hand.getCards();\n\t\ts += c.get(0).getRank() + \" \";\n\t\ts += \"???\";\n\t\treturn s;\n\t}",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public int getSuit() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id < 14)\n\t\t\treturn 1;\n\t\telse if (id >= 14 && id < 27)\n\t\t\treturn 2;\n\t\telse if (id >= 27 && id < 40)\n\t\t\treturn 3;\n\t\telse\n\t\t\treturn 4;\n\t}",
"public String showCard(int card) {\n\t\tswitch (card) {\n\t\tcase 1:\n\t\t\treturn \"Ace\";\n\t\tcase 2:\n\t\t\treturn \"2\";\n\t\tcase 3:\n\t\t\treturn \"3\";\n\t\tcase 4:\n\t\t\treturn \"4\";\n\t\tcase 5:\n\t\t\treturn \"5\";\n\t\tcase 6:\n\t\t\treturn \"6\";\n\t\tcase 7:\n\t\t\treturn \"7\";\n\t\tcase 8:\n\t\t\treturn \"8\";\n\t\tcase 9:\n\t\t\treturn \"9\";\n\t\tcase 10:\n\t\t\treturn \"10\";\n\t\tcase 11:\n\t\t\treturn \"Jack\";\n\t\tcase 12:\n\t\t\treturn \"Queen\";\n\t\tcase 13:\n\t\t\treturn \"King\";\n\t\tdefault:\n\t\t\treturn \"??\";\n\t\t}\n\t}",
"@Override\r\n\tpublic String toString() {\r\n return rank + \" of \" + suit + \" - Point value: \" + pointValue;\r\n }",
"public String getRankString()\n {\n switch (rank)\n {\n \n case 2: return \"2\";\n case 3: return \"3\";\n case 4: return \"4\";\n case 5: return \"5\";\n case 6: return \"6\";\n case 7: return \"7\";\n case 8: return \"8\";\n case 9: return \"9\";\n case 10: return \"10\";\n case 11: return \"JACK\";\n case 12: return \"QUEEN\";\n case 13: return \"KING\";\n case 14: return \"ACE\";\n default: return \"JOKER\";\n \n }\n }",
"public String handToString() {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(\"Holding:\");\n\t\tfor (Card c: hand) {\t\t\t\n\t\t\tstr.append(\" \" + c.getName() + \",\");\n\t\t}\n\t\treturn str.toString().substring(0, str.toString().length()-1);\n\t}"
]
| [
"0.77881306",
"0.7782923",
"0.77390057",
"0.77274275",
"0.76995707",
"0.76828307",
"0.76631445",
"0.76608545",
"0.7658479",
"0.765658",
"0.7620516",
"0.7608372",
"0.7567506",
"0.7550788",
"0.7550788",
"0.74991333",
"0.7412187",
"0.7407591",
"0.72832036",
"0.72783494",
"0.7265852",
"0.72600794",
"0.7244754",
"0.7213167",
"0.71865165",
"0.71598554",
"0.71438116",
"0.71152604",
"0.70975024",
"0.706357",
"0.706357",
"0.70624155",
"0.7061256",
"0.70452434",
"0.70223314",
"0.6878624",
"0.68759716",
"0.6859749",
"0.6859529",
"0.6841599",
"0.68191063",
"0.6796548",
"0.6769204",
"0.6732389",
"0.6713965",
"0.66744244",
"0.6670607",
"0.66305023",
"0.66296846",
"0.6616452",
"0.6598155",
"0.6594739",
"0.6583419",
"0.6582672",
"0.65822816",
"0.65809214",
"0.65599084",
"0.6547091",
"0.65203977",
"0.6515571",
"0.65146",
"0.6485905",
"0.64698863",
"0.6438019",
"0.64267534",
"0.638747",
"0.63625294",
"0.6335653",
"0.63210887",
"0.62974447",
"0.6296256",
"0.62679374",
"0.6259354",
"0.6250088",
"0.6238287",
"0.622678",
"0.6210198",
"0.6202974",
"0.61973757",
"0.61911774",
"0.61838526",
"0.6182961",
"0.61668324",
"0.614554",
"0.6144897",
"0.61383224",
"0.6126294",
"0.6124195",
"0.61079645",
"0.6107529",
"0.60697734",
"0.605645",
"0.6052814",
"0.6037199",
"0.6031705",
"0.60308284",
"0.6015394",
"0.60149884",
"0.60128087",
"0.5999179"
]
| 0.69736576 | 35 |
Returns a string representation of the receiver. | @Override
public String toString()
{
return (this.getRankAsString(this.getRank()) +" of "
+ this.getSuitAsString(this.getSuit()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n String result = msgType.toString();\n if (msgSender != null) {\n result += \" \" + msgSender.length() + \" \" + msgSender;\n } else {\n result += \" \" + NULL_OUTPUT.length() + \" \" + NULL_OUTPUT;\n }\n if (receiver != null) {\n result += \" \" + receiver.length() + \" \" + receiver;\n } else {\n result += \" \" + NULL_OUTPUT.length() + \" \" + NULL_OUTPUT;\n }\n if (msgText != null) {\n result += \" \" + msgText.length() + \" \" + msgText;\n } else {\n result += \" \" + NULL_OUTPUT.length() + \" \" + NULL_OUTPUT;\n }\n return result;\n }",
"public String toString() { return stringify(this, true); }",
"public String toString()\r\n\t{\r\n\t\treturn message;\r\n\t}",
"public String toString() {\n\t\treturn message;\n\t}",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn getSenderPk()+\":\"+getAmount()+\":\"+getReceiverPk();\n\t}",
"public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"@Override\n\tpublic String toString(){\n\t\treturn this.message;\n\t}",
"public String toString() {\n return message;\n }",
"@Override\n public String toString() {\n final StringBuilder buffer = new StringBuilder(90);\n InetAddressUtils.formatAddress(buffer, localAddress);\n buffer.append(\"<->\");\n InetAddressUtils.formatAddress(buffer, remoteAddress);\n return buffer.toString();\n }",
"public String toString() {\n String s = \"Message <OctopusCollectedMsg> \\n\";\n try {\n s += \" [moteId=0x\"+Long.toHexString(get_moteId())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [count=0x\"+Long.toHexString(get_count())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [reading=0x\"+Long.toHexString(get_reading())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [quality=0x\"+Long.toHexString(get_quality())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [parentId=0x\"+Long.toHexString(get_parentId())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [reply=0x\"+Long.toHexString(get_reply())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }",
"public String toTransmissionString() {\n return this.toHexString();\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override\n public String toString() {\n return senderName;\n }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"public String toString() {\n\t\tif(this.start != null && this.end != null){\n\t\t\tString s1 = (\"\\n\\nEdge: \" + this.edgeId + \"\\nReliable: \" + this.isReliable\n\t\t\t\t+ \"\\nMessage Flow Type: \" + this.msgFlowType\n\t\t\t\t+ \"\\nDelay type: \"\n\t\t\t\t+ this.delayType + \"\\nNode 1: \" + this.start.getNodeId()\n\t\t\t\t+ \"\\nNode 2: \" + this.end.getNodeId());\n\t\t\treturn s1;\n\t\t\t\n\t\t}else{\t\t\n\t\t\tString s2 = (\"\\n\\nEdge: \" + this.edgeId + \"\\nReliable: \" + this.isReliable\n\t\t\t\t+ \"\\nMessage Flow Type: \" + this.msgFlowType\n\t\t\t\t+ \"\\nNum Message Entered: \" + \"\\nDelay type: \"\n\t\t\t\t+ this.delayType);\n\t\t\treturn s2;\n\t\t}\t\t\n\t}",
"public String toString() {\n\t\tString string = sender.getAdresse().getOrt() + \">\" + empfaenger.getAdresse().getOrt() + \"(Start:\"\n\t\t\t\t+ startZeitpunkt + \" Dauer:\" + transportDauer + \")\";\n\t\tif (istAusgeliefert() == true) {\n\t\t\tstring += \" ist ausgeliefert\";\n\t\t} else {\n\t\t\tstring += \"bei \" + (100 * (momentanZeitpunkt - startZeitpunkt) / transportDauer) + \"%\";\n\t\t}\n\t\treturn string;\n\t}",
"public String toString() {\n\t\treturn adaptee.toString();\n\t}",
"@Override\n public String toString() {\n return message;\n }",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"@Override\n public String toTransmissionString() {\n return toHexString();\n }",
"public String toString() {\n\t\treturn String.format(\"Id: %s\\nContent: %s\\nInsertion Time: %s\\nExpiration Time: %s\\nDequeue Count: %s\\nPop Receipt: %s\\nNext Visible Time: %s\\n\",\n\t\t\t\tm_MessageId,\n\t\t\t\tthis.getAsString(),\n\t\t\t\tm_InsertionTime,\n\t\t\t\tm_ExpirationTime,\n\t\t\t\tm_DequeueCount,\n\t\t\t\tm_PopReceipt,\n\t\t\t\tm_NextVisibleTime);\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString()\r\n\t{\r\n\t\treturn this.mac+\",\"+this.ssid+\",\"+this.channel+\",\"+this.signal+\",\";\r\n\t\t\r\n\t}",
"public String getStringRepresentation() {\n StringJoiner joiner = new StringJoiner(STRING_FORMAT_DELIMITER);\n\n joiner.add(this.getCaller())\n .add(this.getCallee())\n .add(SIMPLE_DATE_FORMAT.format(startTime))\n .add(SIMPLE_DATE_FORMAT.format(endTime));\n\n return joiner.toString();\n }",
"public String toString()\n {\n return Native.getNumeralString(getContext().nCtx(), getNativeObject());\n }",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString()\n\t{\n\t\treturn (new String(wLocalBuffer)) ;\n\t}",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.r.toString();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"public String toString() {\r\n\t\treturn result;\r\n\t}",
"public String toString() {\n return \"\" + data;\n }",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"public String toString() {\n\t\treturn b.toString();\n\t}",
"@Override\n public String toString() {\n\treturn ByteUtils.toHexString(toByteArray(), true);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"public String toString(){\n\t\treturn \"<== at \" + time + \": \" + name + \", \" + type + \", \" + data + \"==>\"; \n\t}",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"public String toString () {\n\t\tString retour = \"\";\n\t\t\n\t\tfor (Message m : messages) {\n\t\t\tretour += m + \"\\n\";\n\t\t}\n\t\t\n\t\treturn retour;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override public String toString();",
"public String toString() {\n if (getMessage() != null) {\n return \"message(\" + getMessage().toString() + \")\";\n } else {\n return \"message(null)\";\n }\n }",
"public String toString() {\n\t\treturn getMessage();\n\t}"
]
| [
"0.7452576",
"0.72262204",
"0.72012067",
"0.713591",
"0.7075485",
"0.70455694",
"0.70418555",
"0.70361805",
"0.6991259",
"0.6975838",
"0.697378",
"0.6967269",
"0.6956886",
"0.6947292",
"0.687719",
"0.68724084",
"0.68724084",
"0.6862667",
"0.68497384",
"0.68435967",
"0.6843307",
"0.6827902",
"0.6825227",
"0.6822672",
"0.68137395",
"0.68108296",
"0.68091255",
"0.6794384",
"0.67870414",
"0.6775376",
"0.67637944",
"0.6760421",
"0.674587",
"0.6744987",
"0.67421675",
"0.6727163",
"0.67225194",
"0.67171866",
"0.67085356",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.669376",
"0.66919404",
"0.66893905",
"0.6683916",
"0.6662915",
"0.6662857",
"0.6661032",
"0.6658843",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.66565824",
"0.665593",
"0.6652271",
"0.66521066",
"0.6647672",
"0.6645352"
]
| 0.0 | -1 |
Recursively traverses a provided Path and checks if it is a directory or path. If it is a directory, call function again | private static void traverse(Path path, ArrayList<Path> fileArray) {
try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {
for (Path file : listing) {
if (file.toString().toLowerCase().endsWith(".txt")) {
fileArray.add(file);
} else if (Files.isDirectory(file)) {
traverse(file, fileArray);
}
}
} catch (IOException e) {
System.out.println("Invalid path: " + path);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDirectory(String path);",
"public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())) {\n\t\t\t\t\tstartFile = null;\n\t\t\t\t}\n\n\t\t\t\tif (startFile == null) {\n\t\t\t\t\tprocessFile(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void deleteFilesRecursive(String strPath) {\n\n File fileOrDirectory = new File(strPath);\n\n if (fileOrDirectory.isDirectory()){\n for (File child : fileOrDirectory.listFiles())\n deleteFilesRecursive(child.getPath());\n fileOrDirectory.delete();\n }else\n fileOrDirectory.delete();\n }",
"protected abstract boolean isDirectory(@NonNull String path, T context);",
"public void mkdirP(String dirPath) {\n\n\t\t// check if you need to go anywhere further\n\t\tif (dirPath.lastIndexOf(\"/\") == 0) {\n\t\t\treturn;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = dirPath;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects current = directory;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (current.getDirectoryByName(p) != null) {\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\tcurrent.getSubdirectories().add(new DirectoryObjects(p));\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\r\n\tpublic boolean isDir(String path) {\n\t\treturn false;\r\n\t}",
"public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) {\r\n processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor);\r\n }",
"public boolean isDirectory();",
"public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return true;\n }\n }",
"public DirectoryWalker(Path path) throws IllegalArgumentException\n\t{\n\t\t//Need to throw up an exception if what was provided is not a directory\n\t\tif (!Files.isDirectory(path))\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"The specified path was not a directory\");\n\t\t}\n\t\tthis.root = path;\n\t\t\n\t}",
"public static void processPath(File path, FileFilter filter, FileProcessor processor) {\r\n if (path.isDirectory()) {\r\n // if path is a directory, look into it\r\n File[] directoryListing = path.listFiles(filter);\r\n if (directoryListing == null) {\r\n throw new IllegalArgumentException(\"Directory access problem for: \" + path);\r\n }\r\n for (File file : directoryListing) {\r\n processPath(file, filter, processor);\r\n }\r\n } else {\r\n // it's already passed the filter or was uniquely specified\r\n // if (filter.accept(path))\r\n processor.processFile(path);\r\n }\r\n }",
"public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) {\r\n processPath(path, new ExtensionFileFilter(suffix, recursively), processor);\r\n }",
"public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }",
"@Test\n public void testMkdirOneDirectoryRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }",
"public static void recursiveDelete(Path path) throws IOException {\n if (Files.isDirectory(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Files.delete(file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n Files.delete(file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (exc == null) {\n Files.delete(dir);\n return FileVisitResult.CONTINUE;\n } else {\n throw exc;\n }\n }\n });\n }\n }",
"public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return m_sFile.equalsIgnoreCase(path.getName());\n }\n }",
"@Test\n public void testMkdirOneDirectoryRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }",
"public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }",
"public boolean isDir() { return false; }",
"public abstract boolean isPath();",
"@Override\n public boolean isItFolder(String path) {\n Path file = new File(path).toPath();\n boolean isDirectory = Files.isDirectory(file); // Check if it's a directory\n return isDirectory;\n }",
"public String simplifyPath(String path) {\n List<String> stack = new LinkedList<>();\n for (String dir : path.split(\"/\")) {\n if (dir.equals(\"..\")) {\n if (stack.size() > 0) stack.remove(stack.size()-1);\n }\n else if (dir.length() > 0 && !dir.equals(\".\")) \n stack.add(dir);\n }\n StringBuilder res = new StringBuilder();\n for (String dir : stack) res.append('/' + dir);\n return res.length() == 0 ? \"/\" : res.toString();\n}",
"private void checkFileOrDirectory(Path pathroot) {\n if (Files.notExists(pathroot)) { // Checking path is valid path or the path is exist\n System.out.println(\"Not a valid Path \" + pathroot);\n } else if (Files.isDirectory(pathroot)) {// checking path contains file if contain file display message\n System.out.println(\"It is Directory\");\n } else {\n System.out.println(\"This is File\"); // printing the path is directory\n }\n }",
"@Test\n public void testMkdirMultipleDirectoriesRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }",
"public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return CommandLineTool.matches(path.getName(), m_achPattern);\n }\n }",
"public void recursiveList(String path) {\n Directory tDir = Directory.getDir(path);\n if (tDir == null) {\n str += \"Error: the input path \" + path + \" does not exist!\\n\";\n } else if (tDir.getSubContent().isEmpty()) {\n str += tDir.getName() + \"\\n\";\n } else {\n str += tDir.getName() + \":\";\n indentation += \"\\t\";\n for (int i = 0; i < tDir.getSubContent().size(); i++) {\n str += indentation;\n recursiveList(tDir.getSubContent().get(i).getAbsolutePath());\n }\n indentation = indentation.substring(0, indentation.length() - 1);\n }\n }",
"@Override\n public boolean isDir() { return true; }",
"boolean isDirectory() throws IOException;",
"public static void main(String[] args) throws IOException {\r\n\t\tPath path = Paths.get(userHome+\"/Files/questions/animals\");\r\n\t\tboolean myBoolean = Files.walk(path)\r\n\t\t\t\t// will not compile\r\n\t\t\t\t// filter expect a Predicate and not a BiPredicate\r\n\t\t\t\t// and isDirectory belongs to Files not to Path\r\n\t\t\t\t//.filter((p,a) -> a.isDirectory() && !path.equals(p))//w1\r\n\t\t\t\t.findFirst().isPresent();//w2\r\n\t\tSystem.out.println(myBoolean ? \"No Sub-directory\" : \"Has Sub-directory\");\r\n\t\t\t\t\r\n\t}",
"public String recursiveLS(FileSystem dirTree, String path,\r\n IDirectory currentDir) {\r\n\r\n Directory toLsDir =\r\n (Directory) this.getDirectoryFromPath(dirTree, path, currentDir);\r\n String result = \"\";\r\n // get resulting string using helper function\r\n // check if the path given is valid\r\n if (toPrint && (!toLsDir.getSubDirectories().isEmpty()\r\n || !toLsDir.getFiles().isEmpty())) {\r\n result += this.recursivelyTraverse(toLsDir);\r\n } else if (!toPrint) {\r\n System.out.println(\"Error: Cannot access path \" + path + \"\\n\");\r\n }\r\n\r\n return result;\r\n }",
"@Test\n public void testCdRelativePathMultiDeepToOneDeeper() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"/directory2/directory3\");\n myTree.cd(\"directory4\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3/directory4\", myTree.pwd());\n }",
"private boolean isValidPath(String path) {\n File file = new File(path);\n return file.exists() && file.isDirectory();\n }",
"private DirectoryObjects getDirectory(String path, DirectoryObjects current) {\n\t\tif (path.lastIndexOf(\"/\") == 0) {\n\t\t\treturn current;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = path;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects l = current;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (l.getDirectoryByName(p) != null) {\n\t\t\t\t\tl = l.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\t// instead of creating a new directory, we just throw an\n\t\t\t\t\t// exception\n\t\t\t\t\treturn l;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn l;\n\n\t\t}\n\n\t}",
"public static void traverse(Path path, ArrayList<Path> paths) throws IOException {\n\t\tif (Files.isDirectory(path)) {\n\t\t\ttry (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\n\t\t\t\tfor (Path file : listing) {\n\t\t\t\t\ttraverse(file, paths);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isTextFile(path)) {\n\t\t\tpaths.add(path);\n\t\t}\n\t}",
"public static boolean recursiveDelete(File fileOrDir)\n\t{\n\t\tSystem.out.println(\"path\" + fileOrDir.getAbsolutePath());\n\t if(fileOrDir.isDirectory())\n\t {\n\t \tSystem.out.println(\"is a directory --\");\n\t \t\n\t // recursively delete contents\n\t for(File innerFile: fileOrDir.listFiles())\n\t {\n\t \tSystem.out.println(\"list \" + innerFile.getAbsolutePath());\n\t if(recursiveDelete(innerFile))\n\t {\n\t return false;\n\t }\n\t }\n\t }\n\n\t return fileOrDir.delete();\n\t}",
"@Test\n public void testMkdirOneDirectoryAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }",
"public boolean isDirectory(String path) throws Exception {\n Path destionationPath = new Path(path);\n\n if (hdfs.isDirectory(destionationPath))\n return true;\n else if (hdfs.isFile(destionationPath))\n return false;\n else throw new Exception(\"What is it else?!\");\n }",
"@Test\n public void testCdRelativePathOneDeepToMultiDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"directory2\");\n myTree.cd(\"directory3/directory4\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3/directory4\", myTree.pwd());\n }",
"void deleteDirectory(String path, boolean recursive) throws IOException;",
"public static void dir(String currentPath){}",
"@Test\n public void testMkdirMultipleDirectoriesRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory1\", \"directory2\"};\n String[] path2 = {\"directory1/subDirectory1\", \"directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"boolean directoryExists(String path) throws IOException;",
"public String changeDir(final String path) {\n if(path.equals(\".\")) {\n return path;\n }\n\n // Parent directory\n if(path.equals(\"..\")) {\n if(globalFileManager.getCurrentDir().getParent() != null) {\n globalFileManager.setCurrentDir(globalFileManager.getCurrentDir().getParent());\n return path;\n }\n }\n\n // Go to the root\n if(path.equals(\"/\")) {\n globalFileManager.setCurrentDir(globalFileManager.getRoot());\n return path;\n }\n\n File f;\n String[] paths;\n if(path.startsWith(\"/\")) {\n f = globalFileManager.getRoot();\n paths = path.substring(1).split(\"/\");\n } else {\n f = globalFileManager.getCurrentDir();\n paths = path.split(\"/\");\n }\n\n for(String p : paths) {\n f = f.getChildren().get(p);\n if(f == null || !f.isDirectory()) throw new BadPathException(\"Wrong path specified.\");\n globalFileManager.setCurrentDir(f);\n }\n return path;\n }",
"public static void deleteDirectoryRecursively(Path pathToBeDeleted) throws IOException {\n\n Files.walk(pathToBeDeleted).sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete);\n }",
"public static boolean recursiveDelete(File d) {\n // If d is not a directory, just delete it.\n if (!d.isDirectory())\n if (d.delete() == false) {\n return false;\n } else {\n return true;\n }\n else {\n // Construct a file list.\n File[] ar = d.listFiles();\n \n // Iterate through the file list.\n for (int i = 0; i < ar.length; i++) {\n // Recurse into directories. Deep directories will need a lot of stack space for this.\n if (ar[i].isDirectory()) {\n if (!recursiveDelete(ar[i])) {\n return false; // Failed!\n }\n }\n else {\n // Delete a file.\n if (!ar[i].delete()) {\n return false; // Failed!\n }\n }\n }\n \n //Delete the empty directory\n if (!d.delete()) {\n return false;\n } else {\n return true;\n } \n }\n }",
"private static void judeDirExists(String myPath) {\n \tFile myDir = new File(Paths.get(myPath).getParent().toString());\n if (!myDir.exists()) {\n \tmyDir.mkdirs(); \n System.out.println(\"Create path:\"+ myDir.getPath());\n }\n }",
"private static boolean doesPathExist(final Path path, final FileContext context) throws AccessControlException, UnsupportedFileSystemException, IOException {\n\t\ttry {\n\t\t\tFileStatus status = context.getFileStatus(path);\n\t\t\treturn status.isFile() || status.isDirectory();\n\t\t} catch (FileNotFoundException e) {\n\t\t\treturn false; \n\t\t}\t\t\n\t}",
"public abstract boolean isDirectory() throws AccessException;",
"public static boolean hasPath(Path path) {\n DirectoryHandler directoryHandler = DirectoryHandler.getDirectoryHandler();\n return directoryHandler.contains(directoryHandler.getDataDirectories(), path);\n }",
"@Test\n public void testMkdirOneDirectoryAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }",
"@Test\n public void testMkdirMultipleDirectoriesOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"/directory2\", \"directory3\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"Directory 1 or 2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n assertEquals(myTree.hasDirectory(\"/directory3\"), true);\n }",
"private static boolean deleteDirectory(final File path) {\r\n if (path.exists()) {\r\n final File[] files = path.listFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n deleteDirectory(files[i]);\r\n }\r\n else {\r\n files[i].delete();\r\n }\r\n }\r\n }\r\n return (path.delete());\r\n }",
"public static void isDirectory0()\r\n {\r\n try {\r\n System.out.println(\">>>>>>>>>>>>\");\r\n File class0 = new File(\"D:\\\\java\");\r\n boolean ret0 = true;\r\n ret0 = class0.isDirectory();\r\n assert (ret0 == false);\r\n System.out.println(ret0);\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@Override\r\n\tpublic void remDir(String path) {\n\t\t\r\n\t}",
"@Override\n\tpublic boolean accept(File p1)\n\t{\n\t\treturn p1.isDirectory()&&!p1.getName().startsWith(\".\");\n\t}",
"boolean isRecursive();",
"public Boolean isDirectory(IDirectory parentDirectory, String path) {\r\n // Get the item given by the path\r\n DirectoryTreeNode item = this.getItemGivenPath(parentDirectory, path);\r\n return item != null && item instanceof IDirectory;\r\n }",
"private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public boolean isNoDirs(String path) {\r\n\t\t// We setup the path to search.\r\n\t\tFile file = new File(path);\r\n\t\tFile[] files = file.listFiles(File::isDirectory);\r\n\r\n\t\t// We check how many directories we find.\r\n\t\tif (files.length == 0) {\r\n\t\t\t// We find 0, so we return true.\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// We find some, so we return false.\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private static boolean checkifdirmatches(NodeBase node, DefaultMutableTreeNode tnode, String name){\n if(node instanceof Directory){\n \n if(node.getName().equalsIgnoreCase(name))\n return true;\n }\n Enumeration children = tnode.children();\n while(children.hasMoreElements()){\n \n DefaultMutableTreeNode nextElement = (DefaultMutableTreeNode)children.nextElement();\n NodeBase chuserObject = (NodeBase)nextElement.getUserObject();\n \n if(checkifdirmatches(chuserObject, nextElement, name))\n return true;\n \n }\n \n return false; \n }",
"private void recurseOverFolder(final File folder) {\n File[] files = folder.listFiles();\n if (files == null) {\n return;\n }\n\n // Check each path and recurse if it's a folder, handle if it's a file\n for (final File fileEntry : files) {\n if (fileEntry.isDirectory()) {\n recurseOverFolder(fileEntry);\n } else {\n handleFile(fileEntry);\n }\n }\n }",
"public boolean isDirectory()\n\t{\n\t\tFile temp = new File(this.path);\n\t\treturn temp.isDirectory();\n\t}",
"@Test\n public void testCdAbsolutePathOneDeepToMultiDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"directory2\");\n myTree.cd(\"/directory2/directory3/directory4\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3/directory4\", myTree.pwd());\n }",
"public static boolean isFolder(Path path) {\n\t\treturn Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS);\n\t}",
"@Test\n public void testMkdirMultipleDirectoriesAbsolutePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }",
"@Test\n public void testCdAbsolutePathMultiDeepToOneDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"/directory2/directory3/directory4\");\n myTree.cd(\"/directory2/directory3\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3\", myTree.pwd());\n }",
"private void traverseFile(File file, String relativePath)\n {\n if(!file.isDirectory())\n {\n currentInfo.add(relativePath);\n return;\n }\n\n\n File[] files = file.listFiles();\n\n //currently we do not send an empty file...\n if(files == null)return;\n\n for (int i = 0;i< files.length;++i)\n {\n traverseFile(files[i], relativePath + \"/\" + files[i].getName() );\n }\n\n }",
"public boolean folderCleaner(String folderPath, Boolean ifDeleteSubdirs, Boolean ifDeleteFiles, Boolean ifDeleteRoot, Boolean ifPrompt) throws IOException { \n folderPath = folderPath.replace(\"\\\\\", \"/\");\n if(folderPath.endsWith(\"/\")) { folderPath = folderPath.substring(0, folderPath.length() - 1); }\n File dir = new File(folderPath);\n String how = \"\", action = null;\n Boolean success = false;\n Boolean current = false;\n if (dir.exists() && dir.isDirectory()) { \n try{ \n success = true;\n String[] children = dir.list();\n if(children.length > 0) {\n action = \"CLEANED\";\n for (int i = 0; i < children.length; i++) {\n File child = new File(dir, children[i]);\n if(child.isDirectory()){ if(ifDeleteSubdirs) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteSubdirs) {System.out.print(\"DIRECTORY \");} }\n else { if(ifDeleteFiles) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteFiles) {System.out.print(\" FILE \");} }\n \n current = !child.exists();\n success = success && current;\n if(current) { how = \" DELETED: \\\"\"; } else { how = \"NOT DELETED: \\\"\"; }\n if(ifPrompt && current) System.out.print(how + child.getAbsolutePath() + \"\\n\");\n }\n }\n // THE DIRECTORY IS EMPTY - DELETE IT IF REQUIRED\n if (ifDeleteRoot) { FileUtils.forceDelete(dir); success = success && !dir.exists(); action = \"DELETED\"; }\n if(ifPrompt && (!action.equals(null))) {\n if (success) { \n System.out.println(\"\\n\" + \"FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n } else {\n System.out.println(\"\\n\" + \"NOT FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n }\n }\n } catch (Exception e) {} \n }\n return success;\n }",
"@Override\r\n protected void addPath(File path, int depth) throws SAXException {\r\n List<ZipEntry> contents = new ArrayList<ZipEntry>();\r\n if (depth > 0) {\r\n ZipFile zipfile = null;\r\n try {\r\n zipfile = new ZipFile(path, Charset.forName(\"UTF-8\"));\r\n Enumeration<? extends ZipEntry> entries = zipfile.entries();\r\n while (entries.hasMoreElements()) contents.add((ZipEntry)entries.nextElement());\r\n } catch (ZipException e) {\r\n throw new SAXException(e);\r\n } catch (IOException e) {\r\n throw new SAXException(e);\r\n } finally {\r\n if (zipfile != null) {\r\n try {\r\n zipfile.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n } // finally\r\n } // if depth > 0\r\n startNode(DIR_NODE_NAME, path);\r\n processZipEntries(contents, \"\", depth);\r\n endNode(DIR_NODE_NAME);\r\n }",
"Path getHasPath();",
"private void recurrence(final Path path) {\n Wipe.DEFAULT.forEach(\n it -> {\n it.clean(this.delete, path);\n this.jump(path);\n }\n );\n final File[] files = path.toFile().listFiles(File::isDirectory);\n if (files != null) {\n Arrays\n .stream(files)\n .forEach(it -> this.recurrence(it.toPath()));\n }\n }",
"public static void deletePath(Path path) throws IOException {\n if (!Files.isDirectory(path) || Files.list(path).count() == 0) { Files.deleteIfExists(path); }\n else {\n try (Stream<Path> files = Files.list(path)) {\n files.forEach(p -> {\n try { deletePath(p); }\n catch (IOException e) { e.printStackTrace(); }\n });\n Files.delete(path);\n }\n }\n }",
"public void visitPath(Path path) {\n\t\t\n\t}",
"public DirectoryWalker(String path) throws InvalidPathException, IllegalArgumentException\n\t{\n\t\tthis(Paths.get(path));\n\t}",
"private String validatePathToDir(String pathToDir) throws NotDirectoryException {\n if (Files.isDirectory(Path.of(pathToDir))){\n return pathToDir;\n }\n else {\n throw new NotDirectoryException(\"The path given to the directory is not good\");\n }\n }",
"private String normalizePath(String path) {\n boolean absolute = path.startsWith(\"/\");\n int cwdl = cwd.length();\n \n // NOTE: This isn't just a fast path, it handles cases the code below doesn't\n if(!path.startsWith(\".\") && path.indexOf(\"./\") == -1 && path.indexOf(\"//\") == -1 && !path.endsWith(\".\"))\n return absolute ? path.substring(1) : cwdl == 0 ? path : path.length() == 0 ? cwd : cwd + \"/\" + path;\n \n char[] in = new char[path.length()+1];\n char[] out = new char[in.length + (absolute ? -1 : cwd.length())];\n path.getChars(0,path.length(),in,0);\n int inp=0, outp=0;\n \n if(absolute) {\n do { inp++; } while(in[inp] == '/');\n } else if(cwdl != 0) {\n cwd.getChars(0,cwdl,out,0);\n outp = cwdl;\n }\n\n while(in[inp] != 0) {\n if(inp != 0) {\n while(in[inp] != 0 && in[inp] != '/') { out[outp++] = in[inp++]; }\n if(in[inp] == '\\0') break;\n while(in[inp] == '/') inp++;\n }\n \n // Just read a /\n if(in[inp] == '\\0') break;\n if(in[inp] != '.') { out[outp++] = '/'; out[outp++] = in[inp++]; continue; }\n // Just read a /.\n if(in[inp+1] == '\\0' || in[inp+1] == '/') { inp++; continue; }\n if(in[inp+1] == '.' && (in[inp+2] == '\\0' || in[inp+2] == '/')) { // ..\n // Just read a /..{$,/}\n inp += 2;\n if(outp > 0) outp--;\n while(outp > 0 && out[outp] != '/') outp--;\n //System.err.println(\"After ..: \" + new String(out,0,outp));\n continue;\n }\n // Just read a /.[^.] or /..[^/$]\n inp++;\n out[outp++] = '/';\n out[outp++] = '.';\n }\n if(outp > 0 && out[outp-1] == '/') outp--;\n //System.err.println(\"normalize: \" + path + \" -> \" + new String(out,0,outp) + \" (cwd: \" + cwd + \")\");\n int outStart = out[0] == '/' ? 1 : 0;\n return new String(out,outStart,outp - outStart);\n }",
"public static void isDirectory1()\r\n {\r\n try{\r\n System.out.println(\">>>>>>>>>>>>\");\r\n File class0 = new File(\"C:\\\\Users\\\\castle\");\r\n boolean ret0 = true;\r\n ret0 = class0.isDirectory();\r\n assert (ret0 == true);\r\n System.out.println(ret0);\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@Test\n public void testCdRelativePathOneAway() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"directory2\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2\", myTree.pwd());\n }",
"private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }",
"private static Stream<Path> listRecur(Path p) {\n if (Files.isDirectory(p)) {\n try {\n return Files.list(p).flatMap(DirectoryClassPath::listRecur);\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n } else {\n return Stream.of(p);\n }\n }",
"private void check() {\n Path pathroot = getPath();\n // check the path is file or directory\n checkFileOrDirectory(pathroot);\n }",
"@SuppressWarnings(\"deprecation\")\n public static boolean isDir(String path, SourceType sourceType) throws IOException {\n FileSystem fs = getFileSystemBySourceType(sourceType);\n FileStatus status = fs.getFileStatus(new Path(path));\n return status.isDir();\n }",
"private void loadDirectoryUp() {\n\t\tString s = pathDirsList.remove(pathDirsList.size() - 1);\n\t\t// path modified to exclude present directory\n\t\tpath = new File(path.toString().substring(0,\n\t\t\t\tpath.toString().lastIndexOf(s)));\n\t\tfileList.clear();\n\t}",
"private void FindFiles(Path findPath)\n {\n\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(findPath))\n {\n\n for (Path thisPath : stream)\n {\n File file = new File(thisPath.toString());\n\n if (file.isDirectory())\n {\n dirCount++;\n\n if (HasMatch(thisPath.toString(), lineIncludePattern, lineExcludePattern))\n {\n dirLineMatchCount++;\n\n System.out.println(thisPath.toAbsolutePath().toString() + \",directory,none\");\n }\n\n if (HasMatch(thisPath.toString(), dirIncludePattern, dirExcludePattern))\n {\n dirMatchCount++;\n folderLevel++;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n indentBuffer = \"\";\n\n //System.out.println(indentBuffer + thisPath.toString() + \" ...\");\n FindFiles(thisPath.toAbsolutePath());\n\n folderLevel--;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n }\n }\n else\n {\n fileCount++;\n\n if (HasMatch(thisPath.getParent().toString(), lineIncludePattern, lineExcludePattern))\n {\n fileLineMatchCount++;\n\n System.out.println(thisPath.getParent().toString() + \",\" + thisPath.getFileName() + \",none\");\n }\n\n if (HasMatch(thisPath.toString(), fileIncludePattern, fileExcludePattern))\n {\n fileMatchCount++;\n\n File refFile;\n if (doReplace)\n {\n refFile = new File(thisPath.toString() + \"_bak\");\n file.renameTo(refFile);\n\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(refFile.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n else\n {\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(file.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", findPath);\n e.printStackTrace();\n }\n\n }",
"public static boolean deleteDirectory(File path) {\n\t\tif (path.exists()) {\n\t\t\tFile[] files = path.listFiles();\n\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\tdeleteDirectory(files[i]);\n\t\t\t\t} else {\n\t\t\t\t\tfiles[i].delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (path.delete());\n\t}",
"@Test\n public void testCdRelativePathMultiAway() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory2\" , \"/directory2/directory3\", \n \"/directory2/directory3/directory4\"};\n try {\n myTree.mkdir(path1);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n try {\n myTree.cd(\"directory2/directory3/directory4\");\n } catch (NotDirectoryException e) {\n fail(\"Could not change to the directory\");\n }\n assertEquals(\"/directory2/directory3/directory4\", myTree.pwd());\n }",
"@Test\n public void testMkdirMultipleDirectoriesMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"directory1\", \"/directory2\"};\n String[] path2 = {\"directory1/subDirectory1\", \"/directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"private void browseUsersFolders(Path path) {\n try (DirectoryStream<Path> streamUserDir = Files.newDirectoryStream(path)) {\n for (Path userDir : streamUserDir) {\n // recursive deletion if userDir not modified anymore\n if (checkDeletion(userDir)) {\n logger.log(Level.INFO, \"Deletion started for: \"\n + userDir.getFileName());\n FilesHelper.deleteFolder(userDir);\n }\n\n // if modified and exists, then check inside\n if (Files.exists(userDir)) {\n browseApplicationsFolders(userDir);\n }\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot get directory list\", ex);\n }\n }",
"@Test\n public void testMkdirMultipleDirectoriesAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path1 = {\"/directory1\", \"/directory2\"};\n String[] path2 = {\"/directory1/subDirectory1\", \"/directory2/subDirectory2\"};\n try {\n myTree.mkdir(path1);\n myTree.mkdir(path2);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"The directories could not be made.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2/subDirectory2\"), true);\n }",
"private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}",
"public boolean delete(String path, boolean recurse) throws SystemException;",
"public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}",
"public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}",
"public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}",
"private static void findAllFilesRecurse(File root, ArrayList<File> files, boolean recurse) {\n\t\tFile[] rootContents = root.listFiles();\n\t\tif (rootContents == null) {\n\t\t\tfiles.add(root);\n\t\t} else {\n\t\t\tfor (File f : rootContents) {\n\t\t\t\t// if it is a file or do not go deeper\n\t\t\t\tif (f.isFile() || !recurse) {\n\t\t\t\t\tfiles.add(f);\n\t\t\t\t} else if (recurse) { // directory\n\t\t\t\t\tfindAllFilesRecurse(f, files, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean isDir() { return _entry==null; }",
"public void removeFolder(File path){\n if (path.isDirectory()){\n String subdirectories[] = path.list();\n for(String subdirectory: subdirectories){\n File file = new File(path.getPath()+\"\\\\\"+subdirectory);\n LOG.info(\"file.getAbsolutePath(): \"+file.getPath());\n if (file.isFile()){\n boolean isDeleted = file.delete();\n if (isDeleted){\n LOG.success(\"file was delete, path: \"+file.getPath());\n }else{\n LOG.error(\"file does not delete, path: \"+file.getPath());\n }\n }else{\n removeFolder(file);\n boolean folderIsDelete = file.delete();\n if (folderIsDelete){\n LOG.success(\"folder was delete, path: \"+file);\n }else{\n LOG.error(\"folder does not delete, path: \"+file);\n }\n }\n }\n }else {\n LOG.info(\"file.getAbsolutePath(): \"+path.getPath());\n }\n }",
"public final boolean isDirectory() {\n\t\treturn m_info.isDirectory();\n\t}",
"private void downPath(FileModel item) {\n if (item != null && item.getFile() != null) {\n File path = item.getFile();\n onPathChanged(this.path, path);\n if (path.isDirectory()) {\n this.path = path;\n load(null);\n }\n }\n }",
"private static boolean isPackageDir(WebFile aFile)\n {\n if (!aFile.isDir())\n return false;\n if (aFile.getName().indexOf('.') > 0)\n return false;\n String path = aFile.getPath();\n if (isIgnorePath(path))\n return false;\n return true;\n }"
]
| [
"0.59951746",
"0.5863678",
"0.56700885",
"0.5644438",
"0.5608596",
"0.5561952",
"0.5541542",
"0.55039275",
"0.54984975",
"0.5472262",
"0.5471191",
"0.534947",
"0.53417313",
"0.5330502",
"0.53153616",
"0.5308491",
"0.5297251",
"0.5283029",
"0.52444404",
"0.52148837",
"0.52024084",
"0.5181633",
"0.5159966",
"0.515683",
"0.5125187",
"0.5122108",
"0.5082105",
"0.50750667",
"0.5065062",
"0.50623405",
"0.50309116",
"0.5022469",
"0.5019713",
"0.5006321",
"0.5002807",
"0.5001259",
"0.4997279",
"0.49969122",
"0.4984711",
"0.4964284",
"0.49618822",
"0.49599585",
"0.49550498",
"0.49523437",
"0.49519557",
"0.49499717",
"0.49224323",
"0.4918542",
"0.4913525",
"0.4905028",
"0.49017888",
"0.489869",
"0.48984364",
"0.48732197",
"0.48586902",
"0.48445973",
"0.48312226",
"0.4821167",
"0.4820969",
"0.47989023",
"0.47880143",
"0.4787963",
"0.47759688",
"0.47719604",
"0.47654772",
"0.4763763",
"0.4756374",
"0.47520676",
"0.47408968",
"0.4732618",
"0.4726205",
"0.4725193",
"0.47229064",
"0.47167373",
"0.47076648",
"0.47072783",
"0.46973157",
"0.46949768",
"0.46915883",
"0.46797898",
"0.46766704",
"0.46673515",
"0.46637443",
"0.46549106",
"0.46394303",
"0.46360147",
"0.4630062",
"0.4624672",
"0.4621152",
"0.46192685",
"0.46076888",
"0.45872656",
"0.45872656",
"0.45872656",
"0.45803145",
"0.45781028",
"0.4575863",
"0.45624006",
"0.45463017",
"0.45343435"
]
| 0.5494871 | 9 |
Creates a new ArrayList of type Path and passes it to a second version of the overloaded method traverse() | public static ArrayList<Path> traverse(Path directory) {
ArrayList<Path> filenames = new ArrayList<Path>();
traverse(directory, filenames);
return filenames;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Path> traverse(Path path) throws IOException {\n\t\tArrayList<Path> paths = new ArrayList<Path>();\n\t\ttraverse(path, paths);\n\t\treturn paths;\n\t}",
"public abstract ScaledPathArray getPathList();",
"abstract public List<S> getPath();",
"public static void traverse(Path path, ArrayList<Path> paths) throws IOException {\n\t\tif (Files.isDirectory(path)) {\n\t\t\ttry (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\n\t\t\t\tfor (Path file : listing) {\n\t\t\t\t\ttraverse(file, paths);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isTextFile(path)) {\n\t\t\tpaths.add(path);\n\t\t}\n\t}",
"public <T> void traverse(ArrayList<T> list);",
"protected abstract void traverse();",
"public List<Object> traverse() {\n return traverse(new PreorderTraversal());\n }",
"public RDFList path(RDFList exp) {\r\n RDFList ll = new RDFList(exp.head(), exp.getList());\r\n Expression re = list();\r\n\r\n for (Expression ee : exp.getList()){\r\n Triple t = createPath(exp.head(), re, ee);\r\n ll.add(t);\r\n }\r\n \r\n return ll;\r\n }",
"public List<Path> getAllPaths();",
"public ArrayList<path> getPaths(){\r\n return paths;\r\n }",
"public ArrayList<SearchNode> getPath() {\n\treturn path;\n }",
"public abstract List<String> path();",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"private List<List<Edge>> walker(String sourceNode, String destNode, List<Edge> currentPath, List<List<Edge>> paths) {\n if (currentPath == null) {\n currentPath = new ArrayList<>();\n }\n if (paths == null) {\n paths = new ArrayList<>();\n }\n\n if (sourceNode.equals(destNode)) {\n return paths;\n }\n\n\n// List<Edge> edges = findByNodeA(sourceNode);\n List<Edge> edges = allEdges.stream().filter(edge -> edge.nodeA.equals(sourceNode)).collect(Collectors.toList());\n\n\n for (Edge edge : edges) {\n if (!currentPath.contains(edge)&&!containsBidirectionalRef(currentPath,edge)) {\n List<Edge> forkPath = (List<Edge>) ((ArrayList<Edge>) currentPath).clone();\n\n forkPath.add(edge);\n\n if (edge.getNodeB().equals(destNode)) {\n paths.add(forkPath);\n } else {\n walker(edge.getNodeB(), destNode,forkPath,paths);\n }\n }\n }\n\n return paths;\n }",
"private static void traverse(Path path, ArrayList<Path> fileArray) {\r\n try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\r\n for (Path file : listing) {\r\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\r\n fileArray.add(file);\r\n } else if (Files.isDirectory(file)) {\r\n traverse(file, fileArray);\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Invalid path: \" + path);\r\n }\r\n }",
"public List<Transform> getPath() {\n return Collections.unmodifiableList(new ArrayList<>(mPath));\n }",
"public void setPath(ArrayList<String> newPath) {\n list = newPath;\n }",
"public abstract ArrayList<CustomPath> getAnnotationPathList();",
"public Jode xPathTraverse(String path) {\n return new XPath(path).traverse(this);\n }",
"private static Stream<Path> listRecur(Path p) {\n if (Files.isDirectory(p)) {\n try {\n return Files.list(p).flatMap(DirectoryClassPath::listRecur);\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n } else {\n return Stream.of(p);\n }\n }",
"public List<Vertex> newPath() {\r\n\t\tList<Vertex> Pathchange = new ArrayList<Vertex>();\r\n\t\tList<Vertex> tempPath = new ArrayList<Vertex>();\r\n\t\tint BestEval = Integer.MAX_VALUE;\r\n\t\tVertex changeVertexV1 = new Vertex();\r\n\t\tVertex changeVertexV2 = new Vertex();\r\n\r\n\t\tfor (int position = 0; position < this.LastPath.size() - 1; position++) {\r\n\t\t\tfor (int changement = position+1; changement < this.LastPath.size(); changement++) {\r\n\r\n\t\t\t\ttempPath.clear();\r\n\t\t\t\ttempPath = new ArrayList<Vertex>(this.LastPath);\r\n\t\t\t\tif (!(this.TabuListV1.contains(tempPath.get(position)) || this.TabuListV1.contains(tempPath.get(changement)) || this.TabuListV2.contains(tempPath.get(position)) || this.TabuListV2.contains(tempPath.get(changement)))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tCollections.swap(tempPath, position, changement);\r\n\t\t\t\t\tif (this.fit(tempPath) < BestEval) {\r\n\t\t\t\t\t\tPathchange.clear();\r\n\t\t\t\t\t\tPathchange = new ArrayList<Vertex>(tempPath);\r\n\t\t\t\t\t\tchangeVertexV1 = tempPath.get(position);\r\n\t\t\t\t\t\tchangeVertexV2 = tempPath.get(changement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(this.tabuElementType == 0) {\r\n\t\t\tthis.TabuListV1.add(0, changeVertexV1);\r\n\t\t}else if(this.tabuElementType == 1) {\r\n\t\t\tthis.TabuListV2.add(0, changeVertexV2);\r\n\t\t}else {\r\n\t\t\tthis.TabuListV1.add(0, changeVertexV1);\r\n\t\t\tthis.TabuListV2.add(0, changeVertexV2);\r\n\t\t}\r\n\t\t\r\n\t\tif (this.TabuListV1.size() > this.TabuListSize) {\r\n\t\t\tthis.TabuListV1.remove(this.TabuListV1.size() - 1);\r\n\t\t}\r\n\t\tif (this.TabuListV2.size() > this.TabuListSize) {\r\n\t\t\tthis.TabuListV2.remove(this.TabuListV2.size() - 1);\r\n\t\t}\r\n\r\n\t\treturn Pathchange;\r\n\t}",
"Map<String, PathItem> getPathItems();",
"java.util.List<java.lang.String>\n getPathsList();",
"public ArrayList<ArrayList<String>> getPathList() {\r\n\t\treturn pathList;\r\n\t}",
"public List<E> createEdgeListPath()\r\n/* */ {\r\n/* 146 */ List<E> path = new ArrayList();\r\n/* 147 */ AbstractPathElement<V, E> pathElement = this;\r\n/* */ \r\n/* */ \r\n/* 150 */ while (pathElement.getPrevEdge() != null) {\r\n/* 151 */ path.add(pathElement.getPrevEdge());\r\n/* */ \r\n/* 153 */ pathElement = pathElement.getPrevPathElement();\r\n/* */ }\r\n/* */ \r\n/* 156 */ Collections.reverse(path);\r\n/* */ \r\n/* 158 */ return path;\r\n/* */ }",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"protected abstract int[] getPathElements();",
"public void visitPath(Path path) {\n\t\t\n\t}",
"public ArrayList<String> getPath() {\n return list;\n }",
"private <R> TraversingDiffVisitor<R> newVisitor(Path<Object> path) {\r\n return new TraversingDiffVisitor<>(path, processor);\r\n }",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}",
"public interface Path {\n\tVector2D [] getPointsAsArray();\n\n\tList<Vector2D> getPointsAsList();\n}",
"public List<String> paths(String path) throws SystemException;",
"public ObjectNode resolvePaths();",
"public List<V> getPath(int index){\n\t\t\tArrayList<V> path = new ArrayList<V>();\n\t\t\n\t\t\tdo{\n\t\t\t\tpath.add(vertices.get(index));\n\t\t\t\tindex=parent[index];\n\t\t\t}\n\t\t\twhile(index!= -1);\n\t\t\treturn path;\n\t\t}",
"private static List<Element> getXMLPaths(Model model) {\n Set<Path> paths = new TreeSet<>(Comparators.objectsById());\n paths.addAll(model.getPaths(null));\n List<Element> result = new ArrayList<>(paths.size());\n for (Path curPath : paths) {\n Element pathElement = new Element(\"path\");\n pathElement.setAttribute(\"id\", String.valueOf(curPath.getId()));\n pathElement.setAttribute(\"name\", curPath.getName());\n pathElement.setAttribute(\"sourcePoint\",\n curPath.getSourcePoint().getName());\n pathElement.setAttribute(\"destinationPoint\",\n curPath.getDestinationPoint().getName());\n pathElement.setAttribute(\"length\", String.valueOf(curPath.getLength()));\n pathElement.setAttribute(\"routingCost\",\n String.valueOf(curPath.getRoutingCost()));\n // velocities\n pathElement.setAttribute(\"maxVelocity\",\n String.valueOf(curPath.getMaxVelocity()));\n // reverse velocities\n pathElement.setAttribute(\"maxReverseVelocity\",\n String.valueOf(curPath.getMaxReverseVelocity()));\n // locks\n pathElement.setAttribute(\"locked\", String.valueOf(curPath.isLocked()));\n // actions\n for (Map.Entry<String, String> curEntry\n : curPath.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n pathElement.addContent(propertyElement);\n }\n // XXX Add the path's other attributes as well.\n result.add(pathElement);\n }\n return result;\n }",
"public List<Path> getPaths() {\n return _thePaths;\n }",
"public pathlist()\r\n {\r\n try{\r\n FileInputStream fstream = new FileInputStream\r\n (\"citiesconnect.txt\");\r\n DataInputStream in = new DataInputStream(fstream);\r\n BufferedReader br = new BufferedReader\r\n (new InputStreamReader(in));\r\n String strLine;\r\n while ((strLine = br.readLine()) != null) {\r\n if(!strLine.equals(\"\")){\r\n String[] str = strLine.split(\":\");\r\n\r\n String [] secondPart = str[1].split(\" - \");\r\n\r\n String [] xCoords = secondPart[1].split(\" , \");\r\n String [] yCoords = secondPart[2].split(\" , \");\r\n\r\n ArrayList<Integer> xIntCoords = \r\n new ArrayList<Integer>(); \r\n for(String x: xCoords){\r\n xIntCoords.add(Integer.parseInt(x));\r\n //System.out.println(x); \r\n }\r\n ArrayList<Integer> yIntCoords = \r\n new ArrayList<Integer>(); \r\n for(String y: yCoords)\r\n yIntCoords.add(Integer.parseInt(y));\r\n\r\n path q = new path(new City(str[0]),new City\r\n (secondPart[0]),xIntCoords,yIntCoords); \r\n paths.add(q);\r\n }\r\n }\r\n in.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }",
"public ArrayList<Vertex> findPath() {\n \n //if we've already been through findPath, then just return it\n if (solutionCalculated) {\n return solution;\n }\n \n //instantiate path\n solution = new ArrayList<Vertex>();\n \n //create boolean array of visited nodes (default: false)\n boolean[] visited = new boolean[arrayOfVertices.length];\n \n //(for testing)\n NavigateMaze.drawMaze(getVertices());\n \n //call dfs\n dfs(visited, arrayOfVertices[0], \n arrayOfVertices[arrayOfVertices.length - 1]);\n \n //update solutionCalculated to true\n solutionCalculated = true;\n \n //return solution\n return solution;\n \n }",
"public interface Paths extends Constructible, Extensible<Paths> {\n\n /**\n * Adds the given path item to this Paths and return this instance of Paths\n *\n * @param name\n * a path name in the format valid for a Paths object. The field name MUST begin with a slash.\n * @param item\n * the path item added to the list of paths. null values will be rejected (implementation will throw an\n * exception) or ignored.\n * @return the current Paths instance\n */\n Paths addPathItem(String name, PathItem item);\n\n /**\n * Removes the given path item to this Paths.\n *\n * @param name\n * a path name that will be removed.\n */\n void removePathItem(String name);\n\n /**\n * Returns a copy map (potentially immutable) of the path items.\n *\n * @return all items\n */\n Map<String, PathItem> getPathItems();\n\n /**\n * Set the path items map to this Paths\n *\n * @param items\n * a map containing the list of paths. Keys MUST begin with a slash.\n */\n void setPathItems(Map<String, PathItem> items);\n\n /**\n * Check whether a path item is present in the map. This is a convenience method for\n * <code>getPathItems().containsKey(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return a boolean to indicate if the path item is present or not.\n */\n default boolean hasPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return false;\n }\n return map.containsKey(name);\n }\n\n /**\n * Returns a path item for a given name. This is a convenience method for <code>getPathItems().get(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return the corresponding path item or null.\n */\n default PathItem getPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return null;\n }\n return map.get(name);\n }\n\n}",
"public Path[] getPaths()\r\n\t{\r\n\t return paths;\r\n\t}",
"public Iterator trip() {\n\t\tStack path = new Stack();\n\t\ttry {\n\t\t\t// initializes path to the stack of nodes from starting point to end\n\t\t\t// point\n\t\t\tpath = path(BusLines, BusLines.getNode(start), BusLines.getNode(dest));\n\n\t\t\t// checks if there is a path, otherwise return null\n\t\t\tif (path == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn path.iterator();\n\t\t\t}\n\t\t} catch (GraphException e) {\n\t\t\tSystem.out.println(\"Error: the path does not exists.\");\n\t\t}\n\t\treturn null;\n\n\t}",
"public Vector<PathElement> generateAccessPath()\n\t{\n\t if ( null == this.parent )\n {\n return new Vector<PathElement>();\n }\n else if ( this.isNary() )\n {\n checkPrecondition(this.parent != null, \"N-ary node with no parent\");\n return this.parent.generateAccessPath();\n }\n else\n {\n Vector<PathElement> path = parent.generateAccessPath();\n PathElement own_element = new PathElement(this.operator, this.paramState, this.positionInParent);\n path.add(own_element);\n return path;\n }\n\t}",
"public static <T extends PathVertexVisitor> List<Result<T>> walkPaths(\n GraphTraversalSource g, String[] sourceCode) {\n return get(g, sourceCode).walkPaths();\n }",
"public java.util.ArrayList<TreeNode<E>> path(E e) {\r\n\t\tjava.util.ArrayList<TreeNode<E>> list = new java.util.ArrayList<>();\r\n\t\tTreeNode<E> current = root; // Start from the root\r\n\r\n\t\twhile (current != null) {\r\n\t\t\tlist.add(current); // Add the node to the list\r\n\t\t\tif (e.compareTo(current.element) < 0) {\r\n\t\t\t\tcurrent = current.left;\r\n\t\t\t} else if (e.compareTo(current.element) > 0) {\r\n\t\t\t\tcurrent = current.right;\r\n\t\t\t} else\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn list; // Return an array list of nodes\r\n\t}",
"private ArrayList<Integer> path(Iterable<Integer> p) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n for (int i : p) {path.add(i);}\n return path;\n }",
"private void printAllPathsUtil(Integer u, Integer d,\n boolean[] isVisited,\n ArrayList<Integer> localPathList) {\n isVisited[u] = true;\n\n if (u.equals(d))\n {\n //System.out.println(localPathList);\n FlightPath p=new FlightPath();\n\n int prev=-1;\n for(int i=0;i<localPathList.size();i++)\n {\n int no=localPathList.get(i);\n\n p.list+=\" \"+getKeyByValue(citiesMap,no);\n\n if(prev!=-1)\n for(int j=0;j<edges.size();j++)\n {\n EdgeFl g=edges.get(j);\n if(g.toString().equals(prev+\"->\"+no))\n {\n p.price+=g.price;\n break;\n }\n }\n prev=no;\n }\n\n listedPath.add(p);\n }\n\n // Recur for all the vertices\n // adjacent to current vertex\n for (Integer i : adjList[u])\n {\n if (!isVisited[i])\n {\n // store current node\n // in path[]\n localPathList.add(i);\n printAllPathsUtil(i, d, isVisited, localPathList);\n\n // remove current node\n // in path[]\n localPathList.remove(i);\n }\n }\n\n // Mark the current node\n isVisited[u] = false;\n }",
"public java.util.ArrayList<TreeNode<E>> path(E e) {\n java.util.ArrayList<TreeNode<E>> list\n = new java.util.ArrayList<TreeNode<E>>();\n TreeNode<E> current = root; // Start from the root\n while (current != null) {\n list.add(current); // Add the node to the list\n if (e.compareTo(current.element) < 0) {\n current = current.left;\n } else if (e.compareTo(current.element) > 0) {\n current = current.right;\n } else {\n break;\n }\n }\n return list; // Return an array of nodes\n }",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\n// you supply the body of this method\n int start = startVertex;\n int stop = stopVertex;\n int previous;\n ArrayList<Integer> list = new ArrayList<>();\n HashMap<Integer, Integer> route = new HashMap<>();\n Stack<Integer> visited = new Stack<>();\n Stack<Integer> reverse = new Stack<>();\n int parent;\n if(!pathExists(startVertex,stopVertex)){\n return new ArrayList<Integer>();\n }\n else if(startVertex == stopVertex){\n list.add(startVertex);\n return list;\n }\n else{\n while(!neighbors(start).contains(stopVertex)){\n List neighbor = neighbors(start);\n for (Object a: neighbor) {\n if(!pathExists((int)a,stopVertex)){\n continue;\n }\n if(visited.contains(a)){\n continue;\n }\n else {\n route.put((int) a, start);\n visited.push(start);\n start = (int) a;\n break;\n }\n }\n }\n route.put(stopVertex,start);\n list.add(stopVertex);\n previous = route.get(stopVertex);\n list.add(previous);\n while(previous!=startVertex){\n int temp = route.get(previous);\n list.add(temp);\n previous = temp;\n }\n for(int i=0; i<list.size(); i++){\n reverse.push(list.get(i));\n }\n int i=0;\n while(!reverse.empty()){\n int temp = reverse.pop();\n list.set(i,temp);\n i++;\n }\n//list.add(startVertex);\n return list;\n }\n }",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public <T extends PathVertexVisitor> Result<T> walkPath() {\n List<Result<T>> results = walkPaths();\n\n MatcherAssert.assertThat(\"Expected a single path\", results, hasSize(equalTo(1)));\n\n return results.get(0);\n }",
"private ArrayList<PathItem> parsePath(String path) {\n\t\tArrayList<PathItem> pathItems = new ArrayList<PathItem>();\n\t\tString[] items = path.split(\"~\\\\\\\\\");\n\t\tString[] item;\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\titem = items[i].split(\"~\");\n\t\t\tif (item.length >= 2)\n\t\t\t\tpathItems.add(new PathItem(item[0], item[1]));\n\t\t}\n\t\treturn pathItems;\n\t}",
"public void findPaths(LinkedList<Node> path,Node caller){\n pathsToBaseStation.add(path);\n LinkedList<Node> nextPath = new LinkedList<>(path);\n nextPath.addFirst(this);\n for(Node node: neighbors){\n if(!path.contains(node)){\n node.findPaths(nextPath,this);\n }\n }\n }",
"List<String> getListPaths();",
"public static <T extends PathVertexVisitor> List<Result<T>> walkPaths(\n GraphTraversalSource g, String sourceCode) {\n return walkPaths(g, new String[] {sourceCode});\n }",
"@Override\n\tpublic void pathFinderVisited(int x, int y) {\n\t}",
"public List<Node> findPath(Node start);",
"private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }",
"protected void traverseClasspaths(List projectCpEntries, Set visited) {\n \n \t\tFile aFile = null;\n \t\ttry {\n \t\t\taFile = getEARFile().getFile(getText());\n \t\t} catch (FileNotFoundException notThere) {\n \t\t}\n \t\tif (aFile == null || !aFile.isArchive())\n \t\t\treturn;\n \n \t\tArchive depArchive = (Archive) aFile;\n \t\tString[] manifestCpEntries = depArchive.getManifest().getClassPathTokenized();\n \t\tfor (int i = 0; i < manifestCpEntries.length; i++) {\n \t\t\tString uri = ArchiveUtil.deriveEARRelativeURI(manifestCpEntries[i], depArchive);\n \t\t\tif (uri == null)\n \t\t\t\tcontinue;\n \t\t\tClasspathElement other = parentSelection.getClasspathElement(uri);\n \t\t\t//If the other element is already selected, then\n \t\t\t// we don't need to add it again\n \t\t\tif (other == null || other.isSelected())\n \t\t\t\tcontinue;\n \t\t\tIClasspathEntry[] cpEntries = other.newClasspathEntries(visited);\n \t\t\tfor (int j = 0; j < cpEntries.length; j++) {\n \t\t\t\tif (!projectCpEntries.contains(cpEntries[j]))\n \t\t\t\t\tprojectCpEntries.add(cpEntries[j]);\n \t\t\t}\n \t\t}\n \t}",
"int placePathFollowingElement(String elementName, PathList pathList);",
"TreeNodeValueModel<T>[] path();",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"@Override\r\n\tpublic ArrayList<E> getPath(E src, E dst) {\r\n\t\treturn graphForWarshall.getPath(src, dst);\r\n\t}",
"private List<Path> expandExecution(Path input) {\n\t\tList<Path> childInputs = new ArrayList<>(); //store the paths generated from given path\n\t\t\n\t\t//search from the top node which have not been searched before\n\t\tfor(int j = input.bound; j < input.path.size() - 1; j++){\n\t\t\tdouble[] probabilityArray = cfg.getTransition_matrix().getRow(input.path.get(j));\n\t\t\tfor(int i = 0; i < probabilityArray.length; i++){\n\t\t\t\t//the node been visited before only have two situation:1.has been searched,2.the path contains it in the workList \n\t\t\t\tif(probabilityArray[i] > 0 && i != input.path.get(j + 1) && unvisited.contains(i)){\n\t\t\t\t\tList<Integer> tempPath = new ArrayList<>();\n\t\t\t\t\tfor(int index = 0; index < j + 1; index++)\n\t\t\t\t\t\ttempPath.add(input.path.get(index));\n\t\t\t\t\ttempPath.add(i);\n\t\t\t\t\t\n\t\t\t\t\tPath newInput = new Path(tempPath, j + 1);\n\t\t\t\t\tchildInputs.add(newInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn childInputs;\n\t}",
"@Override\r\n public ArrayList<PathXNode> generatePath() throws VertexNotFoundException {\r\n return null;\r\n }",
"java.lang.String getPaths(int index);",
"private void addPath(List<Position> positions, Node path) {\n while (path.parent != null) {\n positions.add(new Position(path.getPos().x, path.getPos().y));\n path = path.parent;\n }\n }",
"NodeList getNodeList(String path)\n throws ProcessingException;",
"java.util.List getClassPathElements();",
"@Override\n\tpublic List<Object> itemsAtPath(String path) {\n\t\treturn null;\n\t}",
"void updatePathListings() {\n\t\tpathSelector.updatePathListings();\n\t}",
"@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}",
"public Path(List<Integer> path, int bound) {\n\t\t//be careful, the = and add method of list is shadow copy\n\t\tfor(int i = 0; i < path.size(); i++)\n\t\t\tthis.path.add(path.get(i));\n\t\tthis.bound = bound;\n\t}",
"List<Path> getFiles();",
"private LinkedList<Point> constructPath(Point a, HashMap<Point, Point> allPaths) {\n\t\tLinkedList<Point> ret = new LinkedList<Point>();\n\t\tret.addLast(a);\n\t\tPoint current = a;\n\t\twhile (allPaths.containsKey(current)) {\n\t\t\tcurrent = allPaths.get(current);\n\t\t\tret.addLast(current);\n\t\t}\n\t\treturn ret;\n\t}",
"public abstract List<String> getControlledPaths();",
"public abstract List<T> readObj(String path);",
"public static void main(String[] args) {\n TreeNode n0 = new TreeNode(0); \n TreeNode n1 = new TreeNode(1); \n TreeNode n2 = new TreeNode(2); \n TreeNode n3 = new TreeNode(3); \n TreeNode n4 = new TreeNode(4); \n TreeNode n5 = new TreeNode(5); \n TreeNode n6 = new TreeNode(6); \n \n n0.left = n1; n0.right = n2; \n n1.left = n3; n1.right = n4; \n n2.left = n5; n2.right = n6; \n \n List<TreeNode> res = new Test().findPath(n0, n5); \n System.out.println(res); \n }",
"public interface IWalkThrought<T>\n\t{\n\t\tpublic void walkThrought(ArrayList<T> v);\n\t}",
"private List<TreeNode> translatePath(List path, TreeNode node) {\n \n // TODO: Find the correct node given two identical paths. \n // For example suppose we have two paths Classes/String and Classes/String.\n // This method will always translate to the first path, regardless of the\n // actual path given.\n \n List tail = new ArrayList();\n tail.addAll(path);\n Object target = tail.remove(0);\n \n if (!node.toString().equals(target.toString())) {\n return null;\n }\n \n List<TreeNode> newPath = new ArrayList<TreeNode>();\n newPath.add(node);\n \n // no more nodes to find, just return this one\n if (tail.isEmpty()) return newPath;\n \n Enumeration e = node.children();\n while(e.hasMoreElements()) {\n TreeNode child = (TreeNode)e.nextElement();\n List nodes = translatePath(tail, child);\n if (nodes != null) {\n newPath.addAll(nodes);\n return newPath;\n }\n }\n \n // the path was not found under this subtree\n return null;\n }",
"public void deepList() throws Exception;",
"@Override\n public void visit(P_Link pathNode) {\n Iterator<Node> nodes = engine.doOne(node, pathNode.getNode()) ;\n fill(nodes) ;\n }",
"public Collection<LazyNode2> getVertices() {\n List<LazyNode2> l = new ArrayList();\n \n for(Path p : getActiveTraverser())\n //TODO: Add cache clearing\n l.add(new LazyNode2(p.endNode().getId()));\n \n return l;\n }",
"public Classpath() {\n _thePaths = new ArrayList<Path>();\n }",
"private ArrayList< ArrayList<String> > findPathList(HashMap<String, HashSet<String>> precedence, String startId, String endId) {\r\n\t\tArrayList< ArrayList<String> > pathList = new ArrayList< ArrayList<String> >();\r\n\t\t\r\n\t\t// recursive method: the pathList of the endNode is all paths of its preceding nodes with the endNode itself in the last index\r\n\t\t// the starting node does not have preceding node, the pathList will have only 1 node\r\n\t\tif (endId.equals(startId)) {\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\t\r\n\t\t\tpath.add(endId);\r\n\t\t\t\r\n\t\t\tpathList.add( path );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor (String nodeId : precedence.get(endId)) {\r\n\t\t\t\t// for every path of its preceding node\r\n\t\t\t\tfor (ArrayList<String> prePath : findPathList(precedence, startId, nodeId)) {\r\n\t\t\t\t\t// add endId to the end of the list\r\n\t\t\t\t\tprePath.add(endId);\r\n\t\t\t\t\t// then add the path to pathList\r\n\t\t\t\t\tpathList.add(prePath);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn pathList;\r\n\t}",
"private void pathFill(Vertex<E> src, Vertex<E> dst, ArrayList<E> path) {\r\n\t\tif(src == dst) {\r\n\t\t\tpath.add(src.getElement());\r\n\t\t} else {\r\n\t\t\tpathFill(src, dst.getPredecessor(), path);\r\n\t\t\tpath.add(dst.getElement());\r\n\t\t}\r\n\t}",
"private void readPaths(List<Element> pathElements,\n List<Element> pointElements,\n Model model)\n throws ObjectExistsException {\n // Add the paths.\n for (int i = 0; i < pathElements.size(); i++) {\n Element curPathElement = pathElements.get(i);\n Integer pathID;\n try {\n pathID = Integer.valueOf(curPathElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n pathID = null;\n }\n String srcName = curPathElement.getAttributeValue(\"sourcePoint\");\n if (srcName == null || srcName.isEmpty()) {\n srcName = \"SourcePoint\" + i + \"Unknown\";\n }\n Point srcPoint = model.getPoint(srcName);\n String destName = curPathElement.getAttributeValue(\"destinationPoint\");\n if (destName == null || destName.isEmpty()) {\n destName = \"DestinationPoint\" + i + \"Unknown\";\n }\n Point destPoint = model.getPoint(destName);\n Path curPath = model.createPath(\n pathID, srcPoint.getReference(), destPoint.getReference());\n TCSObjectReference<Path> pathRef = curPath.getReference();\n String pathName = curPathElement.getAttributeValue(\"name\");\n if (pathName == null || pathName.isEmpty()) {\n pathName = \"PathName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(pathRef, pathName);\n model.setPathLength(pathRef,\n Long.parseLong(curPathElement.getAttributeValue(\"length\", \"1\")));\n model.setPathRoutingCost(pathRef,\n Long.parseLong(curPathElement.getAttributeValue(\"routingCost\", \"1\")));\n model.setPathLocked(pathRef,\n Boolean.parseBoolean(curPathElement.getAttributeValue(\"locked\", \"false\")));\n int maxV;\n try {\n maxV = Integer.parseInt(curPathElement.getAttributeValue(\"maxVelocity\"));\n }\n catch (NumberFormatException e) {\n maxV = 0;\n }\n model.setPathMaxVelocity(pathRef, maxV);\n int maxRV;\n try {\n maxRV = Integer.parseInt(curPathElement.getAttributeValue(\"maxReverseVelocity\"));\n }\n catch (NumberFormatException e) {\n maxRV = 0;\n }\n model.setPathMaxReverseVelocity(pathRef, maxRV);\n List<Element> properties = curPathElement.getChildren(\"property\");\n for (int m = 0; m < properties.size(); m++) {\n Element curPropElement = properties.get(m);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + m + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + m + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(pathRef, curKey, curValue);\n }\n }\n\n // Loop through all paths. Add the path to its source point as an outgoing\n // path and to its destination point as an incoming path.\n for (Path curPath : model.getPaths(null)) {\n model.addPointOutgoingPath(curPath.getSourcePoint(),\n curPath.getReference());\n model.addPointIncomingPath(curPath.getDestinationPoint(),\n curPath.getReference());\n }\n }",
"public void addPath(Path path)\n\t{\n\t\tpathList.add(path);\n\t}",
"ArrayList<Node> DFSRec(Graph graph, final Node start, final Node end )\n {\n ArrayList<Node> path = new ArrayList<Node>();\n\n if ( start == end )\n {\n return path;\n }\n\n boolean visited[] = new boolean[graph.numNodes];\n visited[start.id] = true;\n\n path.addAll(DFSRec_helper(graph, start, end, visited)); \n\n return path;\n }",
"public interface ClassPath extends Serializable, Iterable<ClassPathElement> {\n /**\n * Add the specified element to this classpath.\n * @param element the classpath element to add.\n * @return this <code>ClassPath</code>.\n */\n ClassPath add(ClassPathElement element);\n\n /**\n * Add the specified element to this classpath.\n * When using this method, the local and remote locations are assumed to be the same.\n * @param location the location of the element to add.\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath add(Location<?> location);\n\n /**\n * Add the specified element to this classpath.\n * Upon processing by the node, the local location will be copied into the remote location.\n * @param sourceLocation the location of the element to add, in the client environment.\n * @param targetLocation the location of the element to add, in the node environment.\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath add(Location<?> sourceLocation, Location<?> targetLocation);\n\n /**\n * Add the specified element to this classpath.\n * Upon processing by the node, the local location will be copied into the remote location, unless all of the following are true:\n * <ul>\n * <li>copyToExistingFile is {@code false}</li>\n * <li>targetLocation is a {@link FileLocation}</li>\n * <li>the file pointed to by targetLocation already exists on the file system</li>\n * </ul>\n * @param sourceLocation the location of the element to add, in the client environment.\n * @param targetLocation the location of the element to add, in the node environment.\n * @param copyToExistingFile whether to copy the source to the target if the target is either a {@link FileLocation}\n * or an {@link URLLocation} with a {@code file} URL protocol (e.g. {@code file:/home/user/mylib.jar}), and if it already exists on the file system.\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath add(Location<?> sourceLocation, Location<?> targetLocation, final boolean copyToExistingFile);\n\n /**\n * Add the specified element to this classpath.\n * When using this method, the local and remote locations are assumed to be the same.\n * @param name the the name of the element to add.\n * @param location the location of the element to add.\n * @return this {@code ClassPath}, for method call chaining.\n * @deprecated the {@code name} attribute has no clearly definied, consistent semantics. It is no longer used.\n * Use {@link #add(Location) add(location)} instead.\n */\n ClassPath add(String name, Location<?> location);\n\n /**\n * Add the specified element to this classpath.\n * Upon processing by the node, the source location will be copied into the target location.\n * @param name the the name of the element to add.\n * @param sourceLocation the location of the element to add, in the client environment.\n * @param targetLocation the location of the element to add, in the node environment.\n * @return this {@code ClassPath}, for method call chaining.\n * @deprecated the {@code name} attribute has no clearly definied, consistent semantics. It is no longer used.\n * Use {@link #add(Location, Location) add(sourceLocation, remoteLocation)} instead.\n */\n ClassPath add(String name, Location<?> sourceLocation, Location<?> targetLocation);\n\n /**\n * Remove the specified element from this classpath.\n * @param element the classpath element to remove.\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath remove(ClassPathElement element);\n\n /**\n * Remove the specified element from this classpath.\n * @param name the name of the classpath element to remove.\n * @return this {@code ClassPath}, for method call chaining.\n * @deprecated the {@code name} attribute has no clearly definied, consistent semantics. It is no longer used.\n * Use {@link #remove(ClassPathElement)} instead.\n */\n ClassPath remove(String name);\n\n /**\n * Empty this classpath (remove all classpath elements).\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath clear();\n\n /**\n * Get the element with the specified name.\n * @param name the name of the classpath element to find.\n * @return a {@link ClassPathElement} instance or <code>null</code> if the element could no be found.\n * @deprecated the {@code name} attribute has no clearly definied, consistent semantics. It is no longer used.\n */\n ClassPathElement element(String name);\n\n /**\n * Get a collection of all the classpath elements in this classpath.\n * @return a {@link Collection} of {@link ClassPathElement}s.\n */\n Collection<ClassPathElement> allElements();\n\n /**\n * Determine whether this classpath is empty.\n * @return <code>true</code> if this classpath has no element, <code>false</code> otherwise.\n */\n boolean isEmpty();\n\n /**\n * Determine whether the node should force a reset of the class loader before executing the tasks.\n * <p>This only applies when this classpath is empty. If it is not empty, then the reset will occur regardless the value of this flag.\n * @return <code>true</code> if the class loader reset should be forced, <code>false</code> otherwise.\n */\n boolean isForceClassLoaderReset();\n\n /**\n * Specify whether the node should force a reset of the class loader before executing the tasks.\n * <p>This only applies when this classpath is empty. If it is not empty, then the reset will occur regardless the value of the specified flag.\n * @param forceReset <code>true</code> if the class loader reset should be forced, <code>false</code> otherwise.\n * @return this {@code ClassPath}, for method call chaining.\n */\n ClassPath setForceClassLoaderReset(boolean forceReset);\n}",
"public void inOrderTraverseRecursive();",
"public ArrayList<String> traverseFiles(File inputDir, ArrayList<String> Documents2 )\n\t{\n\t\tif (inputDir.isDirectory()) {\n\t\t\t//System.out.println(\"Checking for directory...\");\n\t String[] children = inputDir.list();\n\t for (int i = 0; children != null && i < children.length; i++) {\n\t traverseFiles(new File(inputDir, children[i]), Documents2);\n\t }\n\t }\n\t if (inputDir.isFile()) \n\t \t{ Documents2.add(inputDir.getAbsolutePath());}//change it if needed\n\t \n\t return Documents2;\n\t // System.out.println(Documents.size());\n\t}",
"public ArrayList<Vertex> getPath(Vertex target) {\n\t\tArrayList<Vertex> path = new ArrayList<Vertex>();\n\t\tVertex step = target;\n\t\t// check if a path exists\n\t\tif (predecessors.get(step) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tpath.add(step);\n\t\twhile (predecessors.get(step) != null) {\n\t\t\tstep = predecessors.get(step);\n\t\t\tpath.add(step);\n\t\t}\n\t\t// Put it into the correct order\n\t\tCollections.reverse(path);\n\n\n\t\tVertex current=null;\n\t\tVertex next=null;\n\t\tint length = path.size();\n\t\tfor(int i=0;i<length-1;i++){\n current = path.get(i);\n\t\t\t next = path.get(i+1);\n\t\t\tif(!rapid && (nodeColor_map.get(current.getName()).equalsIgnoreCase(\"dB\")||\n\t\t\t\t\tnodeColor_map.get(next.getName()).equalsIgnoreCase(\"dB\")))\n\t\t\t\trapid = true;\n\t\t\troute_length+= edge_length_map.get(new Pair(current,next));\n\t\t}\n\n\t\treturn path;\n\t}",
"public List<Path> toAbsPaths(Collection<Path> tipPaths) {\n\t\tList<Path> result = tipPaths.stream().map(this::tipPathToAbsPath).collect(Collectors.toList());\n\t\treturn result;\n\t}",
"public AtomicVertex[] getPaths()\n {\n return _paths;\n }",
"Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;",
"public TraversalThread(LinkedList<Graph<NodeData,EdgeData>.Edge> path){\r\n this.path = path;\r\n }",
"public List<Pair<Integer, Integer>> preparePath(Pair<Integer, Integer> goal) {\n var path = new LinkedList<Pair<Integer, Integer>>();\n path.add(goal);\n var parent = goal.getParent();\n while(parent != null) {\n path.addFirst(parent);\n parent = parent.getParent();\n }\n path.removeLast();\n return path;\n }",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\n \tArrayList<Integer> toReturn = new ArrayList<Integer>();\n \tArrayList<Integer> temporary = new ArrayList<Integer>();\n \tif (!pathExists(startVertex, stopVertex)) {\n \t\treturn toReturn;\n \t}\n \tif (startVertex == stopVertex) {\n \t\ttoReturn.add(startVertex);\n \t\treturn toReturn;\n \t}\n \tIterator<Integer> iter = new DFSIterator(startVertex);\n \twhile (iter.hasNext()) {\n \t\tInteger toAdd = iter.next();\n \t\ttemporary.add(toAdd);\n \t\tif (toAdd.equals(stopVertex)) {\n \t\t\tbreak;\n \t\t}\n \t}\n \ttoReturn.add(0, stopVertex);\n \treturn pathHelper(temporary, toReturn);\n }",
"private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }"
]
| [
"0.7443677",
"0.65657294",
"0.6466967",
"0.63231385",
"0.6219155",
"0.6079778",
"0.6033406",
"0.6000166",
"0.5897431",
"0.58722174",
"0.5845008",
"0.58325505",
"0.58325005",
"0.5786774",
"0.5699006",
"0.5674252",
"0.5664456",
"0.5653225",
"0.5609732",
"0.5566363",
"0.5560011",
"0.5548357",
"0.55141926",
"0.54808354",
"0.5479383",
"0.5473236",
"0.546497",
"0.5455954",
"0.5443323",
"0.54269093",
"0.54223883",
"0.54084444",
"0.53998256",
"0.53957516",
"0.5387525",
"0.5383035",
"0.5369859",
"0.53604",
"0.53589433",
"0.53393257",
"0.5333239",
"0.5333101",
"0.53086126",
"0.53075206",
"0.5306368",
"0.53051895",
"0.52641076",
"0.52607924",
"0.5242869",
"0.52295995",
"0.5224234",
"0.52224916",
"0.52177197",
"0.52172726",
"0.5191813",
"0.51787144",
"0.5178027",
"0.51706785",
"0.51704454",
"0.51666576",
"0.5127146",
"0.51174617",
"0.5116405",
"0.51055074",
"0.5093243",
"0.5069246",
"0.5059419",
"0.50544864",
"0.50363517",
"0.5035114",
"0.50331604",
"0.50324297",
"0.5031011",
"0.502005",
"0.501831",
"0.50180376",
"0.50152206",
"0.5009782",
"0.50064063",
"0.5003948",
"0.5002207",
"0.4994634",
"0.49930823",
"0.49923655",
"0.49865913",
"0.49833977",
"0.49776253",
"0.4975735",
"0.4975617",
"0.49754846",
"0.49710524",
"0.4969252",
"0.49634635",
"0.49613658",
"0.49502173",
"0.4947854",
"0.49432567",
"0.49428767",
"0.49356237",
"0.49339196"
]
| 0.5157685 | 60 |
/ Instantiate searcher based on cmd line args. | private static Searcher createSearcher(String[] args) {
if (args.length > 1 && "duden".equals(args[1])) {//Use DWDS by default, Duden only on explicit request
return SearcherFactory.newDuden();
} else {
return SearcherFactory.newDwds();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}",
"public SearchCommand(String[] args) {\n super(args);\n\n try{\n pathToDir = validatePathToDir(args[1]);\n maxFileSize = validateMaxFileSize(args[2]);\n keywords = validateKeywords(args);\n }\n catch (IndexOutOfBoundsException e){\n isValid = false;\n invalidReasonString = \"The search command didn`t contain enough arguments\";\n } catch (Exception nfe){\n isValid = false;\n invalidReasonString = nfe.getMessage();\n }\n }",
"public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }",
"public static void main(String[] args) {\n\t\tlinearsearch oo=new linearsearch();\n\t\too.search();\n\t\t\n\t}",
"public static void main(String[] args) {\n //Instantiate a new instance of the Queries class called query\n Queries query = new Queries();\n //Instantiate empty strings called search, queryTerm, and cache\n String search = \"\";\n String queryTerm = \"\";\n String cache = \"\";\n\n //For each item in the arguments array\n for (int i = 0; i < args.length; i++) {\n //If the item is --search, run the following\n if (args[i].equals(\"--search\")) {\n //If --search is the last argument, set the search string to null\n if (i == args.length - 1) {\n search = null;\n }\n //Otherwise set the search string to the next argument\n else {\n search = args[i + 1];\n }\n }\n //If the item is --query run the following\n if (args[i].equals(\"--query\")) {\n //If --query is the last argument, set the queryTerm string to null\n if (i == args.length - 1) {\n queryTerm = null;\n }\n else {\n //Add the next item to the query string\n queryTerm = args[i + 1];\n //Instantiate an integer called j as i+1\n int j = i + 1;\n //While j is less than the number of arguments -1, and the argument\n //after j isn't --search or --cache and queryTerm isn't --search or --cache, add the j+1 argument to the queryTerm string\n while (j < args.length - 1 && !args[j + 1].equals(\"--search\") && !args[j + 1].equals(\"--cache\") && !queryTerm.equals(\"--search\") && !queryTerm.equals(\"--cache\")) {\n queryTerm += \" \" + args[j + 1];\n j++;\n }\n }\n }\n //If the item is --cache, run the following\n if (args[i].equals(\"--cache\")) {\n //If --cache is the last argument, set the cache string to null\n if (i == args.length - 1) {\n cache = null;\n }\n //Otherwise, set the cache string to the next argument\n else {\n cache = args[i + 1];\n }\n }\n }\n //Create a new file object from the cache\n File folder = new File(cache);\n //Instantiate a boolean variable called noErrors to true\n Boolean noErrors = true;\n //If the queryTerm string is null, --cache, or --search (indicating a missing argument), print\n //the appropriate error message and set noErrors to false\n if (queryTerm == null || queryTerm.equals(\"--cache\") || queryTerm.equals(\"--search\")) {\n System.out.println(\"Missing value for --query\\n\"\n + \"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the search string is null, --cache, or --query (indicating a missing argument), print\n //the appropriate error message and set noErrors to false\n else if (search == null || search.equals(\"--cache\") || search.equals(\"--query\")) {\n System.out.println(\"Missing value for --search\\n\"\n + \"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the search string isn't any of the valid search options, print the appropriate error messages and set noErrors to false\n else if (!search.equals(\"author\") && !search.equals(\"publication\") && !search.equals(\"venue\")) {\n System.out.println(\"Invalid value for --search: \" + search);\n System.out.println(\"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the folder created from the cache string isn't a directory, print the appropriate error messages and set noErrors to false\n else if (!folder.isDirectory()) {\n System.out.println(\"Cache directory doesn't exist: \" + cache);\n noErrors = false;\n }\n //If noErrors is true, call the appropriate query with the queryTerm string and folder as parameters\n if (noErrors) {\n if (search.equals(\"author\")) {\n query.authorSearch(queryTerm, folder);\n }\n else if (search.equals(\"venue\")) {\n query.venueSearch(queryTerm, folder);\n }\n else if (search.equals(\"publication\")) {\n query.publicationSearch(queryTerm, folder);\n }\n }\n\n }",
"public static void main(String[] args) throws IOException {\n\n //Reload indexes from file-system into memory as map data structure.\n System.out.println(\"Loading indexes in memory\");\n File file = new File(directoryPath + \"index.txt\");\n SearchQueries searchQueries = new SearchQueries();\n searchQueries.reLoadIndexesFromFileToIndexMap(file);\n\n System.out.println(\"Enter search query string\");\n Scanner scanner = new Scanner(System.in);\n String searchString = scanner.nextLine();\n\n System.out.println(\"Searching for matching documents...\");\n searchQueries.parseQueryStringAndSearch(searchString);\n\n searchQueries.printingSearchResults();\n\n\n }",
"public static void main(String[] args) throws Exception\n {\n TinySearchEngineBase searchEngine = new TinySearchEngine();\n MyDriver d = new MyDriver();\n d.run(searchEngine);\n }",
"public static void main(String[] args) throws IOException {\n\t\tGenomindex index = new Genomindex(Files.readAllLines(FileSystems.getDefault().getPath(args[0]), StandardCharsets.UTF_8));\n\t\tSystem.out.println(index.search(Integer.parseInt(args[1]), Integer.parseInt(args[2]), Arrays.asList(args).subList(3, args.length)));\n\t}",
"public static void main(String[] args)\n {\n Spider spider = new Spider();\n spider.search(\"http://arstechnica.com/\", \"computer\");\n }",
"public MagicSearch createMagicSearch();",
"public static void main(String[] args) {\n\t\tParser p = new Parser();\n\t\t//p.keyword = \"035420\";\n\t\tu = new UI();\n\t\t\n\t\t//p.goodSearch();\n\t}",
"public static void main(String[] args) {\n\t\tLength test = new Length();\n\t\ttest.search();\n\t}",
"public static void main(String[] args) throws IOException, SolrServerException {\n search();\n }",
"public static void main(String args[]){\n\t\tString uri;\r\n\t\ttry{\r\n\t\t\turi = args[0];\r\n\t\t\tSystem.out.print(\"LOADING....\");\r\n\t\t\tPhase2Search search = new Phase2Search(uri);\r\n\t\t\tSystem.out.println(\"COMPLETED\\n\");\r\n\t\t\t\r\n\t\t\tString query;\r\n\t\t\tboolean flag = false;\r\n\t\t\tdo{\r\n\t\t\t in = new Scanner(System.in);\r\n\t\t\t System.out.print(\"ENTER QUERY : \");\r\n\t\t\t query = in.nextLine();\r\n\t\t\t//query = \"roann indiana\";\r\n\t\t\t//query = \"imdb\";\r\n\t\t\t //query = \"aalburg\";\r\n\t\t\t System.out.println(\"QUERY: \" + query);\r\n\t\t\tdouble startTime = System.currentTimeMillis();\r\n\t\t\t\tsearch.searchFunc(query);\r\n\t\t\tdouble endTime = System.currentTimeMillis();\r\n\t\t\tdouble totalTime = endTime - startTime;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ totalTime/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want another Query (1 for YES) : \");\r\n\t\t\t if(!(in.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = true;\r\n\t\t\t }\r\n\t\t\t}while(flag == false);\r\n//\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Command Line Arguments are Missing.\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Exception Occur.\");\r\n\t\t}\r\n\t\t\r\n\t}",
"private Search() {}",
"public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }",
"public Args(String ... args) {\n CommandLineParser parser = new DefaultParser();\n Options options = new Options();\n options.addOption(\"d\", true, \"search directory\");\n Option maskOption = new Option(\"n\", true, \"list of filename masks\");\n maskOption.setArgs(Option.UNLIMITED_VALUES);\n options.addOption(maskOption);\n OptionGroup maskModeOptionGroup = new OptionGroup();\n maskModeOptionGroup.addOption(new Option(\"m\", false,\n \"maximum coincidence of file name and search key\"));\n maskModeOptionGroup.addOption(new Option(\"f\", false,\n \"full coincidence of file name and search key\"));\n maskModeOptionGroup.addOption(new Option(\"r\", false,\n \"search key - is a regular expression\"));\n options.addOptionGroup(maskModeOptionGroup);\n ArrayList<Option> maskModeOptions = new ArrayList<>(maskModeOptionGroup.getOptions());\n boolean maskModeOptionsIsGiven = false;\n options.addOption(\"o\", true, \"full output log-file path\");\n options.addOption(\"help\", false, \"Print help\");\n try {\n CommandLine line = parser.parse(options, args);\n if (line.hasOption(\"help\")) {\n new HelpFormatter().printHelp(\"Find\", options);\n System.exit(0);\n } else {\n if (line.hasOption(\"d\")) {\n this.directory = line.getOptionValue(\"d\");\n }\n if (line.hasOption(\"o\")) {\n this.output = line.getOptionValue(\"o\");\n }\n if (line.hasOption(\"n\")) {\n String[] masks = line.getOptionValues(\"n\");\n for (String mask : masks) {\n this.maskList.add(mask);\n }\n }\n for (Option option : maskModeOptions) {\n if (line.hasOption(option.getOpt())) {\n this.maskMode = option.getOpt();\n maskModeOptionsIsGiven = true;\n break;\n }\n }\n if (!line.hasOption(\"d\") || !line.hasOption(\"n\") || !line.hasOption(\"o\") || !maskModeOptionsIsGiven) {\n throw new ParseException(\"Missing option\");\n }\n }\n } catch (ParseException exp) {\n System.out.println(\"Unexpected exception during command line parsing occured: \" + exp.getMessage());\n new HelpFormatter().printHelp(\"Find\", options);\n System.exit(0);\n }\n }",
"public static void main(String[] args) {\r\n\t\tTaskResultAnalysis analysis = extractArguments(args);\r\n\t\tif (analysis == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// determine tool mode, invoke proper action\r\n\t\tif (analysis.directory != null)\r\n\t\t\tsearch(analysis);\r\n\t\telse analyze(analysis);\r\n\t}",
"public static void main(String[] args) {\n\t\tint[] arr = { 10, 20, 30, 40, 50 };\n\t\tint v = 300;\n\n\t\tSearchArray s = new SearchArray(arr, v);\n\n\t}",
"public static void main(String[] args) {\n\t googleSearch();\r\n }",
"public FindCommand(String searchTerms) {\n super(false);\n this.searchTerms = searchTerms;\n }",
"public search() {\n }",
"public static void main(String arg[])\r\n {\r\n try\r\n {\r\n FuzzySearch fuzzy= new FuzzySearch();\r\n ArrayList words= null;\r\n String line;\r\n HashSet catalog= new HashSet();\r\n BufferedReader bufferedReader = new BufferedReader(new FileReader(arg[0]));\r\n // build a catalog of possible words\r\n //\r\n while ((line = bufferedReader.readLine()) !=null)\r\n {\r\n catalog.add(\" \"+line.trim()+\" \");\r\n }\r\n fuzzy.setCatalog(catalog);\r\n\r\n String search = arg[1];\r\n\r\n words = fuzzy.find(search, 40 /* 0-100% */);\r\n Iterator iter = words.iterator();\r\n while(iter.hasNext())\r\n {\r\n Keyword key= (Keyword)iter.next();\r\n System.out.println(\"Matching word: [\"+key.m_keyword+ \"] \"+key.m_percentage+\"%\");\r\n }\r\n }\r\n catch( Exception exc)\r\n {\r\n System.err.println(exc);\r\n }\r\n }",
"public static void grep(String[] args) {\n\t\t//Boolean to skip the first term in args which is the search term\n\t\tBoolean searchTerm = false;\n\t for (String i : args) {\n\t \t if (searchTerm==false) {\n\t \t\t searchTerm = true;\n\t \t\t continue;\n\t \t }\n\t \t //Print the current directory\n\t \t System.out.println(i);\n\t \t Pattern pat = null; \n\t \t //Make a pattern with the search term\n\t\t try {\n\t\t pat = Pattern.compile(args[0]);\n\t\t } catch (PatternSyntaxException e) {\n\t\t System.err.println(\"Invalid RE syntax: \" + e.getDescription());\n\t\t System.exit(1);\n\t\t }\n\t\t //Open the file\n\t\t BufferedReader in = null;\n\t\t try {\n\t\t in = new BufferedReader(new InputStreamReader(\n\t\t new FileInputStream(i)));\n\t\t } catch (FileNotFoundException e) {\n\t\t System.err.println(\"Unable to open file \" +\n\t\t i + \": \" + e.getMessage());\n\t\t System.exit(1);\n\t\t }\n\n\t\t //Search the file for the search term and also record and print the line numbers with the found lines\n\t\t try {\n\t\t String s;\n\t\t int line = 0;\n\t\t while ((s = in.readLine()) != null) {\n\t\t \tline++;\n\t\t Matcher m = pat.matcher(s);\n\t\t if (m.find())\n\t\t System.out.println(line + \": \" + s);\n\t\t }\n\t\t } catch (Exception e) {\n\t\t System.err.println(\"Error reading line: \" + e.getMessage());\n\t\t System.exit(1);\n\t\t }\n\t } \n\t }",
"public static void main(String[] args)\n {\n try\n {\n System.out.println(\"Regular expression [\"+args[0]+\"]\");\n NameParser parser = new NameParser();\n StringMatcher matcher = parser.parse(args[0]);\n for (int index = 1; index < args.length; index++)\n {\n String string = args[index];\n System.out.print(\"String [\"+string+\"]\");\n System.out.println(\" -> match = \"+matcher.matches(args[index]));\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception{\n if(args.length != 1){\n\n }\n\n Registry registry = new Registry(Integer.parseInt(args[0]));\n registry.init();\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tLibrarySearch library = new LibrarySearch(); \n\t\tString command; /* Stores command to perform (add, search, quit) */\n\n\t\t/* Checks if input and output files are entered at command line */\n\t\ttry {\n\t\t\tif (args[0] == null || args[1] == null) {\n\t\t\t}\n\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"No input/ouput file specified at command line!\");\n\t\t\tSystem.out.println(\"Program ended. Please run program again with an input and output file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/* Loads existing references from a file at start of program */\n\t\tScanner inputStream = null;\n\t\ttry {\n\t\t\tinputStream = new Scanner(new FileInputStream(args[0]));\n\t\t\tString type;\n\t\t\twhile (inputStream.hasNextLine()) {\n\t\t\t\ttype = inputStream.nextLine();\n\t\t\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\tString callNumber = inputStream.nextLine();\n\t\t\t\t\tString authors = inputStream.nextLine();\n\t\t\t\t\tString title = inputStream.nextLine();\n\t\t\t\t\tString publisher = inputStream.nextLine();\n\t\t\t\t\tint year = inputStream.nextInt();\n\t\t\t\t\tlibrary.addBook(new Book(callNumber, authors, title, publisher, year));\n\t\t\t\t\tlibrary.addToHashMap(title.toLowerCase().split(\"[ ,\\n]+\")); /* Adds loaded reference from file to HashMap */\n\t\t\t\t} else if (type.equalsIgnoreCase(\"journal\") || type.equalsIgnoreCase(\"j\")) {\n\t\t\t\t\tString callNumber = inputStream.nextLine();\n\t\t\t\t\tString title = inputStream.nextLine();\n\t\t\t\t\tString organizer = inputStream.nextLine();\n\t\t\t\t\tint year = inputStream.nextInt();\n\t\t\t\t\tlibrary.addJournal(new Journal(callNumber, title, organizer, year));\n\t\t\t\t\tlibrary.addToHashMap(title.toLowerCase().split(\"[ ,\\n]+\")); /* Adds loaded reference from file to HashMap */\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputStream.close(); /* Closes file */\n\t\t\tSystem.out.println(\"Input file loaded successfully!!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Input file not found. No books/journals loaded!\");\n\t\t}\n\n\t\t/* Command Loop of program. Can add record, search records or quit program. */\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter now add, search, or quit> \");\n\t\t\tcommand = input.nextLine();\n\t\t\tif (command.equalsIgnoreCase(\"add\") || command.equalsIgnoreCase(\"a\"))\n\t\t\t\tlibrary.addRecord(input);\n\t\t\telse if (command.equalsIgnoreCase(\"search\") || command.equalsIgnoreCase(\"s\"))\n\t\t\t\tlibrary.searchRecords(input);\n\t\t\telse if (command.equalsIgnoreCase(\"quit\")) {\n\t\t\t\t\n\t\t\t\tPrintWriter outputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\toutputStream = new PrintWriter(new FileOutputStream(args[1]));\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tSystem.out.println(\"Error storing data to file! File not found!\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t/* Loop to add all records to specified output file. */\n\t\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\t\toutputStream.println(items.get(i));\n\t\t\t\t}\n\t\t\t\toutputStream.close(); /* Closes file ensuring data is written to the file. */\n\t\t\t}\n\t\t\t\n\t\t} while (!command.equalsIgnoreCase(\"quit\") && !command.equalsIgnoreCase(\"q\"));\n\t}",
"public static void main(String [] args) throws Exception {\n\n if (instance == null)\n instance = new FamilySearchResource();\n gCode = \"\";\n gAccessToken = \"\";\n }",
"public abstract Search create(String search, SearchBuilder builder);",
"@Test\n public void parse_validArgs_returnsSearchCommand() {\n SearchCommand expectedSearchCommand =\n new SearchCommand(new NamePhoneTagContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\")));\n assertParseSuccess(parser, \"Alice Bob\", expectedSearchCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Alice \\n \\t Bob \\t\", expectedSearchCommand);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(search(ar, 0, num, 90));\n\t}",
"public static void main(String[] args) {\n\t\tif(args.length >= 2){\n\t\t\ttry{\n\t\t\t\tpageSize = Integer.parseInt(args[1]);\n\t\t\t} \n\t\t\tcatch(NumberFormatException e){\n\t\t\t\tpageSize = 4096;\n\t\t\t\tSystem.out.println(\"Pagesize was not a number defaulting to 4096\");\n\t\t\t}\n\t\t\tFile f = new File(\"heap.\" + pageSize);\n\t\t\tsearchQuery = args[0];\n\n\t\t\tSystem.out.println(\"Reading File\");\n\t\t\tSystem.out.println(searchQuery);\n\t\t\tSystem.out.println(\"heap.\" + pageSize);\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\treadFile(f);\n\t\t\t\n\t\t\tSystem.out.println(\"Searching\");\n\t\t\t//search();\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\tstdout();\n\t\t\t\t\t\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Run format: java dbquery [text] [pagesize]\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Trie obj = new Trie();\n obj.insert(\"home\");\n obj.insert(\"homo\");\n System.out.println(obj.searchWord(\"home\"));\n obj.searchPrefix(\"hom\");\n }",
"public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\tint[] nums = {4,5,6,7,0,1,2};\n\t\tSystem.out.println(s.search(nums, 0));\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tDaoFlights repo=new DaoFlightsImpl();\r\n\t\tSystem.out.println(repo.getFlights(\"AMS\", \"FRA\"));\r\n\t\tSystem.out.println(repo.getFlights(\"LHR\", \"IST\"));\r\n\t\tSystem.out.println(repo.getFlights(\"BCN\", \"MAD\"));\r\n\t\tSystem.out.println(repo.getFlights(\"CDG\", \"FRA\"));\r\n\t\tSystem.out.println(repo.getFlights(null, \"FRA\"));\r\n\r\n\t\tSearcher searcher=new Searcher(repo);\r\n\t\tSystem.out.println(searcher.findFlights(\"AMS\", \"FRA\", 31, 1, 0, 0));\r\n\t\tSystem.out.println(searcher.findFlights(\"LHR\", \"IST\", 15, 2, 1, 1));\r\n\t\tSystem.out.println(searcher.findFlights(\"BCN\", \"MAD\", 2, 1, 2, 0));\r\n\t\tSystem.out.println(searcher.findFlights(\"CDG\", \"FRA\", 31, 1, 0, 0));\r\n\t\tSystem.out.println(searcher.findFlights(\"CDG\", null, 31, 1, 0, 0));\r\n\r\n\t}",
"public AbstractSearchEngine() {}",
"public static void main(String[] args) {\n\n\t\tPerson P1 = new Person(\"18\",\"Jose\",\"SoftDev\");\n\t\tPerson P2 = new Person(\"20\",\"Kiki\",\"Cleaner\");\n\t\t\n\t\t\n\t\t//print results using the tostring method\n\t\t//System.out.println(P1.toString()) ;\n\t\t//System.out.println(P2.toString()) ; //no longer needed\n\t\t\n\t\t\n\t\t//add to arraylist\n//\t\tPerson.peopleinfo.add(P1); //no longer needed as its incorporated in person class\n//\t\tPerson.peopleinfo.add(P2);\n\t\t\n\t\t//using for loop to output people:\n\t\t\n\t\tfor(Person person:Person.peopleinfo) {// Person = data type, person: ref var (placeholder), \n\t\t\tSystem.out.println(person);// person.name if u onl want name\n\t\t}\n\n\t\t// no need for static methods\n\t\tRunner_Person l = new Runner_Person();// you do this to create an instance of search within the main so that static is not reqd\n\t\tSystem.out.println(l.search(\"Jose\"));\n\n\t}",
"public static void main(String[] args) throws KException, IOException {\n\n \tSearchSaver ss = new SearchSaver(StatusStreamSaver.parseArgsToConfig(args), \"localhost\", 5001);\n \tss.setSearch(true);\n }",
"public static void main(String [] args)\n{\n\n DylockPatternAnalyzer dpa = new DylockPatternAnalyzer(args);\n dpa.process();\n}",
"public static void main(String[] args) {\n\r\n\t\tString[] words = {\"cat\", \"dog\", \"rat\", \"mat\", \"hen\", \"elephant\"};\r\n\t\t\r\n\t\tTrie dataStructure = new Trie();\r\n\t\t\r\n\t\tfor(String word: words){\r\n\t\t\t\r\n\t\t\tdataStructure.insert(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dataStructure.search(\"god\"));\r\n\t}",
"public static void main(String args[]) {\n\n\t\tFlowers example = new Flowers();\n\t\t\n\t\texample.model();\n\n\t\tif (example.search())\n\t\t\tSystem.out.println(\"Solution(s) found\");\n\t\t\n\t}",
"protected IndexSearcher getIndexSearcher(IndexReader reader) {\n return new IndexSearcher(reader);\n }",
"public MyAnnotator(String name, Properties props){\r\n sch = props.getProperty(\"Search.string\",\"the\"); //gets search string if specified, else defaults to \"the\"\r\n }",
"public static void main(String[] args) {\n\t\tBFS breadFirstSearch = new BFS();\n\n\t\t// creating an object of class DFS\n\t\tDFS depthFirstSearch = new DFS();\n\n\t\tchar choice, opt;\n\t\tScanner in = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Enter your choice of search\");\n\t\t\tSystem.out.println(\"Press 'b' for breadth first search\");\n\t\t\tSystem.out.println(\"Press 'd' for depth first search\");\n\t\t\tchoice = Character.toLowerCase(in.next().charAt(0));\n\n\t\t\t// creating a set of vertices\n\t\t\tVertex vertex1 = new Vertex(1);\n\t\t\tVertex vertex2 = new Vertex(2);\n\t\t\tVertex vertex3 = new Vertex(3);\n\t\t\tVertex vertex4 = new Vertex(4);\n\t\t\tVertex vertex5 = new Vertex(5);\n\n\t\t\t// connecting the vertices to each other to make the graph\n\t\t\tvertex1.addNeighbourVertex(vertex2);\n\t\t\tvertex1.addNeighbourVertex(vertex4);\n\t\t\tvertex4.addNeighbourVertex(vertex5);\n\t\t\tvertex2.addNeighbourVertex(vertex3);\n\n\n\t\t\tswitch (choice) {\n\t\t\tcase 'd' : \n\t\t\t\t// start the depth first search starting from vertex1\n\t\t\t\tdepthFirstSearch.iterativeDFS(vertex1); break;\n\n\t\t\tcase 'b':\n\t\t\t\t// start the breadth first search starting from vertex1\n\t\t\t\tbreadFirstSearch.bfs(vertex1); break;\n\n\t\t\tdefault: System.out.println(\"wrong input\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Want to continue (y/n)\");\n\t\t\topt = Character.toLowerCase(in.next().charAt(0));\n\t\t} while (opt == 'y');\n\t\tin.close();\n\t}",
"public static void main(String[] args) throws Exception {\n String usage =\n \"Usage:\\tjava org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-query string] [-raw] [-paging hitsPerPage]\\n\\nSee http://lucene.apache.org/core/4_1_0/demo/ for details.\";\n if (args.length > 0 && (\"-h\".equals(args[0]) || \"-help\".equals(args[0]))) {\n System.out.println(usage);\n System.exit(0);\n }\n\n String index = \"index\";\n String field = \"contents\";\n String queries = null;\n int repeat = 0;\n boolean raw = false;\n String queryString = null;\n int hitsPerPage = 10;\n String[] fileTypes = null;\n Date fileDate = null;\n Set<String> mFilesSet = new HashSet<>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fileDateString = null;\n\n for (int i = 0; i < args.length; i++) {\n if (\"-index\".equals(args[i])) {\n index = args[i + 1];\n i++;\n } else if (\"-field\".equals(args[i])) {\n field = args[i + 1];\n i++;\n } else if (\"-queries\".equals(args[i])) {\n queries = args[i + 1];\n i++;\n } else if (\"-query\".equals(args[i])) {\n queryString = args[i + 1];\n i++;\n } else if (\"-repeat\".equals(args[i])) {\n repeat = Integer.parseInt(args[i + 1]);\n i++;\n } else if (\"-raw\".equals(args[i])) {\n raw = true;\n } else if (\"-paging\".equals(args[i])) {\n hitsPerPage = Integer.parseInt(args[i + 1]);\n if (hitsPerPage <= 0) {\n System.err.println(\"There must be at least 1 hit per page.\");\n System.exit(1);\n }\n i++;\n } else if(\"-filter\".equals(args[i])){\n filtering = true;\n }\n }\n\n if(filtering) {\n //read the filters file\n try (\n InputStream fis = new FileInputStream(\"filters.txt\");\n InputStreamReader isr = new InputStreamReader(fis, Charset.defaultCharset());\n BufferedReader br = new BufferedReader(isr);\n ) {\n //read first line which contains the types of the files to be searched\n Stream<String> lines;\n lines = br.lines();\n\n\n for (Iterator<String> i = lines.iterator(); i.hasNext(); ) {\n String line;\n line = i.next();\n if (line.startsWith(\"#\")) { //ignore comments in filters file\n } else if (line.startsWith(\"files: \")) {\n line = line.replaceFirst(\"files: \", \"\");\n fileTypes = line.split(\",\");\n mFilesSet.add(\"pdf\");\n mFilesSet.add(\"txt\");\n mFilesSet.add(\"epub\");\n for (int j = 0; j < fileTypes.length; j++) {\n mFilesSet.remove(fileTypes[j]); //remove from the hashset those file types parsed from the user file\n }\n } else if (line.startsWith(\"date:\")) {\n line = line.replaceFirst(\"date: \", \"\");\n fileDate = dateFormat.parse(line);\n fileDateString = line;\n //System.out.println(fileDateString);\n //System.out.println(\"Date: \" + fileDate.toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(index)));\n IndexSearcher searcher = new IndexSearcher(reader);\n Analyzer analyzer = new MyAnalyzer();\n\n BufferedReader in = null;\n\n if (queries != null) {\n in = Files.newBufferedReader(Paths.get(queries), StandardCharsets.UTF_8);\n } else {\n in = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\n }\n\n QueryParser parser = new QueryParser(field, analyzer);\n BooleanQuery.Builder booleanQueryBuilder = new BooleanQuery.Builder();\n BooleanQuery booleanQuery = booleanQueryBuilder.build();\n while (true) {\n if (queries == null && queryString == null) {// prompt the user\n System.out.println(\"Enter query: \");\n }\n\n String line = queryString != null ? queryString : in.readLine();\n\n if (line == null || line.length() == -1) {\n break;\n }\n\n line = line.trim();\n if (line.length() == 0) {\n break;\n }\n\n Query query;\n\n if(filtering) {\n for (Iterator<String> iterator = mFilesSet.iterator(); iterator.hasNext(); ) {\n String mString = iterator.next();\n Query mQuery = new TermQuery(new Term(\"filetype\", mString));\n booleanQueryBuilder.add(mQuery, BooleanClause.Occur.MUST_NOT);\n }\n query = parser.parse(line);\n\n Date currentDate = new Date();\n BytesRef lowerTerm = new BytesRef(fileDateString);\n BytesRef upperTerm = new BytesRef(dateFormat.format(currentDate));\n //System.out.println(dateFormat.format(currentDate));\n TermRangeQuery dateQuery = TermRangeQuery.newStringRange(\"modified\",fileDateString,dateFormat.format(currentDate),false,false);\n //Query dateQuery = IntPoint.newRangeQuery(\"modified\", ((int) fileDate.getTime()),(int)currentDate.getTime());\n booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n booleanQueryBuilder.add(query, BooleanClause.Occur.MUST);\n //booleanQueryBuilder.add(dateQuery, BooleanClause.Occur.MUST);\n\n booleanQuery = booleanQueryBuilder.build();\n //System.out.println(\"Query: \" + booleanQuery.toString());\n //System.out.println(\"Searching for: \" + query.toString(field));\n }\n else {\n query = parser.parse(line);\n }\n if (repeat > 0) { // repeat & time as benchmark\n Date start = new Date();\n for (int i = 0; i < repeat; i++) {\n searcher.search(query, 100);\n }\n Date end = new Date();\n System.out.println(\"Time: \" + (end.getTime() - start.getTime()) + \"ms\");\n }\n\n if(filtering){\n doPagingSearch(in, searcher, booleanQuery, hitsPerPage, raw, queries == null && queryString == null);\n }\n else {\n doPagingSearch(in, searcher, query, hitsPerPage, raw, queries == null && queryString == null);\n }\n if (queryString != null) {\n break;\n }\n }\n reader.close();\n\n }",
"public static void main(String args[])\r\n\t{\r\n\t\tint a;\r\n\t\tString word;\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSearchengine websearch = new Searchengine();\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"1. Start-Search 2.Exit: \");\r\n\t\t\ta = input.nextInt();\r\n\t\t\tinput.nextLine();\r\n\t\t\tswitch(a)\r\n\t\t\t{\r\n\t\t\t\tcase 1:\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.printf(\"Enter the Word to Search : \");\r\n\t\t\t\t\tword = input.nextLine();\r\n\t\t\t\t\twebsearch.search(word);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 2:\r\n\t\t\t\t{\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} // End of Switch case\r\n\t\t} // End of while loop\r\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(findCar(4, \"honda\")); // true\n\t}",
"public static void main(String[] args) {\n\t\tsearchDaleHalloween();\n\t}",
"public static void main(String[] args) {\n\t\tHomeLoan homeLoan = new HomeLoan();\n\t\thomeLoan.applyForLoan();\n\t\thomeLoan.emi();\n\t\t\n\t\t/*Naukri obj = new Naukri();\n\t\tobj.search(\"Java\");\n\t\tobj.search(\"Java\",\"Noida\");\n\t\tobj.search(\"Java\",0);\n\t\tobj.search(\"Java\",\"Noida\",0);*/\n\n\t}",
"public SimpleGrep(ShellEnvironment env, String[] args) {\n\n super(env, args);\n if (args.length >2) {\n System.err.println(\"Can read only one file\");\n }else if (args.length<2){\n System.err.println(\"Need 2 arguments\");\n }\n\n\n File input = env.makeFile(args[1]);\n try {\n this.current = new BufferedReader(new FileReader(input));\n } catch (FileNotFoundException e) {\n caughtFatalException(\"Could not open file!\", e);\n }\n\n this.rawPattern=this.getRawPattern(args[0]);\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString[] input = {\"i love you\", \"island\",\"ironman\", \"i love leetcode\"};\n\t\tint[] times = {5,3,2,2};\n\t\tAutocompleteSystem sol = new AutocompleteSystem(input, times);\n\t}",
"public static void main(String... args)\n {\n String path = Configuration.instance.dataDirectory + Configuration.instance.fileSeparator;\n String suffix = \"_default.xml\";\n String algorithm = \"\";\n boolean paramSeach = false;\n int maxGens = 10000;\n\n readItems();\n\n // Parsing CLI\n for (int i = 0; i < args.length; i++)\n {\n if (args[i].equals(\"-algorithm\"))\n {\n i++;\n algorithm = args[i];\n }\n\n if (args[i].equals(\"-configuration\"))\n {\n i++;\n if (args[i].equals(\"best\"))\n suffix = \"_best.xml\";\n }\n\n if (args[i].equals(\"-search_best_configuration\"))\n paramSeach = true;\n }\n\n if (paramSeach) suffix = \"_best.xml\";\n double[] hyperparameters = loadConfig(path + algorithm + suffix);\n System.out.println(\"Chosen algorithm: \" + algorithm);\n\n double time = System.currentTimeMillis();\n // Running correct algorithm according to CLI\n switch (algorithm)\n {\n case \"ga\":\n if (paramSeach)\n new GARecommender().recommend();\n else\n new Population(maxGens, hyperparameters).run();\n break;\n case \"sa\":\n case \"best-algorithm\":\n if (paramSeach)\n new SARecommender().recommend();\n else\n new Annealing(hyperparameters).run();\n break;\n case \"aco\":\n if (paramSeach)\n new ACORecommender().recommend();\n else\n new AntColony(maxGens, hyperparameters).run();\n break;\n case \"pso\":\n if (paramSeach)\n new PSORecommender().recommend();\n else\n new Swarm(maxGens * 10, hyperparameters).run(); // 10x max gens because PSO is does less per gen and is much faster\n break;\n default:\n System.out.println(\"Could not find algorithm with name \" + algorithm + \". Options are: ga, sa, aco, pso\");\n break;\n }\n System.out.println(\"Finished in: \" + ((System.currentTimeMillis() - time) / 1000) + \"s\");\n }",
"public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.print(\"Search?\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString toSend = scanner.nextLine();\n\n\t\t// String toSend = \"sys\";\n\n\t\tArrayList<merchantBean> merchants = new ArrayList<merchantBean>();\n\n\t\t// check if connection is open?\n\t\tif (SQLconnection.connectSQL()) {\n\t\t\t// send the string\n\t\t\tmerchants = SQLconnection.stateSQL(toSend, merchants);\n\t\t}\n\n\t\t// now we can deal with them all over here\n\t\tfor (int i = 0; i < merchants.size(); i++) {\n\t\t\tSystem.out.print(merchants.get(i).getMerchantName());\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(merchants.get(i).getMerchantPhone());\n\t\t}\n\t\tscanner.close();\n\n\t}",
"public static void main(String[] args) {\n\t\tint[] nums = {5,1,3};\n\t\tSystem.out.println(search(nums, 5));\n\t}",
"public JaccardSearcher(String docFilename) {\n super(docFilename);\n // TODO: YOUR CODE HERE\n\n // Instantiate the indexer\n // VSM MyCoolSearcher.Indexer is being used because we don't want to create static nested Builder class for the MyCoolSearcher.Indexer class\n indexer = new VectorSpaceModelIndexer.Builder(documents, stopWords).build();\n }",
"public void scan(String[] args) throws Exception {\n ORB orb = ORB.init(args, null);\n // get the root naming context\n org.omg.CORBA.Object objRef =\n orb.resolve_initial_references(\"NameService\");\n // Use NamingContextExt instead of NamingContext,\n // part of the Interoperable naming Service.\n NamingContextExt ncRef =\n NamingContextExtHelper.narrow(objRef);\n CenterService service;\n\n String managerId = \"\";\n boolean ifContinue = true;\n do {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Please input your manager ID:\");\n managerId = scanner.nextLine();\n if (!verifyId(managerId)) {\n System.out.println(\"ManagerId error. Please input again\");\n continue;\n }\n switch (managerId.substring(0, 3)) {\n case \"MTL\": {\n service = CenterServiceHelper.narrow(ncRef.resolve_str(\"MTL\"));\n ifContinue = processOperation(service,managerId);\n break;\n }\n case \"LVL\": {\n service = CenterServiceHelper.narrow(ncRef.resolve_str(\"LVL\"));\n ifContinue = processOperation(service,managerId);\n break;\n }\n case \"DDO\": {\n service = CenterServiceHelper.narrow(ncRef.resolve_str(\"DDO\"));\n ifContinue = processOperation(service,managerId);\n break;\n }\n }\n } while (ifContinue);\n }",
"private SearchServiceFactory() {}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter size of string array\");\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tn=sc.nextInt();\r\n\t\tarr= new String[n];\r\n\t\tSystem.out.println(\"Enter elements of string array\");\r\n\t\t\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tarr[i]=sc.next();\r\n\t\t}\r\n\t\t\r\n\t\tSearchArray s=new SearchArray();\r\n\t\ts.search_array();\r\n\t}",
"public static void main(String arg[]) {\n\n try {\n\n // use the default character set for VR encoding - override this as necessary\n SpecificCharacterSet specificCharacterSet = new SpecificCharacterSet((String[]) null);\n AttributeList identifier = new AttributeList();\n\n // build the attributes that you would like to retrieve as well as passing in\n // any search criteria\n identifier.putNewAttribute(TagFromName.QueryRetrieveLevel).addValue(\"STUDY\"); // specific query root\n identifier.putNewAttribute(TagFromName.PatientName, specificCharacterSet).addValue(\"Bowen*\");\n identifier.putNewAttribute(TagFromName.PatientID, specificCharacterSet);\n identifier.putNewAttribute(TagFromName.PatientBirthDate);\n identifier.putNewAttribute(TagFromName.PatientSex);\n identifier.putNewAttribute(TagFromName.StudyInstanceUID);\n identifier.putNewAttribute(TagFromName.SOPInstanceUID);\n identifier.putNewAttribute(TagFromName.StudyDescription);\n identifier.putNewAttribute(TagFromName.StudyDate);\n identifier.putNewAttribute(TagFromName.SOPClassesInStudy);\n\n // retrieve all studies belonging to patient with name 'Bowen'\n new FindSOPClassSCU(\n \t\t\"www.dicomserver.co.uk\",\n \t\t104,\n \t\t\"MEDCONN\",\n \t\t\"OurFindScu\",\n SOPClass.StudyRootQueryRetrieveInformationModelFind,\n identifier,\n new OurFindHandler()\n );\n \n\n } catch (Exception e) {\n e.printStackTrace(System.err); // in real life, do something about this exception\n System.exit(0);\n }\n }",
"public static void main(String[] args) {\n String query,input;\n int numberOfInputs;\n Scanner scan=new Scanner(System.in);\n numberOfInputs=scan.nextInt();\n for(int i=0;i<numberOfInputs;i++){\n query=scan.next();\n if(query.equals(\"add\")){\n input=scan.next();\n add(input);\n }\n if(query.equals(\"find\")){\n input=scan.next();\n find(input);\n }\n }\n\n }",
"private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n \n }\n else { \n root_files.add(new File(args[i]));\n }\n }\n \n if (root_files.isEmpty()) {\n root_files.add(new File(DEFAULT_FILE));\n }\n if (output_file == null) output_file = new File(OUTPUT_FILE);\n}",
"public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }",
"public static void main(String[] args) {\n String filename = args[0];\n In in = new In(filename);\n int n = in.readInt();\n Term[] terms = new Term[n];\n for (int i = 0; i < n; i++) {\n long weight = in.readLong(); // read the next weight\n in.readChar(); // scan past the tab\n String query = in.readLine(); // read the next query\n terms[i] = new Term(query, weight); // construct the term\n }\n\n // read in queries from standard input and print out the top k matching terms\n int k = Integer.parseInt(args[1]);\n Autocomplete autocomplete = new Autocomplete(terms);\n while (StdIn.hasNextLine()) {\n String prefix = StdIn.readLine();\n Term[] results = autocomplete.allMatches(prefix);\n StdOut.printf(\"%d matches\\n\", autocomplete.numberOfMatches(prefix));\n for (int i = 0; i < Math.min(k, results.length); i++)\n StdOut.println(results[i]);\n }\n }",
"public Finder() {\n \n }",
"public static void main(String args[]) throws FileNotFoundException{\n\t\t//Pass parameters to inputGenerator if necessary\n\t\tif(args.length > 2 && args[2].equalsIgnoreCase(\"G\")){\n\t\t\tif(args.length == 4){\n\t\t\tInputGenerator.main(new String[]{args[3]});\n\t\t\t}\n\t\t\telse if(args.length == 5){\n\t\t\t\tInputGenerator.main(new String[]{args[3], args[4]});\n\t\t\t}\n\t\t\telse\n\t\t\t\tInputGenerator.main(null);\n\t\t}\n\t\tForest forest = new Forest(args[0]);\n\t\t//System.out.println();\n\t\tif(args.length > 1){\n\t\t\tLocalSearch search = new LocalSearch(forest, args[1]);\n\t\t}\n\t\telse{\n\t\t\tLocalSearch search = new LocalSearch(forest, null);\n\t\t}\n\t\t//forest.printForestGrid();\n\t\tfor(Space f:forest.getFriendLocations()){\n\t\t\tSystem.out.println((f.getRowNumber() + 1) + \" \" + (f.getColumnNumber() + 1));\n\t\t}\n\t}",
"public static void main(String[] args) {\n init();\n runIterator();\n Scanner scanner = new Scanner(System.in);\n runApplication(scanner);\n }",
"public DaumWebSearcher() {\n\n }",
"public static void main(String[] args) {\n\t\tList<String> cars = new ArrayList<String>();\n\t\t// Get categories\n\t\tarrayCategories = Categories.makeCategories();\n\n\t\t//get keys\n\t\tkeys = (List<String>) SimpleRunner.getKeys();\n\n\t\t// Loop over arguments to find parameters of cars, categories, and maximum output\n\t\tfor(String option : args) {\n\t\t\tfor (List<String> category : arrayCategories) { \n\t\t\t\tfor(String subcategory : category)\n\t\t\t\t\tif(subcategory.equals(option))\n\t\t\t\t\t\tchosenCategories.add(option);\n\t\t\t}\n\t\t\tif(keys.contains(option.toLowerCase()) || SimpleRunner.trimKeys(keys).contains(option))\n\t\t\t\tcars.add(option);\n\t\t\tif(isNumeric(option)) {\n\t\t\t\tif(Integer.parseInt(option) <= 10 && Integer.parseInt(option) >= 0)\n\t\t\t\t\tmaxOutput = Integer.parseInt(option);\n\t\t\t}\n\t\t}\n\t\t\n\t\tBoolean noOptionSelected = true; // If neither gui or api is specified\n\t\tfor(String option : args) {\n\t\t\tswitch(option.toLowerCase()) {\n\t\t\tcase \"gui\":\n\t\t\t\tnoOptionSelected = false;\n\t\t\t\tnew GUI(chosenCategories);\n\t\t\t\tbreak;\n\t\t\tcase \"api\":\n\t\t\t\tnoOptionSelected = false;\n\t\t\t\tnew API(chosenCategories, cars);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Run gui by default\n\t\tif(noOptionSelected) {\n\t\t\tnew GUI(chosenCategories);\n\t\t}\n\t}",
"public static void main(String args[]) \n\t{ \n String txt = \"ABABDABACDABABCABAB\"; \n String pat = \"ABABCABAB\"; \n\t\tnew KMP().KMPSearch(pat, txt); \n\t}",
"public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tThisConcept t = new ThisConcept();\n\t\n\t\tint a = 10,b=20;\n\t\tt.find(a,b);\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine().trim());\n\t\tfind();\n\t}",
"private ClubSearch() \r\n {\r\n in = new Scanner(System.in);\r\n db = DatabaseManager.getInstance();\r\n \r\n openPrompt = \"Would you like to search for a club, \" +\r\n \t \"filter by type of club, list clubs, or exit? (s/f/l/e)\";\r\n cDatabase = \"ClubDatabase\";\r\n cName = \"ClubName\";\r\n }",
"public static void main(String[] args){\n invertedIndex(\"http://www.chenshiyu.com\");\n System.out.println(\"***************************************************\");\n search(\"Archives\");\n }",
"public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Asymmetrik Autocomplete Program\\n\");\r\n\t\tmainMenu();\r\n\t}",
"public static void main(String[] args) {\n\t\tString[] words = {\"at\",\"\",\"\",\"\",\"ball\",\"\",\"\",\"\",\"car\",\"\",\"\",\"\"};\n\t\tString searchWord = \"at\";\n\n\t\tsearch(words,searchWord,0,words.length-1);\n\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString[] dict = {\"hello\",\"leetcode\"};\r\n\t\tMagicDictionary dictionary = new MagicDictionary();\r\n\t\tdictionary.buildDict(dict);\r\n\t\tSystem.out.println(dictionary.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary.search(\"leetcoded\"));\r\n\t\t\r\n\t\tSystem.out.println();\r\n\r\n\t\tMagicDictionary1 dictionary1 = new MagicDictionary1();\r\n\t\tdictionary1.buildDict(dict);\r\n\t\tSystem.out.println(dictionary1.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary1.search(\"leetcoded\"));\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(dictionary.search(\"abcabacbababdbadbfaejfoiawfjaojfaojefaowjfoawjzoawj\"));\r\n\t\t\r\n\t}",
"public NormalSearch() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {\n super();\n //ins = new globalInstance();\n // TODO Auto-generated constructor stub\n }",
"public static void main(String args[]) throws Exception{\n\t\tString path_to_index;\r\n\t\ttry{\r\n\t\t\tpath_to_index = args[0];\r\n\t\t\tSearching_query search = new Searching_query(path_to_index);\r\n\t\t\tString query;\r\n\t\t\tboolean flag = true;\r\n\t\t\twhile(flag==true){\r\n\t\t\t input_query = new Scanner(System.in);\r\n\t\t\t System.out.println(\"ENTER QUERY : \");\r\n\t\t\t query = input_query.nextLine();\r\n\t\t\t System.out.println(\"YOUR QUERY IS: \" + query);\r\n\t\t\t /*calculating the start time*/\r\n\t\t\tdouble start_time_of_query = System.currentTimeMillis();\r\n\t\t\t\tsearch.searching_query(query);\r\n\t\t\t\t/*calculating the end time*/\r\n\t\t\tdouble end_time_of_query = System.currentTimeMillis();\r\n\t\t\tdouble timetaken = end_time_of_query - start_time_of_query;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ timetaken/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want next Query (1 for YES,0 for NO)? : \");\r\n\t\t\t if(!(input_query.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = false;\r\n\t\t\t\t System.out.println();\r\n\t\t\t }\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"EXCEPTION : Enter path of the index folder.\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"Search getSearch();",
"public static void main(String[] args)\r\n {\r\n CommandParser parser = new CommandParser(args[0]);\r\n parser.parseFile();\r\n }",
"public QueryController(String[] args){\n // Parse Args\n QueryArgs queryArgs = new QueryArgs();\n try {\n queryArgs.parseArgs(args);\n } catch (FileNotFoundException e) {\n //e.printStackTrace();\n System.err.println(\"Invalid Arguments received. Please check your arguments passed to ./search\");\n return;\n }\n\n // Run the Term Normaliser\n TermNormalizer normalizer = new TermNormalizer();\n String[] queryTerms = normalizer.transformedStringToTerms(queryArgs.queryString);\n\n //create the model\n Model model = new Model();\n model.loadCollectionFromMap(queryArgs.mapPath);\n model.loadLexicon(queryArgs.lexiconPath);\n model.loadInvertedList(queryArgs.invlistPath);\n if(queryArgs.stopListEnabled)\n {\n model.loadStopList(queryArgs.stopListPath);\n }\n if(queryArgs.printSummary && queryArgs.collectionPath != \"\")\n {\n model.setPathToCollection(queryArgs.collectionPath);\n }\n\n\n //fetch the top results from the query module\n QueryModule queryModule = new QueryModule();\n queryModule.doQuery(queryTerms, model, queryArgs.bm25Enabled);\n List<QueryResult> topResults = queryModule.getTopResult(queryArgs.maxResults);\n\n\n\n ResultsView resultsView = new ResultsView();\n if(queryArgs.printSummary)\n {\n\n DocSummary docSummary = new DocSummary();\n for(QueryResult result:topResults)\n {\n // retrieve the actualy text from the document collection\n result.setDoc(model.getDocumentCollection().getDocumentByIndex(result.getDoc().getIndex(), true));\n\n //set the summary on the result object by fetching it from the docSummary object\n result.setSummaryNQB(docSummary.getNonQueryBiasedSummary(result.getDoc(), model.getStopListModule()));\n result.setSummaryQB(docSummary.getQueryBiasedSummary(result.getDoc(), model.getStopListModule(), Arrays.asList(queryTerms)));\n }\n resultsView.printResultsWithSummary(topResults,queryArgs.queryLabel);\n }else\n {\n resultsView.printResults(topResults,queryArgs.queryLabel);\n }\n\n }",
"public static void main(String[] args) {\n Services.registerDefaultProvider(DEFAULT_PROVIDER);\n Services.registerProvider(\"comp\", COMP_PROVIDER);\n Services.registerProvider(\"armed\", ARMED_PROVIDER);\n\n // Clients would execute these lines\n Service service1 = Services.newInstance();\n Service service2 = Services.newInstance(\"comp\");\n Service service3 = Services.newInstance(\"armed\");\n System.out.printf(\"%s, %s, %s%n\", service1, service2, service3);\n }",
"private BFSRunner getSearcher(Predicate<Cell> isAccessible, Predicate<Cell> isGoal) {\n\t\treturn new BFSRunner(map, msgUtil, currentCell, isAccessible, isGoal, actionQueue);\n\t}",
"public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }",
"public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }",
"public static void main( String[] args ) {\n Optional< WordFeed > wordFeed = new WordFeedProvider().buildWordFeed();\n if ( !wordFeed.isPresent() || !wordFeed.get().hasNext() ) {\n System.out.println( \"Unable to read selected file. Aborting analysis.\" );\n return;\n }\n\n TextAnalyzer textAnalyzer = new TextAnalyzer();\n textAnalyzer.process( wordFeed.get() );\n textAnalyzer.report( new SystemOutReporter() );\n }",
"public SearchService(String name) {\n super(\"\");\n }",
"public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}",
"private Launcher(String[] args) {\n\n\t\t// parse commandline parameters\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName();\n\t\tString home = System.getProperty(Jyro.JYRO_HOME, \".\");\n\t\tfor (String arg : args) {\n\n\t\t\thome = arg;\n\t\t}\n\t\tthis.home = new File(home);\n\t\tthis.name = name;\n\t\tlogger.info(Jyro.JYRO_HOME + \"=\" + this.home);\n\t\treturn;\n\t}",
"public Search(Connection con, String inpt) {\n index = 0;\n conn = con;\n results = new ArrayList<>();\n input = inpt;\n query(conn, input);\n }",
"public RegexGrep(ShellEnvironment env, String[] args) {\n super(env, args);\n this.regex = Pattern.compile(args[0]);\n }",
"public static void main(String[] args){\n\t\t\n\t\tSearchTallestPattern tall = new SearchTallestPattern(args);\n\t\t\n\t\ttall.TryBuildUp();\n\t\ttall.GetTallestPattern();\n\t\ttall.OutputResult();\n\t\t\n\t\t//System.out.printf(\"%n%d\", System.currentTimeMillis() - start);\n\t}",
"public static void main(String[] args) {\n\t\tSpringApplication.run(FinderApplication.class, args);\n\t}",
"public static void main(String [] pOptions) {\n \n PatternCreator myPatternCreator = new PatternCreator();\n \n }",
"public static void main(String[] args) {\n\n Trie dictionary;\n\n if (args.length > 0) {\n try {\n dictionary = new Trie(args[0]);\n } catch (FileNotFoundException e) {\n System.err.printf(\"could not open file %s for reading\\n\", args[0]);\n return;\n }\n }\n else {\n dictionary = new Trie(System.in);\n }\n\n System.out.println(dictionary.contains(\"cat\"));\n }",
"public void searchSystem( Integer option, String buff ) {\n\t\tswitch ( option ) {\n\t\t case 1:\n\t\t \tarchive.searchTitle( buff );\n\t\t \tbreak;\n\t\t case 2:\n\t\t \tarchive.searchAuthor( buff );\n\t\t \tbreak;\n\t\t case 3:\n\t\t \tarchive.searchPublisher( buff );\n\t\t \tbreak;\n\t\t default:\n\t\t \tbreak;\n\t\t}\n\t}",
"void searchProbed (Search search);",
"public EntrezSearcher (String query, ArrayList <String> searchIds, String folderPath){\n this(\"pubmed\",\"xml\", query,searchIds,folderPath);\n }"
]
| [
"0.7271815",
"0.6608844",
"0.6141724",
"0.6111826",
"0.6056606",
"0.6012858",
"0.60091394",
"0.5993173",
"0.5965837",
"0.59531033",
"0.5919143",
"0.5885944",
"0.58615553",
"0.58460647",
"0.58447456",
"0.58420944",
"0.58004284",
"0.5799773",
"0.57983655",
"0.57883394",
"0.57608175",
"0.5752289",
"0.5731815",
"0.5706276",
"0.5694597",
"0.5618782",
"0.55950296",
"0.5571719",
"0.54928535",
"0.5481036",
"0.54801893",
"0.547455",
"0.5456003",
"0.5444119",
"0.5441701",
"0.5423683",
"0.54231465",
"0.54149574",
"0.54114974",
"0.53920996",
"0.5387712",
"0.5374235",
"0.536885",
"0.53675133",
"0.5367136",
"0.5348155",
"0.5346459",
"0.53218603",
"0.53113997",
"0.5306954",
"0.53053147",
"0.52843684",
"0.5281669",
"0.5278143",
"0.5278039",
"0.52466923",
"0.5245907",
"0.52383786",
"0.52372324",
"0.52297175",
"0.5229179",
"0.5206354",
"0.5198164",
"0.5182676",
"0.5177311",
"0.5175719",
"0.5174204",
"0.51546884",
"0.51523817",
"0.5150743",
"0.5149184",
"0.5144839",
"0.51447284",
"0.5120304",
"0.5115435",
"0.5110225",
"0.51042753",
"0.50941193",
"0.50935423",
"0.50852364",
"0.50837016",
"0.50779647",
"0.5077058",
"0.5069573",
"0.5069124",
"0.5068474",
"0.5060776",
"0.50607604",
"0.50596446",
"0.50497156",
"0.50441456",
"0.5043962",
"0.50433946",
"0.504337",
"0.5037694",
"0.5018244",
"0.501652",
"0.5014852",
"0.5008084",
"0.50033724"
]
| 0.72927755 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.